996baca516bf579dbd5e3e432e9f54d8c52a88d1
[gnulib.git] / ChangeLog
1 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2
3         update-copyright: don't trip on non-FSF copyright statements
4         * build-aux/update-copyright: Fix so that the first correctly
5         formatted FSF copyright statement is recognized no matter what
6         appears before it.  Update documentation.
7         * tests/test-update-copyright.sh: Test that.
8
9 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10
11         update-copyright: clean up code a little
12         * build-aux/update-copyright: Append "_re" to the name of any
13         variable holding a regular expression.
14         Replace "old" and "new" with "stmt" in variable names.
15         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16         handled correctly.
17         Format code more consistently.
18
19 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20
21         update-copyright-tests: improve portability
22         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24
25 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26
27         update-copyright: support @copyright{} and &copy;
28         * build-aux/update-copyright: Implement and document.
29         * tests/test-update-copyright.sh: Test.
30
31 2009-08-04  Jim Meyering  <meyering@redhat.com>
32
33         update-copyright-tests: correctly test EOL=\r\n handling
34         * tests/test-update-copyright.sh: Put \r at the end of some lines
35         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36
37         maint.mk: make update-copyright exclusion list more configurable
38         * top/maint.mk (update-copyright): Default to excluding COPYING,
39         but allow an override, in case someone does want to update that file.
40
41         maint.mk: don't update copyright date in COPYING
42         * top/maint.mk (update-copyright): Exclude COPYING.
43
44         maint.mk: add a copyright-updating rule
45         * top/maint.mk (update-copyright): New rule.
46         Derived from coreutils/Makefile.am.
47
48         update-copyright: rename some variables
49         * build-aux/update-copyright: Rename a few variables for clarity.
50         Tweak syntax.  List Joel E. Denny as coauthor.
51
52 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
53
54         update-copyright: fix bug for 2-digit last year and add tests
55         * build-aux/update-copyright: Fix bug.
56         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
57         specified.
58         * modules/update-copyright-tests: New
59         * tests/test-update-copyright.sh: New.
60
61 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62
63         update-copyright: handle leading tabs in line prefix
64         * build-aux/update-copyright: Count leading tabs as 8 spaces
65         when computing margin.  This helps with the formatting of
66         ChangeLogs, for example.
67         Fix documentation a little.
68
69 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
70
71         update-copyright: support EOL=\r\n
72         * build-aux/update-copyright: Implement that.
73
74 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
75
76         update-copyright: automatically format copyright statements
77         * build-aux/update-copyright: Implement that.
78         Also, be a little more predictable and safer by always failing
79         when the full copyright format is not perfectly recognized as an
80         unbroken whole.  Discussed at
81         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
82         Rewrite documentation.
83
84 2009-08-03  Bruno Haible  <bruno@clisp.org>
85
86         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
87
88 2009-08-02  Bruno Haible  <bruno@clisp.org>
89
90         Tests for module 'uname'.
91         * modules/uname-tests: New file.
92         * tests/test-uname.c: New file.
93
94         New module 'uname'.
95         * lib/uname.c: New file.
96         * m4/uname.m4: New file.
97         * modules/uname: New file.
98         * doc/posix-functions/uname.texi: Mention the new module.
99
100 2009-08-02  Bruno Haible  <bruno@clisp.org>
101
102         Tests for module 'sys_utsname'.
103         * modules/sys_utsname-tests: New file.
104         * tests/test-sys_utsname.c: New file.
105
106         New module 'sys_utsname'.
107         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
108         * m4/sys_utsname_h.m4: New file.
109         * modules/sys_utsname: New file.
110         * doc/posix-headers/sys_utsname.texi: Mention the new module.
111
112 2009-08-02  Bruno Haible  <bruno@clisp.org>
113
114         Implicitly initialize the sockets library.
115         * lib/gethostname.c: Include sockets.h.
116         (rpl_gethostname): Invoke gl_sockets_startup.
117         * lib/socket.c: Include sockets.h.
118         (rpl_socket): Invoke gl_sockets_startup.
119         * modules/gethostname (Depends-on): Add sockets.
120         * modules/socket (Depends-on): Likewise.
121         * tests/test-poll.c: Don't include sockets.h.
122         (main): Don't invoke gl_sockets_startup.
123         * tests/test-select.c: Don't include sockets.h.
124         (main): Don't invoke gl_sockets_startup.
125
126 2009-08-02  Bruno Haible  <bruno@clisp.org>
127
128         Allow multiple calls to gl_sockets_startup.
129         * lib/sockets.c (initialized_sockets_version): New variable.
130         (gl_sockets_startup): Do nothing if already called for this or a higher
131         version.
132         (gl_sockets_cleanup): Reset initialized_sockets_version.
133
134 2009-08-03  Simon Josefsson  <simon@josefsson.org>
135
136         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
137         different project/version.
138
139 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
140             Bruno Haible  <bruno@clisp.org>
141
142         Tests for module 'pipe-filter-gi'.
143         * modules/pipe-filter-gi-tests: New file.
144         * tests/test-pipe-filter-gi1.sh: New file.
145         * tests/test-pipe-filter-gi1.c: New file.
146         * tests/test-pipe-filter-gi2.sh: New file.
147         * tests/test-pipe-filter-gi2-main.c: New file.
148         * tests/test-pipe-filter-gi2-child.c: New file.
149
150         New module 'pipe-filter-gi'.
151         * lib/pipe-filter-gi.c: New file.
152         * modules/pipe-filter-gi: New file.
153
154 2009-08-02  Bruno Haible  <bruno@clisp.org>
155             Paolo Bonzini  <bonzini@gnu.org>
156
157         Tests for module 'pipe-filter-ii'.
158         * modules/pipe-filter-ii-tests: New file.
159         * tests/test-pipe-filter-ii1.sh: New file.
160         * tests/test-pipe-filter-ii1.c: New file.
161         * tests/test-pipe-filter-ii2.sh: New file.
162         * tests/test-pipe-filter-ii2-main.c: New file.
163         * tests/test-pipe-filter-ii2-child.c: New file.
164
165         New module 'pipe-filter-ii'.
166         * lib/pipe-filter.h: New file.
167         * lib/pipe-filter-ii.c: New file.
168         * lib/pipe-filter-aux.h: New file.
169         * modules/pipe-filter-ii: New file.
170
171 2009-08-02  Simon Josefsson  <simon@josefsson.org>
172
173         * lib/gc-libgcrypt.c: Change copyright to FSF.
174         * lib/gc-gnulib.c: Likewise.
175
176 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
177
178         * lib/gethostname.c: Include limits.h.
179
180 2009-08-02  Simon Josefsson  <simon@josefsson.org>
181             Bruno Haible  <bruno@clisp.org>
182
183         Ensure HOST_NAME_MAX as part of the gethostname module.
184         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
185         define also HOST_NAME_MAX.
186         * tests/test-gethostname.c: Include <limits.h>.
187         (main): Check also HOST_NAME_MAX.
188         * doc/posix-headers/limits.texi: Document the mingw problem.
189
190 2009-08-02  Bruno Haible  <bruno@clisp.org>
191
192         * lib/gethostname.c (gethostname): Fix handling of large len argument.
193         Add comments.
194
195 2009-03-31  Simon Josefsson  <simon@josefsson.org>
196
197         * lib/gethostname.c: Add Windows wrapper.
198         * m4/gethostname.m4: Look for gethostname in -lws2_32.
199         * modules/gethostname: Depend on sys_socket & errno, for also
200         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
201         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
202
203 2009-07-31  Jim Meyering  <meyering@redhat.com>
204
205         getloadavg: fix symbol name in comment
206         * lib/getloadavg.c: Correct a typo I introduced when adding
207         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
208         Matt Kraai spotted the problem.
209
210 2009-07-29  Matt Kraai  <mkraai@beckman.com>
211
212         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
213         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
214         code also if ! defined N_NAME_POINTER.
215         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
216         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
217         but the n_name member is a 12-byte array.
218
219 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
220
221         update-copyright: generalize comment handling
222         * build-aux/update-copyright: Handle copyright statements
223         within more comment styles.
224         Document usage.
225         Report any file with an external copyright holder or parse failure.
226
227 2009-07-29  Jim Meyering  <meyering@redhat.com>
228
229         mktime: correct setting of REPLACE_MKTIME
230         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
231
232         update-copyright: new module
233         * modules/update-copyright: New file.
234         * build-aux/update-copyright: New file.
235         * MODULES.html.sh (maint+release support): Add update-copyright.
236
237 2009-07-27  Bruno Haible  <bruno@clisp.org>
238
239         Fix compilation error when <ctime> is used and mktime is replaced.
240         * lib/time.in.h (mktime): New declaration.
241         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
242         REPLACE_MKTIME instead of defining mktime in config.h.
243         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
244         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
245         Reported by Ross McFarland <rwmcfa1@neces.com>.
246
247 2009-07-27  Bruno Haible  <bruno@clisp.org>
248
249         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
250         Reported by Matt Kraai <mkraai@beckman.com>.
251
252 2009-07-25  Jim Meyering  <meyering@redhat.com>
253
254         maint.mk: avoid warnings about missing files
255         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
256         diagnostic when .prev-version does not exist.
257         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
258         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
259         nonexistent cfg.mk.
260         Suggestions from Simon Josefsson.
261
262 2009-07-25  Bruno Haible  <bruno@clisp.org>
263
264         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
265         defined as macros. Needed on QNX 6.4.1.
266         Reported by Matt Kraai <mkraai@beckman.com>.
267
268 2009-07-23  Jim Meyering  <meyering@redhat.com>
269
270         maint.mk: invoke "make dist" with a working value of XZ_OPT
271         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
272
273 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
274
275         Make fseeko.c compile on QNX.
276         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
277
278 2009-07-22  Peter Simons  <simons@cryp.to>
279
280         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
281         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
282         * lib/md4.h: Likewise.
283         * lib/md5.h: Likewise.
284         * lib/sha1.h: Likewise.
285         * lib/sha256.h: Likewise.
286         * lib/sha512.h: Likewise.
287
288         tests-sha1: don't assign literal string to 'char *' variable
289         * tests/test-sha1.c (main): Declare locals with "const" to match
290         attributes of the right hand side.
291
292 2009-07-21  Eric Blake  <ebb9@byu.net>
293
294         dup2: fix more mingw problems
295         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
296         fd to itself.
297         * doc/posix-functions/dup2.texi (dup2): Document the bug.
298         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
299         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
300         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
301         care of mingw bugs.
302
303 2009-07-21  Jim Meyering  <meyering@redhat.com>
304
305         vc-list-files: avoid failure when /bin/sh is dash
306         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
307         On some Debian based systems, /bin/sh is a symlink to dash, and running
308         this command would omit the "/" following each 'tests' prefix:
309           dash -x build-aux/vc-list-files -C . tests
310         That is because bash and dash work differently:
311           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
312           bash ok
313           dash odd
314
315 2009-07-21  Eric Blake  <ebb9@byu.net>
316
317         dup2-tests: test previous patch
318         * modules/dup2-tests: New file.
319         * tests/test-dup2.c: Likewise.
320         * tests/test-open.c (main): Avoid unspecified behavior.
321         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
322         test.
323
324         dup2: work around mingw and cygwin 1.5 bug
325         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
327         * modules/unistd (Makefile.am): Substitute it.
328         * lib/unistd.in.h (dup2): Declare the replacement.
329         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
330         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
331         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
332         * modules/execute (Depends-on): Add dup2.
333         * modules/fseterr (Depends-on): Likewise.
334         * modules/pipe (Depends-on): Likewise.
335         * modules/posix_spawn-internal (Depends-on): Likewise.
336
337 2009-07-21  Bruno Haible  <bruno@clisp.org>
338
339         * modules/.gitattributes: New file.
340
341 2009-07-20  Bruno Haible  <bruno@clisp.org>
342
343         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
344         (main): Use it.
345
346 2009-07-20  Eric Blake  <ebb9@byu.net>
347
348         test-pipe: make a bit more robust.
349         * tests/test-pipe.c (myerr): Allow error messages regardless of
350         what we do to stderr.
351         (test_pipe): Rearrange to avoid deadlock.
352         (child_main): Try a larger read, to ensure we avoided deadlock.
353         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
354         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
355         if misused.
356
357 2009-07-19  Jim Meyering  <meyering@redhat.com>
358
359         fts: avoid false-positive cycle-detection
360         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
361         for each new command line argument.
362
363 2009-07-19  Bruno Haible  <bruno@clisp.org>
364
365         Fix build error on mingw with the modules sys_select and unistd.
366         * modules/acl-tests (Depends-on): Add close.
367         * modules/binary-io-tests (Depends-on): Likewise.
368         * modules/closein-tests (Depends-on): Likewise.
369         * modules/flock-tests (Depends-on): Likewise.
370         * modules/fsync-tests (Depends-on): Likewise.
371         * modules/lseek-tests (Depends-on): Likewise.
372         * modules/pipe-tests (Depends-on): Likewise.
373         * modules/posix_spawn-tests (Depends-on): Likewise.
374         * modules/posix_spawnp-tests (Depends-on): Likewise.
375         * modules/stat-time-tests (Depends-on): Likewise.
376         * modules/yesno-tests (Depends-on): Likewise.
377
378 2009-07-19  Bruno Haible  <bruno@clisp.org>
379
380         Unify conditionals.
381         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
382         macros, not at the compiler macros.
383         * lib/pipe.c: Likewise.
384         * lib/execute.c: Likewise.
385         * lib/spawni.c: Likewise.
386
387 2009-07-19  Bruno Haible  <bruno@clisp.org>
388
389         Fix handling of closed stdin/stdout/stderr on mingw.
390         * lib/w32spawn.h: Include unistd.h.
391         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
392         file descriptor with O_NOINHERIT flag.
393         (fd_safer_noinherit): New function, based on fd-safer.c.
394         (dup_safer_noinherit): New function, based on dup-safer.c.
395         (undup_safer_noinherit): New function.
396         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
397         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
398         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
399         instead of fd_safer.
400         * tests/test-pipe.c: Include <windows.h>.
401         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
402
403         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
404         from main.
405         (test_pipe): Pass an extra argument for disambiguation.
406         (main): Invoke parent_main or child_main.
407
408         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
409         consistently.
410
411 2009-07-18  Eric Blake  <ebb9@byu.net>
412
413         test-pipe: fix mingw build
414         * tests/test-pipe.c (main): Avoid fcntl on mingw.
415
416 2009-07-18  Bruno Haible  <bruno@clisp.org>
417
418         * modules/pipe-tests (Makefile.am): Fix typo.
419
420 2009-07-18  Eric Blake  <ebb9@byu.net>
421
422         error: fix mingw build
423         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
424         Reported by Bruno Haible.
425
426         error: avoid undefined use of stdout
427         * lib/error.c (error, error_at_line): Check that fd 1 is open
428         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
429         is handling faults and the close_stdout module wants to report the
430         detection of closed stdout as an error.
431
432 2009-07-17  Eric Blake  <ebb9@byu.net>
433
434         pipe: be robust in face of closed fds
435         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
436         should cause child to misbehave.
437         * modules/pipe-tests: New module.
438         * tests/test-pipe.c: New file.
439         * tests/test-pipe.sh: New file.
440         Reported by Akim Demaille.
441
442 2009-07-14  Bruno Haible  <bruno@clisp.org>
443
444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
445         Reported by anonymous kc.
446
447 2009-07-07  Jim Meyering  <meyering@redhat.com>
448
449         maint.mk: don't look for translatable strings in *.m4 or *.mk
450         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
451         when searching for translatable strings.
452
453 2009-07-05  Jim Meyering  <meyering@redhat.com>
454
455         remove superfluous parentheses in STREQ definition
456         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
457         * lib/getugroups.c (STREQ): Likewise.
458         * lib/fnmatch.c (STREQ): Likewise.
459         Spotted by Bruno Haible.
460
461 2009-07-04  Jim Meyering  <meyering@redhat.com>
462
463         argv-iter: new module
464         * MODULES.html.sh: Add argv-iter.
465         * lib/argv-iter.c, lib/argv-iter.h: New files.
466         * modules/argv-iter: New file.
467         * modules/argv-iter-tests: New file.
468         * tests/test-argv-iter.c: Test it.
469
470 2009-07-04  Bruno Haible  <bruno@clisp.org>
471
472         Fix assertion.
473         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
474         contains more exact copies of a given entry than file2, leave the extra
475         copies unpaired rather than aborting.
476         Reported by Eric Blake.
477
478 2009-07-02  Bruno Haible  <bruno@clisp.org>
479
480         Speedup git-merge-changelog for git cherry-pick.
481         * lib/git-merge-changelog.c (struct entries_mapping): New type.
482         (entries_mapping_get): New function, extracted from compute_mapping.
483         (entries_mapping_reverse_get): New function.
484         (compute_mapping): Add a 'full' argument. Return the result in a
485         'struct entries_mapping'.
486         (main): Update. Access the mappings through entries_mapping_get.
487         Reported by Eric Blake.
488
489 2009-07-02  Bruno Haible  <bruno@clisp.org>
490
491         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
492         best_i.
493
494 2009-07-02  Bruno Haible  <bruno@clisp.org>
495
496         Speed up approximate search for matching ChangeLog entries.
497         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
498         argument. Call fstrcmp_bounded instead of fstrcmp.
499         (compute_mapping, try_split_merged_entry, main): Update callers.
500
501 2009-07-02  Bruno Haible  <bruno@clisp.org>
502
503         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
504
505 2009-06-30  Bruno Haible  <bruno@clisp.org>
506
507         Reduce the number of uc_is_cased calls.
508         * lib/unicase.h (casing_suffix_context_t): Add
509         'first_char_except_ignorable' field.
510         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
511         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
512         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
513         Update initializer.
514         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
515         case-ignorable characters.
516         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
517         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
518         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
519         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
520         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
521
522 2009-06-30  Bruno Haible  <bruno@clisp.org>
523
524         Tests for module 'unicase/ignorable'.
525         * modules/unicase/ignorable-tests: New file.
526         * tests/unicase/test-ignorable.c: New file, generated by
527         gen-uni-tables.
528
529         Tests for module 'unicase/cased'.
530         * modules/unicase/cased-tests: New file.
531         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
532         * tests/unicase/test-predicate-part1.h: New file, derived from
533         tests/unictype/test-predicate-part1.h.
534         * tests/unicase/test-predicate-part2.h: New file, same as
535         tests/unictype/test-predicate-part2.h.
536
537         Fix evaluation of "Before C" condition of FINAL_SIGMA.
538         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
539         (output_casing_properties): New function.
540         (main): Call it.
541         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
542         * lib/unicase/cased.c: Include unictype/bitmap.h.
543         (uc_is_cased): Define through a bitmap lookup.
544         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
545         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
546         (uc_is_case_ignorable): Define through a bitmap lookup.
547         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
548         lib/unictype/bitmap.h.
549         (Depends-on): Add inline. Clean up.
550         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
551         lib/unictype/bitmap.h.
552         (Depends-on): Add inline. Clean up.
553         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
554         recognition.
555         * tests/unicase/test-u16-tolower.c (main): Likewise.
556         * tests/unicase/test-u32-tolower.c (main): Likewise.
557
558 2009-06-30  Bruno Haible  <bruno@clisp.org>
559
560         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
561         * lib/unicase/u16-casemap.c: Likewise.
562         * lib/unicase/u32-casemap.c: Likewise.
563
564 2009-06-29  Bruno Haible  <bruno@clisp.org>
565
566         Define u32_casefold as a wrapper around u32_ct_casefold.
567         * lib/unicase/u32-casefold.c: Update.
568         * modules/unicase/u32-casefold (Depends-on): Add
569         unicase/u32-ct-casefold, unicase/empty-prefix-context,
570         unicase/empty-suffix-context. Clean up.
571
572         Define u16_casefold as a wrapper around u16_ct_casefold.
573         * lib/unicase/u16-casefold.c: Update.
574         * modules/unicase/u16-casefold (Depends-on): Add
575         unicase/u16-ct-casefold, unicase/empty-prefix-context,
576         unicase/empty-suffix-context. Clean up.
577
578         Define u8_casefold as a wrapper around u8_ct_casefold.
579         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
580         * lib/unicase/u8-casefold.c: Update.
581         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
582         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
583
584         Define u32_totitle as a wrapper around u32_ct_totitle.
585         * lib/unicase/u32-totitle.c: Update.
586         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
587         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
588
589         Define u16_totitle as a wrapper around u16_ct_totitle.
590         * lib/unicase/u16-totitle.c: Update.
591         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
592         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
593
594         Define u8_totitle as a wrapper around u8_ct_totitle.
595         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
596         functions.
597         (FUNC): Delegate to U_CT_TOTITLE.
598         * lib/unicase/u8-totitle.c: Update.
599         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
600         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
601
602         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
603         invocation.
604         * modules/unicase/u32-tolower (Depends-on): Add
605         unicase/empty-prefix-context, unicase/empty-suffix-context.
606
607         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
608         invocation.
609         * modules/unicase/u16-tolower (Depends-on): Add
610         unicase/empty-prefix-context, unicase/empty-suffix-context.
611
612         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
613         * modules/unicase/u8-tolower (Depends-on): Add
614         unicase/empty-prefix-context, unicase/empty-suffix-context.
615
616         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
617         invocation.
618         * modules/unicase/u32-toupper (Depends-on): Add
619         unicase/empty-prefix-context, unicase/empty-suffix-context.
620
621         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
622         invocation.
623         * modules/unicase/u16-toupper (Depends-on): Add
624         unicase/empty-prefix-context, unicase/empty-suffix-context.
625
626         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
627         * modules/unicase/u8-toupper (Depends-on): Add
628         unicase/empty-prefix-context, unicase/empty-suffix-context.
629
630         New module 'unicase/u32-ct-casefold'.
631         * lib/unicase/u32-ct-casefold.c: New file.
632         * modules/unicase/u32-ct-casefold: New file.
633
634         New module 'unicase/u16-ct-casefold'.
635         * lib/unicase/u16-ct-casefold.c: New file.
636         * modules/unicase/u16-ct-casefold: New file.
637
638         New module 'unicase/u8-ct-casefold'.
639         * lib/unicase/u8-ct-casefold.c: New file.
640         * lib/unicase/u-ct-casefold.h: New file, derived from
641         lib/unicase/u-casefold.h.
642         * modules/unicase/u8-ct-casefold: New file.
643
644         New module 'unicase/u32-ct-totitle'.
645         * lib/unicase/u32-ct-totitle.c: New file.
646         * modules/unicase/u32-ct-totitle: New file.
647
648         New module 'unicase/u16-ct-totitle'.
649         * lib/unicase/u16-ct-totitle.c: New file.
650         * modules/unicase/u16-ct-totitle: New file.
651
652         New module 'unicase/u8-ct-totitle'.
653         * lib/unicase/u8-ct-totitle.c: New file.
654         * lib/unicase/u-ct-totitle.h: New file, derived from
655         lib/unicase/u-totitle.h.
656         * modules/unicase/u8-ct-totitle: New file.
657
658         New module 'unicase/u32-ct-tolower'.
659         * lib/unicase/u32-ct-tolower.c: New file.
660         * modules/unicase/u32-ct-tolower: New file.
661
662         New module 'unicase/u16-ct-tolower'.
663         * lib/unicase/u16-ct-tolower.c: New file.
664         * modules/unicase/u16-ct-tolower: New file.
665
666         New module 'unicase/u8-ct-tolower'.
667         * lib/unicase/u8-ct-tolower.c: New file.
668         * modules/unicase/u8-ct-tolower: New file.
669
670         New module 'unicase/u32-ct-toupper'.
671         * lib/unicase/u32-ct-toupper.c: New file.
672         * modules/unicase/u32-ct-toupper: New file.
673
674         New module 'unicase/u16-ct-toupper'.
675         * lib/unicase/u16-ct-toupper.c: New file.
676         * modules/unicase/u16-ct-toupper: New file.
677
678         New module 'unicase/u8-ct-toupper'.
679         * lib/unicase/u8-ct-toupper.c: New file.
680         * modules/unicase/u8-ct-toupper: New file.
681
682         Add context arguments to u*_casemap functions.
683         * lib/unicase/unicasemap.h: Include unicase.h.
684         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
685         suffix_context arguments.
686         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
687         functions.
688         (FUNC): Add prefix_context and suffix_context arguments. Use
689         uc_is_cased and uc_is_case_ignorable.
690         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
691         * lib/unicase/u16-casemap.c: Likewise.
692         * lib/unicase/u32-casemap.c: Likewise.
693         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
694         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
695         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
696         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
697         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
698         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
699
700         New module 'unicase/u32-suffix-context'.
701         * lib/unicase/u32-suffix-context.c: New file.
702         * modules/unicase/u32-suffix-context: New file.
703
704         New module 'unicase/u16-suffix-context'.
705         * lib/unicase/u16-suffix-context.c: New file.
706         * modules/unicase/u16-suffix-context: New file.
707
708         New module 'unicase/u8-suffix-context'.
709         * lib/unicase/u8-suffix-context.c: New file.
710         * lib/unicase/u-suffix-context.h: New file.
711         * modules/unicase/u8-suffix-context: New file.
712
713         New module 'unicase/empty-suffix-context'.
714         * lib/unicase/empty-suffix-context.c: New file.
715         * modules/unicase/empty-suffix-context: New file.
716
717         New module 'unicase/u32-prefix-context'.
718         * lib/unicase/u32-prefix-context.c: New file.
719         * modules/unicase/u32-prefix-context: New file.
720
721         New module 'unicase/u16-prefix-context'.
722         * lib/unicase/u16-prefix-context.c: New file.
723         * modules/unicase/u16-prefix-context: New file.
724
725         New module 'unicase/u8-prefix-context'.
726         * lib/unicase/u8-prefix-context.c: New file.
727         * lib/unicase/u-prefix-context.h: New file.
728         * lib/unicase/context.h: New file.
729         * modules/unicase/u8-prefix-context: New file.
730
731         New module 'unicase/empty-prefix-context'.
732         * lib/unicase/empty-prefix-context.c: New file.
733         * modules/unicase/empty-prefix-context: New file.
734
735         New module 'unicase/ignorable'.
736         * lib/unicase/ignorable.c: New file.
737         * modules/unicase/ignorable: New file.
738
739         New module 'unicase/cased'.
740         * lib/unicase/caseprop.h: New file.
741         * lib/unicase/cased.c: New file.
742         * modules/unicase/cased: New file.
743
744         New functions for case mapping of substrings.
745         * lib/unicase.h (casing_prefix_context_t): New type.
746         (unicase_empty_prefix_context): New variable.
747         (u8_casing_prefix_context, u16_casing_prefix_context,
748         u32_casing_prefix_context, u8_casing_prefixes_context,
749         u16_casing_prefixes_context, u32_casing_prefixes_context): New
750         declarations.
751         (casing_suffix_context_t): New type.
752         (unicase_empty_suffix_context): New variable.
753         (u8_casing_suffix_context, u16_casing_suffix_context,
754         u32_casing_suffix_context, u8_casing_suffixes_context,
755         u16_casing_suffixes_context, u32_casing_suffixes_context,
756         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
757         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
758         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
759         declarations.
760
761 2009-06-28  Jim Meyering  <meyering@redhat.com>
762
763         boostrap: indent only with spaces
764         * build-aux/bootstrap: Indent only with spaces, never TABs.
765
766         bootstrap: split long lines
767         * build-aux/bootstrap: Keep line length < 80.
768
769         bootstrap: sync from coreutils
770         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
771         just as autoreconf does.  Verify a list of prerequisite
772         package-name,version-number pairs if defined in bootstrap.conf.
773         Refer to README-prereq, if prerequisites are not satisfied.
774
775 2009-06-27  Eric Blake  <ebb9@byu.net>
776
777         tests: add test for bogus NULL definition
778         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
779         * tests/test-stdlib.c: Likewise.
780         * tests/test-string.c: Likewise.
781         * tests/test-locale.c: Likewise.
782         * tests/test-unistd.c: Likewise.
783         * modules/stdio-tests (Depends-on): Add verify.
784         * modules/stdlib-tests (Depends-on): Likewise.
785         * modules/string-tests (Depends-on): Likewise.
786         * modules/locale-tests (Depends-on): Likewise.
787         * modules/unistd-tests (Depends-on): Likewise.
788
789 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
790
791         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
792         self-explaining comment.
793         * m4/selinux-selinux-h: Update serial.
794         (gl_LIBSELINUX): New macro, adding a warning for missing development
795         packages to code extracted from...
796         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
797         Add warning for missing development packages here, too.
798
799 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
800
801         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
802
803 2009-06-25  Eric Blake  <ebb9@byu.net>
804
805         version-etc: fix regression
806         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
807         gcc.
808         (version_etc): Use it, to catch bugs with trailing NULL.
809         * lib/version-etc.c (version_etc_arn): Delete unused argument.
810         (version_etc_va): Fix logic bug.
811         * modules/version-etc-tests: Add test.
812         * tests/test-version-etc.c: New file.
813         * tests/test-version-etc.sh: Likewise.
814
815 2009-06-25  Sam Steingold  <sds@gnu.org>
816
817         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
818         mbtowc declaration.
819
820 2009-06-25  Eric Blake  <ebb9@byu.net>
821
822         fpurge: migrate into <stdio.h>
823         * lib/fpurge.h: Delete...
824         * lib/stdio.in.h (fpurge): ...and declare here, instead.
825         * lib/fpurge.c (fpurge): Change declaring header.
826         * modules/fpurge (Files): Drop deleted file.
827         (Depends-on): Add stdio.
828         (configure.ac): Set witness.
829         * modules/stdio (Makefile.am): Support fpurge macros.
830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
831         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
832         * lib/fflush.c: Update client.
833         * tests/test-fpurge.c: Likewise.
834         * NEWS: Mention the change.
835
836 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
837
838        * lib/argp-version-etc.c (program_authors): Add const
839        qualifier.
840        * lib/version-etc.c: Fix typos in the comments.
841        * modules/argp-version-etc: Depends on version-etc.
842
843 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
844
845         argp-version-etc: new module.
846
847         * lib/argp-version-etc.c: New file.
848         * lib/argp-version-etc.h: New file.
849         * modules/argp-version-etc: New file.
850         * modules/argp-version-etc-tests: New file.
851         * tests/test-argp-version-etc.c: New test.
852         * tests/test-argp-version-etc-1.sh: New test.
853
854 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
855
856         Provide additional interfaces and documentation for version-etc
857         module.
858
859         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
860         interfaces.
861         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
862         prototypes.
863
864 2009-06-24  Bruno Haible  <bruno@clisp.org>
865
866         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
867         HAVE_LIB${NAME} macro.
868         Reported by Sam Steingold <sds@gnu.org>.
869
870 2009-06-23  Simon Josefsson  <simon@josefsson.org>
871
872         * modules/hash-tests (test_hash_LDADD): Link to libintl when
873         needed.
874
875 2009-06-21  Bruno Haible  <bruno@clisp.org>
876
877         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
878         work.
879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
880         together with LIB${NAME}, LTLIB${NAME}.
881         Reported by Sam Steingold <sds@gnu.org>.
882
883 2009-06-20  Jim Meyering  <meyering@redhat.com>
884
885         tests: make sc_require_test_exit_idiom more generic
886         * top/maint.mk (Exit_witness_file): New overridable variable.
887         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
888         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
889
890 2009-06-19  Jim Meyering  <meyering@redhat.com>
891
892         hash: reverse order of src/dst parameters in an internal interface
893         * lib/hash.c (transfer_entries): Reverse order of parameters to
894         put DST before SRC.  Adjust callers.
895
896         tests: test-hash: avoid wholesale duplication
897         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
898         Instead, use a loop and add a single conditional.
899
900         tests: test-hash: allow seed selection via a command line argument
901         * tests/test-hash.c (get_seed): New function.
902         (main): Use it.
903
904 2009-06-19  Eric Blake  <ebb9@byu.net>
905
906         hash: avoid memory leak on allocation failure
907         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
908         failure.  Factor repeated algorithm...
909         (transfer_entries): ...into new helper routine.
910         (hash_delete): React to hash_rehash return value.
911
912         hash: reduce memory pressure in hash_rehash no-op case
913         * lib/hash.c (next_prime): Avoid overflow.
914         (hash_initialize): Factor bucket size computation...
915         (compute_bucket_size): ...into new helper function.
916         (hash_rehash): Use new function and open coding to reduce memory
917         pressure, and avoid a memory leak in USE_OBSTACK code.
918         Reported by Jim Meyering.
919
920 2009-06-18  Eric Blake  <ebb9@byu.net>
921
922         hash: make rotation more obvious
923         * modules/hash (Depends-on): Add bitrotate and stdint.
924         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
925         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
926         (SIZE_MAX): Rely on headers for definition.
927         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
928         (raw_hasher): Use rotr_sz.
929         Suggested by Jim Meyering.
930
931         hash: fix memory leak in last patch
932         * lib/hash.c (hash_rehash): Avoid memory leak.
933
934         hash: avoid no-op rehashing
935         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
936
937         hash: provide default callback functions
938         * lib/hash.c (raw_hasher, raw_comparator): New functions.
939         (hash_initialize): Use them as defaults.
940         * tests/test-hash.c (main): Test this.
941
942         hash: minor optimization
943         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
944         when possible.
945         (hash_initialize): Document this promise.
946         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
947         * tests/test-hash.c (hash_compare_strings): Test this.
948
949 2009-06-18  Bruno Haible  <bruno@clisp.org>
950
951         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
952         going to be replaced anyway.
953
954 2009-06-18  Bruno Haible  <bruno@clisp.org>
955
956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
957         in one place.
958         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
959         be replaced anyway.
960
961 2009-06-18  Eric Blake  <ebb9@byu.net>
962
963         hash: check for resize before insertion
964         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
965         threshold before insertion, so that a pathological hash_rehash
966         that fills every bucket can still trigger another rehash.
967
968 2009-06-18  Jim Meyering  <meyering@redhat.com>
969
970         hash-tests: add a loop around the small tests
971         * tests/test-hash.c (main): Repeat small tests with selected
972         small initial table sizes.
973
974 2009-06-17  Eric Blake  <ebb9@byu.net>
975
976         hash: minor cleanups
977         * lib/hash.h (hash_entry): Make opaque, by moving...
978         * lib/hash.c (hash_entry): ...here.
979         (hash_insert): Clarify restrictions on what can be inserted.
980         (hash_get_next): Clarify when it is safe to remove an element
981         during traversal.
982         (check_tuning): Skip verification when tuning is known safe.
983         (hash_initialize): Clarify restrictions on tuning.
984
985 2009-06-17  Jim Meyering  <jim@meyering.net>
986         and Eric Blake  <ebb9@byu.net>
987
988         hash-tests: new module
989         * modules/hash-tests: New file.
990         * tests/test-hash.c: New file.
991
992 2009-06-17  Eric Blake  <ebb9@byu.net>
993
994         strstr-simple: document new module
995         * MODULES.html.sh: Document new module.
996
997         strstr, strcasestr: replace on platforms with broken memchr
998         * modules/strstr: Split into...
999         * modules/strstr-simple: ...new module that does not care about
1000         performance, but does care about glibc bug.
1001         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
1002         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
1003         if platform memchr is broken, per Debian bug 521737.
1004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
1005         memchr.
1006         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
1007         * doc/posix-functions/strstr.texi (strstr): Document the fix.
1008         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1009         * modules/mountlist (Depends-on): Add strstr-simple.
1010         * modules/gen-uni-tables (Depends-on): Likewise.
1011         * modules/argz (Depends-on): Add strstr.
1012
1013 2009-06-17  Bruno Haible  <bruno@clisp.org>
1014
1015         * modules/posix_spawn-internal (Depends-on): Add errno.
1016
1017 2009-06-17  Bruno Haible  <bruno@clisp.org>
1018
1019         Define missing ESTALE on Interix 3.5.
1020         * lib/errno.in.h (ESTALE): Assign a value if missing.
1021         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
1022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
1023         missing.
1024         * doc/posix-headers/errno.texi: Mention the Interix bug.
1025         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
1026
1027 2009-06-15  Eric Blake  <ebb9@byu.net>
1028
1029         memchr, memchr2: add valgrind exception
1030         * lib/memchr.valgrind: New file.
1031         * lib/memchr2.valgrind: New file.
1032         * modules/memchr (Files): Distribute valgrind file.
1033         * modules/memchr2 (Files): Likewise.
1034
1035         docs: memchr is no longer obsolete
1036         * MODULES.html.sh: Move memchr from obsolete to string.h section.
1037         * lib/string.in.h (memchr): Simplify logic.
1038
1039 2009-06-14  Jim Meyering  <meyering@redhat.com>
1040
1041         link-follow: fix the "checking..." message to not mention trailing slash
1042         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
1043         never considered trailing slashes.
1044
1045 2009-06-14  Bruno Haible  <bruno@clisp.org>
1046
1047         * m4/memchr.m4: Mention also the bug on IA-64.
1048         * doc/posix-functions/memchr.texi: Likewise.
1049
1050 2009-06-12  Eric Blake  <ebb9@byu.net>
1051
1052         memchr: detect broken x86_64 and alpha implementations
1053         * modules/memchr-tests (Depends-on): Move mmap detection...
1054         * modules/memchr (Depends-on): ...here.
1055         (configure.ac): Set indicator.
1056         * lib/string.in.h (memchr): Declare replacement.
1057         * modules/string (Makefile.am): Trigger replacement.
1058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1059         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
1060         bugs.
1061         * doc/posix-functions/memchr.texi (memchr): Document the bug.
1062         * modules/getpagesize (License): Relax license.
1063
1064 2009-06-11  Bruno Haible  <bruno@clisp.org>
1065
1066         * lib/idpriv.h: Add more references.
1067
1068 2009-06-08  Bruno Haible  <bruno@clisp.org>
1069
1070         Tests for module 'idpriv-droptemp'.
1071         * modules/idpriv-droptemp-tests: New file.
1072         * tests/test-idpriv-droptemp.sh: New file.
1073         * tests/test-idpriv-droptemp.su.sh: New file.
1074         * tests/test-idpriv-droptemp.c: New file.
1075
1076         New module 'idpriv-droptemp'.
1077         * lib/idpriv-droptemp.c: New file.
1078         * modules/idpriv-droptemp: New file.
1079
1080 2009-06-08  Bruno Haible  <bruno@clisp.org>
1081
1082         Tests for module 'idpriv-drop'.
1083         * modules/idpriv-drop-tests: New file.
1084         * tests/test-idpriv-drop.sh: New file.
1085         * tests/test-idpriv-drop.su.sh: New file.
1086         * tests/test-idpriv-drop.c: New file.
1087
1088         New module 'idpriv-drop'.
1089         * lib/idpriv.h: New file.
1090         * lib-idpriv-drop.c: New file.
1091         * m4/idpriv.m4: New file.
1092         * modules/idpriv-drop: New file.
1093
1094 2009-06-08  Bruno Haible  <bruno@clisp.org>
1095
1096         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
1097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1103
1104 2009-06-08  Eric Blake  <ebb9@byu.net>
1105
1106         test-strstr: use memory fence, when possible
1107         * tests/test-strstr.c (main): Use memory fence, in order to be
1108         more likely to trigger Debian bug 521737.
1109         * modules/strstr-tests (Files): Pull in additional files.
1110
1111         memchr: no longer obsolete, for wider field testing
1112         * modules/memchr (Status, Notice): Delete, this module is no
1113         longer obsolete.
1114         * modules/vasnprintf (Depends-on): Add memchr.
1115
1116 2009-06-07  Jim Meyering  <meyering@redhat.com>
1117
1118         hash: declare some functions with the warn_unused_result attribute
1119         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
1120
1121 2009-06-07  Bruno Haible  <bruno@clisp.org>
1122
1123         * tests/test-alignof.c: Don't test int64_t if it does not exist.
1124         Reported by Eric Blake.
1125
1126 2009-06-06  Eric Blake  <ebb9@byu.net>
1127
1128         test-alignof: fix typo with long double
1129         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
1130         compiler error.
1131
1132 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
1133
1134         Escape non-texinfo { and }s.
1135         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
1136         markup error.
1137
1138 2009-06-04  Jim Meyering  <meyering@redhat.com>
1139
1140         gitlog-to-changelog: don't infloop on an empty commit log
1141         * build-aux/gitlog-to-changelog: Warn about an empty log message.
1142         Reported by Boris Petersen <transacid@centerim.org>.
1143
1144 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
1145
1146         version-etc: extend for packagers
1147         Add three new configure options, intended for packagers:
1148           --with-packager="packager name"
1149           --with-packager-version="packager-specific version"
1150           --with-packager-bug-reports="packager bug reporting"
1151         An example with coreutils:
1152           $ ./configure \
1153             --with-packager=Gentoo \
1154             --with-packager-bug-report=http://bugs.gentoo.org/ \
1155             --with-packager-version="patchset 1.6"
1156           $ ./src/ls --version | head -n3
1157           ls (GNU coreutils) 7.1-dirty
1158           Packaged by Gentoo (patchset 1.6)
1159           Copyright (C) 2009 Free Software Foundation, Inc.
1160         Note that the bug reporting info via --help doesn't show up because
1161         coreutils uses its own custom emit_bug_reporting_address() implementation
1162         in src/system.h.  If it didn't, it'd look like:
1163           $ ./src/ls --help | tail -n4
1164           Report bugs to <bug-coreutils@gnu.org>.
1165           Report Gentoo bugs to <http://bugs.gentoo.org/>.
1166           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
1167           General help using GNU software: <http://www.gnu.org/gethelp/>.
1168         * lib/version-etc.c: Print new information, if provided.
1169         * m4/version-etc.m4: New file.
1170         * modules/version-etc (Files): Add m4/version-etc.m4.
1171         (configure.ac): Add gl_VERSION_ETC.
1172
1173 2009-05-31  Bruno Haible  <bruno@clisp.org>
1174
1175         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
1176         and 'int64_t'.
1177         * modules/alignof-tests (Dependencies): Add stdint.
1178         Reported by Eric Blake.
1179
1180 2009-05-31  Bruno Haible  <bruno@clisp.org>
1181
1182         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
1183         restriction due to compiler bugs.
1184         Reported by Eric Blake.
1185
1186 2009-05-31  Simon Josefsson  <simon@josefsson.org>
1187             Bruno Haible  <bruno@clisp.org>
1188
1189         Fix test-alignof failure.
1190         * lib/alignof.h (alignof_slot): New macro.
1191         (alignof_type): New macro, with the same semantics as the previous
1192         'alignof'.
1193         (alignof): Alias to alignof_slot.
1194         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
1195         check that the results are usable as constant expressions.
1196
1197 2009-05-31  Bruno Haible  <bruno@clisp.org>
1198
1199         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
1200         * tests/test-memchr.c (main): Check that memchr does not read past the
1201         first occurrence of the byte.
1202         * tests/test-strstr.c (main): Update comment.
1203         Suggested by Eric Blake.
1204
1205 2009-05-30  Bruno Haible  <bruno@clisp.org>
1206
1207         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
1208         detail how to use dumpbin.
1209         Reported by David Byron <dbyron@dbyron.com>.
1210
1211 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1212
1213         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
1214
1215 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1216
1217         * m4/manywarnings.m4: Add GCC 4.4 warnings.
1218
1219 2009-05-28  Bruno Haible  <bruno@clisp.org>
1220
1221         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
1222         build-aux/ files.
1223
1224 2009-05-28  Simon Josefsson  <simon@josefsson.org>
1225
1226         * gnulib-tool (func_import): Transform license on build-aux/ files too.
1227
1228 2009-05-27  Simon Josefsson  <simon@josefsson.org>
1229
1230         * gnulib-tool (sed_transform_main_lib_file)
1231         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
1232         regexps.
1233
1234 2009-05-26  Simon Josefsson  <simon@josefsson.org>
1235
1236         * tests/test-strstr.c: Add another self-test.
1237         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
1238         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
1239
1240 2009-05-23  Bruno Haible  <bruno@clisp.org>
1241
1242         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
1243         change.
1244
1245 2009-05-21  Bruno Haible  <bruno@clisp.org>
1246
1247         Simplify use of mode_t varargs.
1248         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
1249         uses 'mode_t' or 'int'.
1250         * lib/openat.c (openat): Likewise.
1251         * lib/open-safer.c (open_safer): Likewise.
1252         * m4/mode_t.m4: New file.
1253         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
1254         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
1255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
1256         * modules/open (Files): Add m4/mode_t.m4.
1257         * modules/openat (Files): Likewise.
1258         * modules/fcntl-safer (Files): Likewise.
1259         Suggested by Eric Blake.
1260
1261 2009-05-21  Pádraig Brady  <P@draigbrady.com>
1262
1263         * doc/glibc-functions/fallocate.texi: New file.
1264         * doc/gnulib.texi: Include it.
1265
1266 2009-05-21  Eric Blake  <ebb9@byu.net>
1267             Bruno Haible  <bruno@clisp.org>
1268
1269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
1270         invocations.
1271         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1272
1273 2009-05-21  Eric Blake  <ebb9@byu.net>
1274             Bruno Haible  <bruno@clisp.org>
1275
1276         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
1277         include_next. Fix of 2008-11-20 commit.
1278         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
1279         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
1280         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
1281         NEXT_MATH_H.
1282         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
1283         instead of NEXT_MATH_H.
1284
1285 2009-05-21  Bruno Haible  <bruno@clisp.org>
1286
1287         Avoid redefinition warnings for SIZE_MAX.
1288         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
1289         Reported by Simon Josefsson.
1290
1291 2009-05-21  Bruno Haible  <bruno@clisp.org>
1292
1293         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
1294         AC_CACHE_VAL.
1295
1296 2009-05-20  Bruno Haible  <bruno@clisp.org>
1297
1298         Make zeroptr.h work on mingw.
1299         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
1300         mprotect.
1301         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
1302         * modules/memchr2-tests (configure.ac): Likewise.
1303         * modules/memcmp-tests (configure.ac): Likewise.
1304         * modules/memmem-tests (configure.ac): Likewise.
1305         * modules/memrchr-tests (configure.ac): Likewise.
1306         Reported by Simon Josefsson.
1307
1308 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1309
1310         * tests/test-glob.c: Include string.h for strcmp prototype.
1311
1312 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1313
1314         * modules/getdelim (Depends-on): Add explicit stdint, although it
1315         was implicitly already pulled in via realloc-posix.
1316         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
1317
1318 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1319
1320         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
1321         G. Christensen" <tgc@jupiterrise.com>.
1322         * m4/sys_socket_h.m4: Check for sa_family_t.
1323         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
1324         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
1325         * tests/test-sys_socket.c: Check that sa_family_t works.
1326
1327 2009-05-18  Eric Blake  <ebb9@byu.net>
1328
1329         maint.mk: allow gnulib_dir in VPATH build
1330         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
1331
1332 2009-05-15  Jim Meyering  <meyering@redhat.com>
1333
1334         maint.mk: Give gnulib_dir a default definition.
1335         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
1336         Thus, most packages no longer need to specify this variable in cfg.mk
1337
1338 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
1339
1340         rename.m4: fix typos that would make non-mingw cross-configure fail
1341         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
1342
1343 2009-05-13  Eric Blake  <ebb9@byu.net>
1344
1345         mmap-anon: avoid out-of-order autoconf expansion
1346         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
1347         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
1348         * modules/memchr-tests (Depends-on): Add extensions.
1349         * modules/memchr2-tests (Depends-on): Add extensions.
1350         * modules/memcmp-tests (Depends-on): Add extensions.
1351         * modules/memmem-tests (Depends-on): Add extensions.
1352         * modules/memrchr-tests (Depends-on): Add extensions.
1353
1354 2009-05-13  Bruno Haible  <bruno@clisp.org>
1355
1356         Make some tests ISO C 99 compliant.
1357         * tests/zerosize-ptr.h: New file.
1358         * tests/test-memchr.c: Include zerosize-ptr.h.
1359         (main): Use a zero-size object pointer instead of NULL.
1360         * tests/test-memchr2.c: Include zerosize-ptr.h.
1361         (main): Use a zero-size object pointer instead of NULL.
1362         * tests/test-memcmp.c: Include zerosize-ptr.h.
1363         (main): Use a zero-size object pointer instead of NULL.
1364         * tests/test-memmem.c: Include zerosize-ptr.h.
1365         (main): Use a zero-size object pointer instead of NULL.
1366         * tests/test-memrchr.c: Include zerosize-ptr.h.
1367         (main): Use a zero-size object pointer instead of NULL.
1368         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
1369         m4/mmap-anon.m4.
1370         (Depends-on): Add getpagesize.
1371         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1372         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
1373         m4/mmap-anon.m4.
1374         (Depends-on): Add getpagesize.
1375         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1376         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
1377         m4/mmap-anon.m4.
1378         (Depends-on): Add getpagesize.
1379         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1380         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
1381         m4/mmap-anon.m4.
1382         (Depends-on): Add getpagesize.
1383         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1384         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
1385         m4/mmap-anon.m4.
1386         (Depends-on): Add getpagesize.
1387         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1388
1389 2009-05-12  Bruno Haible  <bruno@clisp.org>
1390
1391         Tests for module 'alignof'.
1392         * modules/alignof-tests: New file.
1393         * tests/test-alignof.c: New file.
1394
1395 2009-05-12  Bruno Haible  <bruno@clisp.org>
1396
1397         Fix alignof macro.
1398         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
1399         vendor compilers that are always correct.
1400
1401 2009-05-12  Bruno Haible  <bruno@clisp.org>
1402
1403         Make the MAP_ANONYMOUS detection work on HP-UX 11.
1404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
1405         not whether its fully works.
1406
1407 2009-05-12  Bruno Haible  <bruno@clisp.org>
1408
1409         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
1410
1411 2009-05-12  Jim Meyering  <meyering@redhat.com>
1412
1413         * top/maint.mk: Adjust backslash alignment.
1414
1415 2009-05-11  Simon Josefsson  <simon@josefsson.org>
1416
1417         * top/maint.mk: Make $(srcdir)/build-aux configurable.
1418
1419 2009-05-11  Eric Blake  <ebb9@byu.net>
1420
1421         argp: avoid undefined behavior
1422         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
1423         macros.
1424
1425 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1426
1427         * tests/test-vc-list-files-git.sh: Do git config of user.email and
1428         user.name to prevent git commit from complaining.
1429
1430 2009-05-10  Bruno Haible  <bruno@clisp.org>
1431
1432         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
1433         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
1434         it rewrites every file name only once.
1435         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
1436
1437 2009-05-08  Bruno Haible  <bruno@clisp.org>
1438
1439         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
1440         instead of 'max'.
1441
1442 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1443
1444         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
1445         sockaddr_storage test.
1446
1447 2009-05-07  Simon Josefsson  <simon@josefsson.org>
1448
1449         * modules/sys_socket (Makefile.am): Substitute
1450         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
1451         * m4/sys_socket_h.m4: Check for sockaddr_storage.
1452         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
1453         * tests/test-sys_socket.c: Check sockaddr_storage.
1454
1455 2009-05-08  Bruno Haible  <bruno@clisp.org>
1456
1457         New module 'alignof'.
1458         * lib/alignof.h: New file.
1459         * modules/alignof: New file.
1460
1461 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1462             Bruno Haible  <bruno@clisp.org>
1463
1464         Fix test-file-has-acl on FreeBSD.
1465         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
1466         mask is implicitly added.
1467         * tests/test-file-has-acl.c: Include <signal.h>.
1468         (main): Terminate the test after 5 seconds.
1469         * modules/acl-tests (configure.ac): Check for alarm function.
1470
1471 2009-05-04  Bruno Haible  <bruno@clisp.org>
1472
1473         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
1474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
1475         * modules/errno (configure.ac): Drop AC_REQUIRE.
1476         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
1477         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
1478
1479 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1480
1481         * modules/glob-tests: New module.
1482         * tests/test-glob.c: Add.
1483
1484 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1485
1486         * modules/fnmatch-tests: New module.
1487         * tests/test-fnmatch.c: Add.
1488
1489 2009-05-04  Eric Blake  <ebb9@byu.net>
1490
1491         maint: make the new no-submodule-changes rule VPATH-safe
1492         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
1493
1494 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1495             Bruno Haible  <bruno@clisp.org>
1496
1497         acl: Fix infinite loop on FreeBSD.
1498         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
1499         of return value from acl_get_entry.
1500         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
1501         Likewise.
1502
1503 2009-05-03  Bruno Haible  <bruno@clisp.org>
1504
1505         * lib/acl-internal.h (acl_entries): Clarify return value.
1506         * lib/acl_entries.c (acl_entries): Likewise.
1507
1508 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1509
1510         Bug fix in acl module.
1511         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
1512
1513 2009-05-03  Bruno Haible  <bruno@clisp.org>
1514
1515         Create gperf-generated file in the source dir, not in the build dir.
1516         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
1517         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
1518         * modules/unicase/locale-language (unicase/locale-languages.h):
1519         Likewise.
1520         * modules/unicase/special-casing (unicase/special-casing-table.h):
1521         Likewise.
1522         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
1523         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
1524         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
1525         Reported by Ralf Wildenhues.
1526
1527 2009-05-03  Bruno Haible  <bruno@clisp.org>
1528
1529         * modules/fnmatch (Description, configure.ac): Taken from
1530         fnmatch-posix.
1531         * modules/fnmatch-posix: Turn into a symbolic reference to the
1532         'fnmatch' module, and deprecate.
1533         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
1534
1535 2009-05-03  Bruno Haible  <bruno@clisp.org>
1536
1537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
1538         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
1539         Reported by Ralf Wildenhues.
1540
1541 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1542
1543         * m4/fnmatch.m4: Fix fnmatch re-define.
1544
1545 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1546
1547         priv-set: new module and tests; adapt write-any-file
1548         * lib/priv-set.c: New file.
1549         * lib/priv-set.h: New file.
1550         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
1551         * lib/write-any-file.c: Simplify by using priv-set module.
1552         * m4/priv-set.m4: New file.
1553         * modules/priv-set: New file.
1554         * modules/unlinkdir: Add dependency on priv-set module.
1555         * modules/write-any-file: Likewise.
1556
1557         Tests for module 'priv-set'.
1558         * modules/priv-set-tests: New file.
1559         * tests/test-priv-set.c: New file.
1560
1561 2009-05-03  Jim Meyering  <meyering@redhat.com>
1562             Bruno Haible  <bruno@clisp.org>
1563
1564         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
1565         use the converted UTF-8 variant of the name instead.
1566
1567 2009-05-03  Jim Meyering  <meyering@redhat.com>
1568
1569         tests: tighten some getdate tests
1570         * tests/test-getdate.c (main): Tighten tests: require equality,
1571         not just greater than.  Set TZ envvar to UTC0.
1572
1573 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1574
1575         getdate: correctly interpret "next monday" when run on a Monday
1576         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
1577         that e.g., "next tues" (when run on a tuesday) results in a date
1578         that is one week in the future, and not today's date.
1579         I.e., add a week when the wday is the same as the current one.
1580         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
1581         and earlier by Martin Bernreuther and Jan Minář.
1582         * tests/test-getdate.c (main): Check that "next DAY" is always in
1583         the future and that "last DAY" is always in the past.
1584
1585 2009-05-02  Jim Meyering  <meyering@redhat.com>
1586
1587         build: ensure that a release build fails when a submodule is unclean
1588         * top/maint.mk (no-submodule-changes): New rule.
1589         (alpha beta major): Depend on it.
1590
1591 2009-05-02  Bruno Haible  <bruno@clisp.org>
1592
1593         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
1594         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
1595         shell variable gl_fnmatch_required to detect which variant is
1596         requested.
1597         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
1598         gl_FUNC_FNMATCH_POSIX.
1599         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
1600         exclude fnmatch-posix.
1601
1602 2009-05-02  Bruno Haible  <bruno@clisp.org>
1603
1604         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
1605         * modules/mbsrtowcs (License): Change to LGPLv2+.
1606         * modules/strnlen1 (License): Likewise.
1607         Reported by Simon Josefsson.
1608
1609 2009-05-02  Bruno Haible  <bruno@clisp.org>
1610
1611         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
1612         "cross".
1613         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
1614         gnulib-tool was called with option --source-base=lib.
1615
1616 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1617
1618         Use automake *-local hooks without commands, for extensibility.
1619         * modules/localcharset (Makefile.am): Rename install-exec-local
1620         rule to install-exec-localcharset, and make it a prerequisite of
1621         install-exec-local.  Likewise, rename the uninstall-local rule to
1622         uninstall-localcharset, and make it a prerequisite of the former.
1623
1624 2009-05-01  Bruno Haible  <bruno@clisp.org>
1625
1626         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
1627         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1628         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
1629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
1630         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
1631         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1632         m4/locale-zh.m4, m4/codeset.m4.
1633
1634         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1635         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
1636         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1637         m4/locale-zh.m4.
1638
1639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
1640         REPLACE_WCRTOMB if mbstate_t must be replaced.
1641         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
1642         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
1643
1644 2009-05-01  Bruno Haible  <bruno@clisp.org>
1645
1646         Avoid compiler warnings when redefining macros defined by <libintl.h>.
1647         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
1648         dngettext, dcngettext, textdomain, bindtextdomain,
1649         bind_textdomain_codeset): Undefine before redefining.
1650
1651 2009-04-30  Bruno Haible  <bruno@clisp.org>
1652
1653         Fix bug introduced on 2009-04-25.
1654         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
1655         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
1656         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
1657         is defined.
1658         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
1659         is defined.
1660         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
1661         is defined.
1662         Reported by Elbert_Pol <elbert.pol@gmail.com>.
1663
1664 2009-04-28  Bruno Haible  <bruno@clisp.org>
1665
1666         Comment tweaks.
1667         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
1668         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
1669         * lib/unicase.h (u*_casexfrm): Likewise.
1670         Reported by Paolo Bonzini.
1671
1672 2009-04-28  Bruno Haible  <bruno@clisp.org>
1673
1674         Fix a compilation error.
1675         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
1676         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
1677         Reported by Jim Meyering.
1678
1679 2009-04-27  Bruno Haible  <bruno@clisp.org>
1680
1681         New module 'libunistring'.
1682         * modules/libunistring: New file.
1683         * m4/libunistring.m4: New file.
1684         * MODULES.html.sh (Unicode string functions): Add it.
1685
1686 2009-04-27  Eric Blake  <ebb9@byu.net>
1687
1688         maint.mk: allow package-specific header to provide <config.h>
1689         * top/maint.mk (sc_require_config_h): New variable.
1690         (sc_require_config_h, sc_require_config_h_first): Use it.
1691
1692 2009-04-27  Simon Josefsson  <simon@josefsson.org>
1693
1694         * top/maint.mk (sc_avoid_if_before_free): Except
1695         useless-if-before-free script.
1696
1697 2009-04-27  Eric Blake  <ebb9@byu.net>
1698
1699         maintainer-makefile: depend on all required helper scripts
1700         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
1701         useless-if-before-free.
1702         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
1703         version, rather than assuming gnulib checkout is available.
1704         Reported by Simen Josefsson.
1705
1706 2009-04-26  Bruno Haible  <bruno@clisp.org>
1707
1708         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
1709         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
1710         "../" or "..".
1711
1712 2009-04-26  Bruno Haible  <bruno@clisp.org>
1713
1714         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
1715         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
1716         AC_LIB_HAVE_LINKFLAGS.
1717
1718 2009-04-26  Bruno Haible  <bruno@clisp.org>
1719
1720         Simplify calling convention of u*_conv_from_encoding.
1721         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
1722         u32_conv_from_encoding): Expect a resultbuf argument and return the
1723         result directly as a pointer.
1724         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
1725         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
1726         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
1727         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
1728         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
1729         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
1730         Update.
1731         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
1732         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
1733         * lib/vasnprintf.c (VASNPRINTF): Update.
1734         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
1735         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
1736         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
1737         * NEWS: Mention the change.
1738
1739 2009-04-26  Bruno Haible  <bruno@clisp.org>
1740
1741         Simplify calling convention of u*_conv_to_encoding.
1742         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1743         u32_conv_to_encoding): Expect a resultbuf argument and return the
1744         result directly as a pointer.
1745         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1746         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
1747         freeing scaled_offsets if mem_iconveha failed.
1748         * lib/unicase/u-casexfrm.h (FUNC): Update.
1749         * lib/uninorm/u-normxfrm.h (FUNC): Update.
1750         * lib/vasnprintf.c (VASNPRINTF): Update.
1751         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
1752         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
1753         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
1754         * NEWS: Mention the change.
1755
1756 2009-04-26  Bruno Haible  <bruno@clisp.org>
1757
1758         Avoid test failures on AIX and OSF/1.
1759         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
1760         malloc(0).
1761         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1762         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
1763         Likewise.
1764         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
1765         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
1766         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
1767         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
1768         * doc/posix-functions/malloc.texi: Document the portability problem
1769         related to malloc(0).
1770
1771 2009-04-26  Bruno Haible  <bruno@clisp.org>
1772
1773         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
1774         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
1775         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
1776
1777 2009-04-25  Bruno Haible  <bruno@clisp.org>
1778
1779         Avoid link error when creating a namespace clean library.
1780         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
1781         as macro with arguments if already defined as an alias.
1782         * lib/signbitf.c (gl_signbitf): Don't undefine.
1783         * lib/signbitd.c (gl_signbitd): Don't undefine.
1784         * lib/signbitl.c (gl_signbitl): Don't undefine.
1785
1786 2009-04-25  Jim Meyering  <meyering@redhat.com>
1787
1788         vc-list-files: fix another quoting bug
1789         * build-aux/vc-list-files: Avoid sed backslash expansion
1790         of pathological directory names.
1791
1792 2009-04-25  Eric Blake  <ebb9@byu.net>
1793
1794         vc-list-files: fix shell quoting error
1795         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
1796         timestamp.
1797
1798 2009-04-25  Jim Meyering  <meyering@redhat.com>
1799
1800         vc-list-files: restore lost functionality with subdir argument
1801         * build-aux/vc-list-files: When given a non-"." sub-directory
1802         argument, substitute the $dir/ prefix back onto each resulting name.
1803         Otherwise, coreutils' root_tests check would fail.
1804
1805 2009-04-24  Eric Blake  <ebb9@byu.net>
1806
1807         vc-list-files: ignore git symlinks
1808         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
1809         than ls-files, to ignore git symlinks.
1810
1811         maint.mk: import improvements from m4
1812         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
1813         (move_if_change): Delete unused macro.
1814         (news-date-check, vc-diff-check): Support VPATH builds.
1815         (announcement): Likewise.  Split --bootstrap-tools list...
1816         (boostrap-tools): ...into separate list, which can be overridden
1817         in cfg.mk.
1818         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
1819         requiring dependency on useless-if-before-free module.
1820         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
1821         Support VPATH builds.
1822
1823 2009-04-24  Jim Meyering  <meyering@redhat.com>
1824
1825         maint.mk: remove coreutils-specific rules and variables
1826         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
1827         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
1828         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
1829
1830         maint.mk: remove obsolete rule
1831         * top/maint.mk (rel-check): Remove rule.
1832         (WGET, WGETFLAGS): Remove now-unused variables.
1833
1834 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1835
1836         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
1837         consistency.
1838
1839         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
1840         '$(PATH_SEPARATOR)' instead of ':'.
1841
1842 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1843
1844         * lib/getopt1.c (main): Use 'const' for static array.
1845
1846 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1847
1848         * top/maint.mk: Sync with coreutils.
1849         * NEWS: Explain incompatibilities.
1850
1851 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1852             Bruno Haible  <bruno@clisp.org>
1853
1854         Fix cross-compilation results.
1855         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
1856         statement, as third argument of AC_TRY_RUN.
1857         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1858         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1859         Likewise.
1860         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1861         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1862         Likewise.
1863         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1864         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
1865         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
1866
1867 2009-04-20  Bruno Haible  <bruno@clisp.org>
1868
1869         Avoid test failure on mingw.
1870         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
1871
1872 2009-04-20  Bruno Haible  <bruno@clisp.org>
1873
1874         Avoid compilation error on mingw.
1875         * modules/localename-tests (Depends-on): Add locale.
1876
1877 2009-04-19  Bruno Haible  <bruno@clisp.org>
1878
1879         Support for building a shared library on Windows platforms.
1880         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
1881         (main): Test the presence of UNINORM_NFC here.
1882         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
1883         (main): Test the presence of UNINORM_NFD here.
1884         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
1885         (main): Test the presence of UNINORM_NFKC here.
1886         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
1887         (main): Test the presence of UNINORM_NFKD here.
1888
1889 2009-04-19  Bruno Haible  <bruno@clisp.org>
1890
1891         Avoid a compiler warning.
1892         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
1893         Change type of variable 'sequence'.
1894
1895 2009-04-19  Bruno Haible  <bruno@clisp.org>
1896
1897         * modules/configmake (Makefile.am): When the contents of configmake.h
1898         does not change, arrange to preserve its modification time.
1899
1900 2009-04-17  Simon Josefsson  <simon@josefsson.org>
1901
1902         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
1903         gettext domain.
1904
1905 2009-04-16  Jim Meyering  <meyering@redhat.com>
1906
1907         useless-if-before-free: improve conversion code
1908         * build-aux/useless-if-before-free: Adjust code-in-comment to match
1909         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
1910
1911 2009-04-14  Bruno Haible  <bruno@clisp.org>
1912
1913         * modules/fcntl (Depends-on): Add extensions.
1914         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
1915
1916 2009-04-12  Ben Pfaff  <blp@gnu.org>
1917
1918         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
1919         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
1920
1921 2009-03-20  Ben Pfaff  <blp@gnu.org>
1922
1923         Make rename replace existing destinations on Windows.
1924         * m4/rename.m4: Add test for Mingw.
1925         * lib/rename.c: Add rename replacement that uses MoveFileEx with
1926         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
1927         * doc/posix-functions/rename.texi: Document.
1928
1929 2009-04-10  Bruno Haible  <bruno@clisp.org>
1930
1931         New include file "iconveh.h".
1932         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
1933         * lib/striconveh.h: Include it.
1934         (enum iconv_ilseq_handler): Remove definition.
1935         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
1936         striconveh.h.
1937         * lib/striconveha.c: Include striconveh.h.
1938         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
1939         * modules/striconveh (Files): Add lib/iconveh.h.
1940         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
1941         lib/striconveh.h.
1942
1943 2009-04-10  Bruno Haible  <bruno@clisp.org>
1944
1945         * lib/uniconv.h: Update comment.
1946
1947 2009-04-10  Bruno Haible  <bruno@clisp.org>
1948
1949         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
1950         always.
1951         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
1952         * lib/unistr/u16-mbtouc-aux.c: Likewise.
1953         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
1954         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
1955         "unistring-notinline.h", so that the function gets defined always.
1956         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
1957         * lib/unistr/u8-uctomb.c: Likewise.
1958         * lib/unistr/u16-mbtouc.c: Likewise.
1959         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
1960         * lib/unistr/u16-uctomb.c: Likewise.
1961         * lib/unistr/u32-mbtouc.c: Likewise.
1962         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
1963         * lib/unistr/u32-uctomb.c: Likewise.
1964
1965 2009-04-10  Bruno Haible  <bruno@clisp.org>
1966
1967         Mark 'utime' obsolete.
1968         * modules/utime (Status, Notice): New sections.
1969         Suggested by Jim Meyering.
1970
1971         Fix cross-compile guess for utime test.
1972         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
1973         autoconf.
1974         * doc/posix-functions/utime.texi: Give more precisions.
1975         Reported by Jan <ipif@ymail.com>.
1976
1977 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
1978
1979         filevercmp: correct today's change
1980         * lib/filevercmp.c: Also handle coreutils' test inputs.
1981         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
1982
1983         Fix regression in 'filevercmp' module. Thanks Sven Joachim
1984         for reporting it.
1985         * lib/filevercmp.c: Special handle for "", "." and "..".
1986         * tests/test-filevercmp.c: Enlarge the set suite.
1987
1988 2009-04-07  Jim Meyering  <meyering@redhat.com>
1989
1990         useless-if-before-free: show how to remove braced useless free, too
1991         * build-aux/useless-if-before-free: still only in a comment, though.
1992
1993 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
1994
1995         maint.mk: import changes to syntax-check macros from coreutils
1996         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
1997         Use them in the relevant macros.
1998
1999 2009-04-06  Bruno Haible  <bruno@clisp.org>
2000
2001         Fix unportable use of bit-fields.
2002         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
2003         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
2004         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
2005
2006 2009-04-06  Bruno Haible  <bruno@clisp.org>
2007
2008         Avoid test failures on AIX and OSF/1.
2009         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
2010         that malloc(0) = NULL.
2011         * tests/unicase/test-u8-tolower.c (check): Likewise.
2012         * tests/unicase/test-u8-totitle.c (check): Likewise.
2013         * tests/unicase/test-u8-toupper.c (check): Likewise.
2014         * tests/unicase/test-u16-casefold.c (check): Likewise.
2015         * tests/unicase/test-u16-tolower.c (check): Likewise.
2016         * tests/unicase/test-u16-totitle.c (check): Likewise.
2017         * tests/unicase/test-u16-toupper.c (check): Likewise.
2018         * tests/unicase/test-u32-casefold.c (check): Likewise.
2019         * tests/unicase/test-u32-tolower.c (check): Likewise.
2020         * tests/unicase/test-u32-totitle.c (check): Likewise.
2021         * tests/unicase/test-u32-toupper.c (check): Likewise.
2022         * tests/uninorm/test-u8-nfc.c (check): Likewise.
2023         * tests/uninorm/test-u8-nfd.c (check): Likewise.
2024         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
2025         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
2026         * tests/uninorm/test-u16-nfc.c (check): Likewise.
2027         * tests/uninorm/test-u16-nfd.c (check): Likewise.
2028         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
2029         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
2030         * tests/uninorm/test-u32-nfc.c (check): Likewise.
2031         * tests/uninorm/test-u32-nfd.c (check): Likewise.
2032         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
2033         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
2034
2035 2009-04-05  Bruno Haible  <bruno@clisp.org>
2036
2037         Work around an autoconf limitation.
2038         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
2039         comment line if it would be longer than 3 KB.
2040
2041 2009-04-05  Bruno Haible  <bruno@clisp.org>
2042
2043         Avoid test failure with libiconv-1.13.
2044         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
2045         of the expected test results.
2046
2047 2009-04-05  Bruno Haible  <bruno@clisp.org>
2048
2049         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
2050         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
2051         that it should be installed.
2052
2053 2009-04-05  Bruno Haible  <bruno@clisp.org>
2054
2055         * gnulib-tool: New option --copy-file.
2056         (func_usage): Document it.
2057         (func_dest_tmpfilename): Moved out of func_import.
2058         (func_add_file, func_update_file): New functions, extracted from
2059         func_import.
2060         (func_import): Update.
2061
2062 2009-04-05  Karl Berry  <karl@gnu.org>
2063
2064         * README: prominently mention gnulib-tool.
2065         Rearrange sections so getting the code is near the top.
2066
2067 2009-04-05  Bruno Haible  <bruno@clisp.org>
2068
2069         * lib/unicase.h: Mention u*_cmp2.
2070         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2071         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
2072         * lib/unicase/ulc-casecmp.c: Likewise.
2073         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
2074         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
2075         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
2076         unistr/u8-cmp.
2077         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
2078         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
2079         unistr/u16-cmp.
2080         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
2081         unistr/u32-cmp.
2082
2083         * lib/uninorm.h: Mention u*_cmp2.
2084         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2085         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
2086         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
2087         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
2088         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
2089         unistr/u8-cmp.
2090         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
2091         unistr/u16-cmp.
2092         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
2093         unistr/u32-cmp.
2094
2095         New module 'unistr/u32-cmp2'.
2096         * lib/unistr/u32-cmp2.c: New file.
2097         * modules/unistr/u32-cmp2: New file.
2098
2099         New module 'unistr/u16-cmp2'.
2100         * lib/unistr/u16-cmp2.c: New file.
2101         * modules/unistr/u16-cmp2: New file.
2102
2103         New module 'unistr/u8-cmp2'.
2104         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
2105         * lib/unistr/u8-cmp2.c: New file.
2106         * lib/unistr/u-cmp2.h: New file.
2107         * modules/unistr/u8-cmp2: New file.
2108
2109 2009-04-05  Bruno Haible  <bruno@clisp.org>
2110
2111         * lib/unictype.h (uc_property_is_valid): New macro.
2112         * tests/unictype/test-pr_byname.c (main): Use it.
2113
2114         * lib/unistr.h: Doc fixes.
2115         * lib/uniconv.h: Doc fixes.
2116         * lib/unictype.h: Doc fixes.
2117
2118 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
2119
2120         Port coreutils 7.2 to Solaris 8.
2121
2122         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
2123         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
2124         for Solaris 8.  This is a bit of a hack, as it means it's the
2125         caller's responsibility to add -lnsl if needed, but most likely it
2126         won't be needed since only getaddrinfo uses this and getaddrinfo
2127         isn't needed on Solaris 8.
2128
2129         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
2130         problem to Solaris 8 encountered with coreutils 7.2, which
2131         resulted in a message "fnmatch.c:292: warning: passing argument 4
2132         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
2133         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
2134
2135 2009-04-03  Simon Josefsson  <simon@josefsson.org>
2136
2137         * m4/ld-version-script.m4: Add FIXME comment.
2138
2139 2009-04-02  Simon Josefsson  <simon@josefsson.org>
2140
2141         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
2142         SOVERSION variable.
2143
2144 2009-04-02  Bruno Haible  <bruno@clisp.org>
2145
2146         * Makefile (info, html, dvi, pdf): Combine the rules.
2147         Suggested by Jim Meyering.
2148
2149 2009-04-01  Bruno Haible  <bruno@clisp.org>
2150
2151         * Makefile (info, html, dvi, pdf): New targets.
2152         Reported by Reuben Thomas <rrt@sc3d.org>.
2153
2154 2009-04-01  Bruno Haible  <bruno@clisp.org>
2155
2156         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
2157         can be put into PATH.
2158         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
2159
2160 2009-04-01  Bruno Haible  <bruno@clisp.org>
2161
2162         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
2163
2164 2009-04-01  Bruno Haible  <bruno@clisp.org>
2165
2166         Rename module 'visibility'.
2167         * modules/lib-symbol-visibility: Renamed from modules/visibility.
2168         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
2169         * doc/gnulib.texi: Update.
2170         * MODULES.html.sh (Misc): Update.
2171         * NEWS: Mention the change.
2172
2173 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2174
2175         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
2176         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
2177         Eric Blake <ebb9@byu.net> for review.
2178         * MODULES.html.sh: Add lib-msvc-compat.
2179         * doc/gnulib.texi: Link to new section.
2180         * m4/ld-output-def.m4: New file.
2181         * doc/ld-output-def.texi: New file.
2182
2183 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2184
2185         Rename ld-version-script to lib-symbol-versions.  Suggested by
2186         Bruno Haible <bruno@clisp.org>.
2187         * modules/ld-version-script: Renamed to lib-symbol-versions.
2188         * doc/ld-version-script.texi: Fix module name.
2189         * MODULES.html.sh: Add lib-symbol-versions.
2190
2191 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2192
2193         * modules/u64-tests: New file.
2194         * tests/test-u64.c: New file.
2195
2196 2009-03-04  Simon Josefsson  <simon@josefsson.org>
2197
2198         * MODULES.html.sh: Mention u64.
2199         * modules/u64: New module.
2200         * modules/crypto/sha512: Depend on u64 module instead of providing
2201         u64.h.
2202
2203 2009-03-27  Eric Blake  <ebb9@byu.net>
2204
2205         test-strerror: make debugging EAI_SYSTEM easier
2206         * modules/getaddrinfo-tests (Depends-on): Add strerror.
2207         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
2208         failure was EAI_SYSTEM.
2209
2210 2009-03-25  Bruno Haible  <bruno@clisp.org>
2211
2212         Fix a problem with --enable-relocatable on Solaris 7.
2213         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
2214         since 2008-02-24.
2215
2216 2009-03-25  Eric Blake  <ebb9@byu.net>
2217
2218         test-sockets: avoid gcc warning
2219         * tests/test-sockets.c (main): Silence compiler warning.
2220
2221 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         New modules nproc, pthread, contributed by Glen Lenker.
2224
2225         * MODULES.html.sh: Add pthread, nproc.
2226         * lib/nproc.c: New file.
2227         * lib/nproc.h: New file.
2228         * lib/pthread.in.h: New file.
2229         * m4/pthread.m4: New file.
2230         * modules/nproc: New file.
2231         * modules/pthread: New file.
2232
2233 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2234
2235         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
2236         New variable.
2237
2238 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
2239
2240         filevercmp: handle simple~ and numbered.~3~ backup suffixes
2241         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
2242         * tests/test-filevercmp.c: Add tests for backup suffixes.
2243
2244 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2245
2246         * modules/stdlib (Depends-on): Add stdint, needed when defining
2247         struct random_data on, for example, HP-UX 10.20.  Reported by
2248         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2249
2250 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2251
2252         * lib/readline.c (readline): Call fflush on stdout after printing
2253         prompt.
2254
2255 2009-03-20  Bruno Haible  <bruno@clisp.org>
2256
2257         Remove dependency from 'close' module to -lws2_32 on native Windows.
2258         * lib/close-hook.h: New file.
2259         * lib/close-hook.c: New file.
2260         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
2261         w32sock.h.
2262         (_gl_close_fd_maybe_socket): Remove function.
2263         (rpl_close): Invoke execute_all_close_hooks instead of
2264         _gl_close_fd_maybe_socket.
2265         * lib/sockets.c: Include close-hook.h, w32sock.h.
2266         (close_fd_maybe_socket): New function, essentially from lib/close.c.
2267         (close_sockets_hook): New variable.
2268         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
2269         (gl_sockets_cleanup): Unregister it.
2270         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
2271         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
2272         * modules/close-hook: New file.
2273         * modules/close (Files): Remove lib/w32sock.h.
2274         (Depends-on): Add close-hook.
2275         (Link): Remove section.
2276         * modules/sockets (Files): Add lib/w32sock.h.
2277         (Depends-on): Add close-hook.
2278         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
2279         invocation.
2280         * NEWS: Mention that LIB_CLOSE is gone.
2281
2282 2009-03-23  Eric Blake  <ebb9@byu.net>
2283
2284         signal-tests: test previous patch
2285         * tests/test-signal.c: New file.
2286         * modules/signal-tests: Likewise.
2287
2288         signal.h: always support 'volatile sig_atomic_t'
2289         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
2290         (gl_SIGNAL_H_DEFAULTS): Add a default.
2291         * modules/signal (Makefile.am): Substitute if needed.
2292         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
2293         users can blindly add volatile.
2294         * doc/posix-headers/signal.texi (signal.h): Document it.
2295         Reported by Matthew Woehlke.
2296
2297 2009-03-23  Jim Meyering  <meyering@redhat.com>
2298
2299         pathmax: PATH_MAX: use pathconf only when available
2300         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
2301         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
2302         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
2303         This avoids a link failure in a PSP cross-compilation environment
2304         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
2305
2306         * lib/vasnprintf.c (divide): Fix typo in comment.
2307
2308 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2309
2310         * gnulib-tool (func_filter_filelist): Fix comment.
2311
2312 2009-03-20  Bruno Haible  <bruno@clisp.org>
2313
2314         Make sockets.h self-contained.
2315         * lib/sockets.c: Include sockets.h first.
2316         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
2317
2318 2009-03-19  Eric Blake  <ebb9@byu.net>
2319
2320         doc: mention more functions added in cygwin 1.7.0
2321         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
2322         addition.
2323         * doc/posix-functions/log2f.texi: Likewise.
2324
2325 2009-03-19  Jim Meyering  <meyering@redhat.com>
2326
2327         fsusage: avoid syntax error due to statement-before-declaration
2328         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
2329         after all declarations.  Reported by Matthew Woehlke in
2330         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
2331
2332 2009-03-18  Eric Blake  <ebb9@byu.net>
2333
2334         build-aux/compile: sync from automake
2335         * build-aux/compile: New file, from automake.
2336         * config/srclist.txt: Mention build-aux/compile.
2337
2338 2009-03-17  Bruno Haible  <bruno@clisp.org>
2339
2340         * lib/git-merge-changelog.c: Fix typo in comment.
2341         Reported by Reuben Thomas <rrt@sc3d.org>.
2342
2343 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
2344
2345         * m4/regex.m4: update and improve help for
2346         --without-included-regex.
2347
2348 2009-03-17  Simon Josefsson  <simon@josefsson.org>
2349
2350         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
2351         failure on missing include files.
2352
2353 2009-03-17  Eric Blake  <ebb9@byu.net>
2354
2355         doc: mention more functions added in cygwin 1.7.0
2356         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
2357         addition.
2358         * doc/posix-functions/fwscanf.texi: Likewise.
2359         * doc/posix-functions/swprintf.texi: Likewise.
2360         * doc/posix-functions/swscanf.texi: Likewise.
2361         * doc/posix-functions/vfwprintf.texi: Likewise.
2362         * doc/posix-functions/vfwscanf.texi: Likewise.
2363         * doc/posix-functions/vswprintf.texi: Likewise.
2364         * doc/posix-functions/vswscanf.texi: Likewise.
2365         * doc/posix-functions/vwprintf.texi: Likewise.
2366         * doc/posix-functions/vwscanf.texi: Likewise.
2367         * doc/posix-functions/wcscasecmp.texi: Likewise.
2368         * doc/posix-functions/wcsdup.texi: Likewise.
2369         * doc/posix-functions/wcsftime.texi: Likewise.
2370         * doc/posix-functions/wcsncasecmp.texi: Likewise.
2371         * doc/posix-functions/wprintf.texi: Likewise.
2372         * doc/posix-functions/wscanf.texi: Likewise.
2373         * doc/glibc-functions/gethostbyname2.texi: Likewise.
2374
2375 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2376
2377         maint.mk: really add $(AM_MAKEFLAGS)
2378         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
2379         was inadvertently omitted in the last commit.
2380         Spotted by Bruno Haible.
2381
2382         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
2383         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
2384         $(AM_MAKEFLAGS)' rather than plain `make'.
2385
2386         gnulib-tool: execute $MAKE not make
2387         * gnulib-tool: Default $MAKE to 'make'.
2388         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
2389         than make.  Initialize $MAKE in the do-autobuild script.
2390
2391         gnulib-tool: use $MAKE not make in generated files
2392         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
2393         make, in generated files.  Initialize $MAKE in the do-autobuild
2394         script.
2395
2396         * top/GNUmakefile (_have-git-version-gen): Fix typo.
2397
2398         GNUmakefile: disable parallelism only for multiple, recursive targets
2399         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
2400         additions in the Makefile.
2401         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
2402         by Automake.
2403         (.NOTPARALLEL): Only disable parallel builds if multiple targets
2404         are listed on the command line and at least one of them is
2405         listed in $(ALL_RECURSIVE_TARGETS).
2406
2407 2009-03-14  Bruno Haible  <bruno@clisp.org>
2408
2409         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
2410         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
2411         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
2412         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
2413         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
2414         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
2415         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
2416         unistr/u8-uctomb.
2417         * modules/unistr/u8-strchr (Depends-on): Likewise.
2418         * modules/unistr/u8-strrchr (Depends-on): Likewise.
2419         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
2420         unistr/u16-uctomb.
2421         * modules/unistr/u16-strchr (Depends-on): Likewise.
2422         * modules/unistr/u16-strrchr (Depends-on): Likewise.
2423
2424 2009-03-12  Bruno Haible  <bruno@clisp.org>
2425
2426         Work around select() bug on Interix 3.5.
2427         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
2428         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
2429         * m4/select.m4: New file.
2430         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
2431         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
2432         * modules/select (Files): Add m4/select.m4.
2433         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
2434         * modules/nanosleep (Depends-on): Add select.
2435         * modules/poll (Depends-on): Likewise.
2436         * doc/posix-functions/select.texi: Mention the Interix bug.
2437         Reported by Markus Duft <mduft@gentoo.org>.
2438
2439         * lib/select.c: Renamed from lib/winsock-select.c.
2440         * modules/select (Files): Add lib/select.c, remove
2441         lib/winsock-select.c.
2442         (configure.ac): Update.
2443
2444 2009-03-12  Jim Meyering  <meyering@redhat.com>
2445
2446         avoid gcc warnings about unused macro definitions
2447         * lib/readtokens.c (STREQ): Remove unused definition.
2448         * lib/xmalloc.c (SIZE_MAX): Likewise.
2449         * lib/openat-die.c (N_): Likewise.
2450         * lib/mountlist.c (SIZE_MAX): Remove definition.
2451         Instead, include <stdint.h>.
2452         * lib/readutmp.c: Likewise.
2453         * modules/readutmp (Depends-on): Add stdint.
2454         * modules/mountlist (Depends-on): Add stdint.
2455         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
2456
2457 2009-03-10  Bruno Haible  <bruno@clisp.org>
2458
2459         Tests for module 'mbmemcasecoll'.
2460         * modules/mbmemcasecoll-tests: New file.
2461         * tests/test-mbmemcasecoll1.sh: New file.
2462         * tests/test-mbmemcasecoll2.sh: New file.
2463         * tests/test-mbmemcasecoll3.sh: New file.
2464         * tests/test-mbmemcasecoll.c: New file.
2465
2466         New module 'mbmemcasecoll'.
2467         * lib/mbmemcasecoll.h: New file.
2468         * lib/mbmemcasecoll.c: New file.
2469         * modules/mbmemcasecoll: New file.
2470
2471         * tests/test-mbmemcasecmp.h: New file, extracted from
2472         tests/test-mbmemcasecmp.c.
2473         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
2474         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
2475         (main): Update.
2476         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
2477
2478 2009-03-09  Bruno Haible  <bruno@clisp.org>
2479
2480         Tests for module 'mbmemcasecmp'.
2481         * modules/mbmemcasecmp-tests: New file.
2482         * tests/test-mbmemcasecmp1.sh: New file.
2483         * tests/test-mbmemcasecmp2.sh: New file.
2484         * tests/test-mbmemcasecmp3.sh: New file.
2485         * tests/test-mbmemcasecmp.c: New file.
2486
2487         New module 'mbmemcasecmp'.
2488         * lib/mbmemcasecmp.h: New file.
2489         * lib/mbmemcasecmp.c: New file.
2490         * modules/mbmemcasecmp: New file.
2491
2492 2009-03-09  Bruno Haible  <bruno@clisp.org>
2493
2494         Tests for module 'unicase/ulc-casecoll'.
2495         * modules/unicase/ulc-casecoll-tests: New file.
2496         * tests/unicase/test-ulc-casecoll1.sh: New file.
2497         * tests/unicase/test-ulc-casecoll2.sh: New file.
2498         * tests/unicase/test-ulc-casecoll.c: New file.
2499
2500         New module 'unicase/ulc-casecoll'.
2501         * lib/unicase.h (ulc_casecoll): New declaration.
2502         * lib/unicase/ulc-casecoll.c: New file.
2503         * modules/unicase/ulc-casecoll: New file.
2504
2505         New module 'unicase/ulc-casexfrm'.
2506         * lib/unicase.h (ulc_casexfrm): New declaration.
2507         * lib/unicase/ulc-casexfrm.c: New file.
2508         * modules/unicase/ulc-casexfrm: New file.
2509
2510 2009-03-09  Bruno Haible  <bruno@clisp.org>
2511
2512         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
2513         invocations.
2514
2515         * m4/mbscasecmp.m4: Remove file.
2516         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
2517         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
2518
2519         * m4/mbscasestr.m4: Remove file.
2520         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
2521         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
2522
2523         * m4/mbschr.m4: Remove file.
2524         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
2525         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
2526
2527         * m4/mbscspn.m4: Remove file.
2528         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
2529         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
2530
2531         * m4/mbslen.m4: Remove file.
2532         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
2533         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
2534
2535         * m4/mbsncasecmp.m4: Remove file.
2536         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
2537         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
2538
2539         * m4/mbsnlen.m4: Remove file.
2540         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
2541         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
2542
2543         * m4/mbspbrk.m4: Remove file.
2544         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
2545         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
2546
2547         * m4/mbspcasecmp.m4: Remove file.
2548         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
2549         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
2550
2551         * m4/mbsrchr.m4: Remove file.
2552         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
2553         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
2554
2555         * m4/mbssep.m4: Remove file.
2556         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
2557         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
2558
2559         * m4/mbsspn.m4: Remove file.
2560         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
2561         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
2562
2563         * m4/mbsstr.m4: Remove file.
2564         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
2565         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
2566
2567         * m4/mbstok_r.m4: Remove file.
2568         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
2569         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
2570
2571         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
2572
2573         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
2574         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
2575
2576         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
2577
2578 2009-03-08  Bruno Haible  <bruno@clisp.org>
2579
2580         Tests for module 'unicase/ulc-casecmp'.
2581         * modules/unicase/ulc-casecmp-tests: New file.
2582         * tests/unicase/test-ulc-casecmp1.sh: New file.
2583         * tests/unicase/test-ulc-casecmp2.sh: New file.
2584         * tests/unicase/test-ulc-casecmp.c: New file.
2585
2586         New module 'unicase/ulc-casecmp'.
2587         * lib/unicase.h (ulc_casecmp): New declaration.
2588         * lib/unicase/ulc-casecmp.c: New file.
2589         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
2590         'const SRC_UNIT *'.
2591         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
2592         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
2593         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
2594         * modules/unicase/ulc-casecmp: New file.
2595
2596         Tests for module 'unicase/u32-is-cased'.
2597         * modules/unicase/u32-is-cased-tests: New file.
2598         * tests/unicase/test-u32-is-cased.c: New file.
2599
2600         Tests for module 'unicase/u16-is-cased'.
2601         * modules/unicase/u16-is-cased-tests: New file.
2602         * tests/unicase/test-u16-is-cased.c: New file.
2603
2604         Tests for module 'unicase/u8-is-cased'.
2605         * modules/unicase/u8-is-cased-tests: New file.
2606         * tests/unicase/test-u8-is-cased.c: New file.
2607         * tests/unicase/test-is-cased.h: New file.
2608
2609         New module 'unicase/u32-is-cased'.
2610         * lib/unicase/u32-is-cased.c: New file.
2611         * modules/unicase/u32-is-cased: New file.
2612
2613         New module 'unicase/u16-is-cased'.
2614         * lib/unicase/u16-is-cased.c: New file.
2615         * modules/unicase/u16-is-cased: New file.
2616
2617         New module 'unicase/u8-is-cased'.
2618         * lib/unicase/u8-is-cased.c: New file.
2619         * lib/unicase/u-is-cased.h: New file.
2620         * modules/unicase/u8-is-cased: New file.
2621
2622         Tests for module 'unicase/u32-is-casefolded'.
2623         * modules/unicase/u32-is-casefolded-tests: New file.
2624         * tests/unicase/test-u32-is-casefolded.c: New file.
2625
2626         Tests for module 'unicase/u16-is-casefolded'.
2627         * modules/unicase/u16-is-casefolded-tests: New file.
2628         * tests/unicase/test-u16-is-casefolded.c: New file.
2629
2630         Tests for module 'unicase/u8-is-casefolded'.
2631         * modules/unicase/u8-is-casefolded-tests: New file.
2632         * tests/unicase/test-u8-is-casefolded.c: New file.
2633         * tests/unicase/test-is-casefolded.h: New file.
2634
2635         New module 'unicase/u32-is-casefolded'.
2636         * lib/unicase/u32-is-casefolded.c: New file.
2637         * modules/unicase/u32-is-casefolded: New file.
2638
2639         New module 'unicase/u16-is-casefolded'.
2640         * lib/unicase/u16-is-casefolded.c: New file.
2641         * modules/unicase/u16-is-casefolded: New file.
2642
2643         New module 'unicase/u8-is-casefolded'.
2644         * lib/unicase/u8-is-casefolded.c: New file.
2645         * modules/unicase/u8-is-casefolded: New file.
2646
2647         Tests for module 'unicase/u32-is-titlecase'.
2648         * modules/unicase/u32-is-titlecase-tests: New file.
2649         * tests/unicase/test-u32-is-titlecase.c: New file.
2650
2651         Tests for module 'unicase/u16-is-titlecase'.
2652         * modules/unicase/u16-is-titlecase-tests: New file.
2653         * tests/unicase/test-u16-is-titlecase.c: New file.
2654
2655         Tests for module 'unicase/u8-is-titlecase'.
2656         * modules/unicase/u8-is-titlecase-tests: New file.
2657         * tests/unicase/test-u8-is-titlecase.c: New file.
2658         * tests/unicase/test-is-titlecase.h: New file.
2659
2660         New module 'unicase/u32-is-titlecase'.
2661         * lib/unicase/u32-is-titlecase.c: New file.
2662         * modules/unicase/u32-is-titlecase: New file.
2663
2664         New module 'unicase/u16-is-titlecase'.
2665         * lib/unicase/u16-is-titlecase.c: New file.
2666         * modules/unicase/u16-is-titlecase: New file.
2667
2668         New module 'unicase/u8-is-titlecase'.
2669         * lib/unicase/u8-is-titlecase.c: New file.
2670         * modules/unicase/u8-is-titlecase: New file.
2671
2672         Tests for module 'unicase/u32-is-lowercase'.
2673         * modules/unicase/u32-is-lowercase-tests: New file.
2674         * tests/unicase/test-u32-is-lowercase.c: New file.
2675
2676         Tests for module 'unicase/u16-is-lowercase'.
2677         * modules/unicase/u16-is-lowercase-tests: New file.
2678         * tests/unicase/test-u16-is-lowercase.c: New file.
2679
2680         Tests for module 'unicase/u8-is-lowercase'.
2681         * modules/unicase/u8-is-lowercase-tests: New file.
2682         * tests/unicase/test-u8-is-lowercase.c: New file.
2683         * tests/unicase/test-is-lowercase.h: New file.
2684
2685         New module 'unicase/u32-is-lowercase'.
2686         * lib/unicase/u32-is-lowercase.c: New file.
2687         * modules/unicase/u32-is-lowercase: New file.
2688
2689         New module 'unicase/u16-is-lowercase'.
2690         * lib/unicase/u16-is-lowercase.c: New file.
2691         * modules/unicase/u16-is-lowercase: New file.
2692
2693         New module 'unicase/u8-is-lowercase'.
2694         * lib/unicase/u8-is-lowercase.c: New file.
2695         * modules/unicase/u8-is-lowercase: New file.
2696
2697         Tests for module 'unicase/u32-is-uppercase'.
2698         * modules/unicase/u32-is-uppercase-tests: New file.
2699         * tests/unicase/test-u32-is-uppercase.c: New file.
2700
2701         Tests for module 'unicase/u16-is-uppercase'.
2702         * modules/unicase/u16-is-uppercase-tests: New file.
2703         * tests/unicase/test-u16-is-uppercase.c: New file.
2704
2705         Tests for module 'unicase/u8-is-uppercase'.
2706         * modules/unicase/u8-is-uppercase-tests: New file.
2707         * tests/unicase/test-u8-is-uppercase.c: New file.
2708         * tests/unicase/test-is-uppercase.h: New file.
2709
2710         New module 'unicase/u32-is-uppercase'.
2711         * lib/unicase/u32-is-uppercase.c: New file.
2712         * modules/unicase/u32-is-uppercase: New file.
2713
2714         New module 'unicase/u16-is-uppercase'.
2715         * lib/unicase/u16-is-uppercase.c: New file.
2716         * modules/unicase/u16-is-uppercase: New file.
2717
2718         New module 'unicase/u8-is-uppercase'.
2719         * lib/unicase/u8-is-uppercase.c: New file.
2720         * modules/unicase/u8-is-uppercase: New file.
2721
2722         New module 'unicase/u32-is-invariant'.
2723         * lib/unicase/u32-is-invariant.c: New file.
2724         * modules/unicase/u32-is-invariant: New file.
2725
2726         New module 'unicase/u16-is-invariant'.
2727         * lib/unicase/u16-is-invariant.c: New file.
2728         * modules/unicase/u16-is-invariant: New file.
2729
2730         New module 'unicase/u8-is-invariant'.
2731         * lib/unicase/u8-is-invariant.c: New file.
2732         * lib/unicase/invariant.h: New file.
2733         * lib/unicase/u-is-invariant.h: New file.
2734         * modules/unicase/u8-is-invariant: New file.
2735
2736         Tests for module 'unicase/u32-casecoll'.
2737         * modules/unicase/u32-casecoll-tests: New file.
2738         * tests/unicase/test-u32-casecoll.c: New file.
2739
2740         Tests for module 'unicase/u16-casecoll'.
2741         * modules/unicase/u16-casecoll-tests: New file.
2742         * tests/unicase/test-u16-casecoll.c: New file.
2743
2744         Tests for module 'unicase/u8-casecoll'.
2745         * modules/unicase/u8-casecoll-tests: New file.
2746         * tests/unicase/test-u8-casecoll.c: New file.
2747
2748         New module 'unicase/u32-casecoll'.
2749         * lib/unicase/u32-casecoll.c: New file.
2750         * modules/unicase/u32-casecoll: New file.
2751
2752         New module 'unicase/u16-casecoll'.
2753         * lib/unicase/u16-casecoll.c: New file.
2754         * modules/unicase/u16-casecoll: New file.
2755
2756         New module 'unicase/u8-casecoll'.
2757         * lib/unicase/u8-casecoll.c: New file.
2758         * lib/unicase/u-casecoll.h: New file.
2759         * modules/unicase/u8-casecoll: New file.
2760
2761         New module 'unicase/u32-casexfrm'.
2762         * lib/unicase/u32-casexfrm.c: New file.
2763         * modules/unicase/u32-casexfrm: New file.
2764
2765         New module 'unicase/u16-casexfrm'.
2766         * lib/unicase/u16-casexfrm.c: New file.
2767         * modules/unicase/u16-casexfrm: New file.
2768
2769         New module 'unicase/u8-casexfrm'.
2770         * lib/unicase/u8-casexfrm.c: New file.
2771         * lib/unicase/u-casexfrm.h: New file.
2772         * modules/unicase/u8-casexfrm: New file.
2773
2774         Tests for module 'unicase/u32-casecmp'.
2775         * modules/unicase/u32-casecmp-tests: New file.
2776         * tests/unicase/test-u32-casecmp.c: New file.
2777
2778         Tests for module 'unicase/u16-casecmp'.
2779         * modules/unicase/u16-casecmp-tests: New file.
2780         * tests/unicase/test-u16-casecmp.c: New file.
2781
2782         Tests for module 'unicase/u8-casecmp'.
2783         * modules/unicase/u8-casecmp-tests: New file.
2784         * tests/unicase/test-u8-casecmp.c: New file.
2785         * tests/unicase/test-casecmp.h: New file.
2786
2787         New module 'unicase/u32-casecmp'.
2788         * lib/unicase/u32-casecmp.c: New file.
2789         * modules/unicase/u32-casecmp: New file.
2790
2791         New module 'unicase/u16-casecmp'.
2792         * lib/unicase/u16-casecmp.c: New file.
2793         * modules/unicase/u16-casecmp: New file.
2794
2795         New module 'unicase/u8-casecmp'.
2796         * lib/unicase/u8-casecmp.c: New file.
2797         * lib/unicase/u-casecmp.h: New file.
2798         * modules/unicase/u8-casecmp: New file.
2799
2800         Tests for module 'unicase/u32-casefold'.
2801         * modules/unicase/u32-casefold-tests: New file.
2802         * tests/unicase/test-u32-casefold.c: New file.
2803
2804         Tests for module 'unicase/u16-casefold'.
2805         * modules/unicase/u16-casefold-tests: New file.
2806         * tests/unicase/test-u16-casefold.c: New file.
2807
2808         Tests for module 'unicase/u8-casefold'.
2809         * modules/unicase/u8-casefold-tests: New file.
2810         * tests/unicase/test-u8-casefold.c: New file.
2811
2812         New module 'unicase/u32-casefold'.
2813         * lib/unicase/u32-casefold.c: New file.
2814         * modules/unicase/u32-casefold: New file.
2815
2816         New module 'unicase/u16-casefold'.
2817         * lib/unicase/u16-casefold.c: New file.
2818         * modules/unicase/u16-casefold: New file.
2819
2820         New module 'unicase/u8-casefold'.
2821         * lib/unicase/u8-casefold.c: New file.
2822         * lib/unicase/u-casefold.h: New file.
2823         * modules/unicase/u8-casefold: New file.
2824
2825         New module 'unicase/tocasefold'.
2826         * lib/unicase/casefold.h: New file.
2827         * lib/unicase/tocasefold.c: New file.
2828         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
2829         * modules/unicase/tocasefold: New file.
2830
2831         Tests for module 'unicase/u32-totitle'.
2832         * modules/unicase/u32-totitle-tests: New file.
2833         * tests/unicase/test-u32-totitle.c: New file.
2834
2835         Tests for module 'unicase/u16-totitle'.
2836         * modules/unicase/u16-totitle-tests: New file.
2837         * tests/unicase/test-u16-totitle.c: New file.
2838
2839         Tests for module 'unicase/u8-totitle'.
2840         * modules/unicase/u8-totitle-tests: New file.
2841         * tests/unicase/test-u8-totitle.c: New file.
2842
2843         New module 'unicase/u32-totitle'.
2844         * lib/unicase/u32-totitle.c: New file.
2845         * modules/unicase/u32-totitle: New file.
2846
2847         New module 'unicase/u16-totitle'.
2848         * lib/unicase/u16-totitle.c: New file.
2849         * modules/unicase/u16-totitle: New file.
2850
2851         New module 'unicase/u8-totitle'.
2852         * lib/unicase/u8-totitle.c: New file.
2853         * lib/unicase/u-totitle.h: New file.
2854         * modules/unicase/u8-totitle: New file.
2855
2856         Tests for module 'unicase/u32-tolower'.
2857         * modules/unicase/u32-tolower-tests: New file.
2858         * tests/unicase/test-u32-tolower.c: New file.
2859
2860         Tests for module 'unicase/u16-tolower'.
2861         * modules/unicase/u16-tolower-tests: New file.
2862         * tests/unicase/test-u16-tolower.c: New file.
2863
2864         Tests for module 'unicase/u8-tolower'.
2865         * modules/unicase/u8-tolower-tests: New file.
2866         * tests/unicase/test-u8-tolower.c: New file.
2867
2868         New module 'unicase/u32-tolower'.
2869         * lib/unicase/u32-tolower.c: New file.
2870         * modules/unicase/u32-tolower: New file.
2871
2872         New module 'unicase/u16-tolower'.
2873         * lib/unicase/u16-tolower.c: New file.
2874         * modules/unicase/u16-tolower: New file.
2875
2876         New module 'unicase/u8-tolower'.
2877         * lib/unicase/u8-tolower.c: New file.
2878         * modules/unicase/u8-tolower: New file.
2879
2880         Tests for module 'unicase/u32-toupper'.
2881         * modules/unicase/u32-toupper-tests: New file.
2882         * tests/unicase/test-u32-toupper.c: New file.
2883
2884         Tests for module 'unicase/u16-toupper'.
2885         * modules/unicase/u16-toupper-tests: New file.
2886         * tests/unicase/test-u16-toupper.c: New file.
2887
2888         Tests for module 'unicase/u8-toupper'.
2889         * modules/unicase/u8-toupper-tests: New file.
2890         * tests/unicase/test-u8-toupper.c: New file.
2891
2892         New module 'unicase/u32-toupper'.
2893         * lib/unicase/u32-toupper.c: New file.
2894         * modules/unicase/u32-toupper: New file.
2895
2896         New module 'unicase/u16-toupper'.
2897         * lib/unicase/u16-toupper.c: New file.
2898         * modules/unicase/u16-toupper: New file.
2899
2900         New module 'unicase/u8-toupper'.
2901         * lib/unicase/u8-toupper.c: New file.
2902         * modules/unicase/u8-toupper: New file.
2903
2904         New module 'unicase/u32-casemap'.
2905         * lib/unicase/u32-casemap.c: New file.
2906         * modules/unicase/u32-casemap: New file.
2907
2908         New module 'unicase/u16-casemap'.
2909         * lib/unicase/u16-casemap.c: New file.
2910         * modules/unicase/u16-casemap: New file.
2911
2912         New module 'unicase/u8-casemap'.
2913         * lib/unicase/unicasemap.h: New file.
2914         * lib/unicase/u8-casemap.c: New file.
2915         * lib/unicase/u-casemap.h: New file.
2916         * modules/unicase/u8-casemap: New file.
2917
2918         New module 'unicase/special-casing'.
2919         * lib/unicase/special-casing.h: New file.
2920         * lib/unicase/special-casing.c: New file.
2921         * lib/unicase/special-casing-table.gperf: New file, generated by
2922         gen-uni-tables.c.
2923         * modules/unicase/special-casing: New file.
2924
2925         Tests for module 'unicase/locale-language'.
2926         * modules/unicase/locale-language-tests: New file.
2927         * tests/unicase/test-locale-language.sh: New file.
2928         * tests/unicase/test-locale-language.c: New file.
2929
2930         New module 'unicase/locale-language'.
2931         * lib/unicase/locale-language.c: New file.
2932         * lib/unicase/locale-languages.gperf: New file.
2933         * modules/unicase/locale-language: New file.
2934
2935         Generate more tables for case conversion and case folding.
2936         * lib/gen-uni-tables.c (SCC_*): New enum items.
2937         (struct special_casing_rule): New type.
2938         (casing_rules, num_casing_rules, allocated_casing_rules): New
2939         variables.
2940         (add_casing_rule, fill_casing_rules): New functions.
2941         (struct casefold_rule): New type.
2942         (casefolding_rules, num_casefolding_rules,
2943         allocated_casefolding_rules): New variables.
2944         (fill_casefolding_rules): New function.
2945         (unicode_casefold): New variable.
2946         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
2947         sort_casing_rules, output_casing_rules): New functions.
2948         (main): Accept to more arguments: SpecialCasing.txt and
2949         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
2950         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
2951         Output mapping for casefolding.
2952
2953         * lib/unicase.h: Include stdbool.h, uninorm.h.
2954         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
2955         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
2956         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
2957         arguments.
2958         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
2959         resultp arguments.
2960         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
2961         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
2962         resultp arguments.
2963         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
2964         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
2965         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
2966         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
2967         declarations.
2968         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
2969
2970 2009-03-08  Bruno Haible  <bruno@clisp.org>
2971
2972         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
2973         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
2974         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
2975         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
2976
2977 2009-03-07  Bruno Haible  <bruno@clisp.org>
2978
2979         Adjust u*_normcmp, u*_normcoll API.
2980         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
2981         u16_normcoll, u32_normcoll): Change failure conventions.
2982         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
2983         errno and return -1.
2984         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
2985
2986 2009-03-07  Bruno Haible  <bruno@clisp.org>
2987
2988         Tests for module 'uninorm/u32-normcoll'.
2989         * modules/uninorm/u32-normcoll-tests: New file.
2990         * tests/uninorm/test-u32-normcoll.c: New file.
2991
2992         Tests for module 'uninorm/u16-normcoll'.
2993         * modules/uninorm/u16-normcoll-tests: New file.
2994         * tests/uninorm/test-u16-normcoll.c: New file.
2995
2996         Tests for module 'uninorm/u8-normcoll'.
2997         * modules/uninorm/u8-normcoll-tests: New file.
2998         * tests/uninorm/test-u8-normcoll.c: New file.
2999
3000 2009-03-07  Bruno Haible  <bruno@clisp.org>
3001
3002         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
3003         tests/uninorm/test-u32-normcmp.c.
3004         * tests/uninorm/test-u32-normcmp.c: Include it.
3005         (test_nonascii): New function, extracted from main. Add some more
3006         tests.
3007         (main): Invoke test_ascii and test_nonascii.
3008         * modules/uninorm/u32-normcmp-tests (Files): Add
3009         tests/uninorm/test-u32-normcmp.h.
3010         (Depends-on): Remove uninorm/u32-normcmp.
3011
3012         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
3013         tests/uninorm/test-u16-normcmp.c.
3014         * tests/uninorm/test-u16-normcmp.c: Include it.
3015         (test_nonascii): New function, extracted from main. Add some more
3016         tests.
3017         (main): Invoke test_ascii and test_nonascii.
3018         * modules/uninorm/u16-normcmp-tests (Files): Add
3019         tests/uninorm/test-u16-normcmp.h.
3020         (Depends-on): Remove uninorm/u16-normcmp.
3021
3022         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
3023         tests/uninorm/test-u8-normcmp.c.
3024         * tests/uninorm/test-u8-normcmp.c: Include it.
3025         (test_nonascii): New function, extracted from main. Add some more
3026         tests.
3027         (main): Invoke test_ascii and test_nonascii.
3028         * modules/uninorm/u8-normcmp-tests (Files): Add
3029         tests/uninorm/test-u8-normcmp.h.
3030         (Depends-on): Remove uninorm/u8-normcmp.
3031
3032 2009-03-07  Bruno Haible  <bruno@clisp.org>
3033
3034         New module 'uninorm/u32-normcoll'.
3035         * lib/uninorm/u32-normcoll.c: New file.
3036         * modules/uninorm/u32-normcoll: New file.
3037
3038         New module 'uninorm/u16-normcoll'.
3039         * lib/uninorm/u16-normcoll.c: New file.
3040         * modules/uninorm/u16-normcoll: New file.
3041
3042         New module 'uninorm/u8-normcoll'.
3043         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
3044         declarations.
3045         * lib/uninorm/u8-normcoll.c: New file.
3046         * lib/uninorm/u-normcoll.h: New file.
3047         * modules/uninorm/u8-normcoll: New file.
3048
3049         New module 'uninorm/u32-normxfrm'.
3050         * lib/uninorm/u32-normxfrm.c: New file.
3051         * modules/uninorm/u32-normxfrm: New file.
3052
3053         New module 'uninorm/u16-normxfrm'.
3054         * lib/uninorm/u16-normxfrm.c: New file.
3055         * modules/uninorm/u16-normxfrm: New file.
3056
3057         New module 'uninorm/u8-normxfrm'.
3058         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
3059         declarations.
3060         * lib/uninorm/u8-normxfrm.c: New file.
3061         * lib/uninorm/u-normxfrm.h: New file.
3062         * modules/uninorm/u8-normxfrm: New file.
3063
3064 2009-03-07  Bruno Haible  <bruno@clisp.org>
3065
3066         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
3067         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
3068         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
3069
3070 2009-03-07  Bruno Haible  <bruno@clisp.org>
3071
3072         New module 'memxfrm'.
3073         * lib/memxfrm.h: New file.
3074         * lib/memxfrm.c: New file.
3075         * modules/memxfrm: New file.
3076
3077 2009-03-07  Bruno Haible  <bruno@clisp.org>
3078
3079         New module 'memcmp2'.
3080         * lib/memcmp2.h: New file.
3081         * lib/memcmp2.c: New file.
3082         * modules/memcmp2: New file.
3083
3084 2009-03-07  Bruno Haible  <bruno@clisp.org>
3085
3086         Tests for module 'uninorm/decomposing-form'.
3087         * modules/uninorm/decomposing-form-tests: New file.
3088         * tests/uninorm/test-decomposing-form.c: New file.
3089
3090         New module 'uninorm/decomposing-form'.
3091         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
3092         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
3093         Add 'decomposing_variant' field.
3094         * lib/uninorm/decomposing-form.c: New file.
3095         * lib/uninorm/nfc.c (uninorm_nfc): Update.
3096         * lib/uninorm/nfd.c (uninorm_nfd): Update.
3097         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
3098         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
3099         * modules/uninorm/decomposing-form: New file.
3100         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
3101         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
3102
3103 2009-03-07  Bruno Haible  <bruno@clisp.org>
3104
3105         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
3106         strings.
3107
3108 2009-03-06  Bruno Haible  <bruno@clisp.org>
3109
3110         Tests for module 'uninorm/u32-normcmp'.
3111         * tests/uninorm/test-u32-normcmp.c: New file.
3112         * modules/uninorm/u32-normcmp-tests: New file.
3113
3114         Tests for module 'uninorm/u16-normcmp'.
3115         * tests/uninorm/test-u16-normcmp.c: New file.
3116         * modules/uninorm/u16-normcmp-tests: New file.
3117
3118         Tests for module 'uninorm/u8-normcmp'.
3119         * tests/uninorm/test-u8-normcmp.c: New file.
3120         * modules/uninorm/u8-normcmp-tests: New file.
3121
3122         New module 'uninorm/u32-normcmp'.
3123         * lib/uninorm/u32-normcmp.c: New file.
3124         * modules/uninorm/u32-normcmp: New file.
3125
3126         New module 'uninorm/u16-normcmp'.
3127         * lib/uninorm/u16-normcmp.c: New file.
3128         * modules/uninorm/u16-normcmp: New file.
3129
3130         New module 'uninorm/u8-normcmp'.
3131         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
3132         declarations.
3133         * lib/uninorm/u8-normcmp.c: New file.
3134         * lib/uninorm/u-normcmp.h: New file.
3135         * modules/uninorm/u8-normcmp: New file.
3136
3137 2009-03-06  Bruno Haible  <bruno@clisp.org>
3138
3139         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
3140         Reported by Eric Blake.
3141
3142 2009-03-06  Eric Blake  <ebb9@byu.net>
3143             Bruno Haible  <bruno@clisp.org>
3144
3145         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
3146         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
3147         condition.
3148         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3149         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
3150         condition.
3151         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3152
3153 2009-03-06  Eric Blake  <ebb9@byu.net>
3154
3155         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
3156         to avoid compiler warnings.
3157         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
3158
3159 2009-03-05  Bruno Haible  <bruno@clisp.org>
3160
3161         * tests/test-ftell.c (main): Disable test beyond end of file on
3162         FreeMiNT.
3163         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3164
3165 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
3166
3167         * lib/filevercmp.c: Move hidden files up in ordering.
3168         * tests/test-filevercmp.c: Add tests for hidden files.
3169
3170 2009-03-04  Bruno Haible  <bruno@clisp.org>
3171
3172         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
3173         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
3174         AM_CFLAGS.
3175         Reported by Simon Josefsson.
3176
3177 2009-03-03  Bruno Haible  <bruno@clisp.org>
3178
3179         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
3180         Reported by Simon Josefsson.
3181
3182         * doc/ld-version-script.texi: Update node reference.
3183
3184 2009-03-03  Bruno Haible  <bruno@clisp.org>
3185
3186         * modules/visibility (License): Change to 'unlimited'.
3187         Suggested by Simon Josefsson.
3188
3189 2009-03-03  Jim Meyering  <meyering@redhat.com>
3190
3191         unlinkdir: cannot_unlink_dir may modify process state
3192         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
3193         it's neither thread-safe nor appropriate for use in a library.
3194
3195 2009-03-03  Eric Blake  <ebb9@byu.net>
3196
3197         test-closein: silence test under Darwin
3198         * tests/test-closein.sh: Ignore stderr from cat, since we don't
3199         care if it dies from EPIPE or EBADF.
3200
3201 2009-03-03  Bruno Haible  <bruno@clisp.org>
3202
3203         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
3204         earlier.
3205         * doc/visibility.texi: Fix @node and @section.
3206
3207 2009-03-03  Simon Josefsson  <simon@josefsson.org>
3208
3209         * doc/gnulib.texi: Link to sections for ld version script and
3210         visibility.
3211         * doc/visibility.texi: Add @node and @section.
3212         * modules/ld-version-script: New module.
3213         * m4/ld-version-script.m4: New file.
3214         * doc/ld-version-script.texi: New file.
3215
3216 2009-03-02  David Lutterkort  <lutter@redhat.com>
3217
3218         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
3219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3220
3221 2009-03-02  Bruno Haible  <bruno@clisp.org>
3222
3223         * doc/visibility.texi: Mention libtool's -export-symbols option.
3224
3225 2009-03-02  Jim Meyering  <meyering@redhat.com>
3226
3227         announce-gen: new option: --no-print-checksums
3228         * build-aux/announce-gen (usage): Describe it.
3229         (print_checksums): Print a newline here, not in the [*] footnote.
3230         (main): Honor it.
3231
3232 2009-03-01  Bruno Haible  <bruno@clisp.org>
3233
3234         Use socklen_t in the native Windows replacements prototypes.
3235         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
3236         instead of 'int'.
3237         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3238         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3239         * modules/getsockopt (Depends-on): Add socklen.
3240         * modules/setsockopt (Depends-on): Add socklen.
3241
3242 2009-03-01  Bruno Haible  <bruno@clisp.org>
3243
3244         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
3245         least 4.2.
3246
3247 2009-03-01  Eric Blake  <ebb9@byu.net>
3248             Bruno Haible  <bruno@clisp.org>
3249
3250         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
3251         error messages.
3252         * lib/wait-process.c (wait_subprocess): Omit error message about
3253         deadly signal sent to the child of termsigp != NULL.
3254
3255 2009-03-01  Eric Blake  <ebb9@byu.net>
3256
3257         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
3258
3259 2009-03-01  Bruno Haible  <bruno@clisp.org>
3260
3261         Avoid a gcc warning.
3262         * tests/test-sched.c (b): Make global.
3263         Reported by Eric Blake.
3264
3265 2009-01-19  Martin Lambers  <marlam@marlam.de>
3266
3267         Provide POSIX semantics for socket timeout options on W32.
3268         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
3269         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
3270         * modules/setsockopt: Depend on sys_time module for struct timeval.
3271         * modules/getsockopt: Depend on sys_time module for struct timeval.
3272
3273 2009-03-01  Simon Josefsson  <simon@josefsson.org>
3274
3275         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
3276         __USE_GNU, for consistency with netdb.in.h.
3277         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3278
3279 2009-03-01  Bruno Haible  <bruno@clisp.org>
3280
3281         More support for FreeMiNT.
3282         * lib/fseeko.c (rpl_fseeko): Complete last commit.
3283         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3284
3285 2009-03-01  Bruno Haible  <bruno@clisp.org>
3286
3287         More support for FreeMiNT.
3288         * lib/fpurge.c (fpurge): Correct last commit.
3289         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3290
3291 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3292
3293         Fix unportable awk script in vc-list-files.
3294         * build-aux/vc-list-files: In the replacement awk script, use
3295         substr with a second argument of 1, not zero.
3296         Report by Simon Josefsson.
3297
3298 2009-02-28  Bruno Haible  <bruno@clisp.org>
3299
3300         More support for FreeMiNT.
3301         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
3302         to FreeMiNT today.
3303         * lib/fwriting.c (fwriting): Likewise.
3304         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
3305
3306 2009-02-28  Bruno Haible  <bruno@clisp.org>
3307
3308         * tests/test-freadseek.c (main): Disable test beyond end of file on
3309         FreeMiNT.
3310         * tests/test-ftello.c (main): Likewise.
3311         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3312
3313 2009-02-28  Bruno Haible  <bruno@clisp.org>
3314
3315         Add tentative support for FreeMiNT.
3316         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
3317         * lib/fpurge.c (fpurge): Likewise.
3318         * lib/freadable.c (freadable): Likewise.
3319         * lib/freading.c (freading): Likewise.
3320         * lib/freadptr.c (freadptr): Likewise.
3321         * lib/freadseek.c (freadptrinc): Likewise.
3322         * lib/fseeko.c (rpl_fseeko): Likewise.
3323         * lib/fseterr.c (fseterr): Likewise.
3324         * lib/fwritable.c (fwritable): Likewise.
3325         * lib/fwriting.c (fwriting): Likewise.
3326         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
3327         Hourihane.
3328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3329
3330 2009-02-28  Bruno Haible  <bruno@clisp.org>
3331
3332         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
3333         SIGCHLD.
3334         Reported by Jim Meyering.
3335
3336 2009-02-28  Bruno Haible  <bruno@clisp.org>
3337
3338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
3339         Mention the results of these tests on various platforms.
3340         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
3341         order.
3342         * doc/posix-functions/printf.texi: Likewise.
3343         * doc/posix-functions/snprintf.texi: Likewise.
3344         * doc/posix-functions/sprintf.texi: Likewise.
3345         * doc/posix-functions/vfprintf.texi: Likewise.
3346         * doc/posix-functions/vprintf.texi: Likewise.
3347         * doc/posix-functions/vsnprintf.texi: Likewise.
3348         * doc/posix-functions/vsprintf.texi: Likewise.
3349         * doc/glibc-functions/obstack_printf.texi: Likewise.
3350         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3351
3352 2009-02-28  Bruno Haible  <bruno@clisp.org>
3353
3354         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
3355         Reported by Loïc Minier <lool@dooz.org>.
3356
3357 2009-02-27  Bruno Haible  <bruno@clisp.org>
3358
3359         * gnulib-tool (func_import): Make the sed expression used to create the
3360         sed script for updating the .gitignore file POSIX compliant.
3361         Reported by Eric Blake.
3362
3363 2009-02-27  Bruno Haible  <bruno@clisp.org>
3364
3365         * gnulib-tool (sed): Don't alias as "sed --posix".
3366         Reported by Eric Blake.
3367
3368 2009-02-27  Bruno Haible  <bruno@clisp.org>
3369
3370         Avoid test link errors.
3371         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
3372         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
3373         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
3374         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
3375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3376
3377 2009-02-27  Bruno Haible  <bruno@clisp.org>
3378
3379         Avoid spurious "(cached)" in configure output.
3380         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
3381         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
3382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3383         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3384         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3385         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3386         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3387         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3388         Reported by Eric Blake.
3389
3390 2009-02-27  Eric Blake  <ebb9@byu.net>
3391
3392         printf: fix regression in previous patch
3393         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
3394
3395 2009-02-27  Bruno Haible  <bruno@clisp.org>
3396
3397         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
3398         value.
3399         * lib/stdint.in.h: Likewise.
3400         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
3401
3402 2009-02-27  Eric Blake  <ebb9@byu.net>
3403
3404         doc: mention more functions added in cygwin 1.7.0
3405         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
3406         addition.
3407         * doc/posix-functions/open_wmemstream.texi: Likewise.
3408         * doc/posix-functions/wcsnlen.texi: Likewise.
3409         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3410         * doc/posix-functions/wcstod.texi: Likewise.
3411         * doc/posix-functions/wcstof.texi: Likewise.
3412         * doc/posix-functions/wcstoimax.texi: Likewise.
3413         * doc/posix-functions/wcstok.texi: Likewise.
3414         * doc/posix-functions/wcstoumax.texi: Likewise.
3415
3416         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
3417         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
3418         * doc/posix-functions/fprintf.texi: Update.
3419         * doc/posix-functions/printf.texi: Update.
3420         * doc/posix-functions/snprintf.texi: Update.
3421         * doc/posix-functions/sprintf.texi: Update.
3422         * doc/posix-functions/vfprintf.texi: Update.
3423         * doc/posix-functions/vprintf.texi: Update.
3424         * doc/posix-functions/vsnprintf.texi: Update.
3425         * doc/posix-functions/vsprintf.texi: Update.
3426         * doc/glibc-functions/obstack_printf.texi: Update.
3427         * doc/glibc-functions/obstack_vprintf.texi: Update.
3428
3429 2009-02-26  Eric Blake  <ebb9@byu.net>
3430
3431         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
3432         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
3433         compilation bug by using runtime conversion.
3434         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3435         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
3436         * modules/ceill-tests (Files): Use nan.h.
3437         * modules/floorl-tests (Files): Likewise.
3438         * modules/frexpl-tests (Files): Likewise.
3439         * modules/isnanl-tests (Files): Likewise.
3440         * modules/ldexpl-tests (Files): Likewise.
3441         * modules/roundl-tests (Files): Likewise.
3442         * modules/truncl-tests (Files): Likewise.
3443         * tests/test-ceill.c (main): Use a working NaN.
3444         * tests/test-floorl.c (main): Likewise.
3445         * tests/test-frexpl.c (main): Likewise.
3446         * tests/test-isnan.c (test_long_double): Likewise.
3447         * tests/test-isnanl.h (main): Likewise.
3448         * tests/test-ldexpl.h (main): Likewise.
3449         * tests/test-roundl.h (main): Likewise.
3450         * tests/test-truncl.h (main): Likewise.
3451         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
3452
3453 2009-02-26  Eric Blake  <ebb9@byu.net>
3454             Bruno Haible  <bruno@clisp.org>
3455
3456         Work around a *printf bug with %ls on Solaris.
3457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
3458         precision is specified, sprintf stops converting the wide string
3459         argument when the number of bytes that have been produced by this
3460         conversion equals or exceeds the precision.
3461         * doc/posix-functions/fprintf.texi: Update.
3462         * doc/posix-functions/printf.texi: Update.
3463         * doc/posix-functions/snprintf.texi: Update.
3464         * doc/posix-functions/sprintf.texi: Update.
3465         * doc/posix-functions/vfprintf.texi: Update.
3466         * doc/posix-functions/vprintf.texi: Update.
3467         * doc/posix-functions/vsnprintf.texi: Update.
3468         * doc/posix-functions/vsprintf.texi: Update.
3469         * doc/glibc-functions/obstack_printf.texi: Update.
3470         * doc/glibc-functions/obstack_vprintf.texi: Update.
3471
3472 2009-02-26  Eric Blake  <ebb9@byu.net>
3473
3474         stdlib: favor compiler check of random.h
3475         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
3476         to avoid an ObjC random.h installed by Swarm.
3477
3478 2009-02-26  Bruno Haible  <bruno@clisp.org>
3479
3480         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
3481         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
3482         Reported by Gary V. Vaughan <gary@gnu.org>.
3483
3484 2009-02-26  Bruno Haible  <bruno@clisp.org>
3485
3486         Fix *printf behaviour regarding the %ls directive.
3487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
3488         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
3489         NEED_PRINTF_DIRECTIVE_LS.
3490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
3491         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3493         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
3494         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
3495         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
3496         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3501         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
3502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3505         * doc/posix-functions/fprintf.texi: Update.
3506         * doc/posix-functions/printf.texi: Update.
3507         * doc/posix-functions/snprintf.texi: Update.
3508         * doc/posix-functions/sprintf.texi: Update.
3509         * doc/posix-functions/vfprintf.texi: Update.
3510         * doc/posix-functions/vprintf.texi: Update.
3511         * doc/posix-functions/vsnprintf.texi: Update.
3512         * doc/posix-functions/vsprintf.texi: Update.
3513         * doc/glibc-functions/obstack_printf.texi: Update.
3514         * doc/glibc-functions/obstack_vprintf.texi: Update.
3515         Reported by Eric Blake.
3516
3517 2009-02-25  Bruno Haible  <bruno@clisp.org>
3518
3519         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
3520         with known value.
3521         Reported by Gary V. Vaughan <gary@gnu.org>.
3522
3523 2009-02-25  Bruno Haible  <bruno@clisp.org>
3524
3525         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
3526         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
3527         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
3528         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
3529         Reported by Gary V. Vaughan <gary@gnu.org>.
3530
3531 2009-02-25  Bruno Haible  <bruno@clisp.org>
3532
3533         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
3534         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
3535         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
3536         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
3537         Reported by Gary V. Vaughan <gary@gnu.org>.
3538
3539 2009-02-25  Eric Blake  <ebb9@byu.net>
3540
3541         tests: skip fseek/ftell tests if ungetc is broken
3542         * m4/ungetc.m4: New file.
3543         * modules/fseek-tests: Split test, so ungetc dependency is
3544         separate from rest of test.
3545         * modules/fseeko-tests: Likewise.
3546         * modules/ftell-tests: Likewise.
3547         * modules/ftello-tests: Likewise.
3548         * tests/test-fseek.c (main): Isolate ungetc dependency.
3549         * tests/test-fseeko.c (main): Likewise.
3550         * tests/test-ftell.c (main): Likewise.
3551         * tests/test-ftello.c (main): Likewise.
3552         * tests/test-fseek2.sh: New file.
3553         * tests/test-fseeko2.sh: Likewise.
3554         * tests/test-ftell2.sh: Likewise.
3555         * tests/test-ftello2.sh: Likewise.
3556
3557 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
3558
3559         test-getaddrinfo: fix usage of skip return code 77
3560         * tests/test-gettaddrinfo.c: Return skip code 77 only
3561         for first occurance of skip (4x77 is not 77)
3562
3563 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
3564
3565         strtod: avoid C99 decl-after-statement
3566         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
3567
3568 2009-02-24  Eric Blake  <ebb9@byu.net>
3569
3570         strtod: detect HP-UX 11.31 bug
3571         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
3572         Reported by Gary V. Vaughan.
3573
3574 2009-02-23  Bruno Haible  <bruno@clisp.org>
3575
3576         Fix invalid read past end of memory block.
3577         * lib/vasnprintf.c (DCHAR_SET): Define.
3578         (local_wcslen): Define only when needed.
3579         (local_strnlen, local_wcsnlen): New functions.
3580         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
3581         directives that involve a conversion ourselves.
3582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
3583         wcsnlen, mbrtowc, wcrtomb.
3584         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
3585         * tests/test-vasprintf-posix.c (test_function): Likewise.
3586         * tests/test-snprintf-posix.h (test_function): Likewise.
3587         * tests/test-sprintf-posix.h (test_function): Likewise.
3588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3589
3590 2009-02-22  Bruno Haible  <bruno@clisp.org>
3591
3592         Implement new clarified decomposition of Hangul syllables.
3593         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
3594         of type LTV, return only a pairwise decomposition.
3595         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
3596         Likewise.
3597         * tests/uninorm/test-decomposition.c (main): Updated expected result.
3598         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
3599         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
3600
3601 2009-02-22  Bruno Haible  <bruno@clisp.org>
3602
3603         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
3604         zero-length results and shrink excess allocated memory.
3605         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
3606         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
3607         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
3608         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
3609         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
3610         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
3611         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
3612         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
3613         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
3614         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
3615         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
3616         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
3617
3618 2009-02-21  Bruno Haible  <bruno@clisp.org>
3619
3620         * doc/gnulib.texi: Include safe-alloc.texi earlier.
3621         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
3622         spaces after a period. Put a space between a macro name and its
3623         argument list. Trivial rewordings.
3624         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
3625         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
3626         (main): Return 0 explicitly.
3627
3628 2009-02-21  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'uninorm/filter'.
3631         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
3632         * modules/uninorm/filter-tests: New file.
3633
3634         New module 'uninorm/filter'.
3635         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
3636         uninorm_filter_flush, uninorm_filter_free): New declarations.
3637         * lib/uninorm/uninorm-filter.c: New file.
3638         * modules/uninorm/filter: New file.
3639
3640 2009-02-21  Bruno Haible  <bruno@clisp.org>
3641
3642         Tests for module 'uninorm/nfkc'.
3643         * tests/uninorm/test-nfkc.c: New file.
3644         * tests/uninorm/test-u8-nfkc.c: New file.
3645         * tests/uninorm/test-u16-nfkc.c: New file.
3646         * tests/uninorm/test-u32-nfkc.c: New file.
3647         * tests/uninorm/test-u32-nfkc-big.sh: New file.
3648         * tests/uninorm/test-u32-nfkc-big.c: New file.
3649         * modules/uninorm/nfkc-tests: New file.
3650
3651         New module 'uninorm/nfkc'.
3652         * lib/uninorm/nfkc.c: New file.
3653         * modules/uninorm/nfkc: New file.
3654
3655         Tests for module 'uninorm/nfkd'.
3656         * tests/uninorm/test-nfkd.c: New file.
3657         * tests/uninorm/test-u8-nfkd.c: New file.
3658         * tests/uninorm/test-u16-nfkd.c: New file.
3659         * tests/uninorm/test-u32-nfkd.c: New file.
3660         * tests/uninorm/test-u32-nfkd-big.sh: New file.
3661         * tests/uninorm/test-u32-nfkd-big.c: New file.
3662         * modules/uninorm/nfkd-tests: New file.
3663
3664         New module 'uninorm/nfkd'.
3665         * lib/uninorm/nfkd.c: New file.
3666         * modules/uninorm/nfkd: New file.
3667
3668         Tests for module 'uninorm/nfc'.
3669         * tests/uninorm/test-nfc.c: New file.
3670         * tests/uninorm/test-u8-nfc.c: New file.
3671         * tests/uninorm/test-u16-nfc.c: New file.
3672         * tests/uninorm/test-u32-nfc.c: New file.
3673         * tests/uninorm/test-u32-nfc-big.sh: New file.
3674         * tests/uninorm/test-u32-nfc-big.c: New file.
3675         * modules/uninorm/nfc-tests: New file.
3676
3677         New module 'uninorm/nfc'.
3678         * lib/uninorm/nfc.c: New file.
3679         * modules/uninorm/nfc: New file.
3680
3681         Tests for module 'uninorm/nfd'.
3682         * tests/uninorm/test-nfd.c: New file.
3683         * tests/uninorm/test-u8-nfd.c: New file.
3684         * tests/uninorm/test-u16-nfd.c: New file.
3685         * tests/uninorm/test-u32-nfd.c: New file.
3686         * tests/uninorm/test-u32-nfd-big.sh: New file.
3687         * tests/uninorm/test-u32-nfd-big.c: New file.
3688         * tests/uninorm/test-u32-normalize-big.h: New file.
3689         * tests/uninorm/test-u32-normalize-big.c: New file.
3690         * tests/uninorm/NormalizationTest.txt: New file, created from
3691         Unicode 5.1.0 NormalizationTest.txt.
3692         * modules/uninorm/nfd-tests: New file.
3693
3694         New module 'uninorm/nfd'.
3695         * lib/uninorm/nfd.c: New file.
3696         * modules/uninorm/nfd: New file.
3697
3698         New module 'uninorm/u32-normalize'.
3699         * lib/uninorm/u32-normalize.c: New file.
3700         * modules/uninorm/u32-normalize: New file.
3701
3702         New module 'uninorm/u16-normalize'.
3703         * lib/uninorm/u16-normalize.c: New file.
3704         * modules/uninorm/u16-normalize: New file.
3705
3706         New module 'uninorm/u8-normalize'.
3707         * lib/uninorm/u8-normalize.c: New file.
3708         * lib/uninorm/normalize-internal.h: New file.
3709         * lib/uninorm/u-normalize-internal.h: New file.
3710         * modules/uninorm/u8-normalize: New file.
3711
3712         New module 'uninorm/decompose-internal'.
3713         * lib/uninorm/decompose-internal.c: New file.
3714         * modules/uninorm/decompose-internal: New file.
3715
3716         Tests for module 'uninorm/composition'.
3717         * tests/uninorm/test-composition.c: New file.
3718         * modules/uninorm/composition-tests: New file.
3719
3720         New module 'uninorm/composition'.
3721         * lib/uninorm/composition.c: New file.
3722         * lib/uninorm/composition-table.gperf: New file, generated by
3723         gen-uni-tables.
3724         * modules/uninorm/composition: New file.
3725
3726         Tests for module 'uninorm/compat-decomposition'.
3727         * tests/uninorm/test-compat-decomposition.c: New file.
3728         * modules/uninorm/compat-decomposition-tests: New file.
3729
3730         New module 'uninorm/compat-decomposition'.
3731         * lib/uninorm/decompose-internal.h: New file.
3732         * lib/uninorm/compat-decomposition.c: New file.
3733         * modules/uninorm/compat-decomposition: New file.
3734
3735         Tests for module 'uninorm/canonical-decomposition'.
3736         * tests/uninorm/test-canonical-decomposition.c: New file.
3737         * modules/uninorm/canonical-decomposition-tests: New file.
3738
3739         New module 'uninorm/canonical-decomposition'.
3740         * lib/uninorm/canonical-decomposition.c: New file.
3741         * modules/uninorm/canonical-decomposition: New file.
3742
3743         Tests for module 'uninorm/decomposition'.
3744         * tests/uninorm/test-decomposition.c: New file.
3745         * modules/uninorm/decomposition-tests: New file.
3746
3747         New module 'uninorm/decomposition'.
3748         * lib/uninorm/decomposition.c: New file.
3749         * modules/uninorm/decomposition: New file.
3750
3751         New module 'uninorm/decomposition-table'.
3752         * lib/uninorm/decomposition-table.h: New file.
3753         * lib/uninorm/decomposition-table.c: New file.
3754         * lib/uninorm/decomposition-table1.h: New file, generated by
3755         gen-uni-tables.
3756         * lib/uninorm/decomposition-table2.h: New file, generated by
3757         gen-uni-tables.
3758         * modules/uninorm/decomposition-table: New file.
3759
3760         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
3761         (UC_DECOMP_*): New enumeration items.
3762         (get_decomposition): New function.
3763         (struct decomp_table): New type.
3764         (output_decomposition, output_decomposition_tables): New functions.
3765         (unicode_composition_exclusions): New variable.
3766         (fill_composition_exclusions, debug_output_composition_tables): New
3767         functions.
3768         (main): Accept one more argument. Invoke fill_composition_exclusions.
3769         Output decomposition and composition tables.
3770
3771         New module 'uninorm/base'.
3772         * lib/uninorm.h: New file.
3773         * lib/unictype.h: Update comment.
3774         * modules/uninorm/base: New file.
3775
3776 2009-02-21  David Lutterkort  <lutter@redhat.com>
3777
3778         Tests for module 'safe-alloc'.
3779         * tests/test-safe-alloc.c: New file.
3780         * modules/safe-alloc-tests: New file.
3781
3782         New module 'safe-alloc'.
3783         * lib/safe-alloc.h: New file.
3784         * lib/safe-alloc.c: New file.
3785         * m4/safe-alloc.m4: New file.
3786         * modules/safe-alloc: New file.
3787         * doc/safe-alloc.texi: New file.
3788         * doc/gnulib.texi: Include it.
3789         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3790         safe-alloc.
3791
3792 2009-02-18  Bruno Haible  <bruno@clisp.org>
3793
3794         Fix link error on non-glibc systems.
3795         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
3796         variable.
3797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3798
3799 2009-02-18  Jim Meyering  <meyering@redhat.com>
3800
3801         fts: avoid used-uninitialized error due to recent change
3802         * lib/fts.c (fts_read): Guard uses of the new member,
3803         parent->fts_n_dirs_remaining, since it's not relevant for
3804         the parent of a directory specified on the command-line.
3805
3806 2009-02-17  James Youngman  <jay@gnu.org>
3807             Bruno Haible  <bruno@clisp.org>
3808
3809         * m4/include_next.m4: Reformulate comment.
3810
3811 2009-02-16  Jim Meyering  <meyering@redhat.com>
3812
3813         fts: add #if guards so that the fts_lgpl module still builds
3814         * lib/fts.c: Guard just-added hash-table-using parts with
3815         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
3816         Reported by Simon Josefsson.
3817
3818 2009-02-15  Bruno Haible  <bruno@clisp.org>
3819
3820         * modules/array-mergesort-tests: New file.
3821         * tests/test-array-mergesort.c: New file.
3822
3823         New module 'array-mergesort'.
3824         * modules/array-mergesort: New file.
3825         * lib/array-mergesort.h: New file.
3826
3827 2009-02-15  Bruno Haible  <bruno@clisp.org>
3828
3829         Fix 2009-02-07 commit.
3830         * lib/gen-uni-tables.c (output_predicate, output_category,
3831         output_combclass, output_bidi_category, output_decimal_digit,
3832         output_digit, output_numeric, output_mirror, output_scripts,
3833         output_ident_category, output_simple_mapping): Fix format directives.
3834         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
3835
3836 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
3837
3838         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
3839         fixes are available from IBM.
3840
3841 2009-02-13  Jim Meyering  <meyering@redhat.com>
3842
3843         fts: arrange not to stat non-directories in more cases
3844         This makes GNU find (when it doesn't need to stat each file)
3845         *much* more efficient at traversing reiserfs file systems.
3846         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
3847         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
3848         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
3849         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
3850         (leaf_optimization_applies): New function.
3851         (LCO_hash, LCO_compare): New helper functions.
3852         (link_count_optimize_ok): New function.
3853         (fts_stat): Initialize new member (if dir).
3854         (fts_read): Decrement parent's fts_n_dirs_remaining count if
3855         we've just stat'ed a directory.  Skip the stat call when possible.
3856         ---
3857         Note this AFS-related exchange:
3858         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
3859         and note find's pioctl call in find/fstype.c.
3860         But that is necessary only if you want to enable the
3861         optimization for AFS, and for now, I don't.
3862
3863         fts: move a function definition "up" (no semantic change)
3864         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
3865         "up" to precede upcoming use of a related function.
3866
3867 2009-02-11  Jim Meyering  <meyering@redhat.com>
3868
3869         fts: correct internal computation of nlinks (optimization-related)
3870         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
3871         whether the current entry is a directory, so don't test it.
3872
3873 2009-02-10  Bruno Haible  <bruno@clisp.org>
3874
3875         Tests for module 'uniwbrk/ulc-wordbreaks'.
3876         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
3877         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
3878         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
3879
3880         Tests for module 'uniwbrk/u32-wordbreaks'.
3881         * modules/uniwbrk/u32-wordbreaks-tests: New file.
3882         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
3883
3884         Tests for module 'uniwbrk/u16-wordbreaks'.
3885         * modules/uniwbrk/u16-wordbreaks-tests: New file.
3886         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
3887
3888         Tests for module 'uniwbrk/u8-wordbreaks'.
3889         * modules/uniwbrk/u8-wordbreaks-tests: New file.
3890         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
3891
3892 2009-02-10  Bruno Haible  <bruno@clisp.org>
3893
3894         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
3895         property.
3896         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
3897         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
3898         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
3899
3900 2009-02-10  Simon Josefsson  <simon@josefsson.org>
3901
3902         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
3903         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
3904
3905 2009-02-10  Bruno Haible  <bruno@clisp.org>
3906
3907         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
3908         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
3909         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
3910         * lib/unilbrk/u8-possible-linebreaks.c: Update.
3911         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
3912         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
3913
3914 2009-02-09  Simon Josefsson  <simon@josefsson.org>
3915
3916         * lib/sockets.h (gl_fd_to_handle): New function.
3917
3918         * tests/test-sockets.c: Call gl_fd_to_handle.
3919
3920 2009-02-09  Bruno Haible  <bruno@clisp.org>
3921
3922         * doc/havelib.texi: Document the conventions on bi-arch systems.
3923
3924 2009-02-08  Bruno Haible  <bruno@clisp.org>
3925
3926         Document the AC_LIB_LINKFLAGS macro.
3927         * doc/havelib.texi: New file, mostly written on 2005-05-24.
3928         * doc/gnulib.texi: Include it.
3929
3930 2009-02-08  Bruno Haible  <bruno@clisp.org>
3931
3932         Fix wrong order of sections, compared to TOC.
3933         * doc/gnulib.texi: Include relocatable-maint.texi after the
3934         "Regular expressions" node, not before.
3935
3936 2009-02-08  Bruno Haible  <bruno@clisp.org>
3937
3938         Tests for module 'unicase/totitle'.
3939         * modules/unicase/totitle-tests: New file.
3940
3941         Tests for module 'unicase/tolower'.
3942         * modules/unicase/tolower-tests: New file.
3943
3944         Tests for module 'unicase/toupper'.
3945         * modules/unicase/toupper-tests: New file.
3946         * tests/unicase/test-mapping-part1.h: New file.
3947         * tests/unicase/test-mapping-part2.h: New file.
3948
3949         New module 'unicase/totitle'.
3950         * modules/unicase/totitle: New file.
3951         * lib/unicase/totitle.c: New file.
3952
3953         New module 'unicase/tolower'.
3954         * modules/unicase/tolower: New file.
3955         * lib/unicase/tolower.c: New file.
3956
3957         New module 'unicase/toupper'.
3958         * modules/unicase/toupper: New file.
3959         * lib/unicase/toupper.c: New file.
3960         * lib/unicase/simple-mapping.h: New file.
3961
3962         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
3963         (mapping_table): New structure.
3964         (output_simple_mapping): New function.
3965         (main): Invoke output_simple_mapping_test and output_simple_mapping.
3966         * modules/gen-uni-tables (Description): Update.
3967         * lib/unicase/toupper.h: New file, automatically generated by
3968         gen-uni-tables.
3969         * lib/unicase/tolower.h: New file, automatically generated by
3970         gen-uni-tables.
3971         * lib/unicase/totitle.h: New file, automatically generated by
3972         gen-uni-tables.
3973         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
3974         gen-uni-tables.
3975         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
3976         gen-uni-tables.
3977         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
3978         gen-uni-tables.
3979
3980         New module 'unicase/base'.
3981         * modules/unicase/base: New file.
3982         * lib/unicase.h: New file.
3983
3984 2009-02-08  Bruno Haible  <bruno@clisp.org>
3985
3986         New module 'uniwbrk/ulc-wordbreaks'.
3987         * modules/uniwbrk/ulc-wordbreaks: New file.
3988         * lib/uniwbrk/ulc-wordbreaks.c: New file.
3989
3990         New module 'uniwbrk/u32-wordbreaks'.
3991         * modules/uniwbrk/u32-wordbreaks: New file.
3992         * lib/uniwbrk/u32-wordbreaks.c: New file.
3993
3994         New module 'uniwbrk/u16-wordbreaks'.
3995         * modules/uniwbrk/u16-wordbreaks: New file.
3996         * lib/uniwbrk/u16-wordbreaks.c: New file.
3997
3998         New module 'uniwbrk/u8-wordbreaks'.
3999         * modules/uniwbrk/u8-wordbreaks: New file.
4000         * lib/uniwbrk/u8-wordbreaks.c: New file.
4001         * lib/uniwbrk/u-wordbreaks.h: New file.
4002
4003         New module 'uniwbrk/table'.
4004         * modules/uniwbrk/table: New file.
4005         * lib/uniwbrk/wbrktable.h: New file.
4006         * lib/uniwbrk/wbrktable.c: New file.
4007
4008         New module 'uniwbrk/wordbreak-property'.
4009         * modules/uniwbrk/wordbreak-property: New file.
4010         * lib/uniwbrk/wordbreak-property.c: New file.
4011
4012         * lib/gen-uni-tables.c (WBP_*): New enum items.
4013         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
4014         (unicode_org_wbp): New variable.
4015         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
4016         New functions.
4017         (wbp_table): New structure.
4018         (output_wbp, output_wbrk_tables): New functions.
4019         (main): Accept additional argument. Invoke fill_org_wbp,
4020         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
4021         output_wbrk_tables.
4022         * modules/gen-uni-tables (Description): Update.
4023         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
4024         gen-uni-tables.
4025
4026         New module 'uniwbrk/base'.
4027         * modules/uniwbrk/base: New file.
4028         * lib/uniwbrk.h: New file.
4029
4030 2009-02-08  Bruno Haible  <bruno@clisp.org>
4031
4032         Update to Unicode 5.1.0.
4033         * lib/gen-uni-tables.c (is_property_alphabetic): Include
4034         U+2185..U+2188.
4035         (is_property_default_ignorable_code_point): Don't include characters
4036         of category Cc or Cs and not-a-characters.
4037         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
4038         U+0D79, U+109E, U+109F, U+A60C.
4039         * lib/unictype/bidi_of.h: Regenerated.
4040         * lib/unictype/blocks.h: Regenerated.
4041         * lib/unictype/categ_C.h: Regenerated.
4042         * lib/unictype/categ_Cf.h: Regenerated.
4043         * lib/unictype/categ_Cn.h: Regenerated.
4044         * lib/unictype/categ_L.h: Regenerated.
4045         * lib/unictype/categ_Ll.h: Regenerated.
4046         * lib/unictype/categ_Lm.h: Regenerated.
4047         * lib/unictype/categ_Lo.h: Regenerated.
4048         * lib/unictype/categ_Lu.h: Regenerated.
4049         * lib/unictype/categ_M.h: Regenerated.
4050         * lib/unictype/categ_Mc.h: Regenerated.
4051         * lib/unictype/categ_Me.h: Regenerated.
4052         * lib/unictype/categ_Mn.h: Regenerated.
4053         * lib/unictype/categ_N.h: Regenerated.
4054         * lib/unictype/categ_Nd.h: Regenerated.
4055         * lib/unictype/categ_Nl.h: Regenerated.
4056         * lib/unictype/categ_No.h: Regenerated.
4057         * lib/unictype/categ_P.h: Regenerated.
4058         * lib/unictype/categ_Pd.h: Regenerated.
4059         * lib/unictype/categ_Pe.h: Regenerated.
4060         * lib/unictype/categ_Pf.h: Regenerated.
4061         * lib/unictype/categ_Pi.h: Regenerated.
4062         * lib/unictype/categ_Po.h: Regenerated.
4063         * lib/unictype/categ_Ps.h: Regenerated.
4064         * lib/unictype/categ_S.h: Regenerated.
4065         * lib/unictype/categ_Sk.h: Regenerated.
4066         * lib/unictype/categ_Sm.h: Regenerated.
4067         * lib/unictype/categ_So.h: Regenerated.
4068         * lib/unictype/categ_of.h: Regenerated.
4069         * lib/unictype/combining.h: Regenerated.
4070         * lib/unictype/ctype_alnum.h: Regenerated.
4071         * lib/unictype/ctype_alpha.h: Regenerated.
4072         * lib/unictype/ctype_graph.h: Regenerated.
4073         * lib/unictype/ctype_lower.h: Regenerated.
4074         * lib/unictype/ctype_print.h: Regenerated.
4075         * lib/unictype/ctype_punct.h: Regenerated.
4076         * lib/unictype/ctype_upper.h: Regenerated.
4077         * lib/unictype/decdigit.h: Regenerated.
4078         * lib/unictype/digit.h: Regenerated.
4079         * lib/unictype/mirror.h: Regenerated.
4080         * lib/unictype/numeric.h: Regenerated.
4081         * lib/unictype/pr_alphabetic.h: Regenerated.
4082         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
4083         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
4084         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
4085         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
4086         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
4087         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
4088         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
4089         * lib/unictype/pr_combining.h: Regenerated.
4090         * lib/unictype/pr_dash.h: Regenerated.
4091         * lib/unictype/pr_decimal_digit.h: Regenerated.
4092         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
4093         * lib/unictype/pr_deprecated.h: Regenerated.
4094         * lib/unictype/pr_diacritic.h: Regenerated.
4095         * lib/unictype/pr_extender.h: Regenerated.
4096         * lib/unictype/pr_format_control.h: Regenerated.
4097         * lib/unictype/pr_grapheme_base.h: Regenerated.
4098         * lib/unictype/pr_grapheme_extend.h: Regenerated.
4099         * lib/unictype/pr_grapheme_link.h: Regenerated.
4100         * lib/unictype/pr_id_continue.h: Regenerated.
4101         * lib/unictype/pr_id_start.h: Regenerated.
4102         * lib/unictype/pr_ideographic.h: Regenerated.
4103         * lib/unictype/pr_ignorable_control.h: Regenerated.
4104         * lib/unictype/pr_lowercase.h: Regenerated.
4105         * lib/unictype/pr_math.h: Regenerated.
4106         * lib/unictype/pr_numeric.h: Regenerated.
4107         * lib/unictype/pr_other_alphabetic.h: Regenerated.
4108         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
4109         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
4110         * lib/unictype/pr_other_id_continue.h: Regenerated.
4111         * lib/unictype/pr_other_lowercase.h: Regenerated.
4112         * lib/unictype/pr_other_math.h: Regenerated.
4113         * lib/unictype/pr_punctuation.h: Regenerated.
4114         * lib/unictype/pr_sentence_terminal.h: Regenerated.
4115         * lib/unictype/pr_soft_dotted.h: Regenerated.
4116         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
4117         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
4118         * lib/unictype/pr_unified_ideograph.h: Regenerated.
4119         * lib/unictype/pr_uppercase.h: Regenerated.
4120         * lib/unictype/pr_xid_continue.h: Regenerated.
4121         * lib/unictype/pr_xid_start.h: Regenerated.
4122         * lib/unictype/pr_zero_width.h: Regenerated.
4123         * lib/unictype/scripts.h: Regenerated.
4124         * lib/unictype/scripts_byname.gperf: Regenerated.
4125         * lib/unictype/sy_java_ident.h: Regenerated.
4126         * lib/unilbrk/lbrkprop1.h: Regenerated.
4127         * lib/unilbrk/lbrkprop2.h: Regenerated.
4128         * tests/unictype/test-categ_C.c: Regenerated.
4129         * tests/unictype/test-categ_Cf.c: Regenerated.
4130         * tests/unictype/test-categ_Cn.c: Regenerated.
4131         * tests/unictype/test-categ_L.c: Regenerated.
4132         * tests/unictype/test-categ_Ll.c: Regenerated.
4133         * tests/unictype/test-categ_Lm.c: Regenerated.
4134         * tests/unictype/test-categ_Lo.c: Regenerated.
4135         * tests/unictype/test-categ_Lu.c: Regenerated.
4136         * tests/unictype/test-categ_M.c: Regenerated.
4137         * tests/unictype/test-categ_Mc.c: Regenerated.
4138         * tests/unictype/test-categ_Me.c: Regenerated.
4139         * tests/unictype/test-categ_Mn.c: Regenerated.
4140         * tests/unictype/test-categ_N.c: Regenerated.
4141         * tests/unictype/test-categ_Nd.c: Regenerated.
4142         * tests/unictype/test-categ_Nl.c: Regenerated.
4143         * tests/unictype/test-categ_No.c: Regenerated.
4144         * tests/unictype/test-categ_P.c: Regenerated.
4145         * tests/unictype/test-categ_Pd.c: Regenerated.
4146         * tests/unictype/test-categ_Pe.c: Regenerated.
4147         * tests/unictype/test-categ_Pf.c: Regenerated.
4148         * tests/unictype/test-categ_Pi.c: Regenerated.
4149         * tests/unictype/test-categ_Po.c: Regenerated.
4150         * tests/unictype/test-categ_Ps.c: Regenerated.
4151         * tests/unictype/test-categ_S.c: Regenerated.
4152         * tests/unictype/test-categ_Sk.c: Regenerated.
4153         * tests/unictype/test-categ_Sm.c: Regenerated.
4154         * tests/unictype/test-categ_So.c: Regenerated.
4155         * tests/unictype/test-ctype_alnum.c: Regenerated.
4156         * tests/unictype/test-ctype_alpha.c: Regenerated.
4157         * tests/unictype/test-ctype_graph.c: Regenerated.
4158         * tests/unictype/test-ctype_lower.c: Regenerated.
4159         * tests/unictype/test-ctype_print.c: Regenerated.
4160         * tests/unictype/test-ctype_punct.c: Regenerated.
4161         * tests/unictype/test-ctype_upper.c: Regenerated.
4162         * tests/unictype/test-decdigit.h: Regenerated.
4163         * tests/unictype/test-digit.h: Regenerated.
4164         * tests/unictype/test-numeric.h: Regenerated.
4165         * tests/unictype/test-pr_alphabetic.c: Regenerated.
4166         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
4167         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
4168         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
4169         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
4170         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
4171         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
4172         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
4173         * tests/unictype/test-pr_combining.c: Regenerated.
4174         * tests/unictype/test-pr_dash.c: Regenerated.
4175         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
4176         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
4177         * tests/unictype/test-pr_deprecated.c: Regenerated.
4178         * tests/unictype/test-pr_diacritic.c: Regenerated.
4179         * tests/unictype/test-pr_extender.c: Regenerated.
4180         * tests/unictype/test-pr_format_control.c: Regenerated.
4181         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
4182         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
4183         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
4184         * tests/unictype/test-pr_id_continue.c: Regenerated.
4185         * tests/unictype/test-pr_id_start.c: Regenerated.
4186         * tests/unictype/test-pr_ideographic.c: Regenerated.
4187         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
4188         * tests/unictype/test-pr_lowercase.c: Regenerated.
4189         * tests/unictype/test-pr_math.c: Regenerated.
4190         * tests/unictype/test-pr_numeric.c: Regenerated.
4191         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
4192         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
4193         Regenerated.
4194         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
4195         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
4196         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
4197         * tests/unictype/test-pr_other_math.c: Regenerated.
4198         * tests/unictype/test-pr_punctuation.c: Regenerated.
4199         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
4200         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
4201         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
4202         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
4203         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
4204         * tests/unictype/test-pr_uppercase.c: Regenerated.
4205         * tests/unictype/test-pr_xid_continue.c: Regenerated.
4206         * tests/unictype/test-pr_xid_start.c: Regenerated.
4207         * tests/unictype/test-pr_zero_width.c: Regenerated.
4208
4209         Update to Unicode 5.1.0.
4210         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
4211         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
4212         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
4213         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
4214         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
4215         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
4216         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
4217         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
4218         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
4219         (nonspacing_table_ind): Update.
4220         * tests/uniwidth/test-uc_width2.sh: Update expected result.
4221
4222         Update to Unicode 5.1.0.
4223         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
4224         code transform.
4225         * lib/uniname/uniname.c (unicode_character_name,
4226         unicode_name_character): Add the range 0x1Fxxx to the code transform.
4227         * lib/uniname/uninames.h: Regenerated.
4228         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
4229
4230 2009-02-07  Bruno Haible  <bruno@clisp.org>
4231
4232         Merge gen-ctype and gen-lbrk into a single program.
4233         * lib/gen-uni-tables.c: New file, incorporating
4234         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
4235         Add directory prefixes to the names of the generated files.
4236         * lib/unictype/gen-ctype.c: Remove file.
4237         * lib/unilbrk/gen-lbrk.c: Remove file.
4238         * modules/gen-uni-tables: New file.
4239         * modules/unictype/gen-ctype: Remove file.
4240         * modules/unilbrk/gen-lbrk: Remove file.
4241
4242 2009-02-07  Bruno Haible  <bruno@clisp.org>
4243
4244         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
4245
4246         New module 'unistr/u32-strcoll'.
4247         * modules/unistr/u32-strcoll: New file.
4248         * lib/unistr/u32-strcoll.c: New file.
4249
4250         New module 'unistr/u16-strcoll'.
4251         * modules/unistr/u16-strcoll: New file.
4252         * lib/unistr/u16-strcoll.c: New file.
4253
4254         New module 'unistr/u8-strcoll'.
4255         * modules/unistr/u8-strcoll: New file.
4256         * lib/unistr/u8-strcoll.c: New file.
4257         * lib/unistr/u-strcoll.h: New file.
4258
4259 2009-02-07  Bruno Haible  <bruno@clisp.org>
4260
4261         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
4262         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4263         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4264         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
4265         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
4266         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
4267
4268 2009-02-07  Bruno Haible  <bruno@clisp.org>
4269
4270         Make 64-bit clean.
4271         * lib/unictype/gen-ctype.c (output_predicate, output_category,
4272         output_combclass, output_bidi_category, output_decimal_digit,
4273         output_digit, output_numeric, output_mirror, output_scripts,
4274         output_ident_category): Use proper width specifier in format strings.
4275
4276 2009-02-07  Bruno Haible  <bruno@clisp.org>
4277
4278         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
4279         failure behaviour.
4280
4281 2009-02-07  Jim Meyering  <meyering@redhat.com>
4282
4283         regex: avoid compilation failure with upcoming gcc-4.4
4284         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
4285         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
4286         "... error: integer overflow in preprocessor expression".
4287
4288 2009-02-05  Ben Pfaff  <blp@gnu.org>
4289
4290         Fix link errors on Windows when close module is used.
4291         * modules/close: Add $(LIB_CLOSE) to Link section.
4292         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
4293         $(LIB_CLOSE) on Windows.
4294
4295 2009-02-05  Jim Meyering  <meyering@redhat.com>
4296
4297         still avoid unused-parameter warnings, but do it cleanly
4298         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
4299         (get_fs_usage): Cast to void instead.
4300         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
4301         (dev_from_mount_options, read_file_system_list): Cast to void.
4302         Prompted by Bruno Haible.
4303
4304 2009-02-04  Jim Meyering  <meyering@redhat.com>
4305
4306         fsusage.c: correct copyright year
4307         * lib/fsusage.c: Reflect year in which the change is pushed into
4308
4309         avoid misc. warnings
4310         * lib/fsusage.c (UNUSED_PARAM): Define.
4311         (get_fs_usage): Mark parameter "disk" as unused.
4312         * lib/getugroups.c (getgrent): Use "void" in prototype.
4313         * lib/mountlist.c: Mark unused parameters.
4314         (read_file_system_list): Declare a local with "const".
4315         * lib/nanosleep.c (getnow): Declare static.
4316         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
4317
4318         dirfd: set errno upon failure
4319         * lib/dirfd.c: Include <errno.h>.
4320         Set errno to ENOTSUP when returning -1.
4321         * modules/dirfd (Depends-on): Add errno.
4322         Suggested by John Kodis <kodis@comcast.net>.
4323
4324 2009-02-01  Bruno Haible  <bruno@clisp.org>
4325
4326         Don't assume sizeof (long) >= sizeof (void *).
4327         * lib/memcmp.c: Include stdint.h.
4328         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
4329         srcp2 to 'const byte *'.
4330         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
4331         types to uintptr_t.
4332         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
4333         * modules/memcmp (Depends-on): Add stdint.
4334         Reported by Ozkan Sezer <sezeroz@gmail.com>.
4335
4336 2009-01-30  Eric Blake  <ebb9@byu.net>
4337
4338         fix more require-before-expand issues
4339         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
4340         expand, AC_PROG_AWK.
4341         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
4342
4343 2009-01-28  Eric Blake  <ebb9@byu.net>
4344
4345         version-etc: use consistent URL formatting
4346         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
4347         Improve formatting.  Use fputs for string without %.
4348
4349 2009-01-28  Jim Meyering  <meyering@redhat.com>
4350
4351         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
4352         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
4353         "underquoted definition of NAME" from autoconf-2.59.
4354
4355 2009-01-28  Bruno Haible  <bruno@clisp.org>
4356
4357         * doc/gnulib.texi: Add "Obsolete modules" to index.
4358
4359 2009-01-28  Jim Meyering  <meyering@redhat.com>
4360
4361         useless-if-before-free: recognize more variants
4362         * build-aux/useless-if-before-free: Also recognize e.g.,
4363         if (NULL != p) free (p);
4364
4365 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
4366
4367         test-getaddrinfo: skip (don't fail) this test when there's no network
4368         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
4369         on the presumption that it means you lack network access.
4370
4371 2009-01-26  Jim Meyering  <meyering@redhat.com>
4372
4373         fflush: avoid warnings on modern systems
4374         * lib/fflush.c (rpl_fflush): Move declarations of locals,
4375         pos and result, into scopes where they're used.
4376
4377 2009-01-26  Eric Blake  <ebb9@byu.net>
4378
4379         Silence warning reintroduced by recent extensions patch.
4380         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
4381         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
4382         autoconf.
4383
4384         Backport improved autoconf semantics of AC_DEFUN_ONCE.
4385         * m4/00gnulib.m4: New file.
4386         * gnulib-tool (func_get_filelist): Always use it.
4387         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
4388         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
4389
4390 2009-01-25  Bruno Haible  <bruno@clisp.org>
4391
4392         Make test-quotearg work on MacOS X and AIX.
4393         * tests/test-quotearg.sh: New file.
4394         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
4395         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
4396         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
4397         include <libintl.h>.
4398         (fake_locale): Remove variable.
4399         (gettext, dgettext, dcgettext): Remove functions.
4400         (main): Instead of setting a fake locale, set a real locale. Call
4401         textdomain and bindtextdomain.
4402         * modules/quotearg-tests (Files): Add the new files.
4403         (Depends-on): Add gettext, setenv, unsetenv.
4404         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4405         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
4406         Augment TESTS_ENVIRONMENT.
4407
4408 2009-01-25  Bruno Haible  <bruno@clisp.org>
4409
4410         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
4411         fr_FR.ISO8859-1 locale on MacOS X.
4412         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
4413         ja_JP.eucJP locale on MacOS X.
4414         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
4415         zh_CN.GB18030 locale on MacOS X.
4416
4417 2009-01-25  Bruno Haible  <bruno@clisp.org>
4418
4419         Avoid link errors on MacOS X 10.3.
4420         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
4421         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4422
4423 2009-01-25  Bruno Haible  <bruno@clisp.org>
4424
4425         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4426         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
4427         * modules/pipe (Files): Remove m4/posix_spawn.m4.
4428         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4429         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
4430         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4431         posix_spawnattr_init, posix_spawnattr_setsigmask,
4432         posix_spawnattr_setflags, posix_spawnattr_destroy.
4433
4434         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4435         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
4436         * modules/execute (Files): Remove m4/posix_spawn.m4.
4437         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4438         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4439         posix_spawnattr_init, posix_spawnattr_setsigmask,
4440         posix_spawnattr_setflags, posix_spawnattr_destroy.
4441
4442 2009-01-25  Bruno Haible  <bruno@clisp.org>
4443
4444         * lib/glthread/threadlib.c: Include <stdlib.h>.
4445
4446 2009-01-25  Bruno Haible  <bruno@clisp.org>
4447
4448         * lib/glthread/threadlib.c (dummy): New declaration.
4449
4450 2009-01-25  Bruno Haible  <bruno@clisp.org>
4451
4452         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
4453         multibyte characters also for the GB18030 encoding. Don't crash when
4454         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
4455
4456 2009-01-25  Bruno Haible  <bruno@clisp.org>
4457
4458         Avoid redefining 'struct random_data' on OSF/1 5.1.
4459         * lib/stdlib.in.h: Include <random.h> if it exists.
4460         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
4461         HAVE_RANDOM_H. Include <random.h> when testing whether
4462         'struct random_data' exists.
4463         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
4464
4465 2009-01-25  Bruno Haible  <bruno@clisp.org>
4466
4467         Don't install charset.alias on MacOS X >= 10.3.
4468         * lib/localcharset.c (DARWIN7): New macro.
4469         (get_charset_aliases): Hardcode the result for Darwin7.
4470         * modules/localcharset (install-exec-local): Don't install
4471         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
4472
4473 2009-01-25  Bruno Haible  <bruno@clisp.org>
4474
4475         Don't install charset.alias on mingw and Cygwin.
4476         * modules/localcharset (install-exec-local): Don't install
4477         charset.alias on mingw and Cygwin, if the file does not yet exist.
4478         The result for these platforms is hardcoded in localcharset.c.
4479
4480 2009-01-25  Bruno Haible  <bruno@clisp.org>
4481
4482         Make it possible again to use AC_GNU_SOURCE together with gnulib.
4483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
4484         before requiring AC_USE_SYSTEM_EXTENSIONS.
4485
4486 2009-01-25  Jim Meyering  <meyering@redhat.com>
4487
4488         c-strtod: avoid warnings
4489         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
4490         "assignment discards qualifiers from pointer target type" warnings.
4491
4492 2009-01-24  Bruno Haible  <bruno@clisp.org>
4493
4494         Add support for non-UTF-8 locales on MacOS X.
4495         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
4496         canonical encodings. For Darwin 7 and newer, don't map traditional
4497         encodings to UTF-8.
4498         Reported by Vincent Lefevre <vincent@vinc17.org>
4499         at <http://savannah.gnu.org/bugs/?25235>.
4500
4501 2009-01-24  Bruno Haible  <bruno@clisp.org>
4502
4503         * doc/gnulib.texi (Obsolete modules): New section.
4504         Reported by Mike Frysinger <vapier@gentoo.org>.
4505
4506 2009-01-24  Bruno Haible  <bruno@clisp.org>
4507
4508         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
4509         (%.dvi): New rule.
4510
4511 2009-01-24  Bruno Haible  <bruno@clisp.org>
4512
4513         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
4514         Reported by Eric Blake.
4515
4516 2009-01-24  Bruno Haible  <bruno@clisp.org>
4517
4518         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
4519         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
4520         Reported by Gary V. Vaughan <gary@gnu.org>.
4521
4522 2009-01-24  Bruno Haible  <bruno@clisp.org>
4523
4524         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
4525
4526 2009-01-23  Bruno Haible  <bruno@clisp.org>
4527
4528         Make c-strtod, c-strtold usable in libraries.
4529         * lib/c-strtod.c: Include string.h instead of xalloc.h.
4530         (C_STRTOD): Call strdup instead of xstrdup.
4531         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
4532         * modules/c-strtold (Depends-on): Likewise.
4533         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
4534         * NEWS: Mention the change.
4535         Reported by Michael Gold <mgold@ncf.ca>.
4536
4537 2009-01-23  Jim Meyering  <meyering@redhat.com>
4538
4539         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
4540         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
4541         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
4542
4543 2009-01-23  Simon Josefsson  <simon@josefsson.org>
4544
4545         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
4546         GNU CoreUtils.
4547         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
4548         * modules/version-etc (Description): Update.
4549
4550 2009-01-22  Bruno Haible  <bruno@clisp.org>
4551
4552         Cache the C locale object.
4553         * lib/c-strtod.c (c_locale_cache): New variable.
4554         (c_locale): New function.
4555         (C_STRTOD): Use it, and don't call freelocale.
4556         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
4557         Suggested by Paolo Bonzini.
4558
4559 2009-01-21  Bruno Haible  <bruno@clisp.org>
4560
4561         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
4562         conditions other than overflow.
4563
4564 2009-01-21  Bruno Haible  <bruno@clisp.org>
4565
4566         * lib/c-strtod.c: Include errno.h.
4567         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
4568         value from STRTOD_L and STRTOD.
4569
4570 2009-01-21  Bruno Haible  <bruno@clisp.org>
4571         and Jim Meyering  <meyering@redhat.com>
4572
4573         nanosleep: skip configure test (fail it) for apple universal builds
4574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
4575         universal builds, assume that nanosleep does not work.
4576         * modules/nanosleep (Depends-on): Add multiarch.
4577
4578         mktime: skip configure test (fail it) for apple universal builds
4579         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
4580         universal builds, assume that mktime does not work.
4581         * modules/mktime (Depends-on): Add multiarch.
4582
4583 2009-01-21  Eric Blake  <ebb9@byu.net>
4584
4585         multiarch: avoid expand-before-require warning
4586         * modules/multiarch (configure.ac): Require, rather than expand,
4587         gl_MULTIARCH.
4588         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
4589         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
4590         enforce that all clients require it.  Partial reversion of
4591         2008-12-29 patch.
4592
4593         error: avoid expand-before-require warning
4594         * modules/errno (configure.ac): Require, rather than expand,
4595         gl_HEADER_ERRNO_H.
4596         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
4597         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
4598         enforce that all clients require it.
4599
4600         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
4601         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
4602         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
4603         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
4604
4605 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
4606
4607         Revert:
4608         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4609
4610         regex: do not depend on obsolete modules.
4611         * modules/regex: Remove memcmp and memmove.
4612
4613 2009-01-20  Bruno Haible  <bruno@clisp.org>
4614
4615         Make the 'link' module link on Windows NT 4.
4616         * lib/link.c (_WIN32_WINNT): Don't define.
4617         (CreateHardLinkFuncType): New type.
4618         (CreateHardLinkFunc, initialized): New variables.
4619         (initialize): New function.
4620         (link): Invoke CreateHardLink indirectly through the function pointer.
4621
4622 2009-01-20  Bruno Haible  <bruno@clisp.org>
4623
4624         Fix compilation failure on mingw.
4625         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
4626
4627 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
4628
4629         * doc/c-strtod.texi: Mention a couple of restrictions.
4630
4631 2009-01-20  Jim Meyering  <meyering@redhat.com>
4632
4633         gettimeofday: move more declarations out of functions
4634         * lib/gettimeofday.c: Move extern declarations of tzset and
4635         gmtime out of containing functions.  Prompted by Bruno Haible.
4636
4637 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4638
4639         regex: do not depend on obsolete modules.
4640         * modules/regex: Remove memcmp and memmove.
4641
4642 2009-01-19  Bruno Haible  <bruno@clisp.org>
4643
4644         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4645         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
4646         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4647         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
4648         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
4649
4650 2009-01-19  Bruno Haible  <bruno@clisp.org>
4651
4652         * tests/test-link.c: Include <errno.h>.
4653         (main): Exit with code 77 when a hard link cannot be created due to
4654         the file system.
4655         * tests/test-link.sh: Skip test when a hard link cannot be created due
4656         to the file system.
4657         Suggested by Eric Blake.
4658
4659 2009-01-19  Martin Lambers  <marlam@marlam.de>
4660
4661         * modules/link-tests: New file.
4662         * tests/test-link.sh: New file.
4663         * tests/test-link.c: New file.
4664
4665 2009-01-19  Eric Blake  <ebb9@byu.net>
4666
4667         doc: mention another function added in cygwin 1.7.0
4668         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
4669         Another new function in cygwin 1.7.
4670
4671 2009-01-19  Bruno Haible  <bruno@clisp.org>
4672
4673         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4674         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
4675         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
4676         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4678         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4679         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4680         * m4/md4.m4 (gl_MD4): Likewise.
4681         * m4/md5.m4 (gl_MD5): Likewise.
4682         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
4683         * m4/sha1.m4 (gl_SHA1): Likewise.
4684         * m4/sha256.m4 (gl_SHA256): Likewise.
4685         * m4/sha512.m4 (gl_SHA512): Likewise.
4686
4687 2009-01-19  Bruno Haible  <bruno@clisp.org>
4688
4689         * modules/uniname/uniname-tests (Depends-on): Add progname.
4690         * tests/uniname/test-uninames.c: Include progname.h.
4691         (main): Call set_program_name.
4692
4693         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
4694         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
4695         (main): Call set_program_name.
4696
4697         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
4698         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
4699         (main): Call set_program_name.
4700
4701         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
4702         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
4703         (main): Call set_program_name.
4704
4705         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
4706         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
4707         (main): Call set_program_name.
4708
4709         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
4710         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
4711         (main): Call set_program_name.
4712
4713         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
4714         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
4715         (main): Call set_program_name.
4716
4717         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
4718         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
4719         (main): Call set_program_name.
4720
4721         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
4722         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
4723         (main): Call set_program_name.
4724
4725 2009-01-19  Eric Blake  <ebb9@byu.net>
4726
4727         test-unistd: test previous patch
4728         * tests/test-unistd.c: Test *_FILENO macros.
4729
4730         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
4731         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4732         Guarantee a definition.
4733         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
4734         * modules/unistd-safer (Depends-on): Add dependency on unistd.
4735         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
4736         * lib/dup-safer.c (STDERR_FILENO): Likewise.
4737         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4738         Likewise.
4739         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
4740         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
4741         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4742         Likewise.
4743         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
4744         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
4745         (STDERR_FILENO): Likewise.
4746         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
4747         (STDERR_FILENO): Likewise.
4748         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
4749         (STDERR_FILENO): Likewise.
4750         Reported by Elbert Pol.
4751
4752 2009-01-19  Eric Blake  <ebb9@byu.net>
4753
4754         doc: mention more functions added in cygwin 1.7.0
4755         * doc/posix-functions/abort.texi (abort): Update wording related
4756         to cygwin.
4757         * doc/posix-functions/daylight.texi (daylight): Likewise.
4758         * doc/posix-functions/optarg.texi (optarg): Likewise.
4759         * doc/posix-functions/optarg.texi (opterr): Likewise.
4760         * doc/posix-functions/optarg.texi (optind): Likewise.
4761         * doc/posix-functions/optarg.texi (optopt): Likewise.
4762         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
4763         worked in 1.5.x, and was withdrawn in 1.7.
4764         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4765         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
4766         cygwin versions.
4767         * doc/posix-functions/perror.texi (perror): Likewise.
4768         * doc/posix-functions/printf.texi (printf): Likewise.
4769         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
4770         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
4771         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4772         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4773         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4774         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
4775         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4776         Likewise.
4777         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4778         Likewise.
4779         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
4780         this function.
4781         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
4782         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
4783         Likewise.
4784         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
4785         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
4786         * doc/posix-functions/confstr.texi (confstr): Likewise.
4787         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
4788         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
4789         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
4790         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
4791         * doc/posix-functions/fputws.texi (fputws): Likewise.
4792         * doc/posix-functions/fwide.texi (fwide): Likewise.
4793         * doc/posix-functions/getwc.texi (getwc): Likewise.
4794         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
4795         * doc/posix-functions/putwc.texi (putwc): Likewise.
4796         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4797         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
4798         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
4799         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4800         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
4801         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
4802         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
4803         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
4804         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
4805         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
4806         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
4807
4808 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
4809
4810         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
4811         * lib/ioctl.c: Include <sys/ioctl.h>.
4812
4813 2009-01-19  Simon Josefsson  <simon@josefsson.org>
4814
4815         * modules/getdate-tests (Depends-on): Add progname.
4816         * tests/test-getdate.c: Use progname module, to avoid link errors
4817         on non-glibc systems.
4818
4819 2009-01-18  Simon Josefsson  <simon@josefsson.org>
4820
4821         * modules/filenamecat-tests (Depends-on): Add progname.
4822         * modules/fstrcmp-tests (Depends-on): Likewise.
4823
4824         * tests/test-filenamecat.c: Use progname module, to avoid link
4825         errors on non-glibc systems.
4826         * tests/test-fstrcmp.c: Likewise.
4827
4828 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
4829
4830         gettimeofday: avoid warning: nested extern declaration of 'localtime'
4831         * lib/gettimeofday.c: Move extern declaration out of function.
4832
4833 2009-01-18  Bruno Haible  <bruno@clisp.org>
4834
4835         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
4836         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
4837         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
4838
4839 2009-01-18  Bruno Haible  <bruno@clisp.org>
4840
4841         * lib/strftime.c (MEMPCPY): Remove unused macro.
4842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
4843
4844 2009-01-18  Martin Lambers  <marlam@marlam.de>
4845
4846         New module 'link'.
4847         * lib/unistd.in.h (link): New declaration.
4848         * lib/link.c: New file.
4849         * m4/link.m4: New file.
4850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
4851         HAVE_LINK.
4852         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
4853         * modules/link: New file.
4854         * doc/posix-functions/link.texi: Mention the new module.
4855
4856 2009-01-18  Bruno Haible  <bruno@clisp.org>
4857
4858         * tests/test-avltree_list.c (main): Call set_program_name.
4859         * tests/test-avltree_oset.c (main): Likewise.
4860         * tests/test-obstack-printf.c: Include progname.h.
4861         (main): Call set_program_name.
4862         * tests/test-quotearg.c: Include progname.h.
4863         (main): Call set_program_name.
4864         * tests/test-xmemdup0.c: Include progname.h.
4865         (main): Call set_program_name.
4866
4867 2009-01-18  Bruno Haible  <bruno@clisp.org>
4868
4869         New module 'alphasort'.
4870         * lib/dirent.in.h (alphasort): New declaration.
4871         * lib/alphasort.c: New file, from glibc with modifications.
4872         * m4/alphasort.m4: New file.
4873         * modules/alphasort: New file.
4874         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
4875         HAVE_ALPHASORT.
4876         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
4877         HAVE_ALPHASORT.
4878         * doc/posix-functions/alphasort.texi: Mention the new module and the
4879         portability problems.
4880
4881 2009-01-18  Bruno Haible  <bruno@clisp.org>
4882
4883         New module 'scandir'.
4884         * lib/dirent.in.h (scandir): New declaration.
4885         * lib/scandir.c: New file, from glibc with modifications.
4886         * m4/scandir.m4: New file.
4887         * modules/scandir: New file.
4888         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
4889         HAVE_SCANDIR.
4890         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
4891         HAVE_SCANDIR.
4892         * doc/posix-functions/scandir.texi: Mention the new module and the
4893         portability problems.
4894
4895 2009-01-17  Bruno Haible  <bruno@clisp.org>
4896
4897         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
4898         Update documentation.
4899         (func_remove_suffix): Escape all dots in the suffix. Update
4900         documentation.
4901         (func_filter_filelist): Update documentation.
4902         Reported by Ralf Wildenhues.
4903
4904 2009-01-17  Bruno Haible  <bruno@clisp.org>
4905
4906         * modules/dprintf-posix-tests: New file.
4907         * tests/test-dprintf-posix.sh: New file.
4908         * tests/test-dprintf-posix.c: New file.
4909
4910         New modules 'dprintf', 'dprintf-posix'.
4911         * lib/stdio.in.h (dprintf): New declaration.
4912         * lib/dprintf.c: New file.
4913         * m4/dprintf.m4: New file.
4914         * m4/dprintf-posix.m4: New file.
4915         * modules/dprintf: New file.
4916         * modules/dprintf-posix: New file.
4917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
4918         HAVE_DPRINTF, REPLACE_DPRINTF.
4919         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
4920         HAVE_DPRINTF, REPLACE_DPRINTF.
4921         * doc/posix-functions/dprintf.texi: Mention the new modules.
4922
4923 2009-01-17  Bruno Haible  <bruno@clisp.org>
4924
4925         * modules/vdprintf-posix-tests: New file.
4926         * tests/test-vdprintf-posix.sh: New file.
4927         * tests/test-vdprintf-posix.c: New file.
4928
4929         New modules 'vdprintf', 'vdprintf-posix'.
4930         * lib/stdio.in.h (vdprintf): New declaration.
4931         * lib/vdprintf.c: New file.
4932         * m4/vdprintf.m4: New file.
4933         * m4/vdprintf-posix.m4: New file.
4934         * modules/vdprintf: New file.
4935         * modules/vdprintf-posix: New file.
4936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
4937         HAVE_VDPRINTF, REPLACE_VDPRINTF.
4938         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
4939         HAVE_VDPRINTF, REPLACE_VDPRINTF.
4940         * doc/posix-functions/vdprintf.texi: Mention the new modules.
4941
4942 2009-01-17  Bruno Haible  <bruno@clisp.org>
4943
4944         Fix replacement of fopen on mingw.
4945         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
4946         mingw.
4947
4948 2009-01-17  Bruno Haible  <bruno@clisp.org>
4949
4950         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
4951         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
4952
4953 2009-01-17  Bruno Haible  <bruno@clisp.org>
4954
4955         Avoid test-fflush2.sh failure on mingw.
4956         * tests/test-fflush2.c: Include binary-io.h.
4957         (main): Put standard input into binary mode.
4958         * modules/fflush-tests (Depends-on): Add binary-io.
4959
4960 2009-01-17  Bruno Haible  <bruno@clisp.org>
4961
4962         * lib/wchar.in.h: In another particular situation, include only the
4963         system's <wchar.h> file.
4964         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
4965         Reported by Albert Chin-A-Young <china@thewrittenword.com>
4966         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
4967
4968 2009-01-17  Bruno Haible  <bruno@clisp.org>
4969
4970         Support for stripping executables in --enable-relocatable.
4971         * build-aux/install-reloc: Expect one more argument, or an environment
4972         variable RELOC_STRIP_PROG. If set, strip the destination program and
4973         its wrapper.
4974         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
4975         RELOC_STRIP_PROG.
4976         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
4977         to set RELOCATABLE_STRIP.
4978         * NEWS: Mention the new Makefile requirement.
4979
4980 2009-01-17  Bruno Haible  <bruno@clisp.org>
4981
4982         * build-aux/install-reloc: Remove debugging information left over by
4983         C compiler on MacOS X.
4984
4985 2009-01-17  Bruno Haible  <bruno@clisp.org>
4986
4987         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
4988         * lib/progreloc.c (find_executable): Fix type of pointer passed to
4989         _NSGetExecutablePath.
4990
4991 2009-01-16  Jim Meyering  <meyering@redhat.com>
4992
4993         strerror: avoid warnings about discarding "const"
4994         * lib/strerror.c (rpl_strerror): Instead of returning a const
4995         string from each and every "case", use a variable, and add a single
4996         cast after the switch.
4997
4998 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
4999
5000         * lib/arpa_inet.in.h: Add extern "C" block for C++.
5001
5002 2009-01-16  Bruno Haible  <bruno@clisp.org>
5003
5004         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
5005         array initializer syntax that also works in C++ mode.
5006         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5007
5008 2009-01-16  Jim Meyering  <meyering@redhat.com>
5009
5010         poll: suppress a warning
5011         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
5012         to ignore "...unsigned expression < 0 is always false" warnings.
5013
5014 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
5015
5016         poll: remove declarations of unused variables
5017         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
5018         sockbuf and optlen.
5019
5020 2009-01-15  Bruno Haible  <bruno@clisp.org>
5021
5022         Make fflush-after-ungetc POSIX compliant on BSD systems.
5023         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
5024         (clear_ungetc_buffer): Implement also for other systems.
5025         (rpl_fflush): On glibc systems, invoke
5026         clear_ungetc_buffer_preserving_position. Otherwise, invoke
5027         clear_ungetc_buffer after fetching the stream's position, not before.
5028
5029 2009-01-15  Bruno Haible  <bruno@clisp.org>
5030
5031         Make fflush-after-ungetc POSIX compliant on glibc systems.
5032         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
5033         after ungetc.
5034         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
5035         (rpl_fflush): On glibc systems, simply call the system's fflush
5036         function after clearing the ungetc buffer.
5037         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
5038         Instead, lseek only to the end of file, then use the system's fseeko
5039         for the rest. On glibc systems, reset the EOF indicator bit.
5040
5041 2009-01-15  Jim Meyering  <meyering@redhat.com>
5042
5043         openmp.m4: revert quote-adding change, for portability to older autoconf
5044         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
5045         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
5046         Simon Josefsson noticed the problem when using autoconf-2.61.
5047
5048 2009-01-15  Bruno Haible  <bruno@clisp.org>
5049
5050         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
5051         * tests/test-fflush2.c (ASSERT): Always fail.
5052         (main): Add two tests for fflush() after ungetc(), taking into account
5053         the Austin Group's clarification.
5054         Suggested by Eric Blake.
5055
5056 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
5057
5058         mktime.m4: remove K&R-style function prototypes
5059         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
5060         for the Sun C++ compiler.
5061
5062 2009-01-14  Bruno Haible  <bruno@clisp.org>
5063
5064         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
5065         while including <wchar.h>.
5066         * lib/wchar.in.h: In two particular situations on HP-UX, include only
5067         the system's <wchar.h> file.
5068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5069
5070 2009-01-14  Bruno Haible  <bruno@clisp.org>
5071
5072         * m4/csharp.m4: Don't mention gettext on the serial number line.
5073         * m4/csharpexec.m4: Likewise.
5074         * m4/eaccess.m4: Likewise.
5075         * m4/javaexec.m4: Likewise.
5076         * m4/sig_atomic_t.m4: Likewise.
5077         * m4/tmpdir.m4: Likewise.
5078         * m4/intldir.m4: Bump gettext version.
5079         * m4/lib-ld.m4: Likewise.
5080
5081 2009-01-14  Bruno Haible  <bruno@clisp.org>
5082
5083         * lib/progname.c (set_program_name): Add more comments.
5084         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5085
5086 2009-01-14  Simon Josefsson  <simon@josefsson.org>
5087
5088         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
5089         were sys/stat.h does not define it.
5090
5091 2009-01-14  Jim Meyering  <meyering@redhat.com>
5092
5093         many *.m4 files: improve m4 quoting
5094         99% of this change was performed by running the following commands:
5095         git ls-files | grep '\.m4$' | xargs perl -pi \
5096           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
5097           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5098           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5099           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
5100         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
5101         The remainder were to add Copyright dates, increment serial numbers,
5102         undo some changes in comments, exclude m4/intl.m4, and add quotes
5103         around the "1" in ",1" where the unusual spacing prohibited the
5104         above regexps from doing the job.  For more details, see
5105         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
5106         * m4/acl.m4: Modified.
5107         * m4/afs.m4: Likewise.
5108         * m4/alloca.m4: Likewise.
5109         * m4/argp.m4: Likewise.
5110         * m4/argz.m4: Likewise.
5111         * m4/atexit.m4: Likewise.
5112         * m4/bison-i18n.m4: Likewise.
5113         * m4/bison.m4: Likewise.
5114         * m4/byteswap.m4: Likewise.
5115         * m4/c-stack.m4: Likewise.
5116         * m4/c-strtod.m4: Likewise.
5117         * m4/calloc.m4: Likewise.
5118         * m4/canonicalize-lgpl.m4: Likewise.
5119         * m4/chown.m4: Likewise.
5120         * m4/clock_time.m4: Likewise.
5121         * m4/codeset.m4: Likewise.
5122         * m4/copy-file.m4: Likewise.
5123         * m4/csharp.m4: Likewise.
5124         * m4/csharpcomp.m4: Likewise.
5125         * m4/csharpexec.m4: Likewise.
5126         * m4/d-ino.m4: Likewise.
5127         * m4/d-type.m4: Likewise.
5128         * m4/dirfd.m4: Likewise.
5129         * m4/double-slash-root.m4: Likewise.
5130         * m4/eaccess.m4: Likewise.
5131         * m4/eealloc.m4: Likewise.
5132         * m4/environ.m4: Likewise.
5133         * m4/errno_h.m4: Likewise.
5134         * m4/euidaccess.m4: Likewise.
5135         * m4/execute.m4: Likewise.
5136         * m4/fatal-signal.m4: Likewise.
5137         * m4/fchdir.m4: Likewise.
5138         * m4/fcntl_h.m4: Likewise.
5139         * m4/fileblocks.m4: Likewise.
5140         * m4/filenamecat.m4: Likewise.
5141         * m4/findprog.m4: Likewise.
5142         * m4/flexmember.m4: Likewise.
5143         * m4/fnmatch.m4: Likewise.
5144         * m4/fopen.m4: Likewise.
5145         * m4/fpending.m4: Likewise.
5146         * m4/fprintf-posix.m4: Likewise.
5147         * m4/free.m4: Likewise.
5148         * m4/frexp.m4: Likewise.
5149         * m4/frexpl.m4: Likewise.
5150         * m4/fsusage.m4: Likewise.
5151         * m4/ftruncate.m4: Likewise.
5152         * m4/gc-camellia.m4: Likewise.
5153         * m4/gc-random.m4: Likewise.
5154         * m4/gc.m4: Likewise.
5155         * m4/getaddrinfo.m4: Likewise.
5156         * m4/getcwd-abort-bug.m4: Likewise.
5157         * m4/getcwd-path-max.m4: Likewise.
5158         * m4/getdate.m4: Likewise.
5159         * m4/getdomainname.m4: Likewise.
5160         * m4/getgroups.m4: Likewise.
5161         * m4/gethostname.m4: Likewise.
5162         * m4/gethrxtime.m4: Likewise.
5163         * m4/getline.m4: Likewise.
5164         * m4/getloadavg.m4: Likewise.
5165         * m4/getndelim2.m4: Likewise.
5166         * m4/getpass.m4: Likewise.
5167         * m4/gettext.m4: Likewise.
5168         * m4/gettime.m4: Likewise.
5169         * m4/gettimeofday.m4: Likewise.
5170         * m4/gnulib-common.m4: Likewise.
5171         * m4/group-member.m4: Likewise.
5172         * m4/host-os.m4: Likewise.
5173         * m4/iconv.m4: Likewise.
5174         * m4/iconv_open.m4: Likewise.
5175         * m4/inet_ntop.m4: Likewise.
5176         * m4/inet_pton.m4: Likewise.
5177         * m4/inline.m4: Likewise.
5178         * m4/intldir.m4: Likewise.
5179         * m4/intlmacosx.m4: Likewise.
5180         * m4/intmax.m4: Likewise.
5181         * m4/intmax_t.m4: Likewise.
5182         * m4/inttypes.m4: Likewise.
5183         * m4/inttypes_h.m4: Likewise.
5184         * m4/inttypes-pri.m4: Likewise.
5185         * m4/isapipe.m4: Likewise.
5186         * m4/isnand.m4: Likewise.
5187         * m4/isnanf.m4: Likewise.
5188         * m4/isnanl.m4: Likewise.
5189         * m4/javacomp.m4: Likewise.
5190         * m4/javaexec.m4: Likewise.
5191         * m4/jm-winsz1.m4: Likewise.
5192         * m4/jm-winsz2.m4: Likewise.
5193         * m4/lchown.m4: Likewise.
5194         * m4/lcmessage.m4: Likewise.
5195         * m4/ldexpl.m4: Likewise.
5196         * m4/lib-ld.m4: Likewise.
5197         * m4/lib-link.m4: Likewise.
5198         * m4/libsigsegv.m4: Likewise.
5199         * m4/link-follow.m4: Likewise.
5200         * m4/localcharset.m4: Likewise.
5201         * m4/locale-fr.m4: Likewise.
5202         * m4/locale-ja.m4: Likewise.
5203         * m4/locale-tr.m4: Likewise.
5204         * m4/locale-zh.m4: Likewise.
5205         * m4/lock.m4: Likewise.
5206         * m4/longlong.m4: Likewise.
5207         * m4/ls-mntd-fs.m4: Likewise.
5208         * m4/lstat.m4: Likewise.
5209         * m4/malloc.m4: Likewise.
5210         * m4/mathl.m4: Likewise.
5211         * m4/mbrtowc.m4: Likewise.
5212         * m4/mbstate_t.m4: Likewise.
5213         * m4/mbswidth.m4: Likewise.
5214         * m4/memchr.m4: Likewise.
5215         * m4/memcmp.m4: Likewise.
5216         * m4/memcpy.m4: Likewise.
5217         * m4/memmem.m4: Likewise.
5218         * m4/memmove.m4: Likewise.
5219         * m4/mempcpy.m4: Likewise.
5220         * m4/memrchr.m4: Likewise.
5221         * m4/memset.m4: Likewise.
5222         * m4/minmax.m4: Likewise.
5223         * m4/mkdir-slash.m4: Likewise.
5224         * m4/mkdtemp.m4: Likewise.
5225         * m4/mktime.m4: Likewise.
5226         * m4/mmap-anon.m4: Likewise.
5227         * m4/mountlist.m4: Likewise.
5228         * m4/nanosleep.m4: Likewise.
5229         * m4/nls.m4: Likewise.
5230         * m4/nocrash.m4: Likewise.
5231         * m4/open.m4: Likewise.
5232         * m4/openat.m4: Likewise.
5233         * m4/openmp.m4: Likewise.
5234         * m4/pathmax.m4: Likewise.
5235         * m4/perl.m4: Likewise.
5236         * m4/physmem.m4: Likewise.
5237         * m4/pipe.m4: Likewise.
5238         * m4/po.m4: Likewise.
5239         * m4/poll.m4: Likewise.
5240         * m4/posixtm.m4: Likewise.
5241         * m4/posixver.m4: Likewise.
5242         * m4/printf-frexp.m4: Likewise.
5243         * m4/printf-frexpl.m4: Likewise.
5244         * m4/printf-posix.m4: Likewise.
5245         * m4/printf-posix-rpl.m4: Likewise.
5246         * m4/printf.m4: Likewise.
5247         * m4/progtest.m4: Likewise.
5248         * m4/putenv.m4: Likewise.
5249         * m4/readline.m4: Likewise.
5250         * m4/readlink.m4: Likewise.
5251         * m4/readutmp.m4: Likewise.
5252         * m4/realloc.m4: Likewise.
5253         * m4/regex.m4: Likewise.
5254         * m4/relocatable.m4: Likewise.
5255         * m4/relocatable-lib.m4: Likewise.
5256         * m4/rename-dest-slash.m4: Likewise.
5257         * m4/rename.m4: Likewise.
5258         * m4/rmdir-errno.m4: Likewise.
5259         * m4/rmdir.m4: Likewise.
5260         * m4/roundf.m4: Likewise.
5261         * m4/roundl.m4: Likewise.
5262         * m4/rpmatch.m4: Likewise.
5263         * m4/save-cwd.m4: Likewise.
5264         * m4/selinux-selinux-h.m4: Likewise.
5265         * m4/setenv.m4: Likewise.
5266         * m4/settime.m4: Likewise.
5267         * m4/sig2str.m4: Likewise.
5268         * m4/sig_atomic_t.m4: Likewise.
5269         * m4/signalblocking.m4: Likewise.
5270         * m4/signbit.m4: Likewise.
5271         * m4/sigpipe.m4: Likewise.
5272         * m4/sockets.m4: Likewise.
5273         * m4/sockpfaf.m4: Likewise.
5274         * m4/st_dm_mode.m4: Likewise.
5275         * m4/stat-time.m4: Likewise.
5276         * m4/stdbool.m4: Likewise.
5277         * m4/stdint.m4: Likewise.
5278         * m4/stdint_h.m4: Likewise.
5279         * m4/stpcpy.m4: Likewise.
5280         * m4/stpncpy.m4: Likewise.
5281         * m4/strcase.m4: Likewise.
5282         * m4/strchrnul.m4: Likewise.
5283         * m4/strcspn.m4: Likewise.
5284         * m4/strdup.m4: Likewise.
5285         * m4/strftime.m4: Likewise.
5286         * m4/strndup.m4: Likewise.
5287         * m4/strnlen.m4: Likewise.
5288         * m4/strpbrk.m4: Likewise.
5289         * m4/strptime.m4: Likewise.
5290         * m4/strsep.m4: Likewise.
5291         * m4/strtod.m4: Likewise.
5292         * m4/strtoimax.m4: Likewise.
5293         * m4/strtok_r.m4: Likewise.
5294         * m4/strtol.m4: Likewise.
5295         * m4/strtoll.m4: Likewise.
5296         * m4/strtoul.m4: Likewise.
5297         * m4/strtoull.m4: Likewise.
5298         * m4/strtoumax.m4: Likewise.
5299         * m4/strverscmp.m4: Likewise.
5300         * m4/threadlib.m4: Likewise.
5301         * m4/timegm.m4: Likewise.
5302         * m4/tm_gmtoff.m4: Likewise.
5303         * m4/tmpdir.m4: Likewise.
5304         * m4/tmpfile.m4: Likewise.
5305         * m4/tzset.m4: Likewise.
5306         * m4/uintmax_t.m4: Likewise.
5307         * m4/unlinkdir.m4: Likewise.
5308         * m4/unlocked-io.m4: Likewise.
5309         * m4/uptime.m4: Likewise.
5310         * m4/userspec.m4: Likewise.
5311         * m4/utimbuf.m4: Likewise.
5312         * m4/utime.m4: Likewise.
5313         * m4/utimes-null.m4: Likewise.
5314         * m4/utimes.m4: Likewise.
5315         * m4/vararrays.m4: Likewise.
5316         * m4/vasnprintf.m4: Likewise.
5317         * m4/vfprintf-posix.m4: Likewise.
5318         * m4/vprintf-posix.m4: Likewise.
5319         * m4/wait-process.m4: Likewise.
5320         * m4/wchar_t.m4: Likewise.
5321         * m4/wint_t.m4: Likewise.
5322         * m4/write-any-file.m4: Likewise.
5323         * m4/yield.m4: Likewise.
5324
5325 2009-01-13  Bruno Haible  <bruno@clisp.org>
5326
5327         Avoid test-copy-file.sh failures when ACL support insufficient.
5328         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
5329         TESTS_ENVIRONMENT.
5330         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
5331         Reported by Jim Meyering.
5332
5333 2009-01-13  Bruno Haible  <bruno@clisp.org>
5334
5335         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
5336         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
5337         * modules/unistdio/u8-printf-parse (Files): Likewise.
5338         * modules/unistdio/u32-printf-parse (Files): Likewise.
5339         * modules/unistdio/ulc-printf-parse (Files): Likewise.
5340
5341 2009-01-13  Simon Josefsson  <simon@josefsson.org>
5342
5343         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
5344         and m4/inttypes_h.m4 too.
5345
5346 2009-01-12  Eric Blake  <ebb9@byu.net>
5347
5348         tests: IRIX 6.2 cc can't compile -0.0 into .data
5349         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
5350         rather than at compile-time.
5351         * tests/test-floorl.c (minus_zero): Likewise.
5352         * tests/test-frexpl.c (minus_zero): Likewise.
5353         * tests/test-isnan.c (minus_zerol): Likewise.
5354         * tests/test-isnanl.h (minus_zero): Likewise.
5355         * tests/test-ldexpl.c (minus_zero): Likewise.
5356         * tests/test-roundl.c (minus_zero): Likewise.
5357         * tests/test-signbit.c (minus_zerol): Likewise.
5358         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5359         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5360         * tests/test-truncl.c (minus_zero): Likewise.
5361         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5362         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5363         Reported by Tom G. Christensen and Nelson H. F. Beebe.
5364
5365 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5366
5367         regex: fix glibc bug 9697
5368         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5369         handling.
5370
5371 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5372
5373         regex: fix glibc bug 697
5374         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5375         being NULL also if there are no backreferences.
5376
5377 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5378
5379         regex: merge glibc changes
5380         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5381         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5382         re_string_skip_chars, re_string_reconstruct): Likewise.
5383         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5384
5385 2009-01-07  Jim Meyering  <meyering@redhat.com>
5386
5387         poll: filter through cppi
5388         * lib/poll.c: Indent cpp directives to reflect nesting.
5389
5390 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
5391
5392         poll: don't return uninitialized
5393         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
5394
5395 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
5396
5397         avoid compile failure on AIX 6.1
5398         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
5399         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
5400
5401 2009-01-04  Jim Meyering  <meyering@redhat.com>
5402
5403         remove duplicate inclusion of <stdio.h>
5404         * tests/test-fprintf-posix.c: Likewise.
5405         * tests/test-printf-posix.c: Likewise.
5406         * tests/test-snprintf-posix.c: Likewise.
5407         * tests/test-sprintf-posix.c: Likewise.
5408         * tests/test-vasprintf-posix.c: Likewise.
5409         * tests/test-vfprintf-posix.c: Likewise.
5410         * tests/test-vprintf-posix.c: Likewise.
5411         * tests/test-vsnprintf-posix.c: Likewise.
5412         * tests/test-vsprintf-posix.c: Likewise.
5413
5414 2009-01-03  Jim Meyering  <meyering@redhat.com>
5415
5416         gnulib-tool: fix sed-based filtering
5417         * gnulib-tool (func_filter_filelist): Remove extra backslash
5418         in sed_fff_filter definition.
5419
5420 2009-01-02  Jim Meyering  <meyering@redhat.com>
5421
5422         strftime: avoid compilation failure on Solaris 2.6
5423         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
5424         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
5425         Don't #define mbrlen or mbsinit, since now they're guaranteed to
5426         be available.  Reported by Tom G. Christensen.  Details in
5427         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
5428
5429 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5430             Bruno Haible  <bruno@clisp.org>
5431
5432         Speed up gnulib-tool by doing more string processing through shell
5433         built-ins.
5434         * gnulib-tool (fast_func_append): New variable.
5435         (func_remove_prefix, func_remove_suffix): New functions.
5436         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
5437         (func_filter_filelist): New function.
5438         (func_get_dependencies): Use func_remove_suffix instead of sed.
5439         (func_get_automake_snippet): Use func_filter_filelist instead of a
5440         subshell and sed invocation.
5441
5442 2009-01-01  Bruno Haible  <bruno@clisp.org>
5443
5444         Fix a security bug.
5445         * gnulib-tool (func_import, import, update): Don't allow the characters
5446         '"', '$', '`', '\' in macro arguments that become part of commands that
5447         are evaluated.
5448
5449 2009-01-01  Bruno Haible  <bruno@clisp.org>
5450
5451         * gnulib-tool (func_reset_sigpipe): Add more comments.
5452
5453 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5454
5455         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
5456         func_emit_tests_Makefile_am, func_import): Abort loops early if we
5457         already know the answer.
5458
5459 2009-01-01  Jim Meyering  <meyering@redhat.com>
5460
5461         * lib/version-etc.c (version_etc_va): Update copyright year.
5462
5463 2008-12-30  Bruno Haible  <bruno@clisp.org>
5464
5465         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
5466         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
5467         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
5468
5469 2008-12-29  Eric Blake  <ebb9@byu.net>
5470
5471         multiarch: avoid autoconf AC_REQUIRE bug
5472         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
5473         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
5474         2.63 and older.
5475         Reported by Bruno Haible, and analyzed in
5476         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
5477
5478 2008-12-29  Bruno Haible  <bruno@clisp.org>
5479
5480         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
5481         files in subdirectories correctly.
5482         Reported by Ralf Wildenhues.
5483
5484 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5485
5486         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
5487         rather than 'join FILE -', for Solaris join.
5488
5489 2008-12-29  Bruno Haible  <bruno@clisp.org>
5490
5491         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
5492         quoting.
5493         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5494         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5495         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5496         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
5497         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5498         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5499         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5500         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5501         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5502         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5503         * m4/nls.m4 (AM_NLS): Likewise.
5504         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
5505         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5506         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5507         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5508         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5509         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5510         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
5511         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5512         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5513         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5514         * m4/xsize.m4 (gl_XSIZE): Likewise.
5515         Suggested by Jim Meyering.
5516
5517 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5518
5519         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
5520         * lib/parse-duration.c: use a switch instead of cascading if's.
5521
5522 2008-12-29  Eric Blake  <ebb9@byu.net>
5523
5524         wchar.h: supply WEOF on Irix 5.3
5525         * lib/wchar.in.h (wint_t): Also supply WEOF.
5526         * lib/wctype.in.h (wint_t): Likewise.
5527         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
5528         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
5529         Reported by Tom G. Christensen.
5530
5531 2008-12-26  Bruno Haible  <bruno@clisp.org>
5532
5533         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
5534         i486, i586, i686.
5535
5536 2008-12-26  Bruno Haible  <bruno@clisp.org>
5537
5538         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
5539
5540 2008-12-26  Bruno Haible  <bruno@clisp.org>
5541
5542         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
5543         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
5544         not __STDC_CONSTANT_MACROS.
5545         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5546
5547 2008-12-25  Bruno Haible  <bruno@clisp.org>
5548
5549         Add support for universal builds to vasnprintf.
5550         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
5551         universal builds, guess no.
5552         * modules/vasnprintf-posix (Depends-on): Add multiarch.
5553         * modules/vasprintf-posix (Depends-on): Likewise.
5554         * modules/fprintf-posix (Depends-on): Likewise.
5555         * modules/vfprintf-posix (Depends-on): Likewise.
5556         * modules/snprintf-posix (Depends-on): Likewise.
5557         * modules/vsnprintf-posix (Depends-on): Likewise.
5558         * modules/sprintf-posix (Depends-on): Likewise.
5559         * modules/vsprintf-posix (Depends-on): Likewise.
5560         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5561         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5562         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5563         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5564         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5565         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5566         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5567
5568         Add support for universal builds to <inttypes.h>.
5569         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5570         _SCNu64_PREFIX): In Apple
5571         universal builds, define directly, using _LP64.
5572         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
5573         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
5574         * modules/inttypes (Depends-on): Add multiarch.
5575         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5576
5577         Add support for universal builds to <stdint.h>.
5578         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
5579         universal builds, define directly, using _LP64.
5580         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
5581         Apple universal builds, don't test for the size and suffix of ptrdiff_t
5582         and size_t.
5583         * modules/stdint (Depends-on): Add multiarch.
5584         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5585
5586         New module 'multiarch'.
5587         * modules/multiarch: New file.
5588         * m4/multiarch.m4: New file.
5589
5590 2008-12-25  Bruno Haible  <bruno@clisp.org>
5591
5592         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
5593
5594 2008-12-25  Bruno Haible  <bruno@clisp.org>
5595
5596         * modules/btowc (License): Relicense under LGPLv2+.
5597         * modules/mbsinit (License): Likewise.
5598         * modules/mbrtowc (License): Likewise.
5599         * modules/wcrtomb (License): Likewise.
5600         * modules/streq (License): Likewise.
5601         Reported by David Lutterkort <lutter@redhat.com>.
5602
5603 2008-12-23  Bruno Haible  <bruno@clisp.org>
5604
5605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
5606
5607 2008-12-23  Bruno Haible  <bruno@clisp.org>
5608
5609         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
5610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
5611         GETADDRINFO_LIB, not in LIBS.
5612         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
5613         * modules/canon-host (Link): Likewise.
5614         * NEWS: Mention the change.
5615         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
5616         GETADDRINFO_LIB.
5617
5618 2008-12-22  Bruno Haible  <bruno@clisp.org>
5619
5620         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
5621         * doc/posix-functions/iswalpha_l.texi: Likewise.
5622         * doc/posix-functions/iswblank_l.texi: Likewise.
5623         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5624         * doc/posix-functions/iswctype_l.texi: Likewise.
5625         * doc/posix-functions/iswdigit_l.texi: Likewise.
5626         * doc/posix-functions/iswgraph_l.texi: Likewise.
5627         * doc/posix-functions/iswlower_l.texi: Likewise.
5628         * doc/posix-functions/iswprint_l.texi: Likewise.
5629         * doc/posix-functions/iswpunct_l.texi: Likewise.
5630         * doc/posix-functions/iswspace_l.texi: Likewise.
5631         * doc/posix-functions/iswupper_l.texi: Likewise.
5632         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5633         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
5634         * doc/posix-functions/open_wmemstream.texi: Likewise.
5635         * doc/posix-functions/swscanf.texi: Likewise.
5636         * doc/posix-functions/towctrans_l.texi: Likewise.
5637         * doc/posix-functions/towlower.texi: Likewise.
5638         * doc/posix-functions/towlower_l.texi: Likewise.
5639         * doc/posix-functions/towupper.texi: Likewise.
5640         * doc/posix-functions/towupper_l.texi: Likewise.
5641         * doc/posix-functions/vfwprintf.texi: Likewise.
5642         * doc/posix-functions/vfwscanf.texi: Likewise.
5643         * doc/posix-functions/vswscanf.texi: Likewise.
5644         * doc/posix-functions/vwprintf.texi: Likewise.
5645         * doc/posix-functions/vwscanf.texi: Likewise.
5646         * doc/posix-functions/wcpcpy.texi: Likewise.
5647         * doc/posix-functions/wcpncpy.texi: Likewise.
5648         * doc/posix-functions/wcscasecmp.texi: Likewise.
5649         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
5650         * doc/posix-functions/wcscoll_l.texi: Likewise.
5651         * doc/posix-functions/wcsdup.texi: Likewise.
5652         * doc/posix-functions/wcsncasecmp.texi: Likewise.
5653         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
5654         * doc/posix-functions/wcsnlen.texi: Likewise.
5655         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5656         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5657         * doc/posix-functions/wctrans_l.texi: Likewise.
5658         * doc/posix-functions/wctype_l.texi: Likewise.
5659         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
5660         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
5661         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
5662         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
5663         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
5664         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
5665         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
5666         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
5667         * doc/glibc-functions/wcschrnul.texi: Likewise.
5668         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5669         * doc/glibc-functions/wcstod_l.texi: Likewise.
5670         * doc/glibc-functions/wcstof_l.texi: Likewise.
5671         * doc/glibc-functions/wcstol_l.texi: Likewise.
5672         * doc/glibc-functions/wcstold_l.texi: Likewise.
5673         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5674         * doc/glibc-functions/wcstoq.texi: Likewise.
5675         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5676         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5677         * doc/glibc-functions/wcstouq.texi: Likewise.
5678         * doc/glibc-functions/wmempcpy.texi: Likewise.
5679
5680 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
5681             Eric Blake  <ebb9@byu.net>
5682             Paolo Bonzini  <bonzini@gnu.org>
5683             Bruno Haible  <bruno@clisp.org>
5684
5685         Make c-stack work on Haiku.
5686         * lib/c-stack.c (SA_ONSTACK): Define fallback.
5687         (c_stack_action): Use SA_ONSTACK flag.
5688
5689 2008-12-22  Bruno Haible  <bruno@clisp.org>
5690
5691         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
5692
5693 2008-12-22  Bruno Haible  <bruno@clisp.org>
5694
5695         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
5696         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
5697         being overridden.
5698         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
5699         New macros.
5700         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
5701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
5702         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
5703         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
5704
5705 2008-12-22  Bruno Haible  <bruno@clisp.org>
5706
5707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
5708         from test code.
5709
5710 2008-12-22  Eric Blake  <ebb9@byu.net>
5711
5712         Avoid gcc warnings on cygwin.
5713         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
5714         Avoid unused variable.
5715         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
5716         Likewise.
5717
5718 2008-12-22  Bruno Haible  <bruno@clisp.org>
5719
5720         Remove HAVE_MBRTOWC conditionals.
5721         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
5722         (mbscasecmp): Assume mbrtowc function.
5723         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
5724         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
5725         * lib/mbschr.c: Include mbuiter.h unconditionally.
5726         (mbschr): Assume mbrtowc function.
5727         * lib/mbscspn.c: Include mbuiter.h unconditionally.
5728         (mbscspn): Assume mbrtowc function.
5729         * lib/mbslen.c: Include mbuiter.h unconditionally.
5730         (mbslen): Assume mbrtowc function.
5731         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
5732         (mbsncasecmp): Assume mbrtowc function.
5733         * lib/mbsnlen.c: Include mbiter.h unconditionally.
5734         (mbsnlen): Assume mbrtowc function.
5735         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
5736         (mbspbrk): Assume mbrtowc function.
5737         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
5738         (mbspcasecmp): Assume mbrtowc function.
5739         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
5740         (mbsrchr): Assume mbrtowc function.
5741         * lib/mbssep.c: Include mbuiter.h unconditionally.
5742         (mbssep): Assume mbrtowc function.
5743         * lib/mbsspn.c: Include mbuiter.h unconditionally.
5744         (mbsspn): Assume mbrtowc function.
5745         * lib/mbsstr.c: Include mbuiter.h unconditionally.
5746         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
5747         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
5748         (mbstok_r): Assume mbrtowc function.
5749         * lib/propername.c: Include mbuiter.h unconditionally.
5750         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
5751         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
5752         (trim2): Assume mbrtowc function.
5753         * lib/mbswidth.c (mbsinit): Remove fallback definition.
5754         (mbsnwidth): Assume mbrtowc function.
5755         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
5756         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
5757         fallback definitions.
5758         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
5759
5760 2008-12-22  Bruno Haible  <bruno@clisp.org>
5761
5762         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
5763
5764 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
5765
5766         * modules/regex: Request emulations for the mb*/wc* functions we need.
5767         * m4/regex.m4: Don't look for those functions here.
5768         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
5769
5770 2008-12-22  Bruno Haible  <bruno@clisp.org>
5771
5772         * modules/fnmatch (Depends-on): Remove duplicated dependency.
5773
5774 2008-12-21  Bruno Haible  <bruno@clisp.org>
5775
5776         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
5777         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
5778         (Include): Remove conditionalization.
5779         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
5780         (Include): Remove conditionalization.
5781         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
5782         (Include): Remove conditionalization.
5783         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
5784         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5785         * NEWS: Mention the change.
5786         Reported by Alan Hourihane <alanh@fairlite.co.uk>
5787         via Sergey Poznyakoff <gray@gnu.org.ua>.
5788
5789 2008-12-21  Bruno Haible  <bruno@clisp.org>
5790
5791         * MODULES.html.sh (Extended multibyte and wide character utilities
5792         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
5793         wcrtomb, wcsrtombs.
5794         (Support for systems lacking POSIX:2008): Add accept, bind, close,
5795         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
5796         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
5797         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
5798
5799 2008-12-21  Bruno Haible  <bruno@clisp.org>
5800
5801         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
5802
5803 2008-12-21  Bruno Haible  <bruno@clisp.org>
5804
5805         * modules/wcsnrtombs-tests: New file.
5806         * tests/test-wcsnrtombs1.sh: New file.
5807         * tests/test-wcsnrtombs2.sh: New file.
5808         * tests/test-wcsnrtombs3.sh: New file.
5809         * tests/test-wcsnrtombs4.sh: New file.
5810         * tests/test-wcsnrtombs.c: New file.
5811
5812         New module 'wcsnrtombs'.
5813         * lib/wchar.in.h (wcsnrtombs): New declaration.
5814         * lib/wcsnrtombs.c: New file.
5815         * lib/wcsrtombs-state.c: New file.
5816         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
5817         (internal_state): Remove variable.
5818         * m4/wcsnrtombs.m4: New file.
5819         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
5820         compilation units.
5821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
5822         HAVE_WCSNRTOMBS.
5823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
5824         HAVE_WCSNRTOMBS.
5825         * modules/wcsnrtombs: New file.
5826         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
5827         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5828
5829 2008-12-21  Bruno Haible  <bruno@clisp.org>
5830
5831         * modules/wcsrtombs-tests: New file.
5832         * tests/test-wcsrtombs1.sh: New file.
5833         * tests/test-wcsrtombs2.sh: New file.
5834         * tests/test-wcsrtombs3.sh: New file.
5835         * tests/test-wcsrtombs4.sh: New file.
5836         * tests/test-wcsrtombs.c: New file.
5837
5838         New module 'wcsrtombs'.
5839         * lib/wchar.in.h (wcsrtombs): New declaration.
5840         * lib/wcsrtombs.c: New file.
5841         * m4/wcsrtombs.m4: New file.
5842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
5843         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
5844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
5845         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
5846         * modules/wcsrtombs: New file.
5847         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
5848         bugs.
5849
5850 2008-12-21  Bruno Haible  <bruno@clisp.org>
5851
5852         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
5853         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
5854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
5855         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
5856         if not correct.
5857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
5858         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
5859         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
5860         m4/locale-zh.m4, m4/codeset.m4.
5861         * doc/posix-functions/wcrtomb.texi: Document the bug.
5862
5863 2008-12-21  Bruno Haible  <bruno@clisp.org>
5864
5865         Work around a btowc() bug on IRIX 6.5.
5866         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
5867         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
5868         REPLACE_WTOBC if not.
5869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
5870         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
5871         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
5872
5873 2008-12-21  Bruno Haible  <bruno@clisp.org>
5874
5875         * modules/wcrtomb-tests: New file.
5876         * tests/test-wcrtomb.sh: New file.
5877         * tests/test-wcrtomb.c: New file.
5878
5879         New module 'wcrtomb'.
5880         * lib/wchar.in.h (wcrtomb): New declaration.
5881         * lib/wcrtomb.c: New file.
5882         * m4/wcrtomb.m4: New file.
5883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
5884         HAVE_WCRTOMB.
5885         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
5886         HAVE_WCRTOMB.
5887         * modules/wcrtomb: New file.
5888         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5889
5890 2008-12-21  Bruno Haible  <bruno@clisp.org>
5891
5892         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
5893         * modules/mbsrtowcs (Files): Likewise.
5894         * modules/wctob (Files): Likewise.
5895         * modules/c-strcase-tests (Files): Likewise.
5896         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5897         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5898         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5899         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5900         * modules/vasnprintf-posix-tests (Files): Likewise.
5901
5902 2008-12-21  William Pursell  <bill.pursell@gmail.com>
5903
5904         gitlog-to-changelog: pass all command-line arguments to git-log
5905         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
5906         it is sometimes convenient to filter the commits in various ways.
5907         gitlog-to-changelog only allows --since to specify a start date,
5908         but git-log itself supports many other filtering mechanisms.
5909         At the moment, I want to filter by branch name.  Rather than
5910         adding a --branch option to gitlog-to-changelog, it seems more
5911         flexible to simply pass all options directly to git-log and let
5912         git do the work.  Notice that this effectively makes --since a
5913         redundant option for gitlog-to-changelog, but removing it would
5914         require current usage to change since calls would then require
5915         an additional '--'.
5916
5917 2008-12-21  Bruno Haible  <bruno@clisp.org>
5918
5919         * modules/mbsnrtowcs-tests: New file.
5920         * tests/test-mbsnrtowcs1.sh: New file.
5921         * tests/test-mbsnrtowcs2.sh: New file.
5922         * tests/test-mbsnrtowcs3.sh: New file.
5923         * tests/test-mbsnrtowcs4.sh: New file.
5924         * tests/test-mbsnrtowcs.c: New file.
5925
5926         New module 'mbsnrtowcs'.
5927         * lib/wchar.in.h (mbsnrtowcs): New declaration.
5928         * lib/mbsnrtowcs.c: New file.
5929         * lib/mbsrtowcs-state.c: New file.
5930         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
5931         (internal_state): Remove variable.
5932         * m4/mbsnrtowcs.m4: New file.
5933         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
5934         compilation units.
5935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
5936         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
5937         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
5938         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
5939         * modules/mbsnrtowcs: New file.
5940         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
5941         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
5942         portability problem.
5943
5944 2008-12-21  Bruno Haible  <bruno@clisp.org>
5945
5946         Work around mbsrtowcs bug.
5947         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
5948         (gl_FUNC_MBSRTOWCS): Invoke it.
5949         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
5950         m4/locale-zh.m4.
5951         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
5952
5953 2008-12-21  Bruno Haible  <bruno@clisp.org>
5954
5955         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
5956
5957 2008-12-21  Bruno Haible  <bruno@clisp.org>
5958
5959         Update doc for AIX.
5960         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
5961         16-bit wchar_t type.
5962         * doc/posix-functions/btowc.texi: Likewise.
5963         * doc/posix-functions/fgetwc.texi: Likewise.
5964         * doc/posix-functions/fgetws.texi: Likewise.
5965         * doc/posix-functions/fputwc.texi: Likewise.
5966         * doc/posix-functions/fputws.texi: Likewise.
5967         * doc/posix-functions/fwide.texi: Likewise.
5968         * doc/posix-functions/fwprintf.texi: Likewise.
5969         * doc/posix-functions/fwscanf.texi: Likewise.
5970         * doc/posix-functions/getwchar.texi: Likewise.
5971         * doc/posix-functions/getwc.texi: Likewise.
5972         * doc/posix-functions/iswalnum.texi: Likewise.
5973         * doc/posix-functions/iswalpha.texi: Likewise.
5974         * doc/posix-functions/iswblank.texi: Likewise.
5975         * doc/posix-functions/iswcntrl.texi: Likewise.
5976         * doc/posix-functions/iswctype.texi: Likewise.
5977         * doc/posix-functions/iswdigit.texi: Likewise.
5978         * doc/posix-functions/iswgraph.texi: Likewise.
5979         * doc/posix-functions/iswlower.texi: Likewise.
5980         * doc/posix-functions/iswprint.texi: Likewise.
5981         * doc/posix-functions/iswpunct.texi: Likewise.
5982         * doc/posix-functions/iswspace.texi: Likewise.
5983         * doc/posix-functions/iswupper.texi: Likewise.
5984         * doc/posix-functions/iswxdigit.texi: Likewise.
5985         * doc/posix-functions/mbrtowc.texi: Likewise.
5986         * doc/posix-functions/mbsrtowcs.texi: Likewise.
5987         * doc/posix-functions/mbstowcs.texi: Likewise.
5988         * doc/posix-functions/mbtowc.texi: Likewise.
5989         * doc/posix-functions/putwchar.texi: Likewise.
5990         * doc/posix-functions/putwc.texi: Likewise.
5991         * doc/posix-functions/swprintf.texi: Likewise.
5992         * doc/posix-functions/tolower.texi: Likewise.
5993         * doc/posix-functions/toupper.texi: Likewise.
5994         * doc/posix-functions/towctrans.texi: Likewise.
5995         * doc/posix-functions/ungetwc.texi: Likewise.
5996         * doc/posix-functions/vswprintf.texi: Likewise.
5997         * doc/posix-functions/wcrtomb.texi: Likewise.
5998         * doc/posix-functions/wcscat.texi: Likewise.
5999         * doc/posix-functions/wcschr.texi: Likewise.
6000         * doc/posix-functions/wcscmp.texi: Likewise.
6001         * doc/posix-functions/wcscoll.texi: Likewise.
6002         * doc/posix-functions/wcscpy.texi: Likewise.
6003         * doc/posix-functions/wcscspn.texi: Likewise.
6004         * doc/posix-functions/wcsftime.texi: Likewise.
6005         * doc/posix-functions/wcslen.texi: Likewise.
6006         * doc/posix-functions/wcsncat.texi: Likewise.
6007         * doc/posix-functions/wcsncmp.texi: Likewise.
6008         * doc/posix-functions/wcsncpy.texi: Likewise.
6009         * doc/posix-functions/wcspbrk.texi: Likewise.
6010         * doc/posix-functions/wcsrchr.texi: Likewise.
6011         * doc/posix-functions/wcsrtombs.texi: Likewise.
6012         * doc/posix-functions/wcsspn.texi: Likewise.
6013         * doc/posix-functions/wcsstr.texi: Likewise.
6014         * doc/posix-functions/wcstod.texi: Likewise.
6015         * doc/posix-functions/wcstof.texi: Likewise.
6016         * doc/posix-functions/wcstoimax.texi: Likewise.
6017         * doc/posix-functions/wcstok.texi: Likewise.
6018         * doc/posix-functions/wcstold.texi: Likewise.
6019         * doc/posix-functions/wcstoll.texi: Likewise.
6020         * doc/posix-functions/wcstol.texi: Likewise.
6021         * doc/posix-functions/wcstombs.texi: Likewise.
6022         * doc/posix-functions/wcstoull.texi: Likewise.
6023         * doc/posix-functions/wcstoul.texi: Likewise.
6024         * doc/posix-functions/wcstoumax.texi: Likewise.
6025         * doc/posix-functions/wcswidth.texi: Likewise.
6026         * doc/posix-functions/wcsxfrm.texi: Likewise.
6027         * doc/posix-functions/wctob.texi: Likewise.
6028         * doc/posix-functions/wctomb.texi: Likewise.
6029         * doc/posix-functions/wctrans.texi: Likewise.
6030         * doc/posix-functions/wctype.texi: Likewise.
6031         * doc/posix-functions/wcwidth.texi: Likewise.
6032         * doc/posix-functions/wmemchr.texi: Likewise.
6033         * doc/posix-functions/wmemcmp.texi: Likewise.
6034         * doc/posix-functions/wmemcpy.texi: Likewise.
6035         * doc/posix-functions/wmemmove.texi: Likewise.
6036         * doc/posix-functions/wmemset.texi: Likewise.
6037         * doc/posix-functions/wprintf.texi: Likewise.
6038         * doc/posix-functions/wscanf.texi: Likewise.
6039
6040 2008-12-21  Bruno Haible  <bruno@clisp.org>
6041
6042         Update doc for HP-UX 11.11.
6043         * doc/posix-functions/btowc.texi: Clarify that the function is missing
6044         in HP-UX version 11.00, not in all versions of HP-UX 11.
6045         * doc/posix-functions/fwide.texi: Likewise.
6046         * doc/posix-functions/fwprintf.texi: Likewise.
6047         * doc/posix-functions/fwscanf.texi: Likewise.
6048         * doc/posix-functions/inet_ntop.texi: Likewise.
6049         * doc/posix-functions/inet_pton.texi: Likewise.
6050         * doc/posix-functions/mbrlen.texi: Likewise.
6051         * doc/posix-functions/mbrtowc.texi: Likewise.
6052         * doc/posix-functions/mbsinit.texi: Likewise.
6053         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6054         * doc/posix-functions/swprintf.texi: Likewise.
6055         * doc/posix-functions/swscanf.texi: Likewise.
6056         * doc/posix-functions/towctrans.texi: Likewise.
6057         * doc/posix-functions/vfwprintf.texi: Likewise.
6058         * doc/posix-functions/vswprintf.texi: Likewise.
6059         * doc/posix-functions/vwprintf.texi: Likewise.
6060         * doc/posix-functions/wcrtomb.texi: Likewise.
6061         * doc/posix-functions/wcsrtombs.texi: Likewise.
6062         * doc/posix-functions/wcsstr.texi: Likewise.
6063         * doc/posix-functions/wctob.texi: Likewise.
6064         * doc/posix-functions/wctrans.texi: Likewise.
6065         * doc/posix-functions/wmemchr.texi: Likewise.
6066         * doc/posix-functions/wmemcmp.texi: Likewise.
6067         * doc/posix-functions/wmemcpy.texi: Likewise.
6068         * doc/posix-functions/wmemmove.texi: Likewise.
6069         * doc/posix-functions/wmemset.texi: Likewise.
6070         * doc/posix-functions/wprintf.texi: Likewise.
6071         * doc/posix-functions/wscanf.texi: Likewise.
6072
6073 2008-12-21  Bruno Haible  <bruno@clisp.org>
6074
6075         Work around a portability problem.
6076         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
6077         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
6078
6079 2008-12-20  Bruno Haible  <bruno@clisp.org>
6080
6081         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
6082         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
6083         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
6084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
6085         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
6086
6087         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
6088         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
6089         set.
6090         (GNULIB_defined_mbstate_t): New macro.
6091         (mbsinit): Redefine if REPLACE_MBSINIT is set.
6092         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
6093         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
6094         reuses the system's mbrtowc function but works around the bugs.
6095         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
6096         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
6097         macros.
6098         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
6099         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
6100         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
6101         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
6102         REPLACE_MBSINIT if mbsinit needs to be overridden.
6103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
6104         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6105         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
6106         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6107         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6108         m4/locale-zh.m4.
6109         (Depends): Add mbsinit.
6110         * modules/mbsinit (Depends): Add mbrtowc.
6111         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
6112
6113 2008-12-20  Bruno Haible  <bruno@clisp.org>
6114
6115         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
6116         so that there are no conversion errors on AIX.
6117         * tests/test-mbsrtowcs.c (main): LIkewise.
6118
6119 2008-12-20  Bruno Haible  <bruno@clisp.org>
6120
6121         Work around wctob bug on Solaris <= 9.
6122         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
6123         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
6124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
6125         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
6126         * modules/wctob (Files): Add m4/locale-fr.m4.
6127         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
6128
6129 2008-12-20  Bruno Haible  <bruno@clisp.org>
6130
6131         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
6132         /dev/null.
6133         * tests/test-select-in.sh: Likewise.
6134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6135
6136 2008-12-20  Bruno Haible  <bruno@clisp.org>
6137
6138         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
6139         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
6140         Cygwin 1.5.x.
6141
6142 2008-12-20  Bruno Haible  <bruno@clisp.org>
6143
6144         Ensure mbstate_t is defined on HP-UX 11.11.
6145         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
6146         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
6147         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
6148         AC_USE_SYSTEM_EXTENSIONS.
6149         * modules/fnmatch (Depends-on): Add extensions.
6150         * modules/mbrlen (Depends-on): Likewise.
6151         * modules/mbrtowc (Depends-on): Likewise.
6152         * modules/mbsinit (Depends-on): Likewise.
6153         * modules/mbsrtowcs (Depends-on): Likewise.
6154         * modules/mbswidth (Depends-on): Likewise.
6155         * modules/quotearg (Depends-on): Likewise.
6156         * modules/strftime (Depends-on): Likewise.
6157
6158 2008-12-20  Bruno Haible  <bruno@clisp.org>
6159
6160         Ensure wctob is declared on IRIX 6.5.
6161         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
6162         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
6163         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
6164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
6165         of HAVE_WCTOB.
6166         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
6167         HAVE_WCTOB.
6168         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
6169
6170 2008-12-19  Bruno Haible  <bruno@clisp.org>
6171
6172         * modules/mbsrtowcs-tests: New file.
6173         * tests/test-mbsrtowcs1.sh: New file.
6174         * tests/test-mbsrtowcs2.sh: New file.
6175         * tests/test-mbsrtowcs3.sh: New file.
6176         * tests/test-mbsrtowcs4.sh: New file.
6177         * tests/test-mbsrtowcs.c: New file.
6178
6179         New module 'mbsrtowcs'.
6180         * lib/wchar.in.h (mbsrtowcs): New declaration.
6181         * lib/mbsrtowcs.c: New file.
6182         * m4/mbsrtowcs.m4: New file.
6183         * modules/mbsrtowcs: New file.
6184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
6185         HAVE_MBSRTOWCS.
6186         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
6187         HAVE_MBSRTOWCS.
6188         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
6189
6190 2008-12-19  Bruno Haible  <bruno@clisp.org>
6191
6192         New module 'mbrlen'.
6193         * lib/wchar.in.h (mbrlen): New declaration.
6194         * lib/mbrlen.c: New file.
6195         * m4/mbrlen.m4: New file.
6196         * modules/mbrlen: New file.
6197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
6198         HAVE_MBRLEN.
6199         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
6200         HAVE_MBRLEN.
6201         * doc/posix-functions/mbrlen.texi: Document the new module.
6202
6203 2008-12-19  Bruno Haible  <bruno@clisp.org>
6204
6205         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
6206         * modules/mbrtowc (Depends-on): Add verify.
6207         Suggested by Paul Eggert.
6208
6209 2008-12-18  Bruno Haible  <bruno@clisp.org>
6210
6211         * modules/mbsinit-tests: New file.
6212         * tests/test-mbsinit.sh: New file.
6213         * tests/test-mbsinit.c: New file.
6214
6215 2008-12-18  Bruno Haible  <bruno@clisp.org>
6216
6217         * modules/mbrtowc-tests: New file.
6218         * tests/test-mbrtowc1.sh: New file.
6219         * tests/test-mbrtowc2.sh: New file.
6220         * tests/test-mbrtowc3.sh: New file.
6221         * tests/test-mbrtowc4.sh: New file.
6222         * tests/test-mbrtowc.c: New file.
6223
6224         New module 'mbrtowc'.
6225         * lib/wchar.in.h (mbstate_t): Override when the system does not have
6226         mbsinit and mbrtowc.
6227         (mbrtowc): New declaration.
6228         * lib/mbrtowc.c: New file.
6229         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
6230         * modules/mbrtowc: New file.
6231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
6232         HAVE_MBRTOWC.
6233         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
6234         HAVE_MBRTOWC.
6235         * doc/posix-functions/mbrtowc.texi: Document the new module.
6236
6237 2008-12-18  Bruno Haible  <bruno@clisp.org>
6238
6239         New module 'wctob'.
6240         * lib/wchar.in.h (wctob): New declaration.
6241         * lib/wctob.c: New file.
6242         * m4/wctob.m4: New file.
6243         * modules/wctob: New file.
6244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
6245         HAVE_WCTOB.
6246         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
6247         * doc/posix-functions/wctob.texi: Document the new module.
6248
6249 2008-12-18  Bruno Haible  <bruno@clisp.org>
6250
6251         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
6252         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
6253
6254 2008-12-18  Simon Josefsson  <simon@josefsson.org>
6255
6256         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
6257         G. Christensen" <tgc@jupiterrise.com>.
6258
6259         * lib/flock.c: Need to include errno.h.  Reported by "Tom
6260         G. Christensen" <tgc@jupiterrise.com>.
6261
6262         * lib/flock.c: Need to include string.h.  Reported by "Tom
6263         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
6264         <ebb9@byu.net>.
6265
6266 2008-12-18  Bruno Haible  <bruno@clisp.org>
6267
6268         * m4/locale-ja.m4: New file, from GNU gettext.
6269
6270 2008-12-17  Bruno Haible  <bruno@clisp.org>
6271
6272         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
6273         Suggested by Eric Blake.
6274
6275 2008-12-17  Bruno Haible  <bruno@clisp.org>
6276
6277         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
6278
6279 2008-12-17  Bruno Haible  <bruno@clisp.org>
6280
6281         * lib/mbsinit.c: Include verify.h. Verify an assumption.
6282         * modules/mbsinit (Depends-on): Add verify.
6283         Suggested by Paul Eggert.
6284
6285 2008-12-17  Bruno Haible  <bruno@clisp.org>
6286
6287         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
6288         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
6289         gl_FUNC_MBRTOWC.
6290         * m4/mbiter.m4 (gl_MBITER): LIkewise.
6291         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
6292         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
6293         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
6294         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
6295         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
6296         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
6297         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
6298         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
6299         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
6300         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
6301         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
6302         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
6303         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
6304         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
6305         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6306         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
6307         * modules/trim (configure.ac): Likewise.
6308
6309 2008-12-17  Bruno Haible  <bruno@clisp.org>
6310
6311         * modules/btowc-tests: New file.
6312         * tests/test-btowc1.sh: New file.
6313         * tests/test-btowc2.sh: New file.
6314         * tests/test-btowc.c: New file.
6315
6316         New module 'btowc'.
6317         * lib/wchar.in.h (btowc): New declaration.
6318         * lib/btowc.c: New file.
6319         * m4/btowc.m4: New file.
6320         * modules/btowc: New file.
6321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
6322         HAVE_BTOWC.
6323         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
6324         * doc/posix-functions/btowc.texi: Document the new module.
6325
6326 2008-12-17  Bruno Haible  <bruno@clisp.org>
6327
6328         New module 'mbsinit'.
6329         * lib/wchar.in.h (mbsinit): New declaration.
6330         * lib/mbsinit.c: New file.
6331         * m4/mbsinit.m4: New file.
6332         * modules/mbsinit: New file.
6333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
6334         HAVE_MBSINIT.
6335         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
6336         HAVE_MBSINIT.
6337         * doc/posix-functions/mbsinit.texi: Document the new module.
6338
6339 2008-12-16  Bruno Haible  <bruno@clisp.org>
6340
6341         * lib/unistd.in.h: Add comment.
6342         * tests/test-environ.c: Don't include <stdlib.h>.
6343
6344 2008-12-16  Bruno Haible  <bruno@clisp.org>
6345
6346         * lib/parse-duration.h (parse_duration): Document return value
6347         convention.
6348         * lib/parse-duration.c: Include specification header first. Add
6349         comments.
6350         (_): Remove macro.
6351         (parse_year_month_day, parse_hour_minute_second): Move side effects
6352         outside of strchr call.
6353         (parse_non_iso8601): Move side effects outside of isspace call.
6354         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
6355         call.
6356
6357 2008-12-16  Bruno Haible  <bruno@clisp.org>
6358
6359         * tests/test-parse-duration.sh: Produce no output when the test
6360         succeeds.
6361
6362 2008-12-16  Bruno Haible  <bruno@clisp.org>
6363
6364         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
6365         expressions.
6366
6367 2008-12-15  Bruno Haible  <bruno@clisp.org>
6368
6369         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
6370         * doc/glibc-functions/flistxattr.texi: Likewise.
6371         * doc/glibc-functions/fopencookie.texi: Likewise.
6372         * doc/glibc-functions/fremovexattr.texi: Likewise.
6373         * doc/glibc-functions/fsetxattr.texi: Likewise.
6374         * doc/glibc-functions/getxattr.texi: Likewise.
6375         * doc/glibc-functions/lgetxattr.texi: Likewise.
6376         * doc/glibc-functions/listxattr.texi: Likewise.
6377         * doc/glibc-functions/llistxattr.texi: Likewise.
6378         * doc/glibc-functions/lremovexattr.texi: Likewise.
6379         * doc/glibc-functions/lsetxattr.texi: Likewise.
6380         * doc/glibc-functions/removexattr.texi: Likewise.
6381         * doc/glibc-functions/setxattr.texi: Likewise.
6382         * doc/posix-functions/open_memstream.texi: Likewise.
6383
6384 2008-12-15  Eric Blake  <ebb9@byu.net>
6385
6386         Update doc for cygwin 1.7.
6387         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
6388         functions.
6389         * doc/posix-functions/fchmodat.texi: Likewise.
6390         * doc/posix-functions/fchownat.texi: Likewise.
6391         * doc/posix-functions/fdopendir.texi: Likewise.
6392         * doc/posix-functions/fmemopen.texi: Likewise.
6393         * doc/posix-functions/freeaddrinfo.texi: Likewise.
6394         * doc/posix-functions/fstatat.texi: Likewise.
6395         * doc/posix-functions/futimens.texi: Likewise.
6396         * doc/posix-functions/gai_strerror.texi: Likewise.
6397         * doc/posix-functions/getaddrinfo.texi: Likewise.
6398         * doc/posix-functions/getnameinfo.texi: Likewise.
6399         * doc/posix-functions/if_freenameindex.texi: Likewise.
6400         * doc/posix-functions/if_indextoname.texi: Likewise.
6401         * doc/posix-functions/if_nameindex.texi: Likewise.
6402         * doc/posix-functions/if_nametoindex.texi: Likewise.
6403         * doc/posix-functions/insque.texi: Likewise.
6404         * doc/posix-functions/linkat.texi: Likewise.
6405         * doc/posix-functions/llrint.texi: Likewise.
6406         * doc/posix-functions/llrintf.texi: Likewise.
6407         * doc/posix-functions/llrintl.texi: Likewise.
6408         * doc/posix-functions/lockf.texi: Likewise.
6409         * doc/posix-functions/lrintl.texi: Likewise.
6410         * doc/posix-functions/mkdirat.texi: Likewise.
6411         * doc/posix-functions/mkfifoat.texi: Likewise.
6412         * doc/posix-functions/mknodat.texi: Likewise.
6413         * doc/posix-functions/mq_close.texi: Likewise.
6414         * doc/posix-functions/mq_getattr.texi: Likewise.
6415         * doc/posix-functions/mq_notify.texi: Likewise.
6416         * doc/posix-functions/mq_open.texi: Likewise.
6417         * doc/posix-functions/mq_receive.texi: Likewise.
6418         * doc/posix-functions/mq_send.texi: Likewise.
6419         * doc/posix-functions/mq_setattr.texi: Likewise.
6420         * doc/posix-functions/mq_timedreceive.texi: Likewise.
6421         * doc/posix-functions/mq_timedsend.texi: Likewise.
6422         * doc/posix-functions/mq_unlink.texi: Likewise.
6423         * doc/posix-functions/open_memstream.texi: Likewise.
6424         * doc/posix-functions/openat.texi: Likewise.
6425         * doc/posix-functions/posix_fadvise.texi: Likewise.
6426         * doc/posix-functions/posix_fallocate.texi: Likewise.
6427         * doc/posix-functions/posix_madvise.texi: Likewise.
6428         * doc/posix-functions/posix_memalign.texi: Likewise.
6429         * doc/posix-functions/posix_openpt.texi: Likewise.
6430         * doc/posix-functions/readlinkat.texi: Likewise.
6431         * doc/posix-functions/remque.texi: Likewise.
6432         * doc/posix-functions/renameat.texi: Likewise.
6433         * doc/posix-functions/rintl.texi: Likewise.
6434         * doc/posix-functions/sem_unlink.texi: Likewise.
6435         * doc/posix-functions/shm_open.texi: Likewise.
6436         * doc/posix-functions/shm_unlink.texi: Likewise.
6437         * doc/posix-functions/signgam.texi: Likewise.
6438         * doc/posix-functions/sigset.texi: Likewise.
6439         * doc/posix-functions/stpcpy.texi: Likewise.
6440         * doc/posix-functions/stpncpy.texi: Likewise.
6441         * doc/posix-functions/strerror.texi: Likewise.
6442         * doc/posix-functions/strtod.texi: Likewise.
6443         * doc/posix-functions/symlinkat.texi: Likewise.
6444         * doc/posix-functions/unlinkat.texi: Likewise.
6445         * doc/posix-functions/utimensat.texi: Likewise.
6446         * doc/glibc-functions/bindresvport.texi: Likewise.
6447         * doc/glibc-functions/dn_expand.texi: Likewise.
6448         * doc/glibc-functions/exp10.texi: Likewise.
6449         * doc/glibc-functions/exp10f.texi: Likewise.
6450         * doc/glibc-functions/fgetxattr.texi: Likewise.
6451         * doc/glibc-functions/flistxattr.texi: Likewise.
6452         * doc/glibc-functions/fopencookie.texi: Likewise.
6453         * doc/glibc-functions/freeifaddrs.texi: Likewise.
6454         * doc/glibc-functions/fremovexattr.texi: Likewise.
6455         * doc/glibc-functions/fsetxattr.texi: Likewise.
6456         * doc/glibc-functions/getifaddrs.texi: Likewise.
6457         * doc/glibc-functions/getxattr.texi: Likewise.
6458         * doc/glibc-functions/lgetxattr.texi: Likewise.
6459         * doc/glibc-functions/listxattr.texi: Likewise.
6460         * doc/glibc-functions/llistxattr.texi: Likewise.
6461         * doc/glibc-functions/lremovexattr.texi: Likewise.
6462         * doc/glibc-functions/lsetxattr.texi: Likewise.
6463         * doc/glibc-functions/pow10.texi: Likewise.
6464         * doc/glibc-functions/pow10f.texi: Likewise.
6465         * doc/glibc-functions/rcmd_af.texi: Likewise.
6466         * doc/glibc-functions/removexattr.texi: Likewise.
6467         * doc/glibc-functions/res_init.texi: Likewise.
6468         * doc/glibc-functions/res_mkquery.texi: Likewise.
6469         * doc/glibc-functions/res_query.texi: Likewise.
6470         * doc/glibc-functions/res_querydomain.texi: Likewise.
6471         * doc/glibc-functions/res_send.texi: Likewise.
6472         * doc/glibc-functions/rresvport_af.texi: Likewise.
6473         * doc/glibc-functions/setxattr.texi: Likewise.
6474         * doc/glibc-functions/strcasestr.texi: Likewise.
6475
6476 2008-12-15  Bruno Haible  <bruno@clisp.org>
6477
6478         Fix compilation error on OSF/1 4.0.
6479         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
6480         <sys/time.h>, simply delegate to the system header.
6481         Reported by Daniel Richard G. <oss@teragram.com>.
6482
6483 2008-12-15  Bruno Haible  <bruno@clisp.org>
6484
6485         * doc/posix-functions/openat.texi: Mention the 'openat' module.
6486         * doc/posix-functions/fchmodat.texi: Likewise.
6487         * doc/posix-functions/fchownat.texi: Likewise.
6488         * doc/posix-functions/fdopendir.texi: Likewise.
6489         * doc/posix-functions/fstatat.texi: Likewise.
6490         * doc/posix-functions/mkdirat.texi: Likewise.
6491         * doc/posix-functions/unlinkat.texi: Likewise.
6492
6493 2008-12-14  Bruno Haible  <bruno@clisp.org>
6494
6495         Update doc for POSIX:2008.
6496         * doc/posix-functions/faccessat.texi: New file.
6497         * doc/posix-functions/fchmodat.texi: New file.
6498         * doc/posix-functions/fchownat.texi: New file.
6499         * doc/posix-functions/fdopendir.texi: New file.
6500         * doc/posix-functions/fstatat.texi: New file.
6501         * doc/posix-functions/futimens.texi: New file.
6502         * doc/posix-functions/linkat.texi: New file.
6503         * doc/posix-functions/mkdirat.texi: New file.
6504         * doc/posix-functions/mkfifoat.texi: New file.
6505         * doc/posix-functions/mknodat.texi: New file.
6506         * doc/posix-functions/open_wmemstream.texi: New file.
6507         * doc/posix-functions/openat.texi: New file.
6508         * doc/posix-functions/psiginfo.texi: New file.
6509         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
6510         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
6511         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
6512         * doc/posix-functions/readlinkat.texi: New file.
6513         * doc/posix-functions/renameat.texi: New file.
6514         * doc/posix-functions/strerror_l.texi: New file.
6515         * doc/posix-functions/symlinkat.texi: New file.
6516         * doc/posix-functions/unlinkat.texi: New file.
6517         * doc/posix-functions/utimensat.texi: New file.
6518         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6519
6520 2008-12-14  Bruno Haible  <bruno@clisp.org>
6521
6522         Update doc for POSIX:2008.
6523         * doc/posix-functions/alphasort.texi: Renamed from
6524         doc/glibc-functions/alphasort.texi.
6525         * doc/posix-functions/dirfd.texi: Renamed from
6526         doc/glibc-functions/dirfd.texi.
6527         * doc/posix-functions/dprintf.texi: Renamed from
6528         doc/glibc-functions/dprintf.texi.
6529         * doc/posix-functions/duplocale.texi: Renamed from
6530         doc/glibc-functions/duplocale.texi.
6531         * doc/posix-functions/fexecve.texi: Renamed from
6532         doc/glibc-functions/fexecve.texi.
6533         * doc/posix-functions/fmemopen.texi: Renamed from
6534         doc/glibc-functions/fmemopen.texi.
6535         * doc/posix-functions/freelocale.texi: Renamed from
6536         doc/glibc-functions/freelocale.texi.
6537         * doc/posix-functions/getdate_err.texi: Renamed from
6538         doc/glibc-functions/getdate_err.texi.
6539         * doc/posix-functions/isalnum_l.texi: Renamed from
6540         doc/glibc-functions/isalnum_l.texi.
6541         * doc/posix-functions/isalpha_l.texi: Renamed from
6542         doc/glibc-functions/isalpha_l.texi.
6543         * doc/posix-functions/isblank_l.texi: Renamed from
6544         doc/glibc-functions/isblank_l.texi.
6545         * doc/posix-functions/iscntrl_l.texi: Renamed from
6546         doc/glibc-functions/iscntrl_l.texi.
6547         * doc/posix-functions/isdigit_l.texi: Renamed from
6548         doc/glibc-functions/isdigit_l.texi.
6549         * doc/posix-functions/isgraph_l.texi: Renamed from
6550         doc/glibc-functions/isgraph_l.texi.
6551         * doc/posix-functions/islower_l.texi: Renamed from
6552         doc/glibc-functions/islower_l.texi.
6553         * doc/posix-functions/isprint_l.texi: Renamed from
6554         doc/glibc-functions/isprint_l.texi.
6555         * doc/posix-functions/ispunct_l.texi: Renamed from
6556         doc/glibc-functions/ispunct_l.texi.
6557         * doc/posix-functions/isspace_l.texi: Renamed from
6558         doc/glibc-functions/isspace_l.texi.
6559         * doc/posix-functions/isupper_l.texi: Renamed from
6560         doc/glibc-functions/isupper_l.texi.
6561         * doc/posix-functions/iswalnum_l.texi: Renamed from
6562         doc/glibc-functions/iswalnum_l.texi.
6563         * doc/posix-functions/iswalpha_l.texi: Renamed from
6564         doc/glibc-functions/iswalpha_l.texi.
6565         * doc/posix-functions/iswblank_l.texi: Renamed from
6566         doc/glibc-functions/iswblank_l.texi.
6567         * doc/posix-functions/iswcntrl_l.texi: Renamed from
6568         doc/glibc-functions/iswcntrl_l.texi.
6569         * doc/posix-functions/iswctype_l.texi: Renamed from
6570         doc/glibc-functions/iswctype_l.texi.
6571         * doc/posix-functions/iswdigit_l.texi: Renamed from
6572         doc/glibc-functions/iswdigit_l.texi.
6573         * doc/posix-functions/iswgraph_l.texi: Renamed from
6574         doc/glibc-functions/iswgraph_l.texi.
6575         * doc/posix-functions/iswlower_l.texi: Renamed from
6576         doc/glibc-functions/iswlower_l.texi.
6577         * doc/posix-functions/iswprint_l.texi: Renamed from
6578         doc/glibc-functions/iswprint_l.texi.
6579         * doc/posix-functions/iswpunct_l.texi: Renamed from
6580         doc/glibc-functions/iswpunct_l.texi.
6581         * doc/posix-functions/iswspace_l.texi: Renamed from
6582         doc/glibc-functions/iswspace_l.texi.
6583         * doc/posix-functions/iswupper_l.texi: Renamed from
6584         doc/glibc-functions/iswupper_l.texi.
6585         * doc/posix-functions/iswxdigit_l.texi: Renamed from
6586         doc/glibc-functions/iswxdigit_l.texi.
6587         * doc/posix-functions/isxdigit_l.texi: Renamed from
6588         doc/glibc-functions/isxdigit_l.texi.
6589         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
6590         doc/glibc-functions/mbsnrtowcs.texi.
6591         * doc/posix-functions/mkdtemp.texi: Renamed from
6592         doc/glibc-functions/mkdtemp.texi.
6593         * doc/posix-functions/newlocale.texi: Renamed from
6594         doc/glibc-functions/newlocale.texi.
6595         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
6596         doc/glibc-functions/nl_langinfo_l.texi.
6597         * doc/posix-functions/open_memstream.texi: Renamed from
6598         doc/glibc-functions/open_memstream.texi.
6599         * doc/posix-functions/opterr.texi: Renamed from
6600         doc/glibc-functions/opterr.texi.
6601         * doc/posix-functions/optind.texi: Renamed from
6602         doc/glibc-functions/optind.texi.
6603         * doc/posix-functions/optopt.texi: Renamed from
6604         doc/glibc-functions/optopt.texi.
6605         * doc/posix-functions/psignal.texi: Renamed from
6606         doc/glibc-functions/psignal.texi.
6607         * doc/posix-functions/scandir.texi: Renamed from
6608         doc/glibc-functions/scandir.texi.
6609         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
6610         doc/glibc-functions/sched_get_priority_min.texi.
6611         * doc/posix-functions/signgam.texi: Renamed from
6612         doc/glibc-functions/signgam.texi.
6613         * doc/posix-functions/stpcpy.texi: Renamed from
6614         doc/glibc-functions/stpcpy.texi.
6615         * doc/posix-functions/stpncpy.texi: Renamed from
6616         doc/glibc-functions/stpncpy.texi.
6617         * doc/posix-functions/strcasecmp_l.texi: Renamed from
6618         doc/glibc-functions/strcasecmp_l.texi.
6619         * doc/posix-functions/strcoll_l.texi: Renamed from
6620         doc/glibc-functions/strcoll_l.texi.
6621         * doc/posix-functions/strfmon_l.texi: Renamed from
6622         doc/glibc-functions/strfmon_l.texi.
6623         * doc/posix-functions/strftime_l.texi: Renamed from
6624         doc/glibc-functions/strftime_l.texi.
6625         * doc/posix-functions/strncasecmp_l.texi: Renamed from
6626         doc/glibc-functions/strncasecmp_l.texi.
6627         * doc/posix-functions/strndup.texi: Renamed from
6628         doc/glibc-functions/strndup.texi.
6629         * doc/posix-functions/strnlen.texi: Renamed from
6630         doc/glibc-functions/strnlen.texi.
6631         * doc/posix-functions/strsignal.texi: Renamed from
6632         doc/glibc-functions/strsignal.texi.
6633         * doc/posix-functions/strxfrm_l.texi: Renamed from
6634         doc/glibc-functions/strxfrm_l.texi.
6635         * doc/posix-functions/timer_gettime.texi: Renamed from
6636         doc/glibc-functions/timer_gettime.texi.
6637         * doc/posix-functions/tolower_l.texi: Renamed from
6638         doc/glibc-functions/tolower_l.texi.
6639         * doc/posix-functions/toupper_l.texi: Renamed from
6640         doc/glibc-functions/toupper_l.texi.
6641         * doc/posix-functions/towctrans_l.texi: Renamed from
6642         doc/glibc-functions/towctrans_l.texi.
6643         * doc/posix-functions/towlower_l.texi: Renamed from
6644         doc/glibc-functions/towlower_l.texi.
6645         * doc/posix-functions/towupper_l.texi: Renamed from
6646         doc/glibc-functions/towupper_l.texi.
6647         * doc/posix-functions/uselocale.texi: Renamed from
6648         doc/glibc-functions/uselocale.texi.
6649         * doc/posix-functions/vdprintf.texi: Renamed from
6650         doc/glibc-functions/vdprintf.texi.
6651         * doc/posix-functions/wcpcpy.texi:
6652         Renamed from doc/glibc-functions/wcpcpy.texi.
6653         * doc/posix-functions/wcpncpy.texi: Renamed from
6654         doc/glibc-functions/wcpncpy.texi.
6655         * doc/posix-functions/wcscasecmp.texi: Renamed from
6656         doc/glibc-functions/wcscasecmp.texi.
6657         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
6658         doc/glibc-functions/wcscasecmp_l.texi.
6659         * doc/posix-functions/wcscoll_l.texi: Renamed from
6660         doc/glibc-functions/wcscoll_l.texi.
6661         * doc/posix-functions/wcsdup.texi: Renamed from
6662         doc/glibc-functions/wcsdup.texi.
6663         * doc/posix-functions/wcsncasecmp.texi: Renamed from
6664         doc/glibc-functions/wcsncasecmp.texi.
6665         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
6666         doc/glibc-functions/wcsncasecmp_l.texi.
6667         * doc/posix-functions/wcsnlen.texi: Renamed from
6668         doc/glibc-functions/wcsnlen.texi.
6669         * doc/posix-functions/wcsnrtombs.texi: Renamed from
6670         doc/glibc-functions/wcsnrtombs.texi.
6671         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
6672         doc/glibc-functions/wcsxfrm_l.texi.
6673         * doc/posix-functions/wctrans_l.texi: Renamed from
6674         doc/glibc-functions/wctrans_l.texi.
6675         * doc/posix-functions/wctype_l.texi: Renamed from
6676         doc/glibc-functions/wctype_l.texi.
6677         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6678         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
6679         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
6680         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
6681         these subsections.
6682         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
6683         Remove sections.
6684
6685 2008-12-14  Bruno Haible  <bruno@clisp.org>
6686
6687         Update doc for POSIX:2008.
6688         * doc/posix-functions/*.texi: Update URL of POSIX specification.
6689
6690 2008-12-14  Bruno Haible  <bruno@clisp.org>
6691
6692         Update doc for POSIX:2008.
6693         * doc/pastposix-functions/bcmp.texi: Renamed from
6694         doc/posix-functions/bcmp.texi.
6695         * doc/pastposix-functions/bcopy.texi: Renamed from
6696         doc/posix-functions/bcopy.texi.
6697         * doc/pastposix-functions/bsd_signal.texi: Renamed from
6698         doc/posix-functions/bsd_signal.texi.
6699         * doc/pastposix-functions/bzero.texi: Renamed from
6700         doc/posix-functions/bzero.texi.
6701         * doc/pastposix-functions/ecvt.texi: Renamed from
6702         doc/posix-functions/ecvt.texi.
6703         * doc/pastposix-functions/fcvt.texi: Renamed from
6704         doc/posix-functions/fcvt.texi.
6705         * doc/pastposix-functions/ftime.texi: Renamed from
6706         doc/posix-functions/ftime.texi.
6707         * doc/pastposix-functions/gcvt.texi: Renamed from
6708         doc/posix-functions/gcvt.texi.
6709         * doc/pastposix-functions/getcontext.texi: Renamed from
6710         doc/posix-functions/getcontext.texi.
6711         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
6712         doc/posix-functions/gethostbyaddr.texi.
6713         * doc/pastposix-functions/gethostbyname.texi: Renamed from
6714         doc/posix-functions/gethostbyname.texi.
6715         * doc/pastposix-functions/getwd.texi: Renamed from
6716         doc/posix-functions/getwd.texi.
6717         * doc/pastposix-functions/h_errno.texi: Renamed from
6718         doc/posix-functions/h_errno.texi.
6719         * doc/pastposix-functions/index.texi: Renamed from
6720         doc/posix-functions/index.texi.
6721         * doc/pastposix-functions/makecontext.texi: Renamed from
6722         doc/posix-functions/makecontext.texi.
6723         * doc/pastposix-functions/mktemp.texi: Renamed from
6724         doc/posix-functions/mktemp.texi.
6725         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
6726         doc/posix-functions/pthread_attr_getstackaddr.texi.
6727         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
6728         doc/posix-functions/pthread_attr_setstackaddr.texi.
6729         * doc/pastposix-functions/rindex.texi: Renamed from
6730         doc/posix-functions/rindex.texi.
6731         * doc/pastposix-functions/scalb.texi: Renamed from
6732         doc/posix-functions/scalb.texi.
6733         * doc/pastposix-functions/setcontext.texi: Renamed from
6734         doc/posix-functions/setcontext.texi.
6735         * doc/pastposix-functions/swapcontext.texi: Renamed from
6736         doc/posix-functions/swapcontext.texi.
6737         * doc/pastposix-functions/ualarm.texi: Renamed from
6738         doc/posix-functions/ualarm.texi.
6739         * doc/pastposix-functions/usleep.texi: Renamed from
6740         doc/posix-functions/usleep.texi.
6741         * doc/pastposix-functions/vfork.texi: Renamed from
6742         doc/posix-functions/vfork.texi.
6743         * doc/pastposix-functions/wcswcs.texi: Renamed from
6744         doc/posix-functions/wcswcs.texi.
6745         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
6746         (Function Substitutes): Update.
6747
6748 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6749
6750         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
6751         m4/strerror.m4.
6752
6753 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6754             Bruno Haible  <bruno@clisp.org>
6755
6756         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
6757
6758 2008-12-13  Bruno Haible  <bruno@clisp.org>
6759
6760         * modules/strtoull (Depends-on): Remove unistd.
6761
6762 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6763
6764         * modules/strtoull (Depends-on): Add stdlib.
6765
6766 2008-12-11  Simon Josefsson  <simon@josefsson.org>
6767
6768         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
6769
6770 2008-12-10  Jim Meyering  <meyering@redhat.com>
6771
6772         gl_ASSERT: don't say assertions are disabled when they're not
6773         * m4/assert.m4 (gl_ASSERT): Do not make configure report
6774         "checking whether to enable assertions... no", when they are in
6775         fact enabled.  This is solely a bug in the output of configure.
6776         In spite of saying "no", NDEBUG was not defined in that case.
6777         Also, as noted by Eric Blake, leave assertions enabled upon
6778         --enable-assert=INVALID.
6779
6780 2008-12-10  Bruno Haible  <bruno@clisp.org>
6781
6782         Change MODULES.html to refer to POSIX:2008 where possible.
6783         * MODULES.html.sh (POSIX2008_URL): New variable.
6784         (posix_headers): Remove sys/timeb, ucontext.
6785         (posix2001_headers): New variable.
6786         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
6787         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
6788         index, makecontext, mktemp, pthread_attr_getstackaddr,
6789         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
6790         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
6791         (posix2001_functions): New variable.
6792         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
6793         otherwise.
6794
6795 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6796
6797         add missing include to parse-duration.c
6798         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
6799         * modules/parse-duration (Depends-on): Add xalloc.
6800
6801         fix sed script reading maint.mk
6802         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
6803         (syntax-check-rules): Use it.
6804
6805 2008-12-09  Bruno Haible  <bruno@clisp.org>
6806
6807         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
6808         MacOS X 10.4/PowerPC.
6809         Reported by Simon Josefsson.
6810
6811 2008-12-08  Jim Meyering  <meyering@redhat.com>
6812
6813         work around mingw's lack of some S_IF definitions
6814         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
6815         Reported by Simon Josefsson.
6816
6817 2008-12-08  Bruno Haible  <bruno@clisp.org>
6818
6819         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
6820         applied to variables. Needed on MacOS X 10.4/PowerPC.
6821         Reported by Simon Josefsson.
6822
6823 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
6824         and Eric Blake  <ebb9@byu.net>
6825
6826         assert: honor --enable-assert
6827         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
6828         order to honor --enable-assert, rather than treating it as a
6829         synonym for --disable-assert.
6830
6831 2008-12-08  Jim Meyering  <meyering@redhat.com>
6832
6833         * lib/posixtm.c: Remove now-useless declaration of mktime.
6834
6835         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
6836
6837 2008-12-07  Bruno Haible  <bruno@clisp.org>
6838
6839         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
6840         test_once): Mark functions as static.
6841         * tests/test-tls.c (test_tls): Likewise.
6842
6843 2008-12-07  Bruno Haible  <bruno@clisp.org>
6844
6845         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
6846         iconv_register_autodetect.
6847
6848 2008-12-07  Jim Meyering  <meyering@redhat.com>
6849
6850         posixtm.c: avoid a warning
6851         * lib/posixtm.c (posixtime): Don't initialize tm0.
6852         It's no longer needed to placate gcc4's -Wuninitialized,
6853         and the attempt to placate would elicit a new warning.
6854
6855         unicodeio.c: mark unused parameters
6856         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
6857         (fallback_failure_callback): Likewise.
6858
6859 2008-12-07  Bruno Haible  <bruno@clisp.org>
6860
6861         * gnulib-tool (func_create_testdir): When building the tests
6862         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
6863         Reported by Simon Josefsson.
6864
6865 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6866
6867         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
6868
6869 2008-12-06  Bruno Haible  <bruno@clisp.org>
6870
6871         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
6872         Suggested by Eric Blake.
6873
6874 2008-12-06  Bruno Haible  <bruno@clisp.org>
6875
6876         Fix a c-stack test failure on MacOS X.
6877         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
6878         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
6879         handler for SIGBUS as well.
6880         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
6881         install a signal handler for SIGBUS as well.
6882         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
6883
6884 2008-12-06  Bruno Haible  <bruno@clisp.org>
6885
6886         Advocacy documentation.
6887         * doc/gnulib-intro.texi (Benefits): New section.
6888         * doc/gnulib.texi: Update.
6889
6890 2008-12-06  Bruno Haible  <bruno@clisp.org>
6891
6892         Document the 'manywarnings' module.
6893         * doc/manywarnings.texi: New file.
6894         * doc/gnulib.texi: Include it.
6895
6896 2008-12-05  Eric Blake  <ebb9@byu.net>
6897
6898         tests: silence some gcc warnings
6899         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
6900         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
6901         type mismatches.
6902
6903 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6904             Bruno Haible  <bruno@clisp.org>
6905
6906         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
6907
6908 2008-11-29  Jim Meyering  <meyering@redhat.com>
6909
6910         unicodeio.c: mark unused parameters
6911         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
6912         (fallback_failure_callback): Likewise.
6913
6914         fts: fix a thinko
6915         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
6916         (set_stat_type): Return S_IF*-valued "type" directly.
6917         Prompted by James Youngman's spotting a related bug.
6918         Confirmed by further testing through find.
6919
6920         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
6921         * lib/fts.c (D_TYPE): Define.
6922         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
6923         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
6924         (s_ifmt_shift_bits): New function.
6925         (set_stat_type): New function.
6926         (fts_build): When not calling fts_stat, call set_stat_type
6927         to propagate dirent.d_type info to fts_read caller.
6928         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
6929         fts_statp->st_mode type information may be valid.
6930
6931 2008-11-28  Simon Josefsson  <simon@josefsson.org>
6932
6933         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
6934         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
6935         <sds@gnu.org>.
6936
6937 2008-11-20  Bruno Haible  <bruno@clisp.org>
6938
6939         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
6940         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
6941         INCLUDE_NEXT.
6942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
6943         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
6944         * modules/math (Makefile.am): Substitute
6945         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
6946         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6947
6948 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
6949             Bruno Haible  <bruno@clisp.org>
6950
6951         * lib/stdint.in.h: Define all type macros so that their expansion is
6952         a single typedef'ed token. Fixes a compilation failure in Boost which
6953         does "using ::int8_t;".
6954
6955 2008-11-18  Simon Josefsson  <simon@josefsson.org>
6956
6957         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
6958         gl_MANYWARN_ALL_GCC.
6959         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
6960         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
6961         * modules/manywarnings: New file.
6962         * MODULES.html.sh: Mention manywarnings module.
6963
6964 2008-11-18  Bruno Haible  <bruno@clisp.org>
6965
6966         * doc/gnulib-tool.texi (Unit tests): New section.
6967
6968 2008-11-18  Simon Josefsson  <simon@josefsson.org>
6969
6970         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
6971         paths like 'lib/po/foo.po'.
6972
6973 2008-11-17  Simon Josefsson  <simon@josefsson.org>
6974
6975         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
6976         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
6977
6978 2008-11-17  Simon Josefsson  <simon@josefsson.org>
6979
6980         * m4/warnings.m4: Use CPPFLAGS to really check whether the
6981         parameter works.
6982
6983 2008-11-17  Simon Josefsson  <simon@josefsson.org>
6984
6985         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
6986
6987 2008-11-17  Bruce Korb  <bkorb@gnu.org>
6988
6989         * modules/parse-duration-tests: New file.
6990         * tests/test-parse-duration.sh: New file.
6991         * tests/test-parse-duration.c: New file.
6992
6993         New module 'parse-duration'.
6994         * lib/parse-duration.h: New file.
6995         * lib/parse-duration.c: New file.
6996         * modules/parse-duration: New file.
6997
6998 2008-11-17  Bruno Haible  <bruno@clisp.org>
6999
7000         * tests/test-select-out.sh: Comment out the first pipe test.
7001         Reported by Simon Josefsson.
7002
7003 2008-11-17  Bruno Haible  <bruno@clisp.org>
7004
7005         * modules/getaddrinfo (Depends-on): Add servent, hostent.
7006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
7007         gl_HOSTENT.
7008
7009 2008-11-17  Bruno Haible  <bruno@clisp.org>
7010
7011         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
7012         -lnetwork and -lnet. Needed for Haiku and BeOS.
7013
7014 2008-11-16  Bruno Haible  <bruno@clisp.org>
7015
7016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
7017
7018 2008-11-16  Bruno Haible  <bruno@clisp.org>
7019
7020         Avoid test failure on Haiku.
7021         * tests/test-fsync.c: Include <errno.h>.
7022         (main): Don't require that fsync (0) fails.
7023
7024 2008-11-15  Bruno Haible  <bruno@clisp.org>
7025
7026         New module 'hostent'.
7027         * modules/hostent: New file.
7028         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
7029
7030 2008-11-15  Bruno Haible  <bruno@clisp.org>
7031
7032         New module 'servent'.
7033         * modules/servent: New file.
7034         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
7035
7036 2008-11-15  Bruno Haible  <bruno@clisp.org>
7037
7038         Avoid generating same test program with two different rules.
7039         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
7040         test-frexp to test-frexp-nolibm.
7041         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
7042         test-frexpl to test-frexpl-nolibm.
7043
7044 2008-11-15  Bruno Haible  <bruno@clisp.org>
7045
7046         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
7047         $(FREXPL_LIBM).
7048
7049 2008-11-15  Bruno Haible  <bruno@clisp.org>
7050
7051         * lib/netdb.in.h: Activate the definitions also when the system's
7052         <netdb.h> has 'struct addrinfo'.
7053         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
7054         EAI_OVERFLOW or AI_NUMERICSERV.
7055         * doc/posix-headers/netdb.texi: Document the problem.
7056
7057 2008-11-15  Bruno Haible  <bruno@clisp.org>
7058
7059         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
7060
7061         Make the 'sched' module work on platforms where <sched.h> exists but
7062         is incomplete (such as Haiku).
7063         * lib/sched.in.h; Include the system's <sched.h> if it exists.
7064         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
7065         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
7066         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
7067         HAVE_STRUCT_SCHED_PARAM.
7068         * modules/sched (Depends-on): Add include_next.
7069         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
7070         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
7071         * doc/posix-headers/sched.texi: Document the issue.
7072
7073 2008-11-13  Jim Meyering  <meyering@redhat.com>
7074
7075         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
7076         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
7077         test would fail due to the difference in the Report bugs to ...
7078         line.  The expected address is empty, "<>", while the actual
7079         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
7080
7081 2008-11-12  Bruno Haible  <bruno@clisp.org>
7082
7083         lstat: don't compile lstat.c on systems lacking lstat
7084         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
7085         which don't have lstat; this is handled by lib/sys_stat.in.h already.
7086         Reported by Daniel P. Berrange via Jim Meyering.
7087
7088 2008-11-12  Jim Meyering  <meyering@redhat.com>
7089
7090         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
7091
7092 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7093
7094         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
7095         instead.
7096
7097 2008-11-12  Bruno Haible  <bruno@clisp.org>
7098
7099         * lib/unicodeio.c: Include unistr.h.
7100         (utf8_wctomb): Remove function.
7101         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
7102
7103 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7104
7105         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
7106         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
7107         <bruno@clisp.org>.
7108         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
7109
7110 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7111
7112         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
7113         * doc/gnulib.texi: Add section for warnings.
7114
7115 2008-11-11  Bruno Haible  <bruno@clisp.org>
7116
7117         * lib/sockets.h: Add a comment.
7118
7119 2008-11-11  Karl Berry  <karl@gnu.org>
7120
7121         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
7122
7123 2008-11-11  Eric Blake  <ebb9@byu.net>
7124
7125         fdl.texi: avoid git symlinks
7126         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
7127
7128 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7129
7130         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
7131
7132 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7133
7134         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
7135         (gl_WARN_ADD): Substitute $2 if literal.
7136
7137 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7138
7139         * m4/warning.m4: Remove.
7140
7141 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7142
7143         * m4/warnings.m4: Almost complete rewrite. :-)
7144
7145 2008-11-10  Simon Josefsson  <simon@josefsson.org>
7146
7147         * modules/warnings: New module.
7148         * m4/warnings.m4: New file.
7149         * MODULES.html.sh: Mention warnings module.
7150         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
7151         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7152
7153 2008-11-10  Eric Blake  <ebb9@byu.net>
7154
7155         fdl.texi: make a symlink to the latest version
7156         * doc/standards.texi: Revert today's earlier change.
7157         * doc/fdl-1.2.texi: Rename from old fdl.texi...
7158         * doc/fdl.texi: ...and replace this with a symlink to the newer
7159         fdl-1.3.texi.
7160
7161 2008-11-10  Bruno Haible  <bruno@clisp.org>
7162
7163         * tests/test-select-fd.c (main): Accept the result file name as fourth
7164         argument.
7165         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
7166         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
7167
7168 2008-11-10  Bruno Haible  <bruno@clisp.org>
7169
7170         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
7171         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
7172         as autoconf-substituted macros.
7173         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
7174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
7175         gl_NETDB_H_DEFAULTS. Set these variables.
7176         * modules/netdb (Makefile.am): Substitute these variables.
7177
7178 2008-11-10  Eric Blake  <ebb9@byu.net>
7179
7180         standards.texi: include correct file for FDL 1.3
7181         * doc/standards.texi (GNU Free Documentation License): Change
7182         include file to pull in FDL 1.3, not 1.2.
7183
7184         fdl.texi: revert accidental change to license
7185         * doc/fdl.texi: This is FDL 1.2, not 1.3.
7186
7187 2008-11-10  Bruno Haible  <bruno@clisp.org>
7188
7189         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
7190         cross-compiling guesses also when the native compile gives no result.
7191
7192 2008-11-10  Bruno Haible  <bruno@clisp.org>
7193
7194         * lib/spawni.c (__spawni): Force variable into the stack.
7195
7196 2008-11-10  Bruno Haible  <bruno@clisp.org>
7197
7198         Add support for Haiku.
7199         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
7200         glibc and BeOS, but also on Haiku.
7201         * lib/fpurge.c (fpurge): Likewise.
7202         * lib/freadable.c (freadable): Likewise.
7203         * lib/freadahead.c (freadahead): Likewise.
7204         * lib/freading.c (freading): Likewise.
7205         * lib/freadptr.c (freadptr): Likewise.
7206         * lib/freadseek.c (freadptrinc): Likewise.
7207         * lib/fseeko.c (rpl_fseeko): Likewise.
7208         * lib/fseterr.c (fseterr): Likewise.
7209         * lib/fwritable.c (fwritable): Likewise.
7210         * lib/fwriting.c (fwriting): Likewise.
7211         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
7212
7213 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7214
7215         * lib/config.charset: Treat Haiku like BeOS.
7216
7217 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7218
7219         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
7220         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
7221
7222 2008-11-08  Bruno Haible  <bruno@clisp.org>
7223
7224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
7225         AC_CACHE_CHECK.
7226
7227 2008-11-08  Bruno Haible  <bruno@clisp.org>
7228
7229         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
7230
7231 2008-11-08  Bruno Haible  <bruno@clisp.org>
7232
7233         * tests/test-select-fd.c: New file.
7234         * tests/test-select-in.sh: New file.
7235         * tests/test-select-out.sh: New file.
7236         * tests/test-select-stdin.c: New file.
7237         * modules/select-tests (Files): Add the new files.
7238         (Depends-on): Add gettimeofday.
7239         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
7240         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
7241         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
7242
7243 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
7244             Bruno Haible  <bruno@clisp.org>
7245
7246         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
7247
7248 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
7249
7250         * build-aux/pmccabe2html: Added support for C++ source files.
7251
7252 2008-11-05  Ben Pfaff  <blp@gnu.org>
7253
7254         Fix lib/close.c build on Windows.
7255         * modules/close (Files): Add lib/w32sock.h.
7256
7257 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
7258
7259         Accept Bison's NEWS format.
7260         * build-aux/announce-gen (print_news_deltas): Tweak
7261         $re_prefix.
7262
7263 2008-11-04  Bruno Haible  <bruno@clisp.org>
7264
7265         * modules/random_r (Maintainer): Add glibc.
7266
7267 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7268
7269         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
7270         by karl@freefriends.org (Karl Berry).
7271         * doc/alloca.texi: Likewise.
7272         * doc/c-ctype.texi: Likewise.
7273         * doc/c-strcase.texi: Likewise.
7274         * doc/c-strcaseeq.texi: Likewise.
7275         * doc/c-strcasestr.texi: Likewise.
7276         * doc/c-strstr.texi: Likewise.
7277         * doc/c-strtod.texi: Likewise.
7278         * doc/c-strtold.texi: Likewise.
7279         * doc/ctime.texi: Likewise.
7280         * doc/error.texi: Likewise.
7281         * doc/fdl.texi: Likewise.
7282         * doc/gcd.texi: Likewise.
7283         * doc/getdate.texi: Likewise.
7284         * doc/gnulib-intro.texi: Likewise.
7285         * doc/gnulib-tool.texi: Likewise.
7286         * doc/gnulib.texi: Likewise.
7287         * doc/inet_ntoa.texi: Likewise.
7288         * doc/maintain.texi: Likewise.
7289         * doc/make-stds.texi: Likewise.
7290         * doc/quote.texi: Likewise.
7291         * doc/regexprops-generic.texi: Likewise.
7292         * doc/standards.texi: Likewise.
7293         * doc/verify.texi: Likewise.
7294         * doc/visibility.texi: Likewise.
7295         * doc/gnulib.texi (GNU Free Documentation License): Include
7296         fdl-1.3.texi instead of fdl.texi.
7297
7298 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7299
7300         * doc/fdl-1.3.texi: New file, from
7301         <http://www.gnu.org/licenses/fdl-1.3.texi>.
7302         * modules/fdl-1.3: Add.
7303         * MODULES.html.sh: Add fdl-1.3.
7304
7305 2008-11-03  Bruno Haible  <bruno@clisp.org>
7306
7307         Make determination of absolute name of header file work with AIX xlc.
7308         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
7309         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
7310         preprocessing.
7311         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7312         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7313
7314 2008-11-03  Simon Josefsson  <simon@josefsson.org>
7315
7316         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
7317         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
7318         <ludo@gnu.org>.
7319
7320 2008-11-02  Bruno Haible  <bruno@clisp.org>
7321
7322         Mark 'strpbrk' obsolete.
7323         * modules/strpbrk (Status, Notice): New sections.
7324         * modules/strtok_r (Depends-on): Add strpbrk.
7325
7326 2008-11-02  Bruno Haible  <bruno@clisp.org>
7327
7328         Mark 'strdup' obsolete.
7329         * modules/strdup (Status, Notice): New sections.
7330         * modules/findprog (Depends-on): Add strdup.
7331         * modules/getaddrinfo (Depends-on): Likewise.
7332         * modules/localename (Depends-on): Likewise.
7333         * modules/relocatable-lib (Depends-on): Likewise.
7334         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
7335         * modules/relocatable-prog (Depends-on): Likewise.
7336         * modules/trim (Depends-on): Likewise.
7337         * modules/unictype/gen-ctype (Depends-on): Likewise.
7338         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7339
7340 2008-11-02  Bruno Haible  <bruno@clisp.org>
7341
7342         Mark 'strcspn' obsolete.
7343         * modules/strcspn (Status, Notice): New sections.
7344
7345 2008-11-02  Bruno Haible  <bruno@clisp.org>
7346
7347         Mark 'rmdir' obsolete.
7348         * modules/rmdir (Status, Notice): New sections.
7349         * modules/clean-temp (Depends-on): Add rmdir.
7350         * modules/openat (Depends-on): Likewise.
7351
7352 2008-11-02  Bruno Haible  <bruno@clisp.org>
7353
7354         Mark 'raise' obsolete.
7355         * modules/raise (Status, Notice): New sections.
7356         (Include): Specify <signal.h>.
7357         * modules/stdio (Depends-on): Add raise.
7358         * modules/write (Depends-on): Likewise.
7359
7360 2008-11-02  Bruno Haible  <bruno@clisp.org>
7361
7362         Mark 'memset' obsolete.
7363         * modules/memset (Status, Notice): New sections.
7364
7365 2008-11-02  Bruno Haible  <bruno@clisp.org>
7366
7367         Mark 'memmove' obsolete.
7368         * modules/memmove (Status, Notice): New sections.
7369         * modules/argp (Depends-on): Add memmove.
7370         * modules/argz (Depends-on): Likewise.
7371         * modules/canonicalize (Depends-on): Likewise.
7372         * modules/canonicalize-lgpl (Depends-on): Likewise.
7373         * modules/fts (Depends-on): Likewise.
7374         * modules/getcwd (Depends-on): Likewise.
7375         * modules/human (Depends-on): Likewise.
7376         * modules/regex (Depends-on): Likewise.
7377         * modules/striconveh (Depends-on): Likewise.
7378         * modules/trim (Depends-on): Likewise.
7379         * modules/unistr/u8-move (Depends-on): Likewise.
7380         * modules/unistr/u16-move (Depends-on): Likewise.
7381         * modules/unistr/u32-move (Depends-on): Likewise.
7382
7383 2008-11-02  Bruno Haible  <bruno@clisp.org>
7384
7385         Mark 'memcpy' obsolete.
7386         * modules/memcpy (Status, Notice): New sections.
7387
7388 2008-11-02  Bruno Haible  <bruno@clisp.org>
7389
7390         Mark 'memcmp' obsolete.
7391         * modules/memcmp (Status, Notice): New sections.
7392         * modules/argmatch (Depends-on): Add memchr.
7393         * modules/backupfile (Depends-on): Likewise.
7394         * modules/c-strcasestr (Depends-on): Likewise.
7395         * modules/crypto/des (Depends-on): Likewise.
7396         * modules/csharpcomp (Depends-on): Likewise.
7397         * modules/fnmatch (Depends-on): Likewise.
7398         * modules/git-merge-changelog (Depends-on): Likewise.
7399         * modules/isnand (Depends-on): Likewise.
7400         * modules/isnand-nolibm (Depends-on): Likewise.
7401         * modules/isnanf (Depends-on): Likewise.
7402         * modules/isnanf-nolibm (Depends-on): Likewise.
7403         * modules/isnanl (Depends-on): Likewise.
7404         * modules/isnanl-nolibm (Depends-on): Likewise.
7405         * modules/mbchar (Depends-on): Likewise.
7406         * modules/memcoll (Depends-on): Likewise.
7407         * modules/quotearg (Depends-on): Likewise.
7408         * modules/regex (Depends-on): Likewise.
7409         * modules/relocatable-prog (Depends-on): Likewise.
7410         * modules/same (Depends-on): Likewise.
7411         * modules/signbit (Depends-on): Likewise.
7412         * modules/strcasestr-simple (Depends-on): Likewise.
7413         * modules/unictype/gen-ctype (Depends-on): Likewise.
7414         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7415         * modules/uniname/uniname (Depends-on): Likewise.
7416         * modules/unistr/u8-cmp (Depends-on): Likewise.
7417
7418 2008-11-02  Bruno Haible  <bruno@clisp.org>
7419
7420         Mark 'memchr' obsolete.
7421         * modules/memchr (Status, Notice): New sections.
7422         * modules/argp (Depends-on): Add memchr.
7423         * modules/base64 (Depends-on): Likewise.
7424         * modules/c-strcasestr (Depends-on): Likewise.
7425         * modules/chdir-long (Depends-on): Likewise.
7426         * modules/fnmatch (Depends-on): Likewise.
7427         * modules/getsubopt (Depends-on): Likewise.
7428         * modules/git-merge-changelog (Depends-on): Likewise.
7429         * modules/glob (Depends-on): Likewise.
7430         * modules/strcasestr-simple (Depends-on): Likewise.
7431         * modules/strnlen (Depends-on): Likewise.
7432
7433 2008-11-02  Bruno Haible  <bruno@clisp.org>
7434
7435         Mark 'atexit' obsolete.
7436         * modules/atexit (Status, Notice): New sections.
7437         * modules/chdir-long (Depends-on): Add atexit.
7438         * modules/wait-process (Depends-on): Likewise.
7439
7440 2008-11-02  Bruno Haible  <bruno@clisp.org>
7441
7442         * gnulib-tool: New option --with-obsolete.
7443         (func_usage): Document it.
7444         (func_modules_transitive_closure): Drop obsolete dependencies if
7445         incobsolete is not true.
7446         (func_import): Read and save the incobsolete variable to the cache.
7447
7448 2008-11-02  Bruno Haible  <bruno@clisp.org>
7449
7450         * modules/TEMPLATE-EXTENDED: New field 'Status'.
7451         * gnulib-tool: New option --extract-status.
7452         (func_usage): Document it.
7453         (sed_extract_prog): Recognize it.
7454         (func_get_status): New function.
7455
7456 2008-10-30  Simon Josefsson  <simon@josefsson.org>
7457
7458         * modules/sockets (License): Change from LGPL to LGPLv2+.
7459
7460 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7461
7462         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
7463
7464 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7465
7466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7467         Mention times and sys_times.
7468         * modules/sys_times, modules/sys_times-tests: New modules.
7469         * modules/times, modules/times-tests: Likewise
7470         * m4/sys_times_h.m4: New file.
7471         * lib/sys_times.in.h: Likewise
7472         * lib/times.c: Likewise.
7473         * tests/test-sys_times.c: Likewise.
7474         * tests/test-times.c: Likewise.
7475         * doc/posix-headers/sys_times.texi: Update.
7476         * doc/posix-functions/times.texi: Update.
7477
7478 2008-10-28  Jim Meyering  <meyering@redhat.com>
7479
7480         * modules/tempname (Depends-on): Add lstat.
7481
7482         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
7483
7484 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7485
7486         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
7487         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
7488         using idiom used elsewhere in gnulib.
7489
7490 2008-10-27  Jim Meyering  <meyering@redhat.com>
7491
7492         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
7493
7494 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7495
7496         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
7497         TESTS_ENVIRONMENT, for shell scripts that needs to call built
7498         programs.
7499         * tests/test-argp-2.sh: Use $EXEEXT when needed.
7500
7501 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7502
7503         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
7504
7505 2008-10-27  Bruno Haible  <bruno@clisp.org>
7506
7507         * tests/test-lstat.c: Include <stdio.h>.
7508
7509 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7510
7511         * modules/lstat-tests: New module.
7512         * tests/test-lstat.c: New file.
7513
7514 2008-10-26  Jim Meyering  <meyering@redhat.com>
7515
7516         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
7517
7518 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7519             Bruno Haible  <bruno@clisp.org>
7520
7521         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
7522         * modules/configmake (Include): Add a note that the include must come
7523         after all system headers.
7524         * lib/javaversion.c: Include configmake.h after all other includes.
7525
7526 2008-10-26  Bruno Haible  <bruno@clisp.org>
7527
7528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
7529         HAVE_STRUCT_RANDOM_DATA to 1.
7530         (gl_STDLIB_H): Simplify.
7531
7532 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7533
7534         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
7535         substitute HAVE_STRUCT_RANDOM_DATA.
7536         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
7537         random_data.
7538         * modules/stdlib (Makefile.am): Substitute
7539         HAVE_STRUCT_RANDOM_DATA.
7540
7541 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7542
7543         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
7544         * doc/gnulib-intro.texi (Copyright): Likewise.
7545
7546 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7547
7548         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
7549         findings.
7550
7551 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
7552             Bruno Haible  <bruno@clisp.org>
7553
7554         * lib/unistd.in.h: Include <winsock2.h>.
7555         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
7556         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
7557         Provide dummy declarations.
7558         (gethostname): Override.
7559         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
7560         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
7561         gl_PREREQ_SYS_H_WINSOCK2.
7562         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
7563         * doc/posix-functions/gethostname.texi: More details.
7564
7565 2008-10-25  Bruno Haible  <bruno@clisp.org>
7566
7567         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
7568         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
7569         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
7570
7571         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
7572         here ...
7573         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
7574         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
7575         gl_UNISTD_H_DEFAULTS.
7576
7577 2008-10-25  Eric Blake  <ebb9@byu.net>
7578
7579         signbit: avoid spurious compiler failure
7580         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
7581         declarations inside function.
7582
7583 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7584             Bruno Haible  <bruno@clisp.org>
7585
7586         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
7587         * modules/random_r (Depends-on): Add stdint.
7588
7589 2008-10-24  Bruno Haible  <bruno@clisp.org>
7590
7591         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
7592         Eggert.
7593         * modules/strerror (License): Likewise.
7594
7595 2008-10-24  Jim Meyering  <meyering@redhat.com>
7596
7597         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
7598         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
7599
7600 2008-10-24  Eric Blake  <ebb9@byu.net>
7601
7602         getgroups: fix compilation when getgroups is available
7603         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
7604         but with <config.h> override of getgroups disabled.
7605
7606 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7607
7608         * doc/gnulib.texi (Header files): Add note about C++ problems.
7609         Explained by Bruno Haible <bruno@clisp.org>.
7610
7611 2008-10-23  Bruno Haible  <bruno@clisp.org>
7612
7613         Define a dummy SA_NODEFER macro on Interix.
7614         * lib/signal.in.h (SA_NODEFER): Define fallback.
7615         Reported by Aleksey Cheusov <cheusov@tut.by> via
7616         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
7617
7618 2008-10-23  Bruno Haible  <bruno@clisp.org>
7619
7620         * modules/freadahead (License): Change to LGPLv2+.
7621         Suggested by Simon Josefsson.
7622
7623 2008-10-23  Jim Meyering  <meyering@redhat.com>
7624
7625         random_r: new module
7626         * modules/random_r: New file.
7627         * m4/random_r.m4: New file.
7628         * lib/random_r.c: New file, from glibc.
7629         * modules/random_r-tests: New file.
7630         * tests/test-random_r.c: New file.
7631         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
7632          Declare.
7633         (RAND_MAX): Define.
7634         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
7635         * modules/stdlib: Substitute them, too.
7636         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
7637         * doc/glibc-functions/initstate_r.texi: Mention the new module.
7638         * doc/glibc-functions/random_r.texi: Likewise.
7639         * doc/glibc-functions/setstate_r.texi: Likewise.
7640         * doc/glibc-functions/srandom_r.texi: Likewise.
7641         * config/srclist.txt: Mention it.
7642
7643 2008-10-23  David Lutterkort  <lutter@redhat.com>
7644
7645         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
7646         link requirement
7647
7648 2008-10-23  Jim Meyering  <meyering@redhat.com>
7649
7650         selinux-h: mark parameters of stub functions as intentionally unused
7651         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
7652         * lib/se-context.in.h: Likewise.
7653
7654 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7655
7656         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
7657
7658 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7659
7660         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
7661
7662 2008-10-22  Eric Blake  <ebb9@byu.net>
7663
7664         glthread/thread: avoid compiler warning
7665         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
7666         Add unreachable abort to silence compiler.
7667
7668 2008-10-22  Eric Blake  <ebb9@byu.net>
7669
7670         netdb: also supply struct addrinfo for cygwin 1.5.x
7671         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
7672         older cygwin.
7673         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
7674         cygwin.
7675         * doc/posix-headers/netdb.texi (netdb.h): Document this.
7676
7677 2008-10-22  Bruno Haible  <bruno@clisp.org>
7678
7679         * users.txt: Update entry about pspp.
7680
7681 2008-10-21  Bruno Haible  <bruno@clisp.org>
7682
7683         Simplification.
7684         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
7685         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
7686
7687         Simplification.
7688         * lib/ioctl.c (ioctl): Don't undefine.
7689         * lib/socket.c (socket): Don't undefine.
7690
7691         Remove unused module indicator macros.
7692         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
7693         GNULIB_$1 as a C macro.
7694
7695         * doc/posix-functions/close.texi: Undo last change.
7696         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
7697         Windows platforms.
7698
7699 2008-10-21  Bruno Haible  <bruno@clisp.org>
7700
7701         Add gethostname() declaration to <unistd.h>.
7702         * lib/unistd.in.h (gethostname): New declaration.
7703         * lib/gethostname.c: Include <unistd.h>.
7704         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
7705         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
7706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
7707         and HAVE_GETHOSTNAME.
7708         * modules/gethostname (Depends-on): Add unistd.
7709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7710         (Include): Specify <unistd.h>.
7711         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
7712         HAVE_GETHOSTNAME.
7713         * tests/test-gethostname.c: Include <unistd.h> first.
7714
7715 2008-10-21  Bruno Haible  <bruno@clisp.org>
7716
7717         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
7718         * modules/select-tests (Depends-on): Likewise.
7719         Reported by Simon Josefsson.
7720
7721 2008-10-21  Simon Josefsson  <simon@josefsson.org>
7722
7723         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
7724         * lib/accept.c: New file, based on winsock.c.
7725         * lib/bind.c: New file, based on winsock.c.
7726         * lib/connect.c: New file, based on winsock.c.
7727         * lib/getpeername.c: New file, based on winsock.c.
7728         * lib/getsockname.c: New file, based on winsock.c.
7729         * lib/getsockopt.c: New file, based on winsock.c.
7730         * lib/ioctl.c: New file, based on winsock.c.
7731         * lib/listen.c: New file, based on winsock.c.
7732         * lib/recv.c: New file, based on winsock.c.
7733         * lib/recvfrom.c: New file, based on winsock.c.
7734         * lib/send.c: New file, based on winsock.c.
7735         * lib/sendto.c: New file, based on winsock.c.
7736         * lib/setsockopt.c: New file, based on winsock.c.
7737         * lib/shutdown.c: New file, based on winsock.c.
7738         * lib/socket.c: New file, based on winsock.c.
7739         * lib/w32sock.h: New file, based on winsock.c.
7740         * lib/winsock.c: Remove file.
7741         * modules/accept: Likewise.
7742         * modules/bind: Likewise.
7743         * modules/connect: Likewise.
7744         * modules/getpeername: Likewise.
7745         * modules/getsockname: Likewise.
7746         * modules/getsockopt: Likewise.
7747         * modules/ioctl: Likewise.
7748         * modules/listen: Likewise.
7749         * modules/recv: Likewise.
7750         * modules/recvfrom: Likewise.
7751         * modules/send: Likewise.
7752         * modules/sendto: Likewise.
7753         * modules/setsockopt: Likewise.
7754         * modules/shutdown: Likewise.
7755         * modules/socket: Use socket.c instead of winsock.c.
7756         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
7757         * doc/posix-functions/accept.texi: Doc fix.
7758         * doc/posix-functions/bind.texi: Doc fix.
7759         * doc/posix-functions/close.texi: Doc fix.
7760         * doc/posix-functions/connect.texi: Doc fix.
7761         * doc/posix-functions/getpeername.texi: Doc fix.
7762         * doc/posix-functions/getsockname.texi: Doc fix.
7763         * doc/posix-functions/getsockopt.texi: Doc fix.
7764         * doc/posix-functions/ioctl.texi: Doc fix.
7765         * doc/posix-functions/listen.texi: Doc fix.
7766         * doc/posix-functions/recv.texi: Doc fix.
7767         * doc/posix-functions/recvfrom.texi: Doc fix.
7768         * doc/posix-functions/send.texi: Doc fix.
7769         * doc/posix-functions/sendto.texi: Doc fix.
7770         * doc/posix-functions/setsockopt.texi: Doc fix.
7771         * doc/posix-functions/shutdown.texi: Doc fix.
7772         * doc/posix-functions/socket.texi: Doc fix.
7773
7774 2008-10-20  Bruno Haible  <bruno@clisp.org>
7775
7776         Take into account the role of SIGABRT_COMPAT on Windows 2008.
7777         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
7778         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
7779         as an alias for SIGABRT.
7780         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
7781         (sigaction): Map it to SIGABRT.
7782         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
7783
7784 2008-10-20  Bruno Haible  <bruno@clisp.org>
7785
7786         * lib/fts.c: Don't include lstat.h.
7787         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
7788
7789         Move the lstat() declaration to <sys/stat.h>.
7790         * lib/lstat.h: Remove file.
7791         * lib/sys_stat.in.h: Add special invocation convention.
7792         (lstat): New declaration.
7793         * lib/lstat.c (orig_lstat): New function.
7794         (rpl_lstat): Use orig_lstat instead of lstat.
7795         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
7796         AC_C_INLINE. Set REPLACE_LSTAT.
7797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
7798         and REPLACE_LSTAT.
7799         * modules/lstat (Files): Remove lib/lstat.h.
7800         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
7801         (Include): Specify <sys/stat.h> instead of lstat.h.
7802         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
7803         REPLACE_LSTAT.
7804         * NEWS: Mention the change.
7805
7806 2008-10-20  Bruno Haible  <bruno@clisp.org>
7807
7808         * modules/posix_spawn-tests: New file.
7809         * tests/test-posix_spawn3.c: New file.
7810
7811 2008-10-20  Bruno Haible  <bruno@clisp.org>
7812
7813         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
7814         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
7815         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
7816         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
7817         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
7818
7819 2008-10-20  Bruno Haible  <bruno@clisp.org>
7820
7821         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
7822         of posix_spawn on AIX 5.3.
7823
7824 2008-10-20  Bruno Haible  <bruno@clisp.org>
7825
7826         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
7827
7828 2008-10-20  Bruno Haible  <bruno@clisp.org>
7829
7830         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
7831         of AC_LANG_PROGRAM.
7832
7833 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7834
7835         * lib/netdb.in.h: Don't define GNU specific constants until they
7836         are supported or needed.  Reported by Bruno Haible
7837         <bruno@clisp.org>.
7838
7839 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7840
7841         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
7842
7843 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7844
7845         * lib/getaddrinfo.h: Remove file.
7846         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
7847         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
7848         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
7849         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
7850         * modules/netdb: Substitute GNULIB_GETADDRINFO.
7851         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
7852         * tests/test-getaddrinfo.c: Likewise.
7853         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
7854         * NEWS: Mention change.
7855
7856 2008-10-19  Bruno Haible  <bruno@clisp.org>
7857
7858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
7859
7860 2008-10-19  Bruno Haible  <bruno@clisp.org>
7861
7862         * lib/wait-process.c: Include simply <sys/wait.h>.
7863         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
7864         WIFSTOPPED): Remove fallback definitions.
7865         * modules/wait-process (Depends-on): Add sys_wait.
7866
7867         New module 'sys_wait'.
7868         * modules/sys_wait: New file.
7869         * lib/sys_wait.in.h: New file, partially copied from
7870         lib/wait-process.c.
7871         * m4/sys_wait_h.m4: New file.
7872         * doc/posix-headers/sys_wait.texi: Mention the new module.
7873
7874 2008-10-19  Bruno Haible  <bruno@clisp.org>
7875
7876         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
7877
7878 2008-10-19  Bruno Haible  <bruno@clisp.org>
7879
7880         Assume that waitpid() fills an 'int' status, not a 'union wait'.
7881         * lib/wait-process.c (WAIT_T): Remove type.
7882         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
7883         (wait_subprocess): Update.
7884
7885 2008-10-19  Bruno Haible  <bruno@clisp.org>
7886
7887         New module 'atoll'.
7888         * modules/atoll: New file.
7889         * lib/stdlib.in.h (atoll): New declaration.
7890         * lib/atoll.c: New file, from glibc with modifications.
7891         * m4/atoll.m4: New file.
7892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
7893         HAVE_ATOLL.
7894         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
7895         * doc/posix-functions/atoll.texi: Mention the new module.
7896
7897 2008-10-19  Bruno Haible  <bruno@clisp.org>
7898
7899         Add strtoull() declaration to <stdlib.h>.
7900         * lib/stdlib.in.h (strtoull): New declaration.
7901         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
7902         Set HAVE_STRTOULL.
7903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
7904         HAVE_STRTOULL.
7905         * modules/strtoull (Depends-on): Add stdlib.
7906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7907         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
7908         HAVE_STRTOULL.
7909
7910 2008-10-19  Bruno Haible  <bruno@clisp.org>
7911
7912         Add strtoll() declaration to <stdlib.h>.
7913         * lib/stdlib.in.h (strtoll): New declaration.
7914         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
7915         Set HAVE_STRTOLL.
7916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
7917         HAVE_STRTOLL.
7918         * modules/strtoll (Depends-on): Add stdlib.
7919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7920         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
7921
7922 2008-10-19  Bruno Haible  <bruno@clisp.org>
7923
7924         * modules/bcopy (Depends-on): Add strings.
7925         (Include): Specify <strings.h>.
7926
7927 2008-10-19  Bruno Haible  <bruno@clisp.org>
7928
7929         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
7930
7931 2008-10-19  Bruno Haible  <bruno@clisp.org>
7932
7933         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
7934         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
7935         mingw.
7936
7937 2008-10-19  Bruno Haible  <bruno@clisp.org>
7938
7939         * lib/atanl.c: Don't include isnanl.h.
7940         * lib/cosl.c: Likewise.
7941         * lib/ldexpl.c: Likewise.
7942         * lib/logl.c: Likewise.
7943         * lib/sinl.c: Likewise.
7944         * lib/sqrtl.c: Likewise.
7945         * lib/tanl.c: Likewise.
7946
7947         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
7948         * lib/isnanf.h: Remove file.
7949         * lib/isnand.h: Remove file.
7950         * lib/isnanl.h: Remove file.
7951         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
7952         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
7953         macros.
7954         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
7955         HAVE_ISNANF, don't define it as a C macro.
7956         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
7957         HAVE_ISNAND, don't define it as a C macro.
7958         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
7959         HAVE_ISNANL, don't define it as a C macro.
7960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
7961         HAVE_ISNAN[FDL].
7962         * modules/isnanf (Files): Remove lib/isnanf.h.
7963         (Depends-on): Add math.
7964         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7965         (Include): Specify <math.h> instead of isnanf.h.
7966         * modules/isnand (Files): Remove lib/isnand.h.
7967         (Depends-on): Add math.
7968         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7969         (Include): Specify <math.h> instead of isnand.h.
7970         * modules/isnanl (Files): Remove lib/isnanl.h.
7971         (Depends-on): Add math.
7972         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7973         (Include): Specify <math.h> instead of isnanl.h.
7974         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
7975         HAVE_ISNAN[FDL].
7976         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
7977         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
7978         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
7979         * NEWS: Mention the change.
7980
7981 2008-10-18  Bruno Haible  <bruno@clisp.org>
7982
7983         Add getusershell(), setusershell(), endusershell() declarations to
7984         <unistd.h>.
7985         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
7986         declarations.
7987         * lib/getusershell.c: Include unistd.h.
7988         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
7989         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
7990         HAVE_GETUSERSHELL.
7991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
7992         and HAVE_GETUSERSHELL.
7993         * modules/getusershell (Depends-on): Add unistd, extensions.
7994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7995         (Include): Specify <unistd.h>.
7996         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
7997         HAVE_GETUSERSHELL.
7998
7999 2008-10-18  Bruno Haible  <bruno@clisp.org>
8000
8001         Add a getloadavg() declaration to <stdlib.h>.
8002         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
8003         getloadavg declaration.
8004         (getloadavg): New declaration.
8005         * lib/getloadavg.c: Include <stdlib.h> first.
8006         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
8007         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
8008         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
8009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
8010         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8011         * modules/getloadavg (Depends-on): Add stdlib, extensions.
8012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8013         (Include): Specify <stdlib.h>.
8014         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
8015         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8016
8017 2008-10-18  Bruno Haible  <bruno@clisp.org>
8018
8019         * lib/dirchownmod.c: Don't include lchmod.h.
8020
8021         Move the lchmod() declaration to <sys/stat.h>.
8022         * lib/lchmod.h: Remove file.
8023         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
8024         (lchmod): New declaration, moved here from lib/lchown.h.
8025         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
8026         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
8027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
8028         and HAVE_LCHMOD.
8029         * modules/lchmod (Files): Remove lib/lchmod.h.
8030         (Depends-on): Add sys_stat, extensions.
8031         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8032         (Include): Specify <sys/stat.h> instead of lchmod.h.
8033         * modules/sys_stat (Depends-on): Add link-warning.
8034         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
8035         definition of GL_LINK_WARNING.
8036         * NEWS: Mention the change.
8037
8038 2008-10-18  Bruno Haible  <bruno@clisp.org>
8039
8040         * lib/fchdir.c: Don't include dirfd.h.
8041         * lib/fts.c: Likewise.
8042         * lib/getcwd.c: Likewise.
8043         * lib/glob.c: Likewise.
8044
8045         Move the dirfd() declaration to <dirent.h>.
8046         * lib/dirfd.h: Remove file.
8047         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
8048         (dirfd): New declaration.
8049         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
8050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
8051         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
8052         HAVE_DECL_DIRFD.
8053         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
8054         HAVE_DECL_DIRFD.
8055         * modules/dirfd (Files): Remove lib/dirfd.h.
8056         (Depends-on): Add dirent, extensions.
8057         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
8058         (Include): Specify <dirent.h> instead of dirfd.h.
8059         * modules/dirent (Depends-on): Add link-warning.
8060         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
8061         definition of GL_LINK_WARNING.
8062         * NEWS: Mention the change.
8063
8064 2008-10-18  Bruno Haible  <bruno@clisp.org>
8065
8066         Move the euidaccess() declaration to <unistd.h>.
8067         * lib/euidaccess.h: Remove file.
8068         * lib/unistd.in.h (euidaccess): New declaration.
8069         * lib/euidaccess.c: Don't include euidaccess.h.
8070         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
8071         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
8072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
8073         and HAVE_EUIDACCESS.
8074         * modules/euidaccess (Files): Remove lib/euidaccess.h.
8075         (Depends-on): Add unistd.
8076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8077         (Include): Specify <unistd.h> instead of euidaccess.h.
8078         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
8079         HAVE_EUIDACCESS.
8080         * NEWS: Mention the change.
8081
8082 2008-10-18  Bruno Haible  <bruno@clisp.org>
8083
8084         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
8085
8086         Move the getdomainname() declaration to <unistd.h>.
8087         * lib/getdomainname.h: Remove file.
8088         * lib/unistd.in.h (getdomainname): New declaration.
8089         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
8090         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8091         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8092         HAVE_GETDOMAINNAME.
8093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8094         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
8095         * modules/getdomainname (Files): Remove lib/getdomainname.h.
8096         (Depends-on): Add unistd, extensions.
8097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8098         (Includes): Specify <unistd.h> instead of getdomainname.h.
8099         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
8100         HAVE_GETDOMAINNAME.
8101         * NEWS: Mention the change.
8102
8103 2008-10-18  Bruno Haible  <bruno@clisp.org>
8104
8105         * modules/dirent: New file.
8106         * m4/dirent_h.m4: New file.
8107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
8108         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
8109         * modules/fchdir (Files): Remove lib/dirent.in.h.
8110         (Depends-on): Add dirent.
8111         (Makefile.am): Move rules to modules/dirent.
8112         * doc/posix-headers/dirent.texi: Mention the new module.
8113
8114 2008-10-18  Bruno Haible  <bruno@clisp.org>
8115
8116         Avoid -Wunused-parameter warnings in public gnulib header files.
8117         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
8118         macro.
8119         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
8120
8121 2008-10-18  Bruno Haible  <bruno@clisp.org>
8122
8123         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
8124         * doc/glibc-functions/error.texi: Mention the module 'error'.
8125         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
8126         * doc/glibc-functions/getdomainname.texi: Mention the module
8127         'getdomainname'.
8128         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
8129         * doc/glibc-functions/getpagesize.texi: Mention the module
8130         'getpagesize'.
8131         * doc/glibc-functions/getusershell.texi: Mention the module
8132         'getusershell'.
8133         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
8134         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
8135         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
8136         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
8137         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
8138         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
8139         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
8140         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
8141         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
8142         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
8143         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
8144         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
8145         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
8146         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
8147
8148 2008-10-17  Bruno Haible  <bruno@clisp.org>
8149
8150         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
8151         HP-UX and IRIX, use -0.0L.
8152         * tests/test-ceill.c (minus_zero): Likewise.
8153         * tests/test-floorl.c (minus_zero): Likewise.
8154         * tests/test-frexpl.c (minus_zero): Likewise.
8155         * tests/test-isnan.c (minus_zerol): Likewise.
8156         * tests/test-isnanl.h (minus_zero): Likewise.
8157         * tests/test-ldexpl.c (minus_zero): Likewise.
8158         * tests/test-roundl.c (minus_zero): Likewise.
8159         * tests/test-signbit.c (minus_zerol): Likewise.
8160         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8161         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8162         * tests/test-truncl.c (minus_zero): Likewise.
8163         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8164         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8165         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
8166         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8167
8168 2008-10-17  Bruno Haible  <bruno@clisp.org>
8169
8170         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
8171         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
8172         that it gets activated only for gcc >= 3.0.
8173         * lib/dirent.in.h: Likewise.
8174         * lib/errno.in.h: Likewise.
8175         * lib/fcntl.in.h: Likewise.
8176         * lib/float.in.h: Likewise.
8177         * lib/iconv.in.h: Likewise.
8178         * lib/inttypes.in.h: Likewise.
8179         * lib/locale.in.h: Likewise.
8180         * lib/math.in.h: Likewise.
8181         * lib/netdb.in.h: Likewise.
8182         * lib/netinet_in.in.h: Likewise.
8183         * lib/search.in.h: Likewise.
8184         * lib/signal.in.h: Likewise.
8185         * lib/spawn.in.h: Likewise.
8186         * lib/stdarg.in.h: Likewise.
8187         * lib/stdint.in.h: Likewise.
8188         * lib/stdio.in.h: Likewise.
8189         * lib/stdlib.in.h: Likewise.
8190         * lib/string.in.h: Likewise.
8191         * lib/strings.in.h: Likewise.
8192         * lib/sys_file.in.h: Likewise.
8193         * lib/sys_ioctl.in.h: Likewise.
8194         * lib/sys_select.in.h: Likewise.
8195         * lib/sys_socket.in.h: Likewise.
8196         * lib/sys_stat.in.h: Likewise.
8197         * lib/sys_time.in.h: Likewise.
8198         * lib/sysexits.in.h: Likewise.
8199         * lib/time.in.h: Likewise.
8200         * lib/unistd.in.h: Likewise.
8201         * lib/wchar.in.h: Likewise.
8202         * lib/wctype.in.h: Likewise.
8203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8204
8205 2008-10-17  Jim Meyering  <meyering@redhat.com>
8206
8207         ignore-value: don't depend on inline module
8208         * modules/ignore-value (Depends-on): Remove 'inline'.
8209         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
8210         Suggestion from Bruno Haible.
8211
8212 2008-10-17  Bruno Haible  <bruno@clisp.org>
8213
8214         New implementation of condition variables for Win32.
8215         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
8216         (gl_linked_waitqueue_t): New type.
8217         (gl_cond_t): Use it.
8218         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
8219         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
8220         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
8221         (glthread_cond_init_func, glthread_cond_wait_func,
8222         glthread_cond_timedwait_func, glthread_cond_signal_func,
8223         glthread_cond_broadcast_func, glthread_cond_destroy_func):
8224         Reimplemented on the basis of gl_linked_waitqueue_t.
8225         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
8226         gl_waitqueue_t.
8227         (gl_rwlock_t): Update.
8228         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
8229
8230 2008-10-17  Simon Josefsson  <simon@josefsson.org>
8231
8232         * modules/recvfrom (Depends-on): Add dependency on getpeername.
8233         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8234
8235 2008-10-17  Jim Meyering  <meyering@redhat.com>
8236
8237         ignore-value: new module
8238         * modules/ignore-value: New file.
8239         * lib/ignore-value.h: New file.
8240         * MODULES.html.sh (Compiler warning management): New section,
8241         just for this module.  More to come.
8242
8243 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8244
8245         open-safer.c: avoid 'signed and unsigned in conditional...' warning
8246         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
8247         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
8248
8249 2008-10-16  Jim Meyering  <meyering@redhat.com>
8250
8251         openat-die.c: avoid 'no previous prototype' warning
8252         * lib/openat-die.c: Include "openat.h".
8253         Reported by Reuben Thomas <rrt@sc3d.org>.
8254
8255 2008-10-16  Simon Josefsson  <simon@josefsson.org>
8256
8257         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
8258         * lib/netdb.in.h: Fix typo.
8259         Reported by Bruno Haible  <bruno@clisp.org>
8260
8261         * lib/netdb.in.h: Include sys/socket.h for platforms without
8262         netdb.h, to get structures like hostent on MinGW.
8263         * modules/netdb (Depends-on): Add sys_socket.
8264
8265 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8266
8267         * modules/netdb, modules/netdb-tests: New file.
8268         * m4/netdb_h.m4: New file.
8269         * lib/netdb.in.h: Add, currently just an empty file pending
8270         definitions.
8271         * tests/test-netdb.c: New file.
8272         * doc/posix-headers/netdb.texi: Mention that we replace it if
8273         needed.
8274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8275         netdb.
8276
8277 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8278
8279         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
8280         with code.
8281
8282 2008-10-13  Bruno Haible  <bruno@clisp.org>
8283
8284         * lib/glthread/cond.c (glthread_cond_wait_func,
8285         glthread_cond_timedwait_func): Add a comment.
8286
8287 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8288
8289         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
8290         * tests/test-select.c: Likewise,
8291
8292 2008-10-13  Bruno Haible  <bruno@clisp.org>
8293
8294         * lib/glthread/cond.c (glthread_cond_wait_func,
8295         glthread_cond_timedwait_func): Fix variable name.
8296         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8297
8298 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
8299
8300         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
8301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
8302         struct sockaddr.sa_len.
8303         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
8304
8305 2008-10-13  Simon Josefsson  <simon@josefsson.org>
8306
8307         * build-aux/pmccabe2html: Add css and css_url parameters.
8308
8309 2008-10-12  Bruno Haible  <bruno@clisp.org>
8310
8311         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
8312         calling aclx_get.
8313         Reported by Rainer Tammer <tammer@tammer.net>.
8314
8315 2008-10-12  Bruno Haible  <bruno@clisp.org>
8316
8317         Use msvcrt aware primitives for creation/termination of Win32 threads.
8318         * lib/glthread/thread.c: Include <process.h>.
8319         (glthread_create_func): Use _beginthreadex instead of CreateThread.
8320         (wrapper_func): Update signature.
8321         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
8322
8323 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8324             Bruno Haible  <bruno@clisp.org>
8325
8326         Provide a Win32 implementation of the 'cond' module.
8327         * lib/glthread/cond.h [USE_WIN32]: New implementation.
8328         * lib/glthread/cond.c (glthread_cond_init_func,
8329         glthread_cond_wait_func, glthread_cond_timedwait_func,
8330         glthread_cond_signal_func, glthread_cond_broadcast_func,
8331         glthread_cond_destroy_func) [USE_WIN32]: New functions.
8332         * modules/cond (Dependencies): Add gettimeofday.
8333
8334 2008-10-11  Bruno Haible  <bruno@clisp.org>
8335
8336         Make sleep work on older versions of mingw.
8337         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
8338         only whether it exists.
8339         * doc/posix-functions/sleep.texi: Mention the problem with older
8340         versions of mingw.
8341
8342 2008-10-11  Bruno Haible  <bruno@clisp.org>
8343
8344         New module 'shutdown'.
8345         * modules/shutdown: New file.
8346         * lib/sys_socket.in.h (shutdown): New declaration.
8347         * lib/winsock.c (shutdown): New function.
8348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8349         GNULIB_SHUTDOWN.
8350         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
8351         * doc/posix-functions/shutdown.texi: Document the new module.
8352
8353 2008-10-11  Jim Meyering  <meyering@redhat.com>
8354
8355         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
8356
8357 2008-10-11  Bruno Haible  <bruno@clisp.org>
8358
8359         New module 'fclose'.
8360         * modules/fclose: New file.
8361         * lib/stdio.in.h (fclose): New declaration.
8362         * lib/fclose.c: New file.
8363         * m4/fclose.m4: New file.
8364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
8365         REPLACE_FCLOSE.
8366         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
8367         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
8368         REPLACE_FCLOSE.
8369         * modules/close (Depends-on): fclose.
8370         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
8371
8372 2008-10-11  Bruno Haible  <bruno@clisp.org>
8373
8374         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
8375         set errno and don't call _close.
8376
8377 2008-10-10  Bruno Haible  <bruno@clisp.org>
8378
8379         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
8380         ACL, not afterwards. Fixes test failure on Cygwin.
8381
8382 2008-10-09  Ben Pfaff  <blp@gnu.org>
8383
8384         * build-aux/announce-gen: Fix gnulib version related part of usage
8385         message.  Die with a useful error message if no tarballs are
8386         found.
8387
8388 2008-10-10  Jim Meyering  <meyering@redhat.com>
8389
8390         bootstrap: use git's --depth=N option only if it's supported
8391         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
8392         recognize the --depth option.  Reported by Pádraig Brady.
8393
8394 2008-10-09  Bruno Haible  <bruno@clisp.org>
8395
8396         New module 'ioctl'.
8397         * modules/ioctl: New file.
8398         * lib/sys_socket.in.h (ioctl): Remove declaration.
8399         * lib/winsock.c: Include <sys/ioctl.h>.
8400         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
8401         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8402         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
8403         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
8404         * doc/posix-functions/ioctl.texi: Mention the new module.
8405
8406 2008-10-09  Bruno Haible  <bruno@clisp.org>
8407
8408         New module 'sys_ioctl'.
8409         * lib/sys_ioctl.in.h: New file.
8410         * m4/sys_ioctl_h.m4: New file.
8411         * modules/sys_ioctl: New file.
8412         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
8413
8414 2008-10-09  Bruno Haible  <bruno@clisp.org>
8415
8416         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
8417         * lib/winsock.c: Include <stdarg.h>.
8418         (rpl_ioctl): Change to second argument 'int' and then varargs.
8419
8420 2008-10-09  Bruno Haible  <bruno@clisp.org>
8421
8422         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
8423         when the sys_socket module is present and the system has <winsock2.h>.
8424
8425 2008-10-09  Bruno Haible  <bruno@clisp.org>
8426
8427         * doc/posix-functions/close.texi: Mention module 'close' instead of
8428         module 'sys_socket'.
8429
8430 2008-10-09  Bruno Haible  <bruno@clisp.org>
8431
8432         * doc/glibc-headers/sys_ioctl.texi: New file.
8433         * doc/gnulib.texi: Include it.
8434
8435 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8436             Bruno Haible  <bruno@clisp.org>
8437
8438         Combine the two replacements of 'close'.
8439         * lib/sys_socket.in.h (close): Define to a reminder to include
8440         <unistd.h>.
8441         (_gl_close_fd_maybe_socket): New declaration.
8442         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
8443         * lib/winsock.c (close): Remove undefinition.
8444         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
8445         needed for the gnulib module 'close'.
8446         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
8447         define to an error symbol or to a warning, if suitable.
8448         * lib/close.c: Include <sys/socket.h>.
8449         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
8450         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
8451         UNISTD_H_HAVE_WINSOCK2_H.
8452         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
8453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8454         UNISTD_H_HAVE_WINSOCK2_H.
8455         * modules/sys_socket (Files): Add m4/unistd_h.m4.
8456         (configure.ac): Set a module indicator.
8457         (Makefile.am): Substitute GNULIB_CLOSE.
8458         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
8459         * modules/poll-tests (Depends-on): Add close.
8460         * modules/select-tests (Depends-on): Likewise.
8461
8462 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8463             Bruno Haible  <bruno@clisp.org>
8464
8465         New module 'close'.
8466         * modules/close: New file.
8467         * lib/unistd.in.h (close): Move declaration out of the
8468         FCHDIR_REPLACEMENT scope.
8469         (_gl_unregister_fd): New declaration.
8470         * lib/close.c: New file.
8471         * lib/fchdir.c (rpl_close): Remove function.
8472         * m4/close.m4: New file.
8473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8474         close.
8475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
8476         REPLACE_CLOSE.
8477         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
8478         REPLACE_CLOSE.
8479         * modules/fchdir (Depends-on): Add close.
8480
8481 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8482             Bruno Haible  <bruno@clisp.org>
8483
8484         * lib/fcntl.in.h (open): Simplify conditionals.
8485         (_gl_register_fd): New declaration.
8486         * lib/fchdir.c (rpl_open): Remove function.
8487         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
8488         also.
8489         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
8490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8491         open.
8492
8493 2008-10-09  Jim Meyering  <meyering@redhat.com>
8494
8495         GNUmakefile: use the more name-space-friendly "_version"
8496         * top/GNUmakefile (_dummy): Update.
8497         (_version): Rename from "version".
8498
8499 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8500             Bruno Haible  <bruno@clisp.org>
8501
8502         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
8503         rpl_close.
8504         (_gl_register_fd): New function, extracted from rpl_open.
8505         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
8506         (rpl_open, rpl_opendir): Use _gl_register_fd.
8507
8508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8509
8510         Fix organization of 'open' replacement.
8511         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
8512         (gl_FUNC_OPEN): Use it.
8513         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
8514
8515 2008-10-08  Bruno Haible  <bruno@clisp.org>
8516
8517         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
8518
8519 2008-10-08  Simon Josefsson  <simon@josefsson.org>
8520
8521         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
8522         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
8523         listen).
8524
8525 2008-10-08  Eric Blake  <ebb9@byu.net>
8526
8527         GNUmakefile: add 'make version' target
8528         * top/GNUmakefile (_curr-ver): Split version update rules...
8529         (version): ...into a target.
8530
8531 2008-10-07  Bruno Haible  <bruno@clisp.org>
8532
8533         Use a more portable replacement expression for -0.0L.
8534         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
8535         instead of -0.0L. Fix m4 quotation.
8536
8537         * tests/test-signbit.c: Include <float.h>.
8538         (minus_zero): New variable.
8539         (test_signbitl): Use minus_zero instead of -zero.
8540         * modules/signbit-tests (Depends-on): Add float.
8541
8542         * tests/test-ceill.c: Include <float.h>.
8543         (zero): Remove variable.
8544         (minus_zero): New variable.
8545         (main): Use minus_zero instead of -zero.
8546         * modules/ceill-tests (Depends-on): Add float.
8547
8548         * tests/test-floorl.c: Include <float.h>.
8549         (zero): Remove variable.
8550         (minus_zero): New variable.
8551         (main): Use minus_zero instead of -zero.
8552         * modules/floorl-tests (Depends-on): Add float.
8553
8554         * tests/test-roundl.c: Include <float.h>.
8555         (zero): Remove variable.
8556         (minus_zero): New variable.
8557         (main): Use minus_zero instead of -zero.
8558         * modules/roundl-tests (Depends-on): Add float.
8559
8560         * tests/test-truncl.c: Include <float.h>.
8561         (zero): Remove variable.
8562         (minus_zero): New variable.
8563         (main): Use minus_zero instead of -zero.
8564         * modules/truncl-tests (Depends-on): Add float.
8565
8566         * tests/test-frexpl.c (zero): Remove variable.
8567         (minus_zero): New variable.
8568         (main): Use minus_zero instead of -zero.
8569         * modules/frexpl-tests (Depends-on): Add float.
8570
8571         * tests/test-isnan.c (zerol): Remove variable.
8572         (minus_zerol): New variable.
8573         (test_long_double): Use minus_zerol instead of -zerol.
8574         * modules/isnan-tests (Depends-on): Add float.
8575
8576         * tests/test-isnanl.h (zero): Remove variable.
8577         (minus_zero): New variable.
8578         (main): Use minus_zero instead of -zero.
8579         * modules/isnanl-nolibm-tests (Depends-on): Add float.
8580         * modules/isnanl-tests (Depends-on): Add float.
8581
8582         * tests/test-ldexpl.c (zero): Remove variable.
8583         (minus_zero): New variable.
8584         (main): Use minus_zero instead of -zero.
8585         * modules/ldexpl-tests (Depends-on): Add float.
8586
8587         * tests/test-snprintf-posix.h (zerol): Remove variable.
8588         (minus_zerol): New variable.
8589         (test_function): Use minus_zerol instead of -zerol.
8590         * modules/snprintf-posix-tests (Depends-on): Add float.
8591         * modules/vsnprintf-posix-tests (Depends-on): Add float.
8592
8593         * tests/test-sprintf-posix.h (zerol): Remove variable.
8594         (minus_zerol): New variable.
8595         (test_function): Use minus_zerol instead of -zerol.
8596         * modules/sprintf-posix-tests (Depends-on): Add float.
8597         * modules/vsprintf-posix-tests (Depends-on): Add float.
8598
8599         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
8600         (minus_zerol): New variable.
8601         (test_function): Use minus_zerol instead of -zerol.
8602         * modules/vasnprintf-posix-tests (Depends-on): Add float.
8603
8604         * tests/test-vasprintf-posix.c (zerol): Remove variable.
8605         (minus_zerol): New variable.
8606         (test_function): Use minus_zerol instead of -zerol.
8607         * modules/vasprintf-posix-tests (Depends-on): Add float.
8608
8609 2008-10-07  Simon Josefsson  <simon@josefsson.org>
8610
8611         * MODULES.html.sh (Support for building documentation): Mention
8612         pmccabe2html.  Sort entries.
8613
8614         Add pmccabe2html module, from gnupdf.
8615         * build-aux/pmccabe.css: New file.
8616         * build-aux/pmccabe2html: New file.
8617         * m4/pmccabe2html.m4: New file.
8618         * modules/pmccabe2html: New file.
8619
8620 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
8621
8622         flock: new module
8623         * MODULES.html.sh: Add to list of modules.
8624         * lib/flock.c: flock implementation for Windows and Unix systems
8625         which have fcntl.
8626         * doc/glibc-functions/flock.texi: Update documentation.
8627         * lib/sys_file.in.h: <sys/file.h> header file.
8628         * m4/flock.m4: M4 macros.
8629         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
8630         * modules/flock: flock module.
8631         * modules/flock-tests: flock tests module.
8632         * modules/sys_file: sys/file.h module.
8633         * tests/test-flock.c: test suite for flock.
8634
8635 2008-10-06  Jim Meyering  <meyering@redhat.com>
8636
8637         bootstrap: check for LT_INIT more portably still ;-)
8638         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
8639         Spotted by Bruno Haible.
8640
8641 2008-10-06  Eric Blake  <ebb9@byu.net>
8642
8643         test-signbit: avoid tripping Irix cc bug on -0.0L
8644         * tests/test-signbit.c (minus_zerol): Delete, and replace with
8645         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
8646         entire testsuite consistent and avoids an Irix 6.2 bug.
8647
8648 2008-10-05  Bruno Haible  <bruno@clisp.org>
8649             Jim Meyering  <jim@meyering.net>
8650
8651         Add an option for ignoring EPIPE during close_stdout.
8652         * lib/closeout.h: Include <stdbool.h>.
8653         (close_stdout_set_ignore_EPIPE): New declaration.
8654         * lib/closeout.c: Include <stdbool.h>.
8655         (ignore_EPIPE): New variable.
8656         (close_stdout_set_ignore_EPIPE): New function.
8657         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
8658         * lib/close-stream.c (close_stream): Mention the possible EPIPE
8659         failure.
8660         * modules/closeout (Depends-on): Add stdbool.
8661
8662 2008-10-05  Bruno Haible  <bruno@clisp.org>
8663
8664         * modules/accept: New file.
8665         * modules/bind: New file.
8666         * modules/connect: New file.
8667         * modules/getpeername: New file.
8668         * modules/getsockname: New file.
8669         * modules/getsockopt: New file.
8670         * modules/listen: New file.
8671         * modules/recv: New file.
8672         * modules/recvfrom: New file.
8673         * modules/send: New file.
8674         * modules/sendto: New file.
8675         * modules/setsockopt: New file.
8676         * modules/socket: New file.
8677         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
8678         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8679         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
8680         the particular module is requested. Add a link warning when the
8681         particular module is not requested.
8682         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
8683         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
8684         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
8685         the particular module is requested.
8686         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
8687         gl_SYS_SOCKET_H_DEFAULTS): New macros.
8688         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
8689         * modules/sys_socket (Depends-on): Add link-warning.
8690         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
8691         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
8692         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
8693         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
8694         GL_LINK_WARNING.
8695         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
8696         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
8697         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
8698         * doc/posix-functions/getpeername.texi: Mention the new module
8699         'getpeername'.
8700         * doc/posix-functions/getsockname.texi: Mention the new module
8701         'getsockname'.
8702         * doc/posix-functions/getsockopt.texi: Mention the new module
8703         'getsockopt'.
8704         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
8705         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
8706         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
8707         * doc/posix-functions/send.texi: Mention the new module 'send'.
8708         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
8709         * doc/posix-functions/setsockopt.texi: Mention the new module
8710         'setsockopt'.
8711         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
8712         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
8713         listen, connect, accept.
8714         * modules/select-tests (Depends-on): Likewise.
8715
8716 2008-10-05  Bruno Haible  <bruno@clisp.org>
8717
8718         * lib/winsock.c (strerror): Remove unused #undef.
8719         (rpl_close): Remove unused local variable.
8720
8721         * modules/sys_socket (Depends-on); Add errno.
8722
8723 2008-10-05  Bruno Haible  <bruno@clisp.org>
8724
8725         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
8726         (select): Add a link warning when the 'select' module is not used.
8727         * modules/sys_select (Depends-on): Add link-warning.
8728         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
8729         Suggested by Paolo Bonzini.
8730
8731 2008-10-05  Jim Meyering  <meyering@redhat.com>
8732
8733         bootstrap: check for LT_INIT more portably
8734         * build-aux/bootstrap: Avoid using grep -E, since it's not
8735         portable enough.  Suggestion from Bruno Haible.
8736
8737 2008-10-05  Bruno Haible  <bruno@clisp.org>
8738
8739         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
8740         as being fixed by gnulib.
8741
8742 2008-10-05  Bruno Haible  <bruno@clisp.org>
8743
8744         * modules/select-tests: New file, mostly copied from
8745         modules/sys_select-tests.
8746         * tests/test-select.c: New file, mostly copied from
8747         tests/test-sys_select.c.
8748         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
8749         * modules/sys_select-tests (Depends-on): Remove all dependencies.
8750         (Makefile.am): Remove test_sys_select_LDADD.
8751
8752         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
8753         to an undefined symbol, for an error message.
8754         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
8755         (gl_SYS_SELECT_H_DEFAULTS): New macro.
8756         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
8757         winsock-select.c here.
8758         * modules/sys_select (Files): Remove lib/winsock-select.c.
8759         (Depends-on): Remove alloca.
8760         (Makefile.am): Substitute GNULIB_SELECT.
8761         * modules/select: New file.
8762         * doc/posix-functions/select.texi: Update.
8763
8764 2008-10-05  Bruno Haible  <bruno@clisp.org>
8765
8766         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
8767         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
8768         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
8769         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
8770         getdtablesize.
8771         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8772         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8773
8774 2008-10-05  Bruno Haible  <bruno@clisp.org>
8775
8776         * modules/getdtablesize-tests: New file.
8777         * tests/test-getdtablesize.c: New file.
8778
8779         New module 'getdtablesize'.
8780         * lib/unistd.in.h (getdtablesize): New declaration.
8781         * lib/getdtablesize.c: New file.
8782         * m4/getdtablesize.m4: New file.
8783         * modules/getdtablesize: New file.
8784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8785         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
8786         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
8787         HAVE_GETDTABLESIZE.
8788         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
8789
8790 2008-10-05  Bruno Haible  <bruno@clisp.org>
8791
8792         * modules/sched (Makefile.am): Fix typo.
8793         Reported by Simon Josefsson.
8794
8795 2008-10-05  Jim Meyering  <meyering@redhat.com>
8796
8797         bootstrap: check for LT_INIT, too
8798         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
8799         are deprecated.  Suggestion from Ralf Wildenhues.
8800
8801 2008-10-05  Bruno Haible  <bruno@clisp.org>
8802
8803         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
8804         overriding them by ours.
8805         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
8806
8807 2008-10-05  Jim Meyering  <meyering@redhat.com>
8808
8809         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
8810         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
8811         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
8812
8813 2008-10-04  Bruno Haible  <bruno@clisp.org>
8814
8815         * modules/dup2 (License): Change to LGPLv2+.
8816         * modules/sleep (License): Likewise.
8817         * modules/perror (License): Likewise.
8818         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
8819         Blake.
8820         * modules/signal (License): Likewise.
8821         * modules/sigprocmask (License): Likewise.
8822         * modules/raise (License): Change to LGPLv2+, with approval by Jim
8823         Meyering.
8824
8825 2008-10-04  Bruno Haible  <bruno@clisp.org>
8826
8827         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
8828         Reported by Rainer Tammer <tammer@tammer.net>.
8829
8830 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
8831             Bruno Haible  <bruno@clisp.org>
8832
8833         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
8834         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
8835         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
8836
8837 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
8838
8839         filevercmp: new module
8840         * lib/filevercmp.h: New function filevercmp comparing version strings.
8841         * lib/filevercmp.c: Implementation of filevercmp function.
8842         * modules/filevercmp: Module metadata.
8843         * tests/test-filevercmp.c: Unit test for new module.
8844         * modules/filevercmp-tests: Unit test metadata.
8845         * MODULES.html.sh: Add filevercmp module.
8846
8847 2008-10-03  Bruno Haible  <bruno@clisp.org>
8848
8849         * lib/c-ctype.h: Add comment.
8850         Reported by Jim Meyering.
8851
8852 2008-10-02  Bruno Haible  <bruno@clisp.org>
8853
8854         * modules/posix_spawn-internal (Depends-on): Add 'open'.
8855
8856 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8857
8858         * build-aux/bootstrap: Allow renaming bootstrap, and change the
8859         name of bootstrap.conf accordingly.
8860
8861 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8862
8863         * build-aux/bootstrap: Install git-merge-changelog configuration
8864         items into .gitconfig if needed.
8865
8866 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8867
8868         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
8869         git repository, and initialize/update it accordingly.
8870
8871 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
8872
8873         * modules/fsync-tests: New file.
8874         * tests/test-fsync.c: New file.
8875
8876         New module 'fsync'.
8877         * lib/fsync.c: New file.
8878         * m4/fsync.m4: New file.
8879         * modules/fsync: New file.
8880         * lib/unistd.in.h (fsync): New declaration.
8881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
8882         GNULIB_FSYNC and HAVE_FSYNC.
8883         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
8884         * MODULES.html.sh (posix_functions): Add fsync.
8885         * doc/posix-functions/fsync.texi: Mention the new module.
8886
8887 2008-10-02  Jim Meyering  <meyering@redhat.com>
8888
8889         fts.c: sync with similar code from coreutils' remove.c
8890         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
8891         Guard also with "#if defined __linux__", since for now at least,
8892         this code is Linux-kernel-specific.
8893
8894 2008-10-02  Jim Meyering  <meyering@redhat.com>
8895
8896         fts: bug fixes
8897         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
8898         Include <sys/vfs.h>, not <sys/statfs.h>.
8899
8900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
8901         Include <sys/vfs.h>, not <sys/statfs.h>.
8902
8903 2008-10-01  Bruno Haible  <bruno@clisp.org>
8904
8905         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
8906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
8907         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
8908         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
8909         * doc/posix-functions/posix_spawnp.texi: Likewise.
8910         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
8911         whether posix_spawn actually works.
8912         * m4/pipe.m4 (gl_PIPE): Likewise.
8913         * modules/execute (Files): Add m4/posix_spawn.m4.
8914         * modules/pipe (Files): Add m4/posix_spawn.m4.
8915         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
8916
8917 2008-10-01  Jim Meyering  <meyering@redhat.com>
8918
8919         remove trailing spaces
8920         * NEWS: Likewise.
8921         * lib/poll.c (poll): Likewise.
8922         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
8923         * lib/winsock.c (rpl_close): Likewise.
8924         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
8925         * modules/yield: Likewise.
8926         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
8927         * tests/test-sys_select.c (connect_to_socket): Likewise.
8928
8929         fts.c: adjust a new interface to be more generally useful
8930         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
8931         (fts_build): Adjust caller.
8932
8933 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8934
8935         * modules/cond-tests: New file.
8936         * tests/test-cond.c: New file.
8937
8938 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8939             Bruno Haible  <bruno@clisp.org>
8940
8941         * modules/cond (Dependencies): Add errno, time.
8942         * lib/glthread/cond.h: Include <time.h>.
8943         (gl_cond_define, gl_cond_define_initialized): Use the same definition
8944         across platforms.
8945
8946 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8947             Bruno Haible  <bruno@clisp.org>
8948
8949         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
8950
8951 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8952             Bruno Haible  <bruno@clisp.org>
8953
8954         * modules/tls-tests (Depends-on): Add thread, yield.
8955         (configure.ac): Remove all checks.
8956         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
8957         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
8958         gl_thread_self): Remove definitions. Include glthread/thread.h and
8959         glthread/yield.h instead.
8960         (test_tls): Pass an additional NULL argument to gl_thread_join.
8961
8962 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8963             Bruno Haible  <bruno@clisp.org>
8964
8965         * modules/lock-tests (Depends-on): Add thread, yield.
8966         (configure.ac): Remove all checks.
8967         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
8968         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
8969         gl_thread_self): Remove definitions. Include glthread/thread.h and
8970         glthread/yield.h instead.
8971         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
8972         additional NULL argument to gl_thread_join.
8973
8974 2008-09-30  Bruno Haible  <bruno@clisp.org>
8975
8976         Fix the Win32 implementation of the 'thread' module.
8977         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
8978         pointer type.
8979         (gl_thread_self): Invoke gl_thread_self_func.
8980         (gl_thread_self_func): New declaration.
8981         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
8982         (do_init_self_key, init_self_key): New functions.
8983         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
8984         Remove some fields.
8985         (running_threads, running_lock): Remove variables.
8986         (get_current_thread_handle): New function.
8987         (gl_thread_self_func, wrapper_func, glthread_create_func,
8988         glthread_join_func, gl_thread_exit_func): Largely rewritten and
8989         simplified.
8990
8991 2008-09-30  Bruno Haible  <bruno@clisp.org>
8992
8993         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
8994         files.
8995
8996 2008-09-30  Jim Meyering  <meyering@redhat.com>
8997
8998         fts.m4: correct the test for statfs.f_type
8999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
9000         when checking for statfs.f_type.
9001
9002 2008-09-15  Simon Josefsson  <simon@josefsson.org>
9003
9004         tests: avoid some compiler warnings
9005         * tests/test-memchr.c (main): Pass NULL indirectly.
9006         * tests/test-getdate.c (main): Remove unused variable 'ret'.
9007
9008 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
9009
9010         getdate.y: disallow countable dayshifts like "4 yesterday ago"
9011         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
9012         exactly specified dayshifts.
9013         (dayshift): New rule.
9014         (rel): Add dayshift.
9015         (relative_time_table) [tomorrow, yesterday, today, now]:
9016         Use tDAY_SHIFT in place of tDAY_UNIT.
9017         * tests/test-getdate.c: Add tests for now-disallowed countable
9018         dayshifts, e.g., "4 yesterday ago".
9019
9020 2008-09-29  Bruno Haible  <bruno@clisp.org>
9021
9022         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
9023         * tests/test-posix_spawn1.in.sh: Renamed from
9024         tests/test-posix_spawn.in.sh.
9025         * tests/test-posix_spawn2.c: New file.
9026         * tests/test-posix_spawn2.in.sh: New file.
9027         * modules/posix_spawnp-tests (Files): Update.
9028         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
9029
9030 2008-09-29  Bruno Haible  <bruno@clisp.org>
9031
9032         Propagate effects of putenv/setenv/unsetenv to child processes.
9033         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
9034         * lib/pipe.c (create_pipe): Likewise.
9035
9036 2008-09-29  Bruno Haible  <bruno@clisp.org>
9037
9038         Enable use of shell scripts as executables in mingw.
9039         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
9040         run the program as a shell script.
9041         * lib/pipe.c (create_pipe): Likewise.
9042         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
9043         resulting array.
9044
9045 2008-09-29  Eric Blake  <ebb9@byu.net>
9046
9047         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
9048
9049 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
9050
9051         * doc/posix-functions/accept.texi: Update mingw problems.
9052         * doc/posix-functions/bind.texi: Update mingw problems.
9053         * doc/posix-functions/close.texi: Update mingw problems.
9054         * doc/posix-functions/connect.texi: Update mingw problems.
9055         * doc/posix-functions/getpeername.texi: Update mingw problems.
9056         * doc/posix-functions/getsockname.texi: Update mingw problems.
9057         * doc/posix-functions/getsockopt.texi: Update mingw problems.
9058         * doc/posix-functions/ioctl.texi: Update mingw problems.
9059         * doc/posix-functions/listen.texi: Update mingw problems.
9060         * doc/posix-functions/recv.texi: Update mingw problems.
9061         * doc/posix-functions/recvfrom.texi: Update mingw problems.
9062         * doc/posix-functions/select.texi: Update mingw problems.
9063         * doc/posix-functions/send.texi: Update mingw problems.
9064         * doc/posix-functions/sendto.texi: Update mingw problems.
9065         * doc/posix-functions/setsockopt.texi: Update mingw problems.
9066         * doc/posix-functions/socket.texi: Update mingw problems.
9067
9068 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
9069             Bruno Haible  <bruno@clisp.org>
9070
9071         * lib/sys_select.in.h: Include sys/time.h.
9072         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
9073         * modules/sys_select: Depend on sys_time.
9074         * tests/test-sys_select.c: Test that sys/select.h defines struct
9075         timeval fully.
9076
9077 2008-09-29  Bruno Haible  <bruno@clisp.org>
9078
9079         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
9080         * lib/sys_select.in.h: Likewise.
9081
9082 2008-09-29  Bruno Haible  <bruno@clisp.org>
9083
9084         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
9085
9086 2008-09-29  Bruno Haible  <bruno@clisp.org>
9087
9088         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
9089         Set LIBSOCKET instead of augmenting LIBS.
9090         * modules/sockets (Link): New section.
9091         * modules/sockets-tests (test_sockets_LDADD): New variable.
9092         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
9093         * modules/poll-tests (test_poll_LDADD): New variable.
9094         * NEWS: Document the change.
9095
9096 2008-09-29  Bruno Haible  <bruno@clisp.org>
9097
9098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
9099         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
9100         ARPA_INET_H directly.
9101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9102
9103 2008-09-28  Bruno Haible  <bruno@clisp.org>
9104
9105         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
9106         from gl_HEADER_SYS_SOCKET.
9107         (gl_HEADER_SYS_SOCKET): Invoke it.
9108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9109
9110 2008-09-28  Bruno Haible  <bruno@clisp.org>
9111
9112         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
9113         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
9114         Needed on OSF/1 4.0.
9115
9116 2008-09-28  Bruno Haible  <bruno@clisp.org>
9117
9118         Override open more carefully.
9119         * lib/open.c (orig_open): New function.
9120         (rpl_open): Use orig_open instead of open.
9121         * lib/fcntl.in.h: Add special invocation convention.
9122         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
9123         (gl_FUNC_OPEN): Invoke it.
9124
9125         Override freopen more carefully.
9126         * lib/freopen.c (orig_freopen): New function.
9127         (rpl_freopen): Use orig_freopen instead of freopen.
9128         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
9129         (gl_FUNC_FREOPEN): Invoke it.
9130
9131         Override fopen more carefully.
9132         * lib/fopen.c (orig_fopen): New function.
9133         (rpl_fopen): Use orig_fopen instead of fopen.
9134         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
9135         (gl_FUNC_FOPEN): Invoke it.
9136         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
9137
9138 2008-09-28  Bruno Haible  <bruno@clisp.org>
9139
9140         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
9141         SIGPIPE.
9142
9143 2008-09-28  Bruno Haible  <bruno@clisp.org>
9144
9145         * tests/test-sigaction.c (handler, main): Disable the check whether
9146         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
9147         glibc systems with LinuxThreads.
9148
9149 2008-09-28  Bruno Haible  <bruno@clisp.org>
9150
9151         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
9152
9153         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
9154         with AIX xlc.
9155         * lib/fcntl.in.h (open): Likewise.
9156         Reported by Rainer Tammer <tammer@tammer.net>.
9157
9158 2008-09-28  Bruno Haible  <bruno@clisp.org>
9159
9160         * modules/posix_spawnp-tests: New file.
9161         * tests/test-posix_spawn.c: New file.
9162         * tests/test-posix_spawn.in.sh: New file.
9163
9164         New module 'posix_spawnp'.
9165         * modules/posix_spawnp: New file.
9166         * lib/spawnp.c: New file, from GNU libc with modifications.
9167         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
9168
9169         New module 'posix_spawn'.
9170         * modules/posix_spawn: New file.
9171         * lib/spawn.c: New file, from GNU libc with modifications.
9172         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9173
9174         New module 'posix_spawnattr_destroy'.
9175         * modules/posix_spawnattr_destroy: New file.
9176         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
9177         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
9178         module.
9179
9180         New module 'posix_spawnattr_setsigmask'.
9181         * modules/posix_spawnattr_setsigmask: New file.
9182         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
9183         modifications.
9184         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
9185         new module.
9186
9187         New module 'posix_spawnattr_getsigmask'.
9188         * modules/posix_spawnattr_getsigmask: New file.
9189         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
9190         modifications.
9191         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
9192         new module.
9193
9194         New module 'posix_spawnattr_setsigdefault'.
9195         * modules/posix_spawnattr_setsigdefault: New file.
9196         * lib/spawnattr_setdefault.c: New file, from GNU libc with
9197         modifications.
9198         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
9199         new module.
9200
9201         New module 'posix_spawnattr_getsigdefault'.
9202         * modules/posix_spawnattr_getsigdefault: New file.
9203         * lib/spawnattr_getdefault.c: New file, from GNU libc with
9204         modifications.
9205         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
9206         new module.
9207
9208         New module 'posix_spawnattr_setschedpolicy'.
9209         * modules/posix_spawnattr_setschedpolicy: New file.
9210         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
9211         modifications.
9212         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
9213         new module.
9214
9215         New module 'posix_spawnattr_getschedpolicy'.
9216         * modules/posix_spawnattr_getschedpolicy: New file.
9217         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
9218         modifications.
9219         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
9220         new module.
9221
9222         New module 'posix_spawnattr_setschedparam'.
9223         * modules/posix_spawnattr_setschedparam: New file.
9224         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
9225         modifications.
9226         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
9227         new module.
9228
9229         New module 'posix_spawnattr_getschedparam'.
9230         * modules/posix_spawnattr_getschedparam: New file.
9231         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
9232         modifications.
9233         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
9234         new module.
9235
9236         New module 'posix_spawnattr_setpgroup'.
9237         * modules/posix_spawnattr_setpgroup: New file.
9238         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
9239         modifications.
9240         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
9241         module.
9242
9243         New module 'posix_spawnattr_getpgroup'.
9244         * modules/posix_spawnattr_getpgroup: New file.
9245         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
9246         modifications.
9247         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
9248         module.
9249
9250         New module 'posix_spawnattr_setflags'.
9251         * modules/posix_spawnattr_setflags: New file.
9252         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
9253         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
9254         module.
9255
9256         New module 'posix_spawnattr_getflags'.
9257         * modules/posix_spawnattr_getflags: New file.
9258         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
9259         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
9260         module.
9261
9262         New module 'posix_spawnattr_init'.
9263         * modules/posix_spawnattr_init: New file.
9264         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
9265         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
9266         module.
9267
9268         New module 'posix_spawn_file_actions_destroy'.
9269         * modules/posix_spawn_file_actions_destroy: New file.
9270         * lib/spawn_faction_destroy.c: New file, from GNU libc with
9271         modifications.
9272         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
9273         the new module.
9274
9275         New module 'posix_spawn_file_actions_addopen'.
9276         * modules/posix_spawn_file_actions_addopen: New file.
9277         * lib/spawn_faction_addopen.c: New file, from GNU libc with
9278         modifications.
9279         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9280         the new module.
9281
9282         New module 'posix_spawn_file_actions_adddup2'.
9283         * modules/posix_spawn_file_actions_adddup2: New file.
9284         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
9285         modifications.
9286         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9287         the new module.
9288
9289         New module 'posix_spawn_file_actions_addclose'.
9290         * modules/posix_spawn_file_actions_addclose: New file.
9291         * lib/spawn_faction_addclose.c: New file, from GNU libc with
9292         modifications.
9293         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9294         the new module.
9295
9296         New module 'posix_spawn_file_actions_init'.
9297         * modules/posix_spawn_file_actions_init: New file.
9298         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
9299         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
9300         new module.
9301
9302         New module 'posix_spawn-internal'.
9303         * modules/posix_spawn-internal: New file.
9304         * lib/spawn_int.h: New file, from GNU libc with modifications.
9305         * lib/spawni.c: New file, from GNU libc with modifications.
9306         * m4/posix_spawn.m4: New file.
9307
9308         New module 'spawn'.
9309         * modules/spawn: New file.
9310         * lib/spawn.in.h: New file, from GNU libc with modifications.
9311         * m4/spawn_h.m4: New file.
9312         * doc/posix-headers/spawn.texi: Mention the new module.
9313
9314 2008-09-28  Bruno Haible  <bruno@clisp.org>
9315
9316         * modules/sched-tests: New file.
9317         * tests/test-sched.c: New file.
9318
9319         New module 'sched'.
9320         * modules/sched: New file.
9321         * lib/sched.in.h: New file.
9322         * m4/sched_h.m4: New file.
9323         * doc/posix-headers/sched.texi: Mention the new module.
9324
9325 2008-09-27  Eric Blake  <ebb9@byu.net>
9326
9327         Fix previous patch, and tweak references to $0.
9328         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
9329         (func_version, func_gnulib_dir): Don't call this program
9330         gnulib-tool.
9331         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
9332         with using $0 in function.
9333         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
9334         (func_fatal_error): Reuse the name the user invoked us with.
9335
9336 2008-09-27  Bruno Haible  <bruno@clisp.org>
9337
9338         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
9339         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
9340         (gl_ICONV_H): Not here.
9341         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9342         instead of assigning ICONV_H directly.
9343
9344         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
9345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
9346         WCHAR_H directly.
9347
9348 2008-09-27  Bruno Haible  <bruno@clisp.org>
9349
9350         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
9351         * modules/arpa_inet (Depends-on): Add link-warning.
9352         (Makefile.am): Insert the definition of GL_LINK-WARNING.
9353         * modules/unistd (Makefile.am): Likewise.
9354
9355 2008-09-26  Bruno Haible  <bruno@clisp.org>
9356
9357         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
9358         variables.
9359         (func_version): Essentially copied from gnulib-tool.
9360         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
9361         func_readlink): Copied from gnulib-tool.
9362
9363 2008-09-26  Bruno Haible  <bruno@clisp.org>
9364
9365         * gnulib-tool (func_version): Change directory to $gnulib_dir before
9366         invoking git-version-gen.
9367
9368 2008-09-26  Bruno Haible  <bruno@clisp.org>
9369
9370         * posix-modules: Update to directory names changed on 2008-01-19.
9371         Remove commas in output before splitting into words. No more need to
9372         avoid 'ftruncate' since 2007-02-19.
9373
9374 2008-09-26  Bruno Haible  <bruno@clisp.org>
9375
9376         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
9377
9378 2008-09-26  Bruno Haible  <bruno@clisp.org>
9379
9380         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
9381         * modules/fwriteerror (Depends-on): Add errno.
9382
9383 2008-09-26  Bruno Haible  <bruno@clisp.org>
9384
9385         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
9386         * tests/test-vc-list-files-cvs.sh: Likewise.
9387
9388 2008-09-26  Bruno Haible  <bruno@clisp.org>
9389
9390         * doc/posix-headers/sys_resource.texi: Reorder items.
9391
9392 2008-09-26  Jim Meyering  <meyering@redhat.com>
9393
9394         fts: tweak inode comparison function
9395         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
9396         inode numbers, as documented.
9397
9398         fts: sort dirent entries on inode number before traversing
9399         This avoids a quadratic, seek-related performance penalty when
9400         operating on a directory containing many entries (measurable at 10k;
9401         3.5 hours at 2 million entries with a cold cache) on certain types
9402         of file systems, including ext3 and ext4, but not tmpfs.
9403         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
9404         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
9405         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
9406         (fs_handles_readdir_ordered_dirents_efficiently): New function.
9407         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
9408         (fts_build): Set the stat.st_ino member from D_INO.
9409         If it is likely to be useful, sort dirent entries on inode number.
9410
9411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
9412         and the struct statfs.f_type member.
9413         * modules/fts (Depends-on): Add d-ino.
9414
9415 2008-09-26  Bruno Haible  <bruno@clisp.org>
9416
9417         * modules/sigpipe-die (Depends-on): Add sigpipe.
9418
9419         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
9420         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
9421         and GNULIB_STDIO_H_SIGPIPE are set.
9422         * lib/stdio-write.c: New file.
9423         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
9424         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9425         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9426         REPLACE_STDIO_WRITE_FUNCS.
9427         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
9428         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9429         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9430         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9431         * modules/stdio (Files): Add lib/stdio-write.c.
9432         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
9433         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9434         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9435         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9436         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
9437         REPLACE_FPRINTF_POSIX.
9438         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
9439         REPLACE_PRINTF_POSIX.
9440         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
9441         REPLACE_VFPRINTF_POSIX.
9442         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
9443         REPLACE_VPRINTF_POSIX.
9444         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
9445         SIGPIPE issue.
9446         * doc/posix-functions/fputc.texi: Likewise.
9447         * doc/posix-functions/fputs.texi: Likewise.
9448         * doc/posix-functions/fwrite.texi: Likewise.
9449         * doc/posix-functions/printf.texi: Likewise.
9450         * doc/posix-functions/putc.texi: Likewise.
9451         * doc/posix-functions/putchar.texi: Likewise.
9452         * doc/posix-functions/puts.texi: Likewise.
9453         * doc/posix-functions/vfprintf.texi: Likewise.
9454         * doc/posix-functions/vprintf.texi: Likewise.
9455
9456         * modules/safe-write (Depends-on): Add write.
9457
9458         * modules/sigpipe-tests: New file.
9459         * tests/test-sigpipe.c: New file.
9460         * tests/test-sigpipe.sh: New file.
9461
9462         * modules/write: New file.
9463         * lib/unistd.in.h: Include <sys/types.h>.
9464         (write): New declaration.
9465         * lib/write.c: New file.
9466         * m4/write.m4: New file.
9467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9468         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
9469         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
9470         GNULIB_WRITE, REPLACE_WRITE.
9471         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
9472         and the SIGPIPE issue.
9473
9474         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
9475         (raise): New declaration.
9476         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
9477         (ext_signal): New function.
9478         (rpl_raise): New function.
9479         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9480         GNULIB_SIGNAL_H_SIGPIPE.
9481         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
9482         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
9483
9484         * modules/sigpipe: New file.
9485         * m4/sigpipe.m4: New file.
9486
9487 2008-09-25  Derek Price  <derek@ximbiot.com>
9488             Bruno Haible  <bruno@clisp.org>
9489
9490         * gnulib-tool (func_import): Report all license incompatibilities, not
9491         just the first one.
9492
9493 2008-09-25  Bruno Haible  <bruno@clisp.org>
9494
9495         * gnulib-tool (func_import): When computing the edits, consider not
9496         only the Makefile.ams that exist but also those that will be generated.
9497
9498 2008-09-25  Simon Josefsson  <simon@josefsson.org>
9499
9500         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
9501         fixes gnulib-tool --test warning about duplicate dependency.
9502
9503 2008-09-25  Bruno Haible  <bruno@clisp.org>
9504
9505         * gnulib-tool: Don't ask the user to perform edits in the generated
9506         Makefile.ams.
9507         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
9508         apply to the Makefile.am being generated.
9509         (func_emit_tests_Makefile_am): Execute edits that apply to the
9510         Makefile.am being generated.
9511         (func_import): Setup list of Makefile.am edits before emitting the
9512         Makefile.ams, not at the end.
9513         (func_create_testdir): Update.
9514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9515
9516 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9517
9518         * gnulib-tool (func_import): Store the --tests-base option in the
9519         comment in gnulib-cache.m4.
9520
9521 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
9522
9523         * NEWS: Document increased portability that sys_select now provides.
9524
9525         * lib/sys_select.in.h: Install select wrapper.
9526         * lib/sys_socket.in.h: Use more descriptive name when there is no
9527         select wrapper.
9528         * lib/winsock-select.c: New.
9529         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
9530         Require gl_HEADER_SYS_SOCKET.
9531         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
9532         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
9533         * tests/test-sys_select.c: Add functional tests.
9534
9535 2008-09-24  Eric Blake  <ebb9@byu.net>
9536
9537         open, fopen: close fd leak in last patch
9538         * lib/open.c (rpl_open): Close fd before returning error.
9539         * lib/fopen.c (rpl_fopen): Close fd before returning error.
9540         * doc/posix-functions/open.texi (open): Document that Irix also
9541         has the bug.
9542         * doc/posix-functions/fopen.texi (fopen): Likewise.
9543         Reported by Paolo Bonzini.
9544
9545 2008-09-24  Bruno Haible  <bruno@clisp.org>
9546
9547         Ensure that a filename ending in a slash cannot be used to access a
9548         non-directory.
9549         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
9550         to check whether it's really a directory.
9551         * lib/fopen.c: Include fcntl.h, unistd.h.
9552         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
9553         and fdopen().
9554         * modules/fopen (Depends-on): Add unistd.
9555         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
9556         * tests/test-fopen.c (main): Likewise.
9557         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
9558         * doc/posix-functions/fopen.texi: Likewise.
9559         Reported by Eric Blake.
9560
9561 2008-09-23  Eric Blake  <ebb9@byu.net>
9562
9563         c-stack: avoid compiler optimizations when provoking overflow
9564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
9565         recursion harder to optimize, to ensure a stack overflow occurs.
9566         * tests/test-c-stack.c (recurse): Likewise.
9567         Borrowed from libsigsegv.
9568
9569         c-stack: work around Irix sigaltstack bug
9570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
9571         whether sigaltstack uses wrong end of stack_t (copied in part from
9572         libsigsegv).
9573         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
9574         Irix bug, without requiring an over-allocation.
9575         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
9576         bug.
9577
9578         fopen: document mingw bug on directories
9579         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
9580         not allowing a stream visiting a directory, even though reading
9581         from such a stream is not portable.
9582
9583 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9584
9585         * lib/poll.c: Rewrite.
9586         * modules/poll: Depend on alloca.
9587
9588 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9589
9590         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
9591         instead define prototypes for a full set of wrappers.  Ensure
9592         that Cygwin does not use the compatibility code, which is only
9593         for MinGW.
9594         * lib/winsock.c: New.
9595         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
9596         * modules/sys_socket: Add lib/winsock.c.
9597
9598         * modules/poll-tests: Add errno and perror.
9599         * tests/test-poll.c: Use ioctl, not ioctlsocket.
9600
9601 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9602
9603         * tests/test-poll.c: Downgrade minimum needed Winsock version.
9604
9605 2008-09-23  Bruno Haible  <bruno@clisp.org>
9606
9607         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
9608         * doc/glibc-functions/*: Likewise.
9609
9610 2008-09-23  Simon Josefsson  <simon@josefsson.org>
9611
9612         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
9613         success.
9614
9615 2008-09-22  Eric Blake  <ebb9@byu.net>
9616             Bruno Haible  <bruno@clisp.org>
9617
9618         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
9619         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
9620         supply %A but mishandle pseudo-NaN.
9621         Reported by Simon Josefsson.
9622
9623 2008-09-21  Bruno Haible  <bruno@clisp.org>
9624
9625         * tests/test-lock.c (main): Tweak skip message.
9626         * tests/test-tls.c (main): Likewise.
9627
9628 2008-09-21  Bruno Haible  <bruno@clisp.org>
9629
9630         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
9631         whether 'struct sigaction' has sa_sigaction here...
9632         (gl_PREREQ_SIG_HANDLER_H): ... not here.
9633         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
9634
9635 2008-09-21  Bruno Haible  <bruno@clisp.org>
9636
9637         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
9638         section.
9639         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
9640         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
9641         the new section.
9642         (Support for obsolete systems lacking POSIX:2001): New section.
9643         (String handling <string.h>): Move strdup to the new section.
9644         Suggested by Simon Josefsson and Paolo Bonzini.
9645
9646 2008-09-21  Bruno Haible  <bruno@clisp.org>
9647
9648         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
9649         exponents in %e and %g results on 'long double'. Needed for mingw's
9650         improved *printf functions.
9651         * tests/test-vasprintf-posix.c (test_function): Likewise.
9652         * tests/test-snprintf-posix.h (test_function): Likewise.
9653         * tests/test-sprintf-posix.h (test_function): Likewise.
9654         Reported by Eric Blake.
9655
9656 2008-09-21  Bruno Haible  <bruno@clisp.org>
9657
9658         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
9659         * tests/test-sprintf-posix.h (test_function): Likewise.
9660
9661 2008-09-21  Bruno Haible  <bruno@clisp.org>
9662
9663         * modules/getpass (Depends-on): Add strdup-posix.
9664
9665         New module 'strdup-posix'.
9666         * modules/strdup-posix: New file.
9667         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
9668         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
9669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9670         REPLACE_STRDUP.
9671         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
9672         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
9673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9674         strdup-posix.
9675
9676         * modules/strdup (Depends-on): Remove malloc-posix.
9677
9678 2008-09-20  Bruno Haible  <bruno@clisp.org>
9679
9680         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
9681         Wildenhues.
9682
9683 2008-09-20  Bruno Haible  <bruno@clisp.org>
9684
9685         Ensure that wint_t gets defined on IRIX 5.3.
9686         * lib/wchar.in.h (wint_t): Define if not defined by the system.
9687         * lib/wctype.in.h (wint_t): Likewise.
9688         (__wctype_wint_t): Remove type.
9689         (isw*): Use wint_t instead of __wctype_wint_t.
9690         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
9691         * modules/wchar (Files): Add m4/wint_t.m4.
9692         (Makefile.am): Substitute HAVE_WINT_T.
9693         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
9694         * tests/test-wctype.c: Check that wint_t is defined.
9695         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
9696         * doc/posix-headers/wctype.texi: Likewise.
9697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9698
9699 2008-09-18  Bruno Haible  <bruno@clisp.org>
9700
9701         * gnulib-tool (func_exit): Update comment.
9702
9703 2008-09-18  Simon Josefsson  <simon@josefsson.org>
9704
9705         * modules/getaddrinfo (Depends-on): Remove strdup, this module
9706         assumes strdup exists and does not depend on strdup to return
9707         ENOMEM on out of memory conditions.
9708
9709 2008-09-18  Bruno Haible  <bruno@clisp.org>
9710
9711         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
9712         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
9713         digits for the exponent.
9714
9715 2008-09-18  Jim Meyering  <meyering@redhat.com>
9716             Bruno Haible  <bruno@clisp.org>
9717
9718         * lib/vasnprintf.c (decimal_point_char): Define also if
9719         NEED_PRINTF_INFINITE_LONG_DOUBLE.
9720
9721 2008-09-16  Bruno Haible  <bruno@clisp.org>
9722         and Eric Blake  <ebb9@byu.net>
9723
9724         vasnprintf: support Irix 5.3
9725         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
9726         that mishandle long double infinity.
9727         Reported by Tom G. Christensen.
9728
9729 2008-09-16  Bruno Haible  <bruno@clisp.org>
9730
9731         * doc/glibc-functions/scandir.texi: Mention the function is missing on
9732         Solaris 9.
9733         * doc/glibc-functions/alphasort.texi: Likewise.
9734         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
9735
9736 2008-09-16  Jim Meyering  <meyering@redhat.com>
9737
9738         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
9739         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
9740         a umask modification leak out of a subshell.  Otherwise, the
9741         opensolaris /bin/sh would be accepted and thus cause unwarranted
9742         failures in the coreutils test suite.
9743
9744 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
9745
9746         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
9747         to succeed.
9748
9749 2008-09-16  Jim Meyering  <meyering@redhat.com>
9750
9751         avoid spurious test failure when library is built without ACL support
9752         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
9753         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
9754         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
9755         * tests/test-copy-acl.sh: Likewise.
9756
9757 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9758
9759         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
9760         based on character occurrence counts.
9761
9762 2008-09-15  Eric Blake  <ebb9@byu.net>
9763
9764         tests: avoid some compiler warnings
9765         * tests/test-memchr.c (main): Pass NULL indirectly.
9766         * tests/test-closein.c (main): Avoid unused variable.
9767
9768 2008-09-15  Bruno Haible  <bruno@clisp.org>
9769
9770         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
9771         are missing on OpenBSD 4.0 individually.
9772         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9773
9774 2008-09-15  Bruno Haible  <bruno@clisp.org>
9775
9776         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
9777         * doc/posix-functions/strerror.texi: Mention also Cygwin.
9778         * doc/posix-functions/perror.texi: Likewise.
9779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
9780         is missing.
9781         Reported by Eric Blake.
9782
9783         * lib/errno.in.h: Use replacement values >= 2000.
9784         Reported by Eric Blake.
9785
9786 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9787
9788         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
9789         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
9790         limit.
9791         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
9792         compareseq was aborted.
9793
9794 2008-09-14  Bruno Haible  <bruno@clisp.org>
9795
9796         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
9797         yvec_edit_count.
9798         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
9799         (fstrcmp_bounded): Simplify result computation accordingly.
9800
9801 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9802
9803         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
9804         (fstrcmp): Define in terms of fstrcmp_bounded.
9805         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
9806         lower_bound argument.
9807         Return quickly if the result is certainly < lower_bound.
9808         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
9809
9810 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9811
9812         * lib/diffseq.h (EARLY_ABORT): New macro.
9813         (compareseq): Change return type to bool. Return true when EARLY_ABORT
9814         evaluates to true.
9815
9816 2008-09-14  Bruno Haible  <bruno@clisp.org>
9817
9818         * modules/perror-tests: New file.
9819         * tests/test-perror.sh: New file.
9820         * tests/test-perror.c: New file.
9821
9822         New module 'perror'.
9823         * lib/stdio.in.h (perror): New declaration.
9824         * lib/perror.c: New file.
9825         * m4/perror.m4: New file.
9826         * modules/perror: New file.
9827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
9828         * doc/posix-functions/perror.texi: Mention the perror module.
9829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
9830         REPLACE_PERROR.
9831         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
9832         REPLACE_PERROR.
9833
9834 2008-09-14  Bruno Haible  <bruno@clisp.org>
9835
9836         * modules/stdio (Makefile.am): Reorder to match the order in
9837         lib/stdio.in.h.
9838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9839
9840 2008-09-13  Bruno Haible  <bruno@clisp.org>
9841
9842         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
9843
9844 2008-09-13  Bruno Haible  <bruno@clisp.org>
9845
9846         Extend strerror to cover the added errno values.
9847         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
9848         (rpl_strerror): Provide error messages for the added errno values and
9849         for the WSA* values.
9850         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
9851         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
9852         strerror.
9853         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
9854         * modules/strerror (Depends-on): Add errno.
9855         * doc/posix-functions/strerror.texi: Document the change.
9856         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
9857         and EOVERFLOW.
9858
9859 2008-09-13  Bruno Haible  <bruno@clisp.org>
9860
9861         * modules/EOVERFLOW: Remove file.
9862         * m4/eoverflow.m4: Remove file.
9863         * modules/EOVERFLOW-tests: Remove file.
9864         * tests/test-EOVERFLOW.c: Remove file.
9865         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
9866         * modules/ftell (Depends-on): Likewise.
9867         * modules/getdelim (Depends-on): Likewise.
9868         * modules/getugroups (Depends-on): Likewise.
9869         * modules/poll (Depends-on): Likewise.
9870         * modules/snprintf (Depends-on): Likewise.
9871         * modules/sprintf-posix (Depends-on): Likewise.
9872         * modules/vasnprintf (Depends-on): Likewise.
9873         * modules/vasprintf (Depends-on): Likewise.
9874         * modules/vfprintf-posix (Depends-on): Likewise.
9875         * modules/vsnprintf (Depends-on): Likewise.
9876         * modules/vsprintf-posix (Depends-on): Likewise.
9877         * modules/xvasprintf (Depends-on): Likewise.
9878         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9879         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
9880         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
9881         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
9882         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9883         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
9884         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
9885         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
9886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9887         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
9888         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
9889         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
9890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9891         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
9892         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
9893         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
9894         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9895         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
9896         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
9897         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
9898         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9899         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
9900         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
9901         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
9902         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
9903         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9904         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
9905         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
9906         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
9907         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
9908         * MODULES.html.sh: Remove EOVERFLOW.
9909         * NEWS: Mention the change.
9910
9911 2008-09-13  Bruno Haible  <bruno@clisp.org>
9912
9913         * modules/errno-tests: New file.
9914         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
9915
9916         * lib/errno.in.h: New file.
9917         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
9918         * modules/errno: New file.
9919         * doc/posix-headers/errno.texi: Update documentation.
9920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
9921
9922 2008-09-13  Bruno Haible  <bruno@clisp.org>
9923
9924         * tests/test-poll.c: Use #if for native Windows, rather than testing
9925         __MSVCRT__.
9926
9927 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9928             Bruno Haible  <bruno@clisp.org>
9929
9930         * lib/glob.c: Don't include <pwd.h> on native Windows.
9931         (WINDOWS32): New macro.
9932         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
9933
9934 2008-09-13  Bruno Haible  <bruno@clisp.org>
9935
9936         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
9937         (ETIMEDOUT): Remove macro.
9938         (glthread_cond_timedwait_multithreaded): New declaration.
9939         (glthread_cond_timedwait): Use it.
9940         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
9941         (glthread_cond_timedwait_multithreaded): New function.
9942
9943 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
9944
9945         * modules/poll-tests: Do not check for io.h.
9946         * tests/test-poll.c: Check for __MSVCRT__ instead.
9947
9948 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
9949
9950         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
9951         * modules/poll-tests: Add inet_pton, stdbool, sockets.
9952         * tests/test-poll.c: Use them.  Use _pipe on Windows.
9953
9954 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
9955
9956         * modules/poll-tests: New.
9957         * tests/test-poll.c: New.
9958
9959 2008-09-12  Eric Blake  <ebb9@byu.net>
9960
9961         frexp: test for NetBSD failure on -0.0
9962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
9963         not all, bugs from NetBSD 3.0 have been fixed.
9964         * doc/posix-functions/frexp.texi (frexp): Document bug.
9965         Reported by Thomas Klausner.
9966
9967         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
9968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
9969         literal -0.0.
9970         Reported by Jonathan C. Patschke <jp@centtech.com>.
9971
9972 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9973
9974         * lib/glthread/cond.h: Use dummy implementation also if
9975         USE_WIN32_THREADS.
9976
9977 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9978
9979         * modules/fnmatch-posix (License): Change to LGPLv2+.
9980         * modules/fnmatch-gnu (License): Likewise.
9981
9982 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9983
9984         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
9985
9986 2008-09-11  Jim Meyering  <meyering@redhat.com>
9987
9988         * users.txt: Add gtk-vnc.
9989
9990 2008-09-08  Simon Josefsson  <simon@josefsson.org>
9991
9992         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
9993         rotate amounts.
9994
9995         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
9996         required for 16-bit and 8-bit rotates.
9997         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
9998         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
9999         UINT8_MAX instead of hard-coded constants.
10000         Suggested by Paul Eggert.
10001
10002 2008-09-07  Bruno Haible  <bruno@clisp.org>
10003
10004         * tests/test-striconveh.c (main): Check behaviour when converting from
10005         UTF-7.
10006
10007         Make striconveh work better with stateful encodings.
10008         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
10009         that iconv does not increment the inptr when returning -1/EINVAL.
10010
10011 2008-09-07  Bruno Haible  <bruno@clisp.org>
10012
10013         * build-aux/config.rpath: Update according to libtool-2.2.6.
10014         * build-aux/config.libpath: Likewise.
10015
10016 2008-09-06  Bruno Haible  <bruno@clisp.org>
10017
10018         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
10019         * lib/freadptr.c (freadptr): Likewise.
10020         * lib/freadseek.c (freadptrinc): Likewise.
10021         Reported by Simon Josefsson.
10022
10023 2008-09-06  Bruno Haible  <bruno@clisp.org>
10024
10025         * modules/freadptr (License): Change to LGPLv2+.
10026         * modules/freadseek (License): Likewise.
10027         Suggested by Eric Blake.
10028
10029         * modules/memchr2 (License): Change to LGPLv2+.
10030         Approved by Eric Blake.
10031
10032 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10033             Bruno Haible  <bruno@clisp.org>
10034
10035         Make gnulib-tool work with native 'sed' on AIX.
10036         * gnulib-tool (sed_noop): New variable.
10037         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
10038         func_add_or_update, func_create_testdir): Use it to initialize sed
10039         script variables.
10040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10041
10042 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
10043             Bruno Haible  <bruno@clisp.org>
10044
10045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
10046         also works after #include directives.
10047
10048 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
10049
10050         getdate.y: reject an out-of-range timezone value
10051         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
10052         the range [-24...+24].  When specified with only one or two digits,
10053         * tests/test-getdate.c: Tests for the fix.
10054         * doc/getdate.texi: Document this change.
10055
10056 2008-09-03  Bruno Haible  <bruno@clisp.org>
10057
10058         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
10059
10060 2008-09-02  Simon Josefsson  <simon@josefsson.org>
10061
10062         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
10063         <bruce.korb@gmail.com> with ideas from Ben Pfaff
10064         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
10065         Blake <ebb9@byu.net>.
10066
10067         * tests/test-bitrotate.c: Add more test vectors.
10068
10069 2008-09-02  Eric Blake  <ebb9@byu.net>
10070
10071         vasnprintf-posix: handle large precision via %.*d
10072         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
10073         when handling it ourselves.
10074         * tests/test-vasnprintf-posix.c (test_function): Add test.
10075         * tests/test-snprintf-posix.h (test_function): Likewise.
10076         * tests/test-sprintf-posix.h (test_function): Likewise.
10077         * tests/test-vasprintf-posix.c (test_function): Likewise.
10078         Reported by Alain Guibert.
10079
10080 2008-09-01  Eric Blake  <ebb9@byu.net>
10081
10082         c-stack: make configure-time check more robust
10083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
10084         successful sigaction call.
10085         Reported by Tom G. Christensen.
10086
10087 2008-09-01  Bruno Haible  <bruno@clisp.org>
10088
10089         New module 'findprog-lgpl'.
10090         * modules/findprog-lgpl: New file.
10091         * lib/findprog-lgpl.c: New file.
10092         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
10093         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
10094         to decide whether to use strdup or xstrdup, concatenated_filename or
10095         xconcatenated_filename.
10096
10097 2008-09-01  Bruno Haible  <bruno@clisp.org>
10098
10099         Split module 'concat-filename' into 'concat-filename' (LGPL) and
10100         'xconcat-filename' (GPL).
10101         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
10102         (License): Change to LGPLv2+.
10103         * modules/xconcat-filename: New file.
10104         * lib/concat-filename.h (concatenated_filename): Change specification.
10105         (xconcatenated_filename): New declaration.
10106         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
10107         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
10108         memory situations.
10109         * lib/xconcat-filename.c: New file.
10110         * NEWS: Mention the change.
10111         * lib/findprog.c: Include concat-filename.h, not filename.h.
10112         (find_in_path): Use xconcatenated_filename instead of
10113         concatenated_filename.
10114         * lib/javacomp.c: Include concat-filename.h, not filename.h.
10115         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10116         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10117         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10118         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
10119         instead of concatenated_filename.
10120         * lib/javaexec.c: Include concat-filename.h, not filename.h.
10121         (execute_java_class): Use xconcatenated_filename instead of
10122         concatenated_filename.
10123         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
10124         * modules/javacomp (Depends-on): Likewise.
10125         * modules/javaexec (Depends-on): Likewise.
10126
10127 2008-09-01  Bruno Haible  <bruno@clisp.org>
10128
10129         Split module 'filename' into 'filename' and 'concat-filename'.
10130         * modules/filename: Keep only lib/filename.h.
10131         (License): Change to LGPLv2+.
10132         * modules/concat-filename: New file, extracted from modules/filename.
10133         * lib/filename.h (concatenated_filename): Remove declaration.
10134         * lib/concat-filename.h: New file, extracted from lib/filename.h.
10135         * lib/concat-filename.c: Include concat-filename.h.
10136         * NEWS: Mention the change.
10137
10138 2008-09-01  Simon Josefsson  <simon@josefsson.org>
10139
10140         * lib/bitrotate.h (rotl8, rotr8): Add.
10141
10142         * modules/bitrotate (configure.ac): Need
10143         AC_REQUIRE([AC_C_INLINE]).
10144         (Description): Mention stdint.h.  Reported by Bruno Haible
10145         <bruno@clisp.org>.
10146
10147         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
10148         Paolo Bonzini <bonzini@gnu.org>.
10149
10150 2008-08-31  Bruno Haible  <bruno@clisp.org>
10151
10152         Assume Solaris specific bi-arch conventions on Solaris systems.
10153         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
10154         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
10155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
10156         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
10157         like acl_libdirstem.
10158         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
10159         acl_libdirstem.
10160         * NEWS: Mention the change.
10161         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
10162
10163 2008-08-31  Jim Meyering  <meyering@redhat.com>
10164
10165         * lib/strftime.h: Add comments describing the two added arguments.
10166
10167         remove duplicate #include directives
10168         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
10169         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
10170
10171 2008-08-31  Bruno Haible  <bruno@clisp.org>
10172
10173         New module 'sigpipe-die'.
10174         * modules/sigpipe-die: New file.
10175         * lib/sigpipe-die.h: New file.
10176         * lib/sigpipe-die.c: New file.
10177         * MODULES.html.sh (Signal handling): Add sigpipe-die.
10178
10179 2008-08-31  Bruno Haible  <bruno@clisp.org>
10180
10181         Don't override previously installed signal handlers.
10182         * lib/fatal-signal.c (saved_sigactions): New variable.
10183         (uninstall_handlers): Reset the signal to the saved handler, not
10184         to SIG_DFL (except when ignored).
10185         (install_handlers): Save the previous handlers.
10186
10187 2008-08-30  Bruno Haible  <bruno@clisp.org>
10188
10189         * gnulib-tool (func_reset_sigpipe): New function.
10190         (func_get_automake_snippet, func_modules_transitive_closure,
10191         func_import): Invoke it before a join command that reads from stdin,
10192         to avoid "echo: write error: Broken pipe" error messages on stderr.
10193         Reported by Sam Steingold <sds@gnu.org>.
10194
10195 2008-08-30  Bruno Haible  <bruno@clisp.org>
10196
10197         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
10198         Code copied from m4/open.m4.
10199         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
10200         access and the filename ends in a slash. Code copied from lib/open.c.
10201         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
10202         * tests/test-fopen.c (main): Check against bug with trailing slash.
10203
10204 2008-08-29  Bruno Haible  <bruno@clisp.org>
10205
10206         Avoid some "gcc -pedantic" warnings.
10207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
10208         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
10209         * lib/dirent.in.h: Likewise.
10210         * lib/fcntl.in.h: Likewise.
10211         * lib/float.in.h: Likewise.
10212         * lib/iconv.in.h: Likewise.
10213         * lib/inttypes.in.h: Likewise.
10214         * lib/locale.in.h: Likewise.
10215         * lib/math.in.h: Likewise.
10216         * lib/netinet_in.in.h: Likewise.
10217         * lib/search.in.h: Likewise.
10218         * lib/signal.in.h: Likewise.
10219         * lib/stdarg.in.h: Likewise.
10220         * lib/stdint.in.h: Likewise.
10221         * lib/stdio.in.h: Likewise.
10222         * lib/stdlib.in.h: Likewise.
10223         * lib/string.in.h: Likewise.
10224         * lib/strings.in.h: Likewise.
10225         * lib/sys_select.in.h: Likewise.
10226         * lib/sys_socket.in.h: Likewise.
10227         * lib/sys_stat.in.h: Likewise.
10228         * lib/sys_time.in.h: Likewise.
10229         * lib/sysexits.in.h: Likewise.
10230         * lib/time.in.h: Likewise.
10231         * lib/unistd.in.h: Likewise.
10232         * lib/wchar.in.h: Likewise.
10233         * lib/wctype.in.h: Likewise.
10234         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
10235         * modules/fchdir (Makefile.am): Likewise.
10236         * modules/fcntl (Makefile.am): Likewise.
10237         * modules/float (Makefile.am): Likewise.
10238         * modules/iconv_open (Makefile.am): Likewise.
10239         * modules/inttypes (Makefile.am): Likewise.
10240         * modules/locale (Makefile.am): Likewise.
10241         * modules/math (Makefile.am): Likewise.
10242         * modules/netinet_in (Makefile.am): Likewise.
10243         * modules/search (Makefile.am): Likewise.
10244         * modules/signal (Makefile.am): Likewise.
10245         * modules/stdarg (Makefile.am): Likewise.
10246         * modules/stdint (Makefile.am): Likewise.
10247         * modules/stdio (Makefile.am): Likewise.
10248         * modules/stdlib (Makefile.am): Likewise.
10249         * modules/string (Makefile.am): Likewise.
10250         * modules/strings (Makefile.am): Likewise.
10251         * modules/sys_select (Makefile.am): Likewise.
10252         * modules/sys_socket (Makefile.am): Likewise.
10253         * modules/sys_stat (Makefile.am): Likewise.
10254         * modules/sys_time (Makefile.am): Likewise.
10255         * modules/sysexits (Makefile.am): Likewise.
10256         * modules/time (Makefile.am): Likewise.
10257         * modules/unistd (Makefile.am): Likewise.
10258         * modules/wchar (Makefile.am): Likewise.
10259         * modules/wctype (Makefile.am): Likewise.
10260         Reported by Reuben Thomas <rrt@sc3d.org>.
10261
10262 2008-08-29  Bruno Haible  <bruno@clisp.org>
10263
10264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
10265         any more.
10266
10267 2008-08-29  Simon Josefsson  <simon@josefsson.org>
10268
10269         * MODULES.html.sh (Misc): Add bitrotate.
10270
10271         * modules/bitrotate: New file.
10272
10273         * lib/bitrotate.h: New file.
10274
10275         * modules/bitrotate-tests: New file.
10276
10277         * tests/test-bitrotate.c: New file.
10278
10279         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
10280         on the bitrotate module.
10281
10282         * lib/arctwo.c: Use new bitrotate module.
10283
10284 2008-08-29  Jim Meyering  <meyering@redhat.com>
10285
10286         bootstrap: merge changes from coreutils
10287         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
10288         of copied files.  Remove a kludge, now that this is fixed.
10289         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
10290         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
10291         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
10292
10293 2008-08-29  Bruno Haible  <bruno@clisp.org>
10294
10295         * MODULES.html.sh: Remove --cvs-urls option.
10296
10297 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
10298
10299         maint.mk: adjust to file name change
10300         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
10301
10302 2008-08-28  Jim Meyering  <meyering@redhat.com>
10303
10304         * modules/getndelim2 (License): Relicense to LGPLv2+.
10305         Approved by Richard Stallman for the version of 1995, and by
10306         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
10307
10308 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
10309
10310         * lib/getdelim.c (flockfile, funlockfile): Make all of them
10311         dummy if one is not available.  Do not touch them if
10312         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
10313         (getc_maybe_unlocked): New.
10314         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
10315
10316 2008-08-26  Eric Blake  <ebb9@byu.net>
10317
10318         doc/INSTALL: resync from autoconf
10319         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
10320         (INSTALL_PRELUDE): Delete; this is done more efficiently by
10321         moving...
10322         * install.texi [!autoconf]: ...here.  Resync from autoconf.
10323         * INSTALL: Regenerate.
10324         * INSTALL.ISO: New file.
10325         * INSTALL.UTF-8: Likewise.
10326
10327 2008-08-26  Jim Meyering  <meyering@redhat.com>
10328
10329         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
10330         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
10331         these definitions conditional, so that they may be overridden, too.
10332
10333 2008-08-26  Bruno Haible  <bruno@clisp.org>
10334
10335         Generate INSTALL file variants with prettier quotes.
10336         * doc/Makefile (INSTALL_PRELUDE): New macro.
10337         (INSTALL): Use it.
10338         (INSTALL.ISO, INSTALL.UTF-8): New rules.
10339
10340 2008-08-26  Bruno Haible  <bruno@clisp.org>
10341
10342         Run makeinfo in an English locale.
10343         * doc/Makefile (MAKEINFO): New variable.
10344
10345 2008-08-26  Bruno Haible  <bruno@clisp.org>
10346
10347         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
10348         Suggested by Eric Blake.
10349
10350 2008-08-25  Bruno Haible  <bruno@clisp.org>
10351
10352         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
10353
10354 2008-08-25  Eric Blake  <ebb9@byu.net>
10355
10356         c-stack: test that stack overflow can be caught
10357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
10358         that platform allows handling stack overflow; at least OS/2 EMX
10359         has sigaltstack, but crashes before transferring control to
10360         handler on stack overflow.
10361         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
10362         check for HAVE_STACK_OVERFLOW_HANDLING.
10363         Reported by Elbert Pol.
10364
10365 2008-08-25  Bruno Haible  <bruno@clisp.org>
10366
10367         * doc/posix-functions/strftime.texi: Fix description of strftime
10368         module.
10369
10370 2008-08-24  Bruno Haible  <bruno@clisp.org>
10371
10372         * tests/uniwidth/test-uc_width2.c: New file.
10373         * tests/uniwidth/test-uc_width2.sh: New file.
10374         * modules/uniwidth/width-tests (Files): Add the new files.
10375         (TESTS): Add uniwidth/test-uc_width2.sh.
10376         (TESTS_ENVIRONMENT): New variable.
10377         (check_PROGRAMS): Add test-uc_width2.
10378         (test_uc_width2_SOURCES): New variable.
10379
10380         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
10381         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
10382         not 0x00AB.
10383         Reported by Alexander V. Lukyanov <lav@netis.ru>.
10384
10385 2008-08-22  Eric Blake  <ebb9@byu.net>
10386
10387         test-lock, test-tls: mention why a test is skipped
10388         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
10389         skipped.
10390         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
10391
10392         count-one-bits: relax license
10393         * modules/count-one-bits (License): Relicense to LGPLv2+.
10394         Suggested by Ludovic Courtès, approved by Ben Pfaff.
10395
10396 2008-08-22  Andreas Schwab  <schwab@suse.de>
10397
10398         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10399         Remove spurious space in assignment.
10400
10401 2008-08-21  Simon Josefsson  <simon@josefsson.org>
10402
10403         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
10404         Paul Eggert <eggert@CS.UCLA.EDU>.
10405
10406 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
10407
10408         * modules/gettext: Add m4/threadlib.m4.
10409
10410 2008-08-19  Eric Blake  <ebb9@byu.net>
10411
10412         test-c-stack: fix compilation failure on FreeBSD 5.0
10413         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
10414         headers before <sys/resource.h>.
10415         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
10416         the bug.
10417         Reported by Nelson H. F. Beebe.
10418
10419         strverscmp: migrate from "strverscmp.h" to <string.h>
10420         * modules/string (Makefile.am): Add new hooks.
10421         * modules/strverscmp (Files): Remove strverscmp.h.
10422         (Depends-on): Add string.
10423         (configure.ac): Add indicator.
10424         (Include): Mention new header.
10425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
10426         defaults.
10427         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
10428         results.
10429         * lib/strverscmp.h: Delete.
10430         * lib/string.in.h (strverscmp): Provide declaration, when needed.
10431         * tests/test-strverscmp.c (includes): Adjust client.
10432         * lib/check-version.c (includes): Likewise.
10433         * NEWS: Document the change.
10434
10435         strverscmp: add unit test
10436         * modules/strverscmp-tests: New file.
10437         * tests/test-strverscmp.c: Likewise.
10438
10439 2008-08-19  Simon Josefsson  <simon@josefsson.org>
10440
10441         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
10442         regarding Windows crypto stuff, from Mono.
10443
10444 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
10445
10446         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
10447         if present, for intel RND.  Return error on failures.
10448
10449 2008-08-18  Ben Pfaff  <blp@gnu.org>
10450
10451         gitlog-to-changelog: give better diagnostic for failed pipe-open
10452         * build-aux/gitlog-to-changelog: Improve error message: suggest
10453         that the version of Git may be too old.
10454
10455 2008-08-18  Simon Josefsson  <simon@josefsson.org>
10456
10457         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
10458         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
10459
10460 2008-08-18  Bruno Haible  <bruno@clisp.org>
10461
10462         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
10463         pthread_in_use().
10464
10465 2008-08-18  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/glthread/threadlib.c: Include <pthread.h>.
10468
10469 2008-08-18  Bruno Haible  <bruno@clisp.org>
10470
10471         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
10472         glthread_recursive_lock_* macros.
10473         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
10474         Fix syntax error.
10475
10476 2008-08-18  Bruno Haible  <bruno@clisp.org>
10477
10478         * lib/glthread/thread.c: Avoid forcing a context switch right after
10479         thread creation.
10480
10481 2008-08-17  Bruno Haible  <bruno@clisp.org>
10482
10483         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
10484         * lib/glthread/thread.h: Provide Win32 specific implementation.
10485         * modules/thread (Files): Add lib/glthread/thread.c.
10486         (Depends-on): Add lock.
10487         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
10488
10489 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10490
10491         New module 'yield'.
10492         * modules/yield: New file.
10493         * lib/glthread/yield.h: New file.
10494         * m4/yield.m4: New file.
10495         * MODULES.html.sh (Multithreading): Add yield.
10496
10497 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10498
10499         New module 'thread'.
10500         * modules/thread: New file.
10501         * lib/glthread/thread.h: New file.
10502         * m4/thread.m4: New file.
10503         * MODULES.html.sh (Multithreading): Add thread.
10504
10505 2008-08-17  Bruno Haible  <bruno@clisp.org>
10506
10507         * lib/glthread/lock.h: Include <stdlib.h> always.
10508         * lib/glthread/tls.h: Likewise.
10509         * lib/glthread/cond.h: Likewise.
10510
10511 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10512
10513         New module 'cond'.
10514         * modules/cond: New file.
10515         * lib/glthread/cond.h: New file.
10516         * lib/glthread/cond.c: New file.
10517         * m4/cond.m4: New file.
10518         * MODULES.html.sh (Multithreading): Add cond.
10519
10520 2008-08-16  Eric Blake  <ebb9@byu.net>
10521
10522         c-stack: fix regression on Irix 5.3 from 2008-06-21
10523         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
10524         sa_sigaction...
10525         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
10526         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
10527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
10528         * modules/signal (Makefile.am): Use the value.
10529         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
10530         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
10531         * doc/posix-headers/signal.texi (signal.h): Document this
10532         portability issue.
10533         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
10534         Reported by Tom G. Christensen.
10535
10536 2008-08-17  Bruno Haible  <bruno@clisp.org>
10537
10538         New module 'threadlib'.
10539         * modules/threadlib: New file.
10540         * lib/glthread/threadlib.c: New file, extracted from
10541         lib/glthread/lock.c.
10542         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
10543         functions.
10544         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
10545         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
10546         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
10547         macros.
10548         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
10549         (gl_DISABLE_THREADS): Remove macro.
10550         * modules/lock (Files): Remove build-aux/config.rpath.
10551         (Depends-on): Remove havelib. Add threadlib.
10552         (configure.ac-early): Remove section.
10553         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
10554         * modules/tls (Depends-on): Remove lock. Add threadlib.
10555         (Link): New section, copied from threadlib.
10556         * MODULES.html.sh (Multithreading): Add threadlib.
10557
10558 2008-08-14  Bruno Haible  <bruno@clisp.org>
10559
10560         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
10561         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
10562         glthread_rwlock_unlock, glthread_rwlock_destroy,
10563         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
10564         glthread_recursive_lock_destroy): Define as macros always.
10565         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
10566         glthread_lock_lock.
10567         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
10568         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
10569         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
10570         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
10571         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
10572         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
10573         (glthread_recursive_lock_lock_func): Renamed from
10574         glthread_recursive_lock_lock.
10575         (glthread_recursive_lock_unlock_func): Renamed from
10576         glthread_recursive_lock_unlock.
10577         (glthread_recursive_lock_destroy_func): Renamed from
10578         glthread_recursive_lock_destroy.
10579
10580 2008-08-14  Bruno Haible  <bruno@clisp.org>
10581
10582         * lib/glthread/lock.h: Renamed from lib/lock.h.
10583         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
10584         * lib/glthread/tls.h: Renamed from lib/tls.h.
10585         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
10586         * lib/fstrcmp.c: Update includes.
10587         * lib/strsignal.c: Update includes.
10588         * modules/lock (Files, Makefile.am): Update.
10589         (Include): Change to "glthread/lock.h".
10590         * modules/tls (Files, Makefile.am): Update.
10591         (Include): Change to "glthread/tls.h".
10592         * tests/test-lock.c: Update includes.
10593         * tests/test-tls.c: Update includes.
10594         * NEWS: Mention the renamed header files.
10595
10596 2008-08-11  Jim Meyering  <meyering@redhat.com>
10597
10598         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
10599
10600 2008-08-11  Eric Blake  <ebb9@byu.net>
10601
10602         test-c-stack: avoid C99-ism
10603         * tests/test-c-stack.c (main): Fix whitespace, move declaration
10604         before statement.
10605         Reported by Alain Guibert.
10606
10607 2008-08-10  Jim Meyering  <meyering@redhat.com>
10608
10609         ensure that return value of uinttostr et al are not ignored
10610         * lib/inttostr.h (__GNUC_PREREQ): Define.
10611         (__attribute_warn_unused_result__): Define.
10612         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
10613
10614 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
10615
10616         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
10617         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
10618
10619 2008-08-07  Jim Meyering  <meyering@redhat.com>
10620
10621         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
10622
10623         * modules/mkstemp (License): Relicense under LGPLv2+.
10624         * modules/tempname (License): Likewise.
10625
10626 2008-08-06  Bruno Haible  <bruno@clisp.org>
10627
10628         * lib/poll.c (poll): Further micro-optimization.
10629
10630 2008-08-06  Jim Meyering  <meyering@redhat.com>
10631
10632         inet_pton.c: use locale-independent tolower
10633         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
10634         (inet_pton6): Use c_tolower rather than tolower.
10635         * modules/inet_pton (Depends-on): Add c-ctype.
10636
10637 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
10638
10639         * lib/poll.c (poll): Avoid division when timeout is 0, cache
10640         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
10641
10642 2008-08-06  Jim Meyering  <meyering@redhat.com>
10643
10644         * modules/inet_pton (License): Relicense under LGPLv2+.
10645
10646 2008-08-03  Bruno Haible  <bruno@clisp.org>
10647
10648         Additional non-aborting API for lock and tls.
10649         * lib/lock.h: Include <errno.h>.
10650         (glthread_lock_init): New macro/function.
10651         (gl_lock_init): Define as wrapper around glthread_lock_init.
10652         (glthread_lock_lock): New macro/function.
10653         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
10654         (glthread_lock_unlock): New macro/function.
10655         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
10656         (glthread_lock_destroy): New macro/function.
10657         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
10658         (glthread_rwlock_init): New macro/function.
10659         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
10660         (glthread_rwlock_rdlock): New macro/function.
10661         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
10662         (glthread_rwlock_wrlock): New macro/function.
10663         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
10664         (glthread_rwlock_unlock): New macro/function.
10665         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
10666         (glthread_rwlock_destroy): New macro/function.
10667         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
10668         (glthread_recursive_lock_init): New macro/function.
10669         (gl_recursive_lock_init): Define as wrapper around
10670         glthread_recursive_lock_init.
10671         (glthread_recursive_lock_lock): New macro/function.
10672         (gl_recursive_lock_lock): Define as wrapper around
10673         glthread_recursive_lock_lock.
10674         (glthread_recursive_lock_unlock): New macro/function.
10675         (gl_recursive_lock_unlock): Define as wrapper around
10676         glthread_recursive_lock_unlock.
10677         (glthread_recursive_lock_destroy): New macro/function.
10678         (gl_recursive_lock_destroy): Define as wrapper around
10679         glthread_recursive_lock_destroy.
10680         (glthread_once): New macro/function.
10681         (gl_once): Define as wrapper around glthread_once.
10682         Update function declarations.
10683         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
10684         glthread_rwlock_init. Return error code.
10685         (glthread_rwlock_rdlock_multithreaded): Renamed from
10686         glthread_rwlock_rdlock. Return error code.
10687         (glthread_rwlock_wrlock_multithreaded): Renamed from
10688         glthread_rwlock_wrlock. Return error code.
10689         (glthread_rwlock_unlock_multithreaded): Renamed from
10690         glthread_rwlock_unlock. Return error code.
10691         (glthread_rwlock_destroy_multithreaded): Renamed from
10692         glthread_rwlock_destroy. Return error code.
10693         (glthread_recursive_lock_init_multithreaded): Renamed from
10694         glthread_recursive_lock_init. Return error code.
10695         (glthread_recursive_lock_lock_multithreaded): Renamed from
10696         glthread_recursive_lock_lock. Return error code.
10697         (glthread_recursive_lock_unlock_multithreaded): Renamed from
10698         glthread_recursive_lock_unlock. Return error code.
10699         (glthread_recursive_lock_destroy_multithreaded): Renamed from
10700         glthread_recursive_lock_destroy. Return error code.
10701         (glthread_once_call): Make static.
10702         (glthread_once_multithreaded): Renamed from glthread_once.
10703         * lib/tls.h: Include <errno.h>.
10704         (glthread_tls_key_init): New macro/function.
10705         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
10706         (glthread_tls_set): New macro/function.
10707         (gl_tls_set): Define as wrapper around glthread_tls_set.
10708         (glthread_tls_key_destroy): New macro/function.
10709         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
10710         Update function declarations.
10711         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
10712         glthread_tls_get.
10713         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10714
10715 2008-08-04  Eric Blake  <ebb9@byu.net>
10716
10717         gnumakefile: use space, not TAB, outside of targets
10718         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
10719
10720 2008-08-02  Jim Meyering  <meyering@redhat.com>
10721
10722         getdate.y: avoid locale-dependent date parsing failure
10723         In Turkish locales, getdate would fail to recognize keywords
10724         containing a lowercase "i".  The solution is not to rely on
10725         locale-sensitive case-conversion.
10726         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
10727         (lookup_word): Use c_toupper in place of toupper.
10728         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
10729         Reported by Vefa Bicakci <bicave@superonline.com> in
10730         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
10731         * modules/getdate (Depends-on): Add c-ctype.
10732
10733 2008-08-02  Bruno Haible  <bruno@clisp.org>
10734
10735         * gnulib-tool (func_import): When updating or creating a .gitignore
10736         file, prepend each added line with a slash, and ignore leading slashes
10737         from the existing lines.
10738         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10739
10740 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10741
10742         Portability fix for GNU make 3.79.1.
10743         * top/GNUmakefile: Avoid 'else COND', which older GNU make
10744         versions do not understand.
10745
10746 2008-08-01  Bruno Haible  <bruno@clisp.org>
10747
10748         Work around bug of HP-UX 10.20 cc with -0.0 literal.
10749         * tests/test-isnanf.h (zero): New variable.
10750         (main): Avoid literal -0.0f.
10751         * tests/test-isnand.h (zero): New variable.
10752         (main): Avoid literal -0.0.
10753         * tests/test-isnanl.h (zero): New variable.
10754         (main): Avoid literal -0.0L.
10755         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
10756         (test_float, test_double, test_long_double): Avoid literals -0.0f,
10757         -0.0, -0.0L.
10758         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
10759         (test_signbitd): Avoid literal -0.0.
10760         (test_signbitl): Avoid literal -0.0L.
10761         * tests/test-ceilf1.c (zero): New variable.
10762         (main): Avoid literal -0.0f.
10763         * tests/test-ceill.c (zero): New variable.
10764         (main): Avoid literal -0.0L.
10765         * tests/test-floorf1.c (zero): New variable.
10766         (main): Avoid literal -0.0f.
10767         * tests/test-floorl.c (zero): New variable.
10768         (main): Avoid literal -0.0L.
10769         * tests/test-roundf1.c (zero): New variable.
10770         (main): Avoid literal -0.0f.
10771         * tests/test-round1.c (zero): New variable.
10772         (main): Avoid literal -0.0.
10773         * tests/test-roundl.c (zero): New variable.
10774         (main): Avoid literal -0.0L.
10775         * tests/test-truncf1.c (zero): New variable.
10776         (main): Avoid literal -0.0f.
10777         * tests/test-trunc1.c (zero): New variable.
10778         (main): Avoid literal -0.0.
10779         * tests/test-truncl.c (zero): New variable.
10780         (main): Avoid literal -0.0L.
10781         * tests/test-frexp.c (zero): New variable.
10782         (main): Avoid literal -0.0.
10783         * tests/test-frexpl.c (zero): New variable.
10784         (main): Avoid literal -0.0L.
10785         * tests/test-ldexpl.c (zero): New variable.
10786         (main): Avoid literal -0.0L.
10787         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
10788         (zerod, zerol): New variables.
10789         (test_function): Avoid literals -0.0, -0.0L.
10790         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
10791         (zerod, zerol): New variables.
10792         (test_function): Avoid literals -0.0, -0.0L.
10793         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
10794         (zerod, zerol): New variables.
10795         (test_function): Avoid literals -0.0, -0.0L.
10796         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
10797         (zerod, zerol): New variables.
10798         (test_function): Avoid literals -0.0, -0.0L.
10799         * tests/test-strtod.c (zero): New variable.
10800         (main): Avoid literal -0.0.
10801         Reported by Jonathan C. Patschke <jp@centtech.com>.
10802
10803 2008-07-31  Jim Meyering  <meyering@redhat.com>
10804
10805         sha256.h: correct definition of SHA224_DIGEST_SIZE
10806         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
10807         Reported by Paulie Pena IV <paulie4@gmail.com>.
10808         Define as 224 / 8, rather than as a literal.
10809         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
10810         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
10811         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
10812
10813 2008-07-31  Bruno Haible  <bruno@clisp.org>
10814
10815         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
10816         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
10817         Reported by Jonathan Patschke <jp@centtech.com>.
10818
10819 2008-07-31  Bruno Haible  <bruno@clisp.org>
10820
10821         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
10822         Reported by Paolo Bonzini <bonzini@gnu.org>.
10823
10824 2008-07-30  Eric Blake  <ebb9@byu.net>
10825
10826         test-strtod: allow compilation without -lm
10827         * tests/test-strtod.c (main): Avoid link dependence on fabs.
10828         Reported by Dennis Clarke <blastwave@gmail.com>.
10829
10830 2008-07-28  Jim Meyering  <meyering@redhat.com>
10831
10832         bootstrap: work also when there are no .po files in po/
10833         * build-aux/bootstrap (update_po_files): Complete the change
10834         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
10835
10836 2008-07-27  Jim Meyering  <meyering@redhat.com>
10837
10838         * users.txt: Add zile.
10839
10840 2008-07-26  Ben Pfaff  <blp@gnu.org>
10841
10842         Add missing dependencies on new m4/exponent[fdl].m4 files.
10843         * modules/isnanf-nolibm: Add m4/exponentf.m4.
10844         * modules/isnand-nolibm: Add m4/exponentd.m4.
10845         * modules/isnanl-nolibm: Add m4/exponentl.m4.
10846         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
10847         m4/isnan[fdl].m4, because the macros actually used moved.
10848         Reported by Jim Meyering.
10849
10850 2008-07-14  Ben Pfaff  <blp@gnu.org>
10851
10852         Add isinf module.
10853         * lib/isinf.c: New file.
10854         * lib/math.in.h: Define isinf macro if we have decided to replace
10855         it.
10856         * m4/isinf.m4: New file.
10857         * m4/math_h.m4: Initialize and substitute variables for isinf
10858         module.
10859         * modules/isinf: New file.
10860         * modules/isinf-tests: New file.
10861         * modules/math: Add substitutions for new module.
10862         * tests/test-isinf.c: New file.
10863         * doc/posix-functions/isinf.texi: Mention new module.
10864         * MODULES.html.sh: Mention new module.
10865
10866 2008-07-14  Ben Pfaff  <blp@gnu.org>
10867
10868         Factor out some macros for use by additional modules.
10869         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
10870         exponentf.m4.
10871         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
10872         exponentd.m4.
10873         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
10874         file exponentl.m4.
10875         * m4/exponentf.m4: New file.
10876         * m4/exponentd.m4: New file.
10877         * m4/exponentl.m4: New file.
10878         * modules/isnanf: Use new file m4/exponentf.m4.
10879         * modules/isnand: Use new file m4/exponentd.m4.
10880         * modules/isnanl: Use new file m4/exponentl.m4.
10881
10882 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
10883
10884         mktime.c: normalize tp->tm_isdst value to -1/0/1.
10885         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
10886         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
10887         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
10888
10889         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
10890         readlink on platforms without PATH_MAX.
10891
10892 2008-07-21  Eric Blake  <ebb9@byu.net>
10893
10894         Warn, not fail, on stale version.
10895         * top/GNUmakefile (_curr-ver): Tone down previous patch.
10896
10897         Don't allow installation with stale devel version number.
10898         * top/GNUmakefile (_is-install-target): New macro.
10899         (_curr-ver): Forbid installation with stale version number.
10900
10901 2008-07-20  Bruno Haible  <bruno@clisp.org>
10902
10903         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
10904         TESTS_ENVIRONMENT.
10905         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
10906
10907 2008-07-20  Bruno Haible  <bruno@clisp.org>
10908
10909         * lib/c-stack.h (c_stack_action): Add documentation.
10910         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
10911
10912 2008-07-20  Bruno Haible  <bruno@clisp.org>
10913
10914         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
10915         * modules/readlink (License): Likewise.
10916
10917 2008-07-17  Eric Blake  <ebb9@byu.net>
10918
10919         * modules/c-stack (Link): Fix typo.
10920
10921         Make c-stack use libsigsegv, when available.
10922         * modules/c-stack (Depends-on): Add libsigsegv.
10923         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
10924         needed.
10925         * lib/c-stack.c (SIGSTKSZ): Define fallback.
10926         (segv_handler, overflow_handler, c_stack_action)
10927         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
10928         implementation when libsigsegv is available, but only when using
10929         the library is necessary.
10930         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
10931         comment, explaining why XSI check fails on Linux.
10932         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
10933         * tests/test-c-stack2.sh: Tweak skip message.
10934         * NEWS: Document new link-time requirements.
10935
10936 2008-07-16  Eric Blake  <ebb9@byu.net>
10937
10938         c-stack: Expose false positives when not using libsigsegv.
10939         * modules/c-stack-tests (Files): Expand test.
10940         * tests/test-c-stack.c (main): Add means to conditionally trigger
10941         non-overflow SIGSEGV.
10942         * tests/test-c-stack2.sh: New file.
10943
10944 2008-07-14  Bruno Haible  <bruno@clisp.org>
10945
10946         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
10947         Reported by Eric Blake.
10948
10949 2008-07-14  Sam Steingold  <sds@gnu.org>
10950             Bruno Haible  <bruno@clisp.org>
10951
10952         New module libsigsegv.
10953         * modules/libsigsegv: New file.
10954         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
10955         modifications.
10956         * MODULES.html.sh (Signal handling): New section.
10957
10958 2008-07-14  Bruno Haible  <bruno@clisp.org>
10959
10960         * modules/unictype/ctype-* (Description): Add the word "function".
10961         Improves the resulting doc in MODULES.html.
10962
10963 2008-07-12  Ben Pfaff  <blp@gnu.org>
10964
10965         Add longlong module.
10966         * modules/longlong: New file.
10967
10968 2008-07-12  Bruno Haible  <bruno@clisp.org>
10969
10970         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
10971         to empty.
10972
10973 2008-07-10  Ben Pfaff  <blp@gnu.org>
10974
10975         Add isnan module.
10976         * doc/posix-functions/isnan.texi: Mention new module.
10977         * lib/math.in.h: Define isnan macro if we have decided to replace
10978         it.
10979         * m4/isnan.m4: New file.
10980         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
10981         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
10982         also.
10983         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
10984         redundancy.
10985         * m4/math_h.m4: Initialize and substitute variables for isnan
10986         module.
10987         * modules/isnan: New file.
10988         * modules/isnan-tests: New file.
10989         * modules/math: Add substitutions for new module.
10990         * tests/test-isnan.c: New file.
10991         * MODULES.html.sh: Mention new module.
10992
10993 2008-07-10  Ben Pfaff  <blp@gnu.org>
10994
10995         Add isnanf module.
10996         * lib/isnanf.m4: New file.
10997         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
10998         (gl_HAVE_ISNANF_IN_LIBM): New macro.
10999         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
11000         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
11001         * modules/isnanf: New file.
11002         * modules/isnanf-tests: New file.
11003         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
11004         files.
11005         * tests/test-isnanf-nolibm.c: factored most of its contents into
11006         new file tests/test-isnanf.h.
11007         * tests/test-isnanf.h: New file.
11008         * tests/test-isnanf.c: New file.
11009         * MODULES.html.sh: Mention new module.
11010         * doc/glibc-functions/isnanf.texi: Mention new module.
11011
11012 2008-07-10  Ben Pfaff  <blp@gnu.org>
11013
11014         Add isnand module.
11015         * lib/isnand.h: New file.
11016         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
11017         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
11018         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
11019         functionality also.
11020         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
11021         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
11022         (gl_HAVE_ISNAND_IN_LIBM): New macro.
11023         * modules/isnand: New file.
11024         * modules/isnand-tests: New file.
11025         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
11026         files.
11027         * tests/test-isnand-nolibm.c: factored most of its contents into
11028         new file tests/test-isnand.h.
11029         * tests/test-isnand.h: New file.
11030         * tests/test-isnand.c: New file.
11031         * MODULES.html.sh: Mention new module.
11032
11033 2008-07-10  Ben Pfaff  <blp@gnu.org>
11034
11035         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
11036         * lib/isnand.h: Rename lib/isnand-nolibm.h.
11037         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
11038         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
11039         * modules/isnanf-nolibm: Update references to renamed files.
11040         * modules/isnand-nolibm: Likewise.
11041         * modules/isnanf-nolibm-tests: Likewise.
11042         * modules/isnand-nolibm-tests: Likewise.
11043         * lib/frexp.c: Likewise.
11044         * lib/isfinite.c: Likewise.
11045         * lib/signbitd.c: Likewise.
11046         * lib/signbitf.c: Likewise.
11047         * lib/vasnprintf.c: Likewise.
11048         * tests/test-ceilf1.c: Likewise.
11049         * tests/test-ceilf2.c: Likewise.
11050         * tests/test-floorf1.c: Likewise.
11051         * tests/test-floorf2.c: Likewise.
11052         * tests/test-frexp.c: Likewise.
11053         * tests/test-round1.c: Likewise.
11054         * tests/test-round2.c: Likewise.
11055         * tests/test-roundf1.c: Likewise.
11056         * tests/test-strtod.c: Likewise.
11057         * tests/test-trunc1.c: Likewise.
11058         * tests/test-trunc2.c: Likewise.
11059         * tests/test-truncf1.c: Likewise.
11060         * tests/test-truncf2.c: Likewise.
11061         * NEWS: Mention the renamed header files.
11062
11063 2008-07-11  Jim Meyering  <meyering@redhat.com>
11064
11065         vc-list-files: make the last-resort awk code more portable
11066         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
11067         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
11068         does not support it.
11069
11070 2008-07-10  Eric Blake  <ebb9@byu.net>
11071
11072         Work with tar's bootstrap.
11073         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
11074         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
11075         an m4 comment.
11076
11077 2008-07-09  Jim Meyering  <meyering@redhat.com>
11078
11079         posix-shell.m4: fix typo that made this test malfunction
11080         * m4/posix-shell.m4: Remove capitalization in variable name.
11081
11082 2008-07-08  Bruno Haible  <bruno@clisp.org>
11083
11084         * m4/onceonly.m4: Update comments.
11085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11086
11087 2008-07-04  Jim Meyering  <meyering@redhat.com>
11088
11089         * users.txt: Add vc-dwim.
11090         (bison, coreutils): Use the gitweb URL.
11091
11092 2008-07-03  Jim Meyering  <meyering@redhat.com>
11093
11094         * users.txt: Add libffcall.  From Sam Steingold.
11095
11096 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
11097
11098         getdate.y: do not ignore TZ with relative day, month or year offset
11099         * lib/getdate.y (get_date): Move the tz-handling block to follow the
11100         relative-date-handling, since otherwise, the latter would clobber the
11101         sole output (an updated Start value) of the tz-handling block.
11102         * tests/test-getdate.c: Tests for the fix
11103
11104 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11105
11106         Recognize 'foo_LIBRARIES += libgnu.a'.
11107         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
11108         makefile snippet has already specified an installation location,
11109         also using '+='.
11110
11111 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
11112
11113         getdate.y: factor out common actions
11114         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
11115         Use them in place of open-coded actions.
11116
11117 2008-07-01  Simon Josefsson  <simon@josefsson.org>
11118
11119         Add self-test for getdate module.
11120         * modules/getdate-tests: New file.
11121         * tests/test-getdate.c: New file.
11122
11123 2008-06-29  Bruno Haible  <bruno@clisp.org>
11124
11125         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
11126         .gitignore.
11127         Reported by Sylvain Beucler <beuc@beuc.net>.
11128
11129 2008-06-29  Bruno Haible  <bruno@clisp.org>
11130
11131         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
11132         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
11133
11134 2008-06-29  Bruno Haible  <bruno@clisp.org>
11135
11136         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
11137         EXTRA_DIST.
11138         Reported by Sylvain Beucler <beuc@beuc.net>.
11139
11140 2008-06-26  Jim Meyering  <meyering@redhat.com>
11141
11142         make several modules depend on the "open" module
11143         This provides slightly increased consistency when opening-for-write
11144         the name of a non-directory spelled with a trailing slash.
11145         * modules/chdir-safer: Likewise.
11146         * modules/chown: Likewise.
11147         * modules/clean-temp: Likewise.
11148         * modules/copy-file: Likewise.
11149         * modules/fchdir: Likewise.
11150         * modules/fcntl-safer: Likewise.
11151         * modules/pipe: Likewise.
11152         * modules/utime: Likewise.
11153         Prompted by Eric Blake and Bruno Haible.
11154
11155 2008-06-24  Andreas Schwab  <schwab@suse.de>
11156
11157         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
11158         literals can be used as initializers for global variables.
11159
11160 2008-06-23  Eric Blake  <ebb9@byu.net>
11161
11162         Make gnulib-cache.m4 easier to diff.
11163         * gnulib-tool (func_import): Allow newlines when reading cached
11164         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
11165
11166 2008-06-23  Bruno Haible  <bruno@clisp.org>
11167
11168         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
11169         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
11170         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
11171         m4/signalblocking.m4.
11172         (gl_PREREQ_SIGACTION): Don't invoke it.
11173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
11174         gl_PREREQ_SIG_HANDLER_H.
11175         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11176         Don't check for sigaction here.
11177
11178 2008-06-23  Bruno Haible  <bruno@clisp.org>
11179
11180         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
11181         (install_handlers): Don't set the SA_RESETHAND flag.
11182
11183 2008-06-23  Bruno Haible  <bruno@clisp.org>
11184
11185         * m4/sigaction.m4: Comment fixes.
11186         * lib/signal.in.h: Likewise.
11187
11188 2008-06-23  Eric Blake  <ebb9@byu.net>
11189
11190         Fix typo.
11191         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
11192
11193         Avoid SA_ namespace.
11194         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
11195         Reported by Ralf Wildenhues.
11196
11197         Avoid test failure due to SA_RESTORER.
11198         * tests/test-sigaction.c (SA_MASK): New macro.
11199         (main): Avoid failing due to extension flags being set.
11200         Reported by Jim Meyering.
11201
11202         Revert use of sig-handler.h in sigprocmask.c.
11203         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
11204         it requires the existence of struct sigaction.
11205         * lib/sigprocmask.c (handler_t): Restore typedef.
11206         (rpl_signal, old_handlers): Use local type.
11207
11208 2008-06-22  Bruno Haible  <bruno@clisp.org>
11209
11210         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
11211         conditionally.
11212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11213
11214 2008-06-22  Bruno Haible  <bruno@clisp.org>
11215
11216         * doc/posix-functions/siginterrupt.texi: Move note.
11217
11218         * lib/signal.in.h (SA_RESTART): New macro.
11219         * lib/sigaction.c: Update comment.
11220
11221         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
11222
11223         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
11224         (gl_PREREQ_SIGPROCMASK): Invoke it.
11225         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
11226
11227         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
11228
11229         * lib/sigprocmask.c: Update a comment.
11230
11231 2008-06-21  Eric Blake  <ebb9@byu.net>
11232
11233         Use sigaction module rather than signal().
11234         * modules/c-stack (Depends-on): Add sigaction.
11235         * modules/fatal-signal (Depends-on): Likewise.
11236         * modules/nanosleep (Depends-on): Likewise.
11237         * modules/sigprocmask (Files): Add sig-handler.h.
11238         * modules/sigaction (Files): Likewise.
11239         * lib/sig-handler.h (get_handler): New file, suggested by Paul
11240         Eggert.
11241         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
11242         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
11243         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
11244         (init_fatal_signals): Likewise.
11245         * lib/nanosleep.c (rpl_nanosleep): Likewise.
11246         (siginterrupt): Delete fallback.
11247         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
11248         instead.
11249         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
11250         siginterrupt.
11251
11252         New module sigaction, for mingw.
11253         * modules/sigaction: New module...
11254         * modules/sigaction-tests: ...and its test.
11255         * m4/sigaction.m4: New file.
11256         * lib/sigaction.c: Likewise.
11257         * tests/test-sigaction.c: Likewise.
11258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
11259         * modules/signal (Makefile.am): Likewise.
11260         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
11261         needed.
11262         * doc/posix-headers/signal.texi (signal.h): Mention provided
11263         types.
11264         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
11265         that sigaction is preferable.
11266         * doc/posix-functions/sigaction.texi (sigaction): Mention new
11267         module.
11268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11269         sigaction.
11270
11271         Improve robustness of sigprocmask by overriding signal.
11272         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
11273         is in use.
11274         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
11275         (SIGKILL, SIGSTOP): Provide fallbacks.
11276         (rpl_signal): Implement.
11277         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
11278         signal can be called inside handlers.
11279
11280         Fix nanosleep module on mingw.
11281         * modules/nanosleep (Depends-on): Add sys_select.
11282         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
11283
11284         Fix licensing of sigprocmask.
11285         * modules/raise (License): Relicense as LGPL.
11286
11287 2008-06-21  Bruno Haible  <bruno@clisp.org>
11288
11289         * lib/propername.c (proper_name_utf8): Don't use the transliterated
11290         result if it contains question marks.
11291         Reported by Michael Geng <linux@michaelgeng.de>.
11292
11293 2008-06-19  Bruno Haible  <bruno@clisp.org>
11294
11295         Fix CVS-ism.
11296         * doc/gnulib.texi: Include updated-stamp.texi.
11297         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
11298         (updated-stamp.texi): New rule.
11299         (gnulib.info): Depend on it.
11300         * doc/.gitignore: Add updated-stamp.texi.
11301         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
11302
11303 2008-06-19  Bruno Haible  <bruno@clisp.org>
11304
11305         * doc/Makefile (gnulib.info): Update and simplify dependencies.
11306         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11307
11308 2008-06-19  Eric Blake  <ebb9@byu.net>
11309
11310         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
11311         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
11312         Reported by Stepan Kasal.
11313
11314 2008-06-18  Bruno Haible  <bruno@clisp.org>
11315
11316         * lib/fatal-signal.c (init_fatal_signals): Add comment.
11317         Reported by Eric Blake.
11318
11319 2008-06-18  Eric Blake  <ebb9@byu.net>
11320
11321         Work around cygwin 1.5.25 strsignal bug.
11322         * tests/test-strsignal.c: Allow for const char *.
11323         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
11324
11325 2008-06-18  Simon Josefsson  <simon@josefsson.org>
11326
11327         * users.txt: Update URL to article and add author/date
11328         information.
11329
11330 2008-06-17  Bruno Haible  <bruno@clisp.org>
11331
11332         New macro gl_DISABLE_THREADS.
11333         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
11334         if the user did not pass --enable-threads or --disable-threads option.
11335         (gl_DISABLE_THREADS): New macro.
11336         Reported by Eric Blake <ebb9@byu.net>.
11337
11338 2008-06-17  Bruno Haible  <bruno@clisp.org>
11339
11340         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
11341         when the macro ignores it.
11342         Based on a patch by Eric Blake <ebb9@byu.net>.
11343
11344 2008-06-17  Bruno Haible  <bruno@clisp.org>
11345
11346         * modules/tls (License): Change to LGPLv2+.
11347         Reported by Eric Blake.
11348
11349 2008-06-17  Eric Blake  <ebb9@byu.net>
11350
11351         Simplify c-stack prerequisites.
11352         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
11353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
11354         no longer requires <ucontext.h> to exist.  Optimize setrlimit
11355         check.
11356         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
11357         <sys/resource.h>.
11358
11359         Move c-stack test into testsuite.
11360         * modules/c-stack-tests: New file.
11361         * lib/c-stack.c [DEBUG]: Move test program...
11362         * tests/test-c-stack.c: ...into this new file.  Skip rather than
11363         fail test if sigaltstack is lacking.
11364         * tests/test-c-stack.sh: New driver file.
11365
11366 2008-06-16  Eric Blake  <ebb9@byu.net>
11367
11368         Use raise module consistently.
11369         * modules/fatal-signal (Depends-on): Add raise.
11370         * modules/sigprocmask (Depends-on): Likewise.
11371         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
11372         * lib/sigprocmask.c (sigprocmask): Likewise.
11373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11374         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
11375
11376         Fix compliance bug in sigpending.
11377         * lib/sigprocmask.c (sigpending): Return pending array via
11378         parameter, not return value.
11379
11380 2008-06-14  Eric Blake  <ebb9@byu.net>
11381
11382         Improve obstack-printf test code.
11383         * tests/test-obstack-printf.c (test_function): Fix comment, and
11384         simplify usage of obstack_* in macros.  Add a test for coverage.
11385         Reported by Bruno Haible.
11386
11387 2008-06-14  Bruno Haible  <bruno@clisp.org>
11388
11389         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
11390         array size as a constant, not as a const variable.
11391         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
11392         AC_USE_SYSTEM_EXTENSIONS.
11393         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
11394         Test whether the obstack_printf function actually exists.
11395         * modules/obstack-printf (Depends-on): Add extensions.
11396         (Include): Remove obstack.h.
11397         * modules/obstack-printf-posix (Depends-on): Add extensions.
11398         (Include): Remove obstack.h.
11399
11400 2008-06-13  Eric Blake  <ebb9@byu.net>
11401
11402         Add obstack-printf and obstack-printf-posix modules.
11403         * modules/obstack-printf: New file.
11404         * modules/obstack-printf-posix: Likewise.
11405         * MODULES.html.sh (Misc): Mention them.
11406         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
11407         Likewise.
11408         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
11409         Likewise.
11410         * modules/stdio (Makefile.am): Accomodate new modules.
11411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11412         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
11413         Declare.
11414         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
11415         functions.
11416         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
11417         (gl_REPLACE_OBSTACK_PRINTF): New macros
11418         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
11419         * tests/test-obstack-printf.c: New file.
11420         * modules/obstack-printf-tests: Likewise.
11421         * modules/obstack-printf-posix-tests: Likewise.
11422
11423 2008-06-11  Bruno Haible  <bruno@clisp.org>
11424
11425         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
11426         * lib/open.c: Include errno.h.
11427         (open): Fail when attempting to write to a file that has a trailing
11428         slash.
11429         * tests/test-open.c (main): Test against trailing slash bug.
11430         * doc/posix-functions/open.texi: Mention the trailing slash bug.
11431
11432 2008-06-10  Bruno Haible  <bruno@clisp.org>
11433
11434         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
11435         for $? to work inside the trap command, with various /bin/sh-s.
11436         * tests/test-vc-list-files-cvs.sh: Likewise.
11437
11438 2008-06-10  Bruno Haible  <bruno@clisp.org>
11439
11440         * lib/acl-internal.h: Don't include gettext.h here.
11441         * lib/set-mode-acl.c: Include gettext.h here.
11442         * lib/copy-acl.c: Likewise.
11443
11444 2008-06-10  Bruno Haible  <bruno@clisp.org>
11445
11446         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
11447         * lib/wait-process.c (wait_subprocess): Likewise.
11448         * lib/execute.h (execute): Add termsigp argument.
11449         * lib/execute.c (execute): Likewise.
11450         * lib/csharpcomp.c (compile_csharp_using_pnet,
11451         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
11452         * lib/csharpexec.c (execute_csharp_using_pnet,
11453         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
11454         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
11455         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
11456         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
11457         is_jikes_present): Update.
11458         * lib/javaexec.c (execute_java_class): Update.
11459         * lib/javaversion.c (execute_and_read_line): Update.
11460         * NEWS: Document the changes.
11461         Reported by Eric Blake.
11462
11463 2008-06-10  Eric Blake  <ebb9@byu.net>
11464
11465         Add missing include.
11466         * tests/test-strstr.c (includes): Add <signal.h>.
11467         * tests/test-strcasestr.c (includes): Likewise.
11468         * tests/test-memmem.c (includes): Likewise.
11469
11470 2008-06-10  Bruno Haible  <bruno@clisp.org>
11471
11472         * lib/wait-process.c (wait_subprocess): Add an assertion.
11473
11474 2008-06-10  Bruno Haible  <bruno@clisp.org>
11475
11476         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
11477
11478 2008-06-10  Bruno Haible  <bruno@clisp.org>
11479
11480         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
11481         using alarm().
11482         * tests/test-strcasestr.c (main): Likewise.
11483         * tests/test-strstr.c (main): Likewise.
11484
11485 2008-06-09  Bruno Haible  <bruno@clisp.org>
11486
11487         Work around the Solaris 10 ACE ACLs ABI change.
11488         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
11489         declare if ACL_NO_TRIVIAL is present.
11490         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
11491         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
11492         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
11493         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
11494         define if ACL_NO_TRIVIAL is present.
11495         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
11496         and use the current ABI.
11497         (file_has_acl): Use same #if condition as elsewhere.
11498         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
11499         in use, and use the current ABI.
11500         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
11501         Reported by Jim Meyering.
11502
11503 2008-06-09  Eric Blake  <ebb9@byu.net>
11504
11505         Work around environments that (stupidly) ignore SIGALRM.
11506         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
11507         before using alarm().
11508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11510         Reported by Ian Beckwith <ianb@erislabs.net>.
11511
11512         Produce autobuild blurb earlier in log.
11513         * modules/autobuild (configure.ac-early): Move AB_INIT here.
11514
11515 2008-06-09  Jim Meyering  <meyering@redhat.com>
11516         and OndÅ™ej Vašík  <ovasik@redhat.com>
11517
11518         utimens.c: correct kernel bug work-around
11519         OndÅ™ej Vašík found that the invalid return value of 280 indicates
11520         failure, not success, and the kernel bug we're trying to work
11521         around affects not just the utimensat call, but also the fallback
11522         futimens call.
11523         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
11524         not success.
11525         [HAVE_FUTIMENS]: Use the same work-around, here.
11526
11527 2008-06-09  Jim Meyering  <meyering@redhat.com>
11528
11529         add more guards around definition of ACE_-related code
11530         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
11531         ALLOW and ACE_OWNER are also defined.
11532
11533 2008-06-08  Bruno Haible  <bruno@clisp.org>
11534
11535         * lib/acl-internal.h: Add me as co-author.
11536         * lib/file-has-acl.c: Likewise.
11537         * lib/set-mode-acl.c: Likewise.
11538         * lib/copy-acl.c: Likewise.
11539
11540 2008-06-08  Bruno Haible  <bruno@clisp.org>
11541
11542         Add support for AIX ACLs.
11543         * lib/acl-internal.h (acl_nontrivial): New declaration.
11544         * lib/file-has-acl.c (acl_nontrivial): New function.
11545         (file_has_acl): Add implementation using AIX 4 ACL API.
11546         * lib/set-mode-acl.c (qset_acl): Likewise.
11547         * lib/copy-acl.c (qcopy_acl): Likewise.
11548
11549 2008-06-08  Bruno Haible  <bruno@clisp.org>
11550
11551         Add support for HP-UX ACLs.
11552         * lib/acl-internal.h (acl_nontrivial): New declaration.
11553         * lib/file-has-acl.c (acl_nontrivial): New function.
11554         (file_has_acl): Add implementation using HP-UX 11 ACL API.
11555         * lib/set-mode-acl.c (qset_acl): Likewise.
11556         * lib/copy-acl.c (qcopy_acl): Likewise.
11557
11558 2008-06-08  Bruno Haible  <bruno@clisp.org>
11559
11560         Add support for Cygwin ACLs.
11561         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
11562         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
11563         the chmod_or_fchmod call.
11564         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
11565
11566 2008-06-08  Bruno Haible  <bruno@clisp.org>
11567
11568         Fix bug with setuid modes in Solaris 10+ code.
11569         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
11570         succeeded, when the mode contains some special bits.
11571
11572 2008-06-08  Bruno Haible  <bruno@clisp.org>
11573
11574         Add support for Solaris 7..10 ACLs.
11575         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
11576         declarations.
11577         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
11578         functions.
11579         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
11580         * lib/set-mode-acl.c (qset_acl): Likewise.
11581         * lib/copy-acl.c (qcopy_acl): Likewise.
11582
11583 2008-06-08  Bruno Haible  <bruno@clisp.org>
11584
11585         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
11586         declaration.
11587         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
11588         (acl_access_nontrivial): Remove MacOS X case.
11589         (file_has_acl): Use acl_extended_nontrivial.
11590         * lib/copy-acl.c (qcopy_acl): Likewise.
11591
11592 2008-06-08  Bruno Haible  <bruno@clisp.org>
11593
11594         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
11595
11596 2008-06-08  Jim Meyering  <meyering@redhat.com>
11597
11598         * modules/acl (Maintainer): Add Bruno Haible.
11599
11600 2008-06-07  Bruno Haible  <bruno@clisp.org>
11601
11602         Improve support for Tru64 ACLs.
11603         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
11604         ACL on OSF/1.
11605
11606 2008-06-07  Bruno Haible  <bruno@clisp.org>
11607
11608         Add support for MacOS X ACLs.
11609         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
11610         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
11611         * lib/set-mode-acl.c (qset_acl): Likewise.
11612         * lib/copy-acl.c (qcopy_acl): Likewise.
11613
11614 2008-06-07  Bruno Haible  <bruno@clisp.org>
11615
11616         Fix memory leak introduced on 2008-05-22.
11617         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
11618         use.
11619
11620 2008-06-07  Bruno Haible  <bruno@clisp.org>
11621
11622         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
11623         to construct an empty ACL.
11624
11625 2008-06-07  Bruno Haible  <bruno@clisp.org>
11626
11627         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
11628         precisely.
11629         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
11630
11631 2008-06-07  Bruno Haible  <bruno@clisp.org>
11632
11633         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
11634         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
11635
11636 2008-06-07  Bruno Haible  <bruno@clisp.org>
11637
11638         * doc/posix-functions/_setjmp.texi: Explain the use of this function
11639         regardless of POSIX.
11640         * doc/posix-functions/_longjmp.texi: Likewise.
11641         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
11642         SystemV platform in this case.
11643
11644 2008-06-06  Eric Blake  <ebb9@byu.net>
11645
11646         Document abort() bugs.
11647         * doc/posix-functions/abort.texi (abort): Mention anomalies.
11648
11649         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
11650         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
11651         sigsetjmp.
11652         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
11653         siglongjmp, but only as a macro.
11654         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
11655         is obsolete.
11656         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
11657
11658         Tweak documentation to cover cygwin argz bugs.
11659         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
11660         argz bug fix; no code change needed since no cygwin releases
11661         occurred between the last fix and the bug being tested.
11662         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
11663         module and recently fixed cygwin bugs.
11664         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
11665         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
11666         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
11667         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
11668         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
11669         Likewise.
11670         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
11671         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
11672         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
11673         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
11674         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
11675         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
11676         Likewise.
11677
11678         Avoid gcc warning on cygwin.
11679         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
11680         !ACL_NO_TRIVIAL]: Avoid unused variable.
11681
11682 2008-06-05  Eric Blake  <ebb9@byu.net>
11683
11684         Be tolerant of UNKNOWN version in gnulib-tool test dir.
11685         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
11686         git-version-gen fails to come up with a version.
11687         Reported by Simon Josefsson.
11688
11689 2008-06-05  Jim Meyering  <meyering@redhat.com>
11690             Paul Eggert  <eggert@cs.ucla.edu>
11691
11692         utimens.c: work around a probable Linux kernel bug
11693         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
11694         appears to be a kernel bug that causes utimensat to return 280
11695         instead of 0, indicating success.
11696
11697 2008-06-04  Bruno Haible  <bruno@clisp.org>
11698
11699         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
11700         2008-06-01 commit.
11701
11702 2008-06-04  Bruno Haible  <bruno@clisp.org>
11703
11704         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
11705         * lib/file-has-acl.c (acl_access_nontrivial): New function.
11706         (file_has_acl): Use it. Save errno afterwards.
11707         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
11708
11709 2008-06-03  Bruno Haible  <bruno@clisp.org>
11710
11711         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
11712         draft code. Simplify #ifs.
11713         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
11714         Put Solaris code after POSIX-draft code. Fix comments regarding
11715         Solaris 10, HP-UX. Mention Cygwin.
11716         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
11717
11718 2008-06-03  Eric Blake  <ebb9@byu.net>
11719
11720         Provide fallback for older kernels.
11721         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
11722         Provide runtime fallback if kernel lacks support.
11723         Reported by Mike Frysinger.
11724
11725 2008-06-02  Bruno Haible  <bruno@clisp.org>
11726
11727         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
11728         it exists.
11729
11730 2008-06-02  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
11733         * lib/copy-acl.c (qcopy_acl): Update comment.
11734
11735 2008-06-02  Bruno Haible  <bruno@clisp.org>
11736
11737         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
11738         like ACL APIs.
11739
11740 2008-06-02  Bruno Haible  <bruno@clisp.org>
11741
11742         * tests/test-file-has-acl.sh: Use different code for Cygwin.
11743         * tests/test-set-mode-acl.sh: Likewise.
11744         * tests/test-copy-acl.sh: Likewise.
11745         * tests/test-copy-file.sh: Likewise.
11746
11747 2008-06-02  Bruno Haible  <bruno@clisp.org>
11748
11749         * tests/test-file-has-acl.sh: Remove unused code.
11750
11751 2008-06-01  Bruno Haible  <bruno@clisp.org>
11752
11753         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
11754         (copy_acl): Just a wrapper around qcopy_acl that emits the error
11755         messages.
11756         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
11757
11758 2008-06-01  Bruno Haible  <bruno@clisp.org>
11759
11760         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
11761         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
11762         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
11763         APIs.
11764         * modules/acl-tests (configure.ac): Remove tests now contained in
11765         m4/acl.m4.
11766
11767 2008-06-02  Jim Meyering  <meyering@redhat.com>
11768
11769         announce-gen: use a better key-server host name
11770         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
11771         it may be more consistently reliable.  Suggested by Werner Koch
11772         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
11773
11774 2008-06-01  Bruno Haible  <bruno@clisp.org>
11775
11776         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
11777         Reported by Voroskoi Andras <voroskoi@gmail.com>.
11778
11779 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
11780
11781         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
11782
11783 2008-06-01  Bruno Haible  <bruno@clisp.org>
11784
11785         New ACL tests.
11786         * tests/test-file-has-acl.sh: New file.
11787         * tests/test-file-has-acl.c: New file.
11788         * tests/test-set-mode-acl.sh: New file.
11789         * tests/test-set-mode-acl.c: New file.
11790         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
11791         * tests/test-copy-acl.c: New file.
11792         * modules/acl-tests: New file, based on modules/copy-file-tests.
11793         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
11794         (Depends-on): Add acl-tests.
11795         (configure.ac): Remove checks.
11796         (Makefile.am): Don't create test-sameacls program here any more.
11797
11798 2008-06-01  Bruno Haible  <bruno@clisp.org>
11799
11800         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
11801         * tests/test-sameacls.c: Include progname.h.
11802         (main): Invoke set_program_name. Portability fixes for MacOS X,
11803         Solaris, HP-UX.
11804
11805 2008-06-01  Bruno Haible  <bruno@clisp.org>
11806
11807         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
11808         function.
11809         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
11810
11811 2008-06-01  Bruno Haible  <bruno@clisp.org>
11812
11813         * modules/rpmatch (Depends-on): Add strdup.
11814
11815 2008-06-01  Bruno Haible  <bruno@clisp.org>
11816
11817         * lib/pipe.c: Include unistd-safer.h.
11818         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
11819         * modules/pipe (Depends-on): Add unistd-safer.
11820
11821 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11822
11823         * modules/autobuild (configure.ac): Call AB_INIT.
11824
11825 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11826
11827         * tests/test-getaddrinfo.c: Don't print debug messages by default.
11828         Suggested by Bruno Haible <bruno@clisp.org>.
11829
11830 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11831
11832         * tests/test-base64.c: Cast size_t to unsigned long when invoking
11833         printf.  Use %lu instead of %d.  Reported by Bruno Haible
11834         <bruno@clisp.org>.
11835
11836 2008-05-29  Eric Blake  <ebb9@byu.net>
11837
11838         Prefer new POSIX 200x interfaces over futimesat.
11839         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
11840         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
11841         when available.
11842         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
11843
11844 2008-05-28  Bruno Haible  <bruno@clisp.org>
11845
11846         * modules/stpcpy (License): Change to LGPLv2+.
11847         Requested by David Lutterkort <dlutter@redhat.com>.
11848
11849 2008-05-27  Bruno Haible  <bruno@clisp.org>
11850
11851         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
11852         current mingw.
11853         Reported by Jose E. Marchesi <jemarch@gnu.org>.
11854
11855 2008-05-27  Bruno Haible  <bruno@clisp.org>
11856
11857         * modules/iconv_open (Link): New section, from module 'iconv'.
11858         * modules/striconv (Link): Likewise.
11859         * modules/striconveh (Link): Likewise.
11860         * modules/xstriconv (Link): Likewise.
11861         * modules/unicodeio (Link): Likewise.
11862         * modules/propername (Link): Likewise.
11863         Reported by Jim Meyering.
11864
11865 2008-05-26  Jim Meyering  <meyering@redhat.com>
11866
11867         sha256: do not artificially restrict buffer length to be < 2^32
11868         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
11869         uint32_t to size_t.
11870         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
11871         to match.
11872
11873         avoid unaligned access errors, e.g., on sparc
11874         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
11875         direct access through a possibly-unaligned uint64* pointer.
11876         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
11877         direct access through a possibly-unaligned uint32* pointer.
11878         Prompted by this patch from Tom "spot" Callaway:
11879         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
11880
11881         sha512.c: fix typo in comment
11882         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
11883
11884 2008-05-25  Bruno Haible  <bruno@clisp.org>
11885
11886         * lib/set-mode-acl.c: Renamed from lib/acl.c.
11887         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
11888         (Makefile.am): Update lib_SOURCES.
11889
11890 2008-05-25  Bruno Haible  <bruno@clisp.org>
11891
11892         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
11893
11894 2008-05-25  Jim Meyering  <meyering@redhat.com>
11895
11896         useless-if-before-free: freed expr may have white-space differences
11897         * build-aux/useless-if-before-free: Recognize cases in which the
11898         freed expression differs from the tested one in embedded white
11899         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
11900         $1 was used, so we can't make any regexp shy.  Improved tests now
11901         detect this.
11902
11903         useless-if-before-free: accept white space in the expression.
11904         * build-aux/useless-if-before-free: For now, any white space
11905         in the expression must be identical in the free argument.
11906
11907         useless-if-before-free: efficiency tweak
11908         * build-aux/useless-if-before-free: Make the expression-matching
11909         regexp "shy".
11910         Make the *outer* regexp shy, not the expr-matching one.
11911
11912         update code-in-comment to accept cast of free arg
11913         * build-aux/useless-if-before-free: Update regexp.
11914
11915 2008-05-25  Bruno Haible  <bruno@clisp.org>
11916
11917         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
11918         * modules/copy-file-tests (Files, Makefile.am): Update.
11919         * tests/test-copy-file.c (func_test_copy): Update.
11920
11921 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
11922
11923         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
11924
11925 2008-05-23  Bruno Haible  <bruno@clisp.org>
11926
11927         Improve support for ACLs on OSF/1.
11928         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
11929         Remove fallback for unknown flavors of ACLs.
11930
11931 2008-05-22  Bruno Haible  <bruno@clisp.org>
11932
11933         Add support for ACLs on OSF/1.
11934         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
11935         replacements.
11936         (acl_free_text): New macro fallback.
11937         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
11938         acl_free.
11939         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
11940         acl_free_text function. Require AC_C_INLINE.
11941
11942 2008-05-22  Bruno Haible  <bruno@clisp.org>
11943
11944         Make copy_acl work on MacOS X 10.5.
11945         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
11946         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
11947         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
11948         If MODE_INSIDE_ACL, don't assume that every system has the same text
11949         representation for ACLs as FreeBSD.
11950         * lib/copy-acl.c (copy_acl): Add support for platforms with
11951         !MODE_INSIDE_ACL.
11952         * lib/file-has-acl.c (file_has_acl): Likewise.
11953         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
11954         FreeBSD, MacOS X, or IRIX, respectively.
11955
11956 2008-05-22  Bruno Haible  <bruno@clisp.org>
11957
11958         * lib/acl.h: Don't include <sys/acl.h>.
11959         (GETACLCNT): Move fallback to lib/acl-internal.h.
11960         * lib/acl-internal.h: Include <sys/acl.h> here.
11961         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
11962
11963 2008-05-22  Bruno Haible  <bruno@clisp.org>
11964
11965         Split off copy_acl function to separate file.
11966         * lib/copy-acl.c: New file, extracted from lib/acl.c.
11967         * lib/acl.c (copy_acl): Moved function to separate file.
11968         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
11969         * modules/acl (Files): Add lib/copy-acl.c.
11970         (Makefiles.am): Augment lib_SOURCES.
11971
11972 2008-05-22  Bruno Haible  <bruno@clisp.org>
11973
11974         * modules/copy-file-tests: New file.
11975         * tests/test-copy-file.sh: New file.
11976         * tests/test-copy-file.c: New file.
11977         * tests/test-copy-file-sameacls.c: New file.
11978
11979 2008-05-22  Eric Blake  <ebb9@byu.net>
11980
11981         Avoid gcc warning.
11982         * tests/test-memcmp.c (main): Pass NULL indirectly.
11983
11984 2008-05-21  Bruno Haible  <bruno@clisp.org>
11985
11986         Add reference doc about ACLs.
11987         * doc/acl-resources.txt: New file.
11988         * doc/acl-cygwin.txt: New file.
11989
11990 2008-05-21  Bruno Haible  <bruno@clisp.org>
11991
11992         Avoid one more warning from gcc.
11993         * lib/vasnprintf.c (IF_LINT): Update comments.
11994         (VASNPRINTF): Use it also for the 'prefix' array initializer.
11995
11996 2008-05-21  Jim Meyering  <meyering@redhat.com>
11997
11998         avoid a warning from gcc
11999         * lib/vasnprintf.c (IF_LINT): Define.
12000         (scale10_round_decimal_long_double):
12001         Use it to avoid a "may be used uninitialized" warning.
12002         (scale10_round_decimal_double): Likewise.
12003
12004 2008-05-21  Simon Josefsson  <simon@josefsson.org>
12005
12006         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
12007         declared.
12008
12009 2008-05-20  Bruno Haible  <bruno@clisp.org>
12010
12011         * tests/test-memcmp.c (main): Test also the sign of the result. Test
12012         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
12013
12014 2008-05-20  Simon Josefsson  <simon@josefsson.org>
12015
12016         * modules/memcmp-tests: New file.
12017         * tests/test-memcmp.c: New file.
12018
12019 2008-05-19  Bruno Haible  <bruno@clisp.org>
12020
12021         * modules/propername (Notice, configure.ac): Put quoted "..." into
12022         --keyword option.
12023         * lib/propername.h: Update comments accordingly.
12024         Reported by Eric Blake.
12025
12026 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
12027
12028         * modules/getpass-gnu (Depends-on): Add fseeko.
12029
12030 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12031
12032         * modules/base64-tests: New file.
12033
12034 2008-05-19  Bo Borgerson <gigabo@gmail.com>
12035
12036         * lib/base64.c (base64_decode_ctx): If a decode context structure
12037         was passed in use it to ignore newlines.  If a context structure
12038         was _not_ passed in, continue to treat newlines as garbage (this
12039         is the historical behavior).  Formerly base64_decode.
12040         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12041         takes a decode context structure.
12042         * lib/base64.h (base64_decode): Macro for four-argument calls.
12043         (base64_decode_alloc): Likewise.
12044         * lib/base64.c (base64_decode_ctx): If a decode context structure
12045         was passed in use it to ignore newlines.  If a context structure
12046         was _not_ passed in, continue to treat newlines as garbage (this
12047         is the historical behavior).  Formerly base64_decode.
12048         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12049         takes a decode context structure.
12050         * lib/base64.h (base64_decode): Macro for four-argument calls.
12051         (base64_decode_alloc): Likewise.
12052
12053 2008-05-19  Jim Meyering  <meyering@redhat.com>
12054
12055         avoid a warning from gcc
12056         * lib/trim.c (IF_LINT): Define.
12057         (trim2): Use it to avoid a "may be used uninitialized" warning.
12058
12059         Fix doc typo.
12060         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
12061
12062 2008-05-19  Bruno Haible  <bruno@clisp.org>
12063
12064         * doc/glibc-functions/getpass.texi: Document limits of other
12065         implementations.
12066
12067 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12068             Bruno Haible <bruno@clisp.org>
12069
12070         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
12071
12072 2008-05-18  Bruno Haible  <bruno@clisp.org>
12073
12074         * modules/propername: New file, from GNU gettext.
12075         * lib/propername.h: New file, from GNU gettext.
12076         * lib/propername.c: New file, from GNU gettext.
12077         * MODULES.html.sh (Internationalization functions): Add propername.
12078
12079 2008-05-16  Jim Meyering  <meyering@redhat.com>
12080             Bruno Haible  <bruno@clisp.org>
12081
12082         Avoid some warnings from "gcc -Wshadow".
12083         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
12084
12085 2008-05-15  Eric Blake  <ebb9@byu.net>
12086
12087         Extend previous patch to cygwin 1.7.0.
12088         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
12089         fast implementation in cygwin >= 1.7.0.
12090         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12092
12093 2008-05-15  Bruno Haible  <bruno@clisp.org>
12094
12095         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
12096         implementation in glibc >= 2.9.
12097         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12099
12100 2008-05-15  Bruno Haible  <bruno@clisp.org>
12101
12102         * MODULES.html.sh (Internationalization functions): Remove linebreak.
12103         (Unicode string functions): Add unilbrk/*.
12104         Reported by Karl Berry.
12105
12106 2008-05-15  Eric Blake  <ebb9@byu.net>
12107
12108         Fix violation of <stdbool.h> replacement in regex.
12109         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
12110         * lib/regexec.c (re_search_internal): Likewise.
12111         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
12112
12113 2008-05-15  Jim Meyering  <meyering@redhat.com>
12114
12115         avoid distracting test output when git or cvs is not found
12116         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
12117         * tests/test-vc-list-files-git.sh: Likewise.
12118
12119 2008-05-15  Eric Blake  <ebb9@byu.net>
12120
12121         Glibc finally accepted the memmem speedup code, bugzilla #5514.
12122         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
12123         glibc version.
12124         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12125         * doc/posix-functions/strstr.texi (strstr): Likewise.
12126         * lib/str-two-way.h (MAX): Sychronize with glibc.
12127
12128 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
12129
12130         * lib/regcomp.c (optimize_utf8): Add a note on why we test
12131         opr.ctx_type.
12132         (calc_first): Initialize constraint field.
12133         (duplicate_node_closure): Use it instead of special casing ANCHORS.
12134         Fix grammar.
12135         (duplicate_node): Merge constraint field for all node types.
12136         (calc_eclosure_iter): Look at constraint field for all node types.
12137         * lib/regex_internal.c (create_cd_newstate): Don't look at
12138         opr.ctx_type.
12139
12140 2008-05-14  Bruno Haible  <bruno@clisp.org>
12141
12142         Help GCC to do better code generation.
12143         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
12144         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12145         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
12146         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
12147         Declare with attribute 'malloc' if supported.
12148
12149 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
12150
12151         use "echo STR|wc -c" rather than unportable "expr length STR"
12152         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
12153         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
12154
12155 2008-05-14  Jim Meyering  <meyering@redhat.com>
12156
12157         use dd ibs=$n count=1 ... rather than less-portable head -c$n
12158         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
12159         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
12160         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
12161         via Collin Lasse.
12162
12163 2008-05-14  Eric Blake  <ebb9@byu.net>
12164
12165         Avoid quadratic growth in gl_LIBSOURCES.
12166         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
12167         Suggested by Bruno Haible.
12168
12169         Test xmemdup0.
12170         * modules/xmemdup0-tests: New file.
12171         * tests/test-xmemdup0.c: Likewise.
12172
12173 2008-05-13  Eric Blake  <ebb9@byu.net>
12174
12175         Split xmemdup0 into its own module.
12176         * modules/xmemdup0: New file.
12177         * lib/xmemdup0.h: Likewise.
12178         * lib/xmemdup0.c: Likewise.
12179         * MODULES.html.sh (Memory management functions): Add xmemdup0.
12180         * lib/xalloc.h (xmemdup0): Remove.
12181         * lib/xmalloc.c (xmemdup0): Likewise.
12182
12183 2008-05-13  Eric Blake  <ebb9@byu.net>
12184             Bruno Haible  <bruno@clisp.org>
12185
12186         Reduce number of forks required during autoconf.
12187         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
12188         and gl_LIBSOURCES_DIR.
12189         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
12190         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
12191         m4_syscmd per file.
12192         <m4_foreach_w>: Move...
12193         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
12194
12195 2008-05-13  Eric Blake  <ebb9@byu.net>
12196
12197         * gnulib-tool: Fix various comment typos.
12198
12199 2008-05-12  Bruno Haible  <bruno@clisp.org>
12200
12201         Tailor the linebreaking algorithm.
12202         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
12203
12204 2008-05-12  Bruno Haible  <bruno@clisp.org>
12205
12206         Update to Unicode 5.0.0.
12207         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12208         LBP_JV, LBP_JT. Redistribute values.
12209         (unilbrk_table): Change size.
12210         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
12211         Unicode TR#14 rev. 22.
12212         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12213         LBP_JV, LBP_JT. Redistribute values.
12214         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
12215         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
12216         Update.
12217         * lib/unilbrk/lbrkprop1.h: Regenerated.
12218         * lib/unilbrk/lbrkprop2.h: Regenerated.
12219         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
12220         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
12221         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12222         Likewise.
12223         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12224         Likewise.
12225         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
12226         result.
12227         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12228         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12229         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12230         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
12231         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
12232         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
12233
12234 2008-05-11  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
12237
12238 2008-05-11  Bruno Haible  <bruno@clisp.org>
12239
12240         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
12241         * modules/unilbrk/gen-lbrk: New file.
12242
12243 2008-05-11  Bruno Haible  <bruno@clisp.org>
12244
12245         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
12246         * m4/sha512.m4 (gl_SHA512): Likewise.
12247
12248 2008-05-11  Jim Meyering  <meyering@redhat.com>
12249
12250         New modules: crypto/sha256, crypto/sha512 (from coreutils)
12251         * modules/crypto/sha256: New file.
12252         * modules/crypto/sha512: Likewise.
12253         * lib/sha256.c: Likewise.
12254         * lib/sha256.h: Likewise.
12255         * lib/sha512.c: Likewise.
12256         * lib/sha512.h: Likewise.
12257         * lib/u64.h: Likewise.
12258         * m4/sha256.m4: Likewise.
12259         * m4/sha512.m4: Likewise.
12260         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
12261
12262 2008-05-10  Bruno Haible  <bruno@clisp.org>
12263
12264         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
12265         (Input/Output <stdio.h>): Add xprintf.
12266         (Signal handling <signal.h>): Add strsignal.
12267         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
12268         (Core language properties): Add func.
12269         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
12270         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
12271         strings.
12272         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
12273         (Input/output): New section.
12274         (File system functions): Add openat-die, stat-macros.
12275         (Networking functions): Add sockets.
12276         (Unicode string functions): Add unictype/*.
12277         (Support for building libraries and executables): Add gperf.
12278         (Support for building documentation): Add agpl-3.0.
12279         (Misc): Add nocrash.
12280
12281 2008-05-10  Bruno Haible  <bruno@clisp.org>
12282
12283         * modules/unictype/gen-ctype: New file.
12284
12285 2008-05-10  Jim Meyering  <meyering@redhat.com>
12286
12287         Make chdir-safer.c more efficient on a system with no symlinks.
12288         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
12289         also if ELOOP is zero.  Suggested by Bruno Haible.
12290
12291         Make chdir-safer.c slightly safer.
12292         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
12293         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
12294
12295         Avoid compile failure on systems without ELOOP (like mingw).
12296         * lib/chdir-safer.c (ELOOP): Define if not already defined.
12297         Reported by Bruno Haible.
12298
12299 2008-05-10  Bruno Haible  <bruno@clisp.org>
12300
12301         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
12302         (is_utf8_encoding): Use a case-insensitive comparison.
12303         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
12304         streq.
12305
12306 2008-05-10  Bruno Haible  <bruno@clisp.org>
12307
12308         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
12309         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
12310         * lib/unilbrk/ulc-common.h (iconv_string_length,
12311         iconv_string_keeping_offsets): Remove declarations.
12312         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
12313         Don't include <iconv.h>, streq.h, xsize.h.
12314         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
12315         conversion.
12316         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
12317         <iconv.h>, streq.h, xsize.h.
12318         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
12319         conversion.
12320         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
12321         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
12322         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
12323         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
12324
12325 2008-05-10  Bruno Haible  <bruno@clisp.org>
12326
12327         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
12328         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
12329
12330         * modules/unilbrk/u32-width-linebreaks-tests: New file.
12331         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
12332
12333         * modules/unilbrk/u16-width-linebreaks-tests: New file.
12334         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
12335
12336         * modules/unilbrk/u8-width-linebreaks-tests: New file.
12337         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
12338
12339         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
12340         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
12341
12342         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
12343         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
12344
12345         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
12346         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
12347
12348         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
12349         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
12350
12351 2008-05-10  Bruno Haible  <bruno@clisp.org>
12352
12353         Split up 'linebreak' module.
12354         * lib/unilbrk.h: New file, based on lib/linebreak.h.
12355         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
12356         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
12357         modifications.
12358         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
12359         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
12360         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
12361         lib/linebreak.c.
12362         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
12363         lib/linebreak.c.
12364         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
12365         lib/linebreak.c.
12366         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
12367         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
12368         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
12369         lib/linebreak.c.
12370         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
12371         lib/linebreak.c.
12372         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
12373         lib/linebreak.c.
12374         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
12375         lib/linebreak.c.
12376         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
12377         lib/linebreak.c.
12378         * modules/unilbrk/base: New file.
12379         * modules/unilbrk/tables: New file.
12380         * modules/unilbrk/u8-possible-linebreaks: New file.
12381         * modules/unilbrk/u16-possible-linebreaks: New file.
12382         * modules/unilbrk/u32-possible-linebreaks: New file.
12383         * modules/unilbrk/ulc-common: New file.
12384         * modules/unilbrk/ulc-possible-linebreaks: New file.
12385         * modules/unilbrk/u8-width-linebreaks: New file.
12386         * modules/unilbrk/u16-width-linebreaks: New file.
12387         * modules/unilbrk/u32-width-linebreaks: New file.
12388         * modules/unilbrk/ulc-width-linebreaks: New file.
12389         * lib/linebreak.h: Remove file.
12390         * lib/linebreak.c: Remove file.
12391         * m4/linebreak.m4: Remove file.
12392         * modules/linebreak: Remove file.
12393         * NEWS: Mention the changes.
12394
12395 2008-05-09  Eric Blake  <ebb9@byu.net>
12396
12397         Add xmemdup0.
12398         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
12399         implementation.
12400         * lib/xmalloc.c (xmemdup0): New C implementation.
12401
12402 2008-05-08  Bruno Haible  <bruno@clisp.org>
12403
12404         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
12405
12406 2008-05-07  Eric Blake  <ebb9@byu.net>
12407
12408         Support cross-compilation of <wctype.h>.
12409         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
12410         AC_CACHE_CHECK.
12411
12412 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
12413
12414         * build-aux/vc-list-files: Add support for bzr.
12415
12416 2008-05-03  Jim Meyering  <meyering@redhat.com>
12417
12418         avoid failed assertion with tight malloc
12419         * tests/test-getndelim2.c: Correct an off-by-one assertion.
12420
12421 2008-05-03  Simon Josefsson  <simon@josefsson.org>
12422
12423         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
12424         are needed from arpa/inet.h.
12425         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
12426         Reported by Bruno Haible.
12427
12428 2008-05-02  Jim Meyering  <meyering@redhat.com>
12429
12430         avoid compilation error on FreeBSD 6
12431         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
12432
12433 2008-05-01  Jim Meyering  <meyering@redhat.com>
12434
12435         useless-if-before-free: correct --help's exit status description
12436         * build-aux/useless-if-before-free (usage): Like grep, exit 0
12437         for one or more matches, etc.  Reported by Bruno Haible.
12438
12439         vc-list-files: make the stand-alone gnulib test work
12440         * modules/vc-list-files-tests (configure.ac):
12441         Define and AC_SUBST abs_aux_dir.
12442         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
12443         $(abs_top_srcdir) to each script and having each of them
12444         duplicate the work of setting PATH, set PATH here, using
12445         the new variable, abs_aux_dir instead.
12446         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
12447         * tests/test-vc-list-files-git.sh: Likewise.
12448         Reported by Bruno Haible.
12449
12450 2008-05-01  Bruno Haible  <bruno@clisp.org>
12451
12452         * lib/getndelim2.c (getndelim2): Fix newsize computation during
12453         reallocation. Rename 'done' to 'found_delimiter'.
12454
12455 2008-05-01  Jim Meyering  <meyering@redhat.com>
12456
12457         vc-list-files: accommodate /bin/sh like the one from Solaris 10
12458         * build-aux/vc-list-files: Use `...`, not $(...).
12459
12460 2008-04-30  Jim Meyering  <meyering@redhat.com>
12461
12462         add tests for vc-list-files
12463         * modules/vc-list-files-tests: New module.
12464         * tests/test-vc-list-files-cvs.sh: New file.
12465         * tests/test-vc-list-files-git.sh: New file.
12466
12467         avoid a warning from gcc
12468         * lib/getndelim2.c (IF_LINT): Define.
12469         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
12470
12471         vc-list-files: work properly with build-aux/cvsu, too
12472         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
12473         to all cvs-based clauses.
12474
12475         vc-list-files: work properly in the CVS+awk case, too
12476         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
12477
12478         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
12479         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
12480         take more than one file argument, so .  Add quotes, just in case $dir
12481         ever contains a shell meta-character.  Prompted by Soren Hansen in
12482         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
12483
12484 2008-04-29  Eric Blake  <ebb9@byu.net>
12485
12486         Optimize getndelim2 to use block operations when possible.
12487         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
12488         freadseek, and memchr2.
12489         * lib/getndelim2.c (getndelim2): Use them for block reads.
12490
12491 2008-04-29  Bruno Haible  <bruno@clisp.org>
12492
12493         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
12494         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12495         * modules/inet_ntop (Depends-on): Add extensions.
12496         * modules/inet_pton (Depends-on): Likewise.
12497         Reported by Simon Josefsson.
12498
12499 2008-04-29  Jim Meyering  <meyering@redhat.com>
12500
12501         When the is more than one match in a block, match all of them.
12502         * build-aux/useless-if-before-free: Iterate through each block
12503         until there are no more matches.
12504
12505         Fix broken useless-if-before-free script.
12506         * build-aux/useless-if-before-free: Fix typo: missing "?" after
12507         the expression to match cast of argument to free-like function.
12508
12509 2008-04-29  Eric Blake  <ebb9@byu.net>
12510
12511         Use new header.
12512         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
12513
12514 2008-04-29  Jim Meyering  <meyering@redhat.com>
12515
12516         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
12517         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
12518         by gnulib to exist and to declare e.g., inet_ntop.
12519         Don't include "inet_ntop.h", now removed.
12520
12521         * m4/arpa_inet_h.m4: Remove trailing blanks.
12522
12523 2008-04-29  Eric Blake  <ebb9@byu.net>
12524
12525         Silence valgrind on safe reads beyond potential array bounds.
12526         * lib/rawmemchr.valgrind: New file.
12527         * lib/strchrnul.valgrind: Likewise.
12528         * modules/rawmemchr (Files): Distribute new file.
12529         * modules/strchrnul (Files): Likewise.
12530         Suggested by Bruno Haible.
12531
12532 2008-04-29  Bruno Haible  <bruno@clisp.org>
12533
12534         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
12535         (inet_ntop, inet_pton): Change portability warning's wording.
12536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
12537         Invoke gl_CHECK_NEXT_HEADERS.
12538         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
12539         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
12540         set ARPA_INET_H.
12541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12542         * modules/arpa_inet (Description): No longer only for systems that
12543         lack it.
12544         (Depends-on): Add include_next.
12545         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
12546         HAVE_ARPA_INET_H.
12547
12548 2008-04-29  Jim Meyering  <meyering@redhat.com>
12549
12550         * modules/mkdir (License): Re-license as LGPLv2+.
12551
12552 2008-04-29  Bruno Haible  <bruno@clisp.org>
12553
12554         * modules/rawmemchr (Maintainer): Set to Eric.
12555         * modules/strchrnul (Maintainer): Likewise.
12556
12557 2008-04-29  Simon Josefsson  <simon@josefsson.org>
12558
12559         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
12560         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
12561
12562         * modules/arpa_inet (arpa/inet.h): Use them.
12563
12564 2008-04-28  Eric Blake  <ebb9@byu.net>
12565
12566         Test getndelim2.
12567         * modules/getndelim2-tests: New file.
12568         * tests/test-getndelim2.c: Likewise.
12569         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
12570         stream.
12571         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
12572
12573         * MODULES.html.sh: Document new module.
12574
12575 2008-04-20  Bruno Haible  <bruno@clisp.org>
12576
12577         * lib/c-stack.c (die): Use raise.
12578         * modules/c-stack (Depends-on): Add raise.
12579
12580 2008-04-28  Bruno Haible  <bruno@clisp.org>
12581
12582         Expect rpmatch to be declared.
12583         * lib/yesno.c (rpmatch): Remove declaration.
12584
12585         Declare rpmatch.
12586         * lib/stdlib.in.h (rpmatch): New declaration.
12587         * lib/rpmatch.c: Include <stdlib.h> first.
12588         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
12589         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
12590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
12591         HAVE_RPMATCH.
12592         * modules/rpmatch (Depends-on): Add stdlib, extensions.
12593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12594         (Include): Set to <stdlib.h>.
12595         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
12596         HAVE_RPMATCH.
12597         * NEWS: Document the change.
12598
12599 2008-04-28  Bruno Haible  <bruno@clisp.org>
12600
12601         Change rpmatch to use nl_langinfo when appropriate.
12602         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
12603         (N_): New macro.
12604         (localized_pattern): New function/macro.
12605         (try): Remove match, nomatch arguments. Copy the pattern into safe
12606         memory before caching it.
12607         (rpmatch): Use localized_pattern. Add translator comments.
12608         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
12609         Suggested by Eric Blake.
12610         * modules/rpmatch (Depends-on): Add stdbool.
12611
12612 2008-04-28  Eric Blake  <ebb9@byu.net>
12613
12614         Add rawmemchr module, matching glibc.
12615         * modules/string (Makefile.am): New indicator.
12616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
12617         * lib/string.in.h (rawmemchr): Declare when appropriate.
12618         * modules/rawmemchr: New file.
12619         * m4/rawmemchr.m4: Likewise.
12620         * lib/rawmemchr.c: Likewise.
12621         * modules/rawmemchr-tests: Likewise.
12622         * tests/test-rawmemchr.c: Likewise.
12623         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
12624         module.
12625         * modules/strchrnul (Depends-on): Add rawmemchr.
12626         * lib/strchrnul.c (strchrnul): Optimize a corner case.
12627
12628         Whitespace cleanup.
12629         * tests/test-strchrnul.c: Reindent.
12630         * lib/strchrnul.c: Likewise.
12631
12632         Optimize and test strchrnul.
12633         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
12634         * modules/strchrnul-tests: New file.
12635         * tests/test-strchrnul.c: Likewise.
12636
12637         Remove intprops dependency.
12638         * modules/memchr (Depends-on): Remove intprops.
12639         * modules/memrchr (Depends-on): Likewise.
12640         * modules/memchr2 (Depends-on): Likewise.
12641         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
12642         * lib/memrchr.c (__memrchr): Likewise.
12643         * lib/memrchr2.c (memchr2): Likewise.
12644         Reported by Simon Josefsson.
12645
12646 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12647
12648         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
12649         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12650
12651 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12652
12653         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
12654
12655         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
12656
12657         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
12658
12659         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
12660         declarations.
12661         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
12662
12663         * m4/inet_pton.m4: Don't check for header files.
12664
12665         * m4/inet_ntop.m4: Don't check for header files.
12666
12667 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12668
12669         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
12670         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
12671         trigger for cygwin).
12672         Reported by Bruno Haible  <bruno@clisp.org>.
12673
12674 2008-04-28  Bruno Haible  <bruno@clisp.org>
12675
12676         * doc/posix-functions/strdup.texi: Mention mingw problem.
12677
12678 2008-04-27  Bruno Haible  <bruno@clisp.org>
12679
12680         * modules/stat-time-tests (Depends-on): Add sleep.
12681         * tests/test-stat-time.c (force_unlink): New function.
12682         (cleanup): Use it.
12683         (test_mtime): Remove the ctime related tests.
12684         (test_ctime): New function, containing the ctime related tests.
12685         (main): Call test_ctime, except on native Windows platforms.
12686
12687 2008-04-27  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/rpmatch.c (rpmatch): Add some comments.
12690         Reported by James Youngman <jay@gnu.org>.
12691
12692 2008-04-27  Bruno Haible  <bruno@clisp.org>
12693
12694         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
12695         quiet NaNs.
12696
12697 2008-04-27  Bruno Haible  <bruno@clisp.org>
12698
12699         Make test-yesno.sh work on mingw.
12700         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
12701         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
12702         (main): Set stdin to binary mode.
12703         * modules/yesno-tests (Depends-on): Add binary-io.
12704
12705 2008-04-27  Bruno Haible  <bruno@clisp.org>
12706
12707         Fix 'isfinite' on x86, x86_64, ia64 platforms.
12708         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
12709         argument that lie outside the IEEE 854 domain.
12710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
12711         (gl_ISFINITE): Use it.
12712         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
12713
12714 2008-04-27  Bruno Haible  <bruno@clisp.org>
12715
12716         Allow local renaming in config.h.
12717         * lib/memrchr.c (memrchr): Don't undefine outside libc.
12718
12719 2008-04-27  Bruno Haible  <bruno@clisp.org>
12720
12721         * lib/memchr.c (__memchr): Change type of 'i'.
12722         * lib/memchr2.c (memchr2): Likewise.
12723
12724 2008-04-26  Eric Blake  <ebb9@byu.net>
12725         and Bruno Haible  <bruno@clisp.org>
12726
12727         Optimize and test memrchr.
12728         * modules/memrchr (Depends-on): Add intprops.
12729         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
12730         * modules/memrchr-tests: New file.
12731         * tests/test-memrchr.c: New file.
12732
12733 2008-04-26  Bruno Haible  <bruno@clisp.org>
12734
12735         Add tentative support for DragonFly BSD.
12736         * lib/stdio-impl.h: Add macros for DragonFly BSD.
12737         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
12738         fp.
12739         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
12740         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
12741         * lib/fpurge.c (fpurge): Likewise.
12742         * lib/freadable.c (freaadable): Likewise.
12743         * lib/freadahead.c (freadahead): Likewise.
12744         * lib/freading.c (freading): Likewise.
12745         * lib/freadptr.c (freadptr): Likewise.
12746         * lib/freadseek.c (freadptrinc): Likewise.
12747         * lib/fseeko.c (fseeko): Likewise.
12748         * lib/fseterr.c (fseterr): Likewise.
12749         * lib/fwritable.c (fwritable): Likewise.
12750         * lib/fwriting.c (fwriting): Likewise.
12751
12752 2008-04-26  Bruno Haible  <bruno@clisp.org>
12753
12754         * lib/stdio-impl.h: New file.
12755         * lib/fbufmode.c: Include stdio-impl.h.
12756         (fbufmode): Use fp_, remove redundant #defines.
12757         * lib/fflush.c: Include stdio-impl.h.
12758         (clear_ungetc_buffer): Remove redundant #defines.
12759         * lib/fpurge.c: Include stdio-impl.h.
12760         (fpurge): Remove redundant #defines.
12761         * lib/freadable.c: Include stdio-impl.h.
12762         (freadable): Remove redundant #defines.
12763         * lib/freadahead.c: Include stdio-impl.h.
12764         (freadahead): Remove redundant #defines.
12765         * lib/freading.c: Include stdio-impl.h.
12766         (freading): Remove redundant #defines.
12767         * lib/freadptr.c: Include stdio-impl.h.
12768         (freadptr): Remove redundant #defines.
12769         * lib/freadseek.c: Include stdio-impl.h.
12770         (freadptrinc): Remove redundant #defines.
12771         * lib/fseeko.c: Include stdio-impl.h.
12772         (rpl_fseeko): Remove redundant #defines.
12773         * lib/fseterr.c: Include stdio-impl.h.
12774         (fseterr): Remove redundant #defines.
12775         * lib/fwritable.c: Include stdio-impl.h.
12776         (fwritable: Remove redundant #defines.
12777         * lib/fwriting.c: Include stdio-impl.h.
12778         (fwriting): Remove redundant #defines.
12779         * modules/fbufmode (Files): Add lib/stdio-impl.h.
12780         * modules/fflush (Files): Likewise.
12781         * modules/fpurge (Files): Likewise.
12782         * modules/freadable (Files): Likewise.
12783         * modules/freadahead (Files): Likewise.
12784         * modules/freading (Files): Likewise.
12785         * modules/freadptr (Files): Likewise.
12786         * modules/freadseek (Files): Likewise.
12787         * modules/fseeko (Files): Likewise.
12788         * modules/fseterr (Files): Likewise.
12789         * modules/fwritable (Files): Likewise.
12790         * modules/fwriting (Files): Likewise.
12791
12792 2008-04-26  Bruno Haible  <bruno@clisp.org>
12793
12794         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
12795         restore_seek_optimization, update_fpos_cache): New functions, extracted
12796         from rpl_fflush.
12797         (rpl_fflush): Use them.
12798         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
12799         (gl_REPLACE_FFLUSH): Use it.
12800
12801 2008-04-26  Bruno Haible  <bruno@clisp.org>
12802
12803         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
12804         on Solaris.
12805         * tests/test-xstrtoimax.sh: Likewise.
12806         * tests/test-xstrtoumax.sh: Likewise.
12807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12808
12809 2008-04-26  Bruno Haible  <bruno@clisp.org>
12810
12811         * modules/memchr-tests: New file.
12812         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
12813
12814 2008-04-26  Eric Blake  <ebb9@byu.net>
12815             Bruno Haible  <bruno@clisp.org>
12816
12817         * lib/memchr.c: Include intprops.h.
12818         (__memchr): Optimize parallel detection of matching bytes. Rename local
12819         variables. Add explanatory comments.
12820
12821 2008-04-26  Bruno Haible  <bruno@clisp.org>
12822
12823         Fix module 'memchr', broken since 2000-10-28.
12824         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
12825
12826 2008-04-26  Bruno Haible  <bruno@clisp.org>
12827
12828         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
12829         comments.
12830
12831 2008-04-25  Eric Blake  <ebb9@byu.net>
12832
12833         Use native fstatat on cygwin 1.7.0.
12834         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
12835         first.
12836
12837 2008-04-23  Eric Blake  <ebb9@byu.net>
12838
12839         Improve memchr2 performance.
12840         * lib/memchr2.c (memchr2): Further optimize parallel detection of
12841         NUL bytes.
12842         * modules/memchr2 (Depends-on): Use intprops.h.
12843
12844 2008-04-23  Simon Josefsson  <simon@josefsson.org>
12845
12846         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
12847         an inline function instead of a CPP macro.  Patch by Ben Pfaff
12848         <blp@cs.stanford.edu>.
12849
12850 2008-04-23  Simon Josefsson  <simon@josefsson.org>
12851
12852         * lib/arpa_inet.in.h: New file.
12853
12854         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
12855         (Makefile.am): Sed in substitute header file.
12856
12857         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
12858         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
12859
12860         * modules/inet_ntop (configure.ac): Use
12861         gl_ARPA_INET_MODULE_INDICATOR.
12862
12863         * modules/inet_pton (configure.ac): Use
12864         gl_ARPA_INET_MODULE_INDICATOR.
12865
12866 2008-04-22  Jim Meyering  <meyering@redhat.com>
12867
12868         * modules/verify (License): Re-license as LGPLv2+.
12869
12870 2008-04-22  Simon Josefsson  <simon@josefsson.org>
12871
12872         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
12873         parameter to void* as per POSIX standard (MinGW uses char*).
12874
12875 2008-04-21  Bruno Haible  <bruno@clisp.org>
12876
12877         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12878         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12879         Define to replacements if REPLACE_ISWCNTRL is 1.
12880         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
12881         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
12882         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
12883         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
12884         what it fixes.
12885         * doc/posix-functions/iswalpha.texi: Likewise.
12886         * doc/posix-functions/iswblank.texi: Likewise.
12887         * doc/posix-functions/iswcntrl.texi: Likewise.
12888         * doc/posix-functions/iswdigit.texi: Likewise.
12889         * doc/posix-functions/iswgraph.texi: Likewise.
12890         * doc/posix-functions/iswlower.texi: Likewise.
12891         * doc/posix-functions/iswprint.texi: Likewise.
12892         * doc/posix-functions/iswpunct.texi: Likewise.
12893         * doc/posix-functions/iswspace.texi: Likewise.
12894         * doc/posix-functions/iswupper.texi: Likewise.
12895         * doc/posix-functions/iswxdigit.texi: Likewise.
12896         Reported by Alain Guibert.
12897
12898 2008-04-21  Bruno Haible  <bruno@clisp.org>
12899
12900         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
12901         Patch by Alain Guibert.
12902
12903 2008-04-21  Bruno Haible  <bruno@clisp.org>
12904
12905         Fix test failures on mingw.
12906         * tests/test-xstrtol.c (print_no_progname): New function.
12907         (main): Install it in error_print_progname hook.
12908         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
12909         * tests/test-xstrtoimax.sh: Likewise.
12910         * tests/test-xstrtoumax.sh: Likewise.
12911
12912 2008-04-21  Bruno Haible  <bruno@clisp.org>
12913
12914         Fix test failure on mingw.
12915         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
12916
12917 2008-04-21  Bruno Haible  <bruno@clisp.org>
12918
12919         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
12920         Actually assign a value.
12921
12922 2008-04-20  Bruno Haible  <bruno@clisp.org>
12923
12924         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
12925         take 2.
12926         * lib/canonicalize.c (canonicalize_file_name): Elide if the
12927         'canonicalize-lgpl' module is also used.
12928         * lib/canonicalize-lgpl.c: Undo last change.
12929         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
12930
12931 2008-04-20  Bruno Haible  <bruno@clisp.org>
12932
12933         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
12934         config.h. Provide _mkdir based fallback for mingw.
12935         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
12936         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
12937         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
12938         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
12939         rather than defining mkdir in config.h.
12940         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
12941         (gl_SYS_STAT_H_DEFAULTS): New macro.
12942         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
12943         HAVE_IO_H any more.
12944         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
12945         HAVE_DECL_MKDIR and HAVE_IO_H.
12946
12947 2008-04-20  Bruno Haible  <bruno@clisp.org>
12948
12949         * lib/isapipe.c: Port to native Windows platforms.
12950
12951 2008-04-20  Bruno Haible  <bruno@clisp.org>
12952
12953         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
12954
12955 2008-04-21  Eric Blake  <ebb9@byu.net>
12956
12957         Work around preprocessors that don't handle UINTMAX_MAX.
12958         * lib/memchr2.c (memchr2): Avoid embedded #if.
12959         Reported by Alain Guibert, fix suggested by Bruno Haible.
12960
12961 2008-04-21  Simon Josefsson  <simon@josefsson.org>
12962
12963         * doc/posix-functions/strftime.texi (strftime): Explain better
12964         Windows incompatibility.  Suggested by Micah Cowan
12965         <micah@cowan.name>.
12966
12967 2008-04-20  Bruno Haible  <bruno@clisp.org>
12968
12969         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
12970         unistr/u8-mblen.
12971
12972 2008-04-20  Bruno Haible  <bruno@clisp.org>
12973
12974         Fix test failure on platforms with non-GNU iconv.
12975         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
12976         (U_TO_U8): Use it, rather than u16_to_u8.
12977         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
12978         units at the end of the input string.
12979         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
12980
12981 2008-04-20  Bruno Haible  <bruno@clisp.org>
12982
12983         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
12984         when the resulting length is 0.
12985         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12986
12987 2008-04-20  Bruno Haible  <bruno@clisp.org>
12988
12989         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
12990         works.
12991         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
12992
12993 2008-04-20  Bruno Haible  <bruno@clisp.org>
12994
12995         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
12996         * modules/tsearch-tests (configure.ac): Test for initstate function.
12997
12998 2008-04-20  Bruno Haible  <bruno@clisp.org>
12999
13000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
13001         for nlink_t if missing.
13002         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
13003
13004 2008-04-19  Bruno Haible  <bruno@clisp.org>
13005
13006         Work around snprintf bug on Linux libc5.
13007         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
13008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13009         gl_SNPRINTF_SIZE1.
13010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13011         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
13012         that test failed.
13013         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13014         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
13015         * modules/snprintf (Files): Add m4/printf.m4.
13016         * modules/vsnprintf (Files): Likewise.
13017         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
13018         * doc/posix-functions/vsnprintf.texi: Likewise.
13019
13020 2008-04-19  Bruno Haible  <bruno@clisp.org>
13021
13022         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
13023         from 0.0058 to less than 10^-7.
13024
13025 2008-04-19  Bruno Haible  <bruno@clisp.org>
13026
13027         Fix rounding when a precision is given.
13028         * lib/vasnprintf.c (is_borderline): New function.
13029         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
13030         9...9x.
13031         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13032         %e, %g.
13033         * tests/test-vasprintf-posix.c (test_function): Likewise.
13034         * tests/test-snprintf-posix.h (test_function): Likewise.
13035         * tests/test-sprintf-posix.h (test_function): Likewise.
13036         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
13037         * tests/test-printf-posix.h (test_function): Likewise.
13038         * tests/test-printf-posix.output: Update.
13039         Reported by John Darrington <john@darrington.wattle.id.au> via
13040         Ben Pfaff <blp@cs.stanford.edu>.
13041
13042 2008-04-18  Simon Josefsson  <simon@josefsson.org>
13043
13044         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
13045         Suggested by Bruno Haible <bruno@clisp.org>.
13046
13047 2008-04-17  Bruno Haible  <bruno@clisp.org>
13048
13049         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
13050         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
13051         implementation.
13052         Patch by Bruce Merry <bmerry@gmail.com>.
13053
13054 2008-04-17  Simon Josefsson  <simon@josefsson.org>
13055
13056         * doc/posix-functions/strftime.texi (strftime): Mention that %e
13057         doesn't work under Windows.
13058
13059 2008-04-16  Bruno Haible  <bruno@clisp.org>
13060
13061         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
13062         New macros.
13063         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
13064         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
13065         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
13066         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
13067         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
13068         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
13069         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
13070         macros.
13071         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
13072         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
13073         Northern Sotho, Uighur.
13074
13075 2008-04-16  Bruno Haible  <bruno@clisp.org>
13076
13077         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
13078         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
13079         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
13080         Reported by Daniel Bergström <daniel@octocode.com>.
13081
13082 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
13083             Bruno Haible  <bruno@clisp.org>
13084
13085         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
13086         function.
13087         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
13088         New functions, mostly extracted from gl_locale_name_default.
13089         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
13090
13091 2008-04-16  Eric Blake  <ebb9@byu.net>
13092
13093         Adjust strtod detection to catch glibc 2.7 bug.
13094         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
13095         Reported by John Gatewood Ham.
13096
13097 2008-04-16  Bruno Haible  <bruno@clisp.org>
13098
13099         Add tentative support for Linux libc5.
13100         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
13101         * lib/fpurge.c (fpurge): Likewise.
13102         * lib/freadable.c (freadable): Likewise.
13103         * lib/freadahead.c (freadahead): Likewise.
13104         * lib/freading.c (freading): Likewise.
13105         * lib/freadptr.c (freadptr): Likewise.
13106         * lib/freadseek.c (freadptrinc): Likewise.
13107         * lib/fseeko.c (rpl_fseeko): Likewise.
13108         * lib/fseterr.c (fseterr): Likewise.
13109         * lib/fwritable.c (fwritable): Likewise.
13110         * lib/fwriting.c (fwriting): Likewise.
13111         Reported by Alain Guibert <alguibert+bts@free.fr>.
13112
13113 2008-04-15  Bruno Haible  <bruno@clisp.org>
13114
13115         * modules/mathl (configure.ac): Define module indicator.
13116
13117 2008-04-15  Bruno Haible  <bruno@clisp.org>
13118
13119         * lib/logl.c (logl): Remove unused variables.
13120
13121 2008-04-15  Bruno Haible  <bruno@clisp.org>
13122
13123         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
13124         fails.
13125
13126 2008-04-15  Bruno Haible  <bruno@clisp.org>
13127
13128         * lib/trim.c (trim2): Fix argument of isspace() macro.
13129
13130 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
13131
13132         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
13133         to 0.
13134         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
13135
13136 2008-04-14  Bruno Haible  <bruno@clisp.org>
13137
13138         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
13139         AC_LANG_PROGRAM argument.
13140         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
13141         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
13142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13143         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13144         * m4/math_h.m4 (gl_MATH_H): Likewise.
13145         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13147         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13148         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
13149         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13150         * m4/regex.m4 (gl_REGEX): Likewise.
13151         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
13152         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
13153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
13155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13156         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13159
13160 2008-04-14  Jim Meyering  <meyering@redhat.com>
13161
13162         test-strtod: fix typos: s/abs/fabs/
13163         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
13164
13165 2008-04-13  Bruno Haible  <bruno@clisp.org>
13166
13167         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
13168         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
13169         module is also used and while not building the reloc-wrapper.
13170
13171 2008-04-13  Bruno Haible  <bruno@clisp.org>
13172
13173         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
13174
13175 2008-04-13  Bruno Haible  <bruno@clisp.org>
13176
13177         Fix AIX compilation failure introduced on 2008-04-02.
13178         * tests/test-frexp.c (exp): Undefine before redefining.
13179         * tests/test-frexpl.c (exp): Likewise.
13180
13181 2008-04-13  Bruno Haible  <bruno@clisp.org>
13182
13183         Work around a HP-UX stdio bug.
13184         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
13185         * tests/test-ftello.c (main): Likewise.
13186         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
13187         * doc/posix-functions/ftello.texi: Likewise.
13188
13189 2008-04-13  Bruno Haible  <bruno@clisp.org>
13190
13191         Make test-signbit pass on HP-UX/hppa.
13192         * tests/test-signbit.c (minus_zerol): New variable.
13193         (test_signbitl): Use it.
13194
13195 2008-04-13  Bruno Haible  <bruno@clisp.org>
13196
13197         Make truncl work on OSF/1 4.0.
13198         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
13199         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13200         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
13202         HAVE_DECL_TRUNCL.
13203         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
13204         HAVE_DECL_TRUNCL.
13205         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
13206
13207 2008-04-13  Bruno Haible  <bruno@clisp.org>
13208
13209         * lib/unictype.h: Remove trailing comma from enumeration definitions.
13210
13211 2008-04-13  Bruno Haible  <bruno@clisp.org>
13212
13213         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
13214         expression, so as to avoid HP-UX 11 cc compiler bug.
13215
13216 2008-04-13  Bruno Haible  <bruno@clisp.org>
13217
13218         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
13219
13220 2008-04-13  Bruno Haible  <bruno@clisp.org>
13221
13222         * lib/git-merge-changelog.c: Remove empty declaration outside of
13223         functions.
13224
13225 2008-04-13  Bruno Haible  <bruno@clisp.org>
13226
13227         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
13228
13229 2008-04-13  Bruno Haible  <bruno@clisp.org>
13230
13231         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
13232         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
13233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
13234         also if it exists but lacks definitions of the SHUT_* macros.
13235         * modules/sys_socket (Description): Update.
13236         Reported by Elbert Pol <e.pol@chello.nl>.
13237
13238 2008-04-13  Bruno Haible  <bruno@clisp.org>
13239
13240         * lib/localcharset.c (OS2): Don't redefine if already defined.
13241         Reported by Elbert Pol <e.pol@chello.nl>.
13242
13243 2008-04-13  Bruno Haible  <bruno@clisp.org>
13244
13245         * lib/binary-io.h [__EMX__]: Include <io.h>.
13246         Reported by Elbert Pol <e.pol@chello.nl>.
13247
13248 2008-04-12  Bruno Haible  <bruno@clisp.org>
13249
13250         * lib/fpucw.h: Enable the definitions also for x86_64.
13251         Needed for NetBSD/x86_64.
13252         Reported by Thomas Klausner <tk@giga.or.at>.
13253
13254 2008-04-12  Bruno Haible  <bruno@clisp.org>
13255
13256         * tests/test-strtod.c: Include isnand.h.
13257         (main): Use isnand instead of isnan.
13258         Reported by Jim Meyering.
13259
13260 2008-04-12  Bruno Haible  <bruno@clisp.org>
13261
13262         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
13263         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13264
13265 2008-04-12  Jim Meyering  <meyering@redhat.com>
13266
13267         * m4/math_h.m4 (gl_MATH_H): Fix typos.
13268
13269 2008-04-12  Bruno Haible  <bruno@clisp.org>
13270
13271         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
13272         Reported by Elbert Pol <e.pol@chello.nl>.
13273
13274 2008-04-12  Eric Blake  <ebb9@byu.net>
13275
13276         Work around Solaris 10 math.h bug.
13277         * m4/math_h.m4 (gl_MATH_H): Check for bug.
13278         (gl_MATH_H_DEFAULTS): Set up default.
13279         * modules/math (Makefile.am): Replace new indicators.
13280         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
13281         * tests/test-math.c (main): Test this.
13282         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
13283         * doc/posix-headers/math.texi (math.h): Mention bug.
13284         Reported by Nelson H. F. Beebe and Jim Meyering.
13285
13286 2008-04-11  Bruno Haible  <bruno@clisp.org>
13287
13288         Adapt to future versions of Apple GCC.
13289         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
13290         Reported by Peter O'Gorman <peter@pogma.com>.
13291
13292 2008-04-11  Bruno Haible  <bruno@clisp.org>
13293
13294         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
13295
13296 2008-04-11  Bruno Haible  <bruno@clisp.org>
13297
13298         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
13299
13300         * modules/getaddrinfo-tests (Makefile.am): Define
13301         test_getaddrinfo_LDADD.
13302
13303 2008-04-11  Bruno Haible  <bruno@clisp.org>
13304
13305         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
13306         (init): Fix syntax error.
13307         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
13308         is declared.
13309
13310 2008-04-11  Bruno Haible  <bruno@clisp.org>
13311
13312         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
13313         * modules/glob (Depends-on): Add stdbool.
13314
13315 2008-04-11  Bruno Haible  <bruno@clisp.org>
13316
13317         * lib/trim.c: Include <string.h>.
13318
13319 2008-04-11  Eric Blake  <ebb9@byu.net>
13320
13321         Avoid compile failure on OS/2.
13322         * lib/regex_internal.h (internal_function): Disable optimization
13323         on OS/2 (__EMX__), where it caused compiler error.
13324         Reported by Elbert Pol.
13325
13326 2008-04-11  Bruno Haible  <bruno@clisp.org>
13327
13328         Flush the standard error stream before aborting. Needed on mingw.
13329         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
13330         * tests/test-array_list.c (ASSERT): Likewise.
13331         * tests/test-array_oset.c (ASSERT): Likewise.
13332         * tests/test-avltree_list.c (ASSERT): Likewise.
13333         * tests/test-avltree_oset.c (ASSERT): Likewise.
13334         * tests/test-avltreehash_list.c (ASSERT): Likewise.
13335         * tests/test-binary-io.c (ASSERT): Likewise.
13336         * tests/test-byteswap.c (ASSERT): Likewise.
13337         * tests/test-c-ctype.c (ASSERT): Likewise.
13338         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
13339         * tests/test-c-strcasestr.c (ASSERT): Likewise.
13340         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
13341         * tests/test-c-strstr.c (ASSERT): Likewise.
13342         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
13343         * tests/test-canonicalize.c (ASSERT): Likewise.
13344         * tests/test-carray_list.c (ASSERT): Likewise.
13345         * tests/test-ceilf1.c (ASSERT): Likewise.
13346         * tests/test-ceilf2.c (ASSERT): Likewise.
13347         * tests/test-ceill.c (ASSERT): Likewise.
13348         * tests/test-count-one-bits.c (ASSERT): Likewise.
13349         * tests/test-fbufmode.c (ASSERT): Likewise.
13350         * tests/test-fflush2.c (ASSERT): Likewise.
13351         * tests/test-floorf1.c (ASSERT): Likewise.
13352         * tests/test-floorf2.c (ASSERT): Likewise.
13353         * tests/test-floorl.c (ASSERT): Likewise.
13354         * tests/test-fopen.c (ASSERT): Likewise.
13355         * tests/test-fpending.c (ASSERT): Likewise.
13356         * tests/test-fprintf-posix.c (ASSERT): Likewise.
13357         * tests/test-fpurge.c (ASSERT): Likewise.
13358         * tests/test-freadable.c (ASSERT): Likewise.
13359         * tests/test-freadahead.c (ASSERT): Likewise.
13360         * tests/test-freading.c (ASSERT): Likewise.
13361         * tests/test-freadptr.c (ASSERT): Likewise.
13362         * tests/test-freadptr2.c (ASSERT): Likewise.
13363         * tests/test-freadseek.c (ASSERT): Likewise.
13364         * tests/test-freopen.c (ASSERT): Likewise.
13365         * tests/test-frexp.c (ASSERT): Likewise.
13366         * tests/test-frexpl.c (ASSERT): Likewise.
13367         * tests/test-fseek.c (ASSERT): Likewise.
13368         * tests/test-fseeko.c (ASSERT): Likewise.
13369         * tests/test-fstrcmp.c (ASSERT): Likewise.
13370         * tests/test-ftell.c (ASSERT): Likewise.
13371         * tests/test-ftello.c (ASSERT): Likewise.
13372         * tests/test-func.c (ASSERT): Likewise.
13373         * tests/test-fwritable.c (ASSERT): Likewise.
13374         * tests/test-fwriting.c (ASSERT): Likewise.
13375         * tests/test-getdelim.c (ASSERT): Likewise.
13376         * tests/test-getline.c (ASSERT): Likewise.
13377         * tests/test-i-ring.c (ASSERT): Likewise.
13378         * tests/test-iconv-utf.c (ASSERT): Likewise.
13379         * tests/test-iconv.c (ASSERT): Likewise.
13380         * tests/test-isfinite.c (ASSERT): Likewise.
13381         * tests/test-isnand.c (ASSERT): Likewise.
13382         * tests/test-isnanf.c (ASSERT): Likewise.
13383         * tests/test-isnanl.h (ASSERT): Likewise.
13384         * tests/test-ldexpl.c (ASSERT): Likewise.
13385         * tests/test-linked_list.c (ASSERT): Likewise.
13386         * tests/test-linkedhash_list.c (ASSERT): Likewise.
13387         * tests/test-localename.c (ASSERT): Likewise.
13388         * tests/test-lseek.c (ASSERT): Likewise.
13389         * tests/test-mbscasecmp.c (ASSERT): Likewise.
13390         * tests/test-mbscasestr1.c (ASSERT): Likewise.
13391         * tests/test-mbscasestr2.c (ASSERT): Likewise.
13392         * tests/test-mbscasestr3.c (ASSERT): Likewise.
13393         * tests/test-mbscasestr4.c (ASSERT): Likewise.
13394         * tests/test-mbschr.c (ASSERT): Likewise.
13395         * tests/test-mbscspn.c (ASSERT): Likewise.
13396         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
13397         * tests/test-mbspbrk.c (ASSERT): Likewise.
13398         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
13399         * tests/test-mbsrchr.c (ASSERT): Likewise.
13400         * tests/test-mbsspn.c (ASSERT): Likewise.
13401         * tests/test-mbsstr1.c (ASSERT): Likewise.
13402         * tests/test-mbsstr2.c (ASSERT): Likewise.
13403         * tests/test-mbsstr3.c (ASSERT): Likewise.
13404         * tests/test-memchr2.c (ASSERT): Likewise.
13405         * tests/test-memmem.c (ASSERT): Likewise.
13406         * tests/test-open.c (ASSERT): Likewise.
13407         * tests/test-printf-frexp.c (ASSERT): Likewise.
13408         * tests/test-printf-frexpl.c (ASSERT): Likewise.
13409         * tests/test-printf-posix.c (ASSERT): Likewise.
13410         * tests/test-quotearg.c (ASSERT): Likewise.
13411         * tests/test-rbtree_list.c (ASSERT): Likewise.
13412         * tests/test-rbtree_oset.c (ASSERT): Likewise.
13413         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
13414         * tests/test-round1.c (ASSERT): Likewise.
13415         * tests/test-roundf1.c (ASSERT): Likewise.
13416         * tests/test-roundl.c (ASSERT): Likewise.
13417         * tests/test-signbit.c (ASSERT): Likewise.
13418         * tests/test-sleep.c (ASSERT): Likewise.
13419         * tests/test-snprintf-posix.c (ASSERT): Likewise.
13420         * tests/test-snprintf.c (ASSERT): Likewise.
13421         * tests/test-sprintf-posix.c (ASSERT): Likewise.
13422         * tests/test-stat-time.c (ASSERT): Likewise.
13423         * tests/test-strcasestr.c (ASSERT): Likewise.
13424         * tests/test-strerror.c (ASSERT): Likewise.
13425         * tests/test-striconv.c (ASSERT): Likewise.
13426         * tests/test-striconveh.c (ASSERT): Likewise.
13427         * tests/test-striconveha.c (ASSERT): Likewise.
13428         * tests/test-strsignal.c (ASSERT): Likewise.
13429         * tests/test-strstr.c (ASSERT): Likewise.
13430         * tests/test-strtod.c (ASSERT): Likewise.
13431         * tests/test-trunc1.c (ASSERT): Likewise.
13432         * tests/test-trunc2.c (ASSERT): Likewise.
13433         * tests/test-truncf1.c (ASSERT): Likewise.
13434         * tests/test-truncf2.c (ASSERT): Likewise.
13435         * tests/test-truncl.c (ASSERT): Likewise.
13436         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
13437         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
13438         * tests/test-vasnprintf.c (ASSERT): Likewise.
13439         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
13440         * tests/test-vasprintf.c (ASSERT): Likewise.
13441         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
13442         * tests/test-vprintf-posix.c (ASSERT): Likewise.
13443         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
13444         * tests/test-vsnprintf.c (ASSERT): Likewise.
13445         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
13446         * tests/test-wcwidth.c (ASSERT): Likewise.
13447         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
13448         * tests/test-xprintf-posix.c (ASSERT): Likewise.
13449         * tests/test-xvasprintf.c (ASSERT): Likewise.
13450         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
13451         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
13452         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
13453         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
13454         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
13455         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
13456         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
13457         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
13458         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
13459         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
13460         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
13461         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
13462         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
13463         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
13464         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
13465         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
13466         * tests/unictype/test-block_list.c (ASSERT): Likewise.
13467         * tests/unictype/test-block_of.c (ASSERT): Likewise.
13468         * tests/unictype/test-block_test.c (ASSERT): Likewise.
13469         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
13470         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
13471         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
13472         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
13473         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
13474         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
13475         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
13476         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
13477         * tests/unictype/test-combining.c (ASSERT): Likewise.
13478         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
13479         * tests/unictype/test-digit.c (ASSERT): Likewise.
13480         * tests/unictype/test-mirror.c (ASSERT): Likewise.
13481         * tests/unictype/test-numeric.c (ASSERT): Likewise.
13482         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
13483         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
13484         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
13485         * tests/unictype/test-scripts.c (ASSERT): Likewise.
13486         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
13487         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
13488         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
13489         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
13490         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
13491         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
13492         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
13493         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
13494         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
13495         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
13496         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
13497         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
13498         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
13499         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
13500         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
13501         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
13502         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
13503         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
13504         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
13505         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
13506         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
13507         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
13508         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
13509         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
13510         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
13511         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
13512         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
13513         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
13514         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
13515         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
13516         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
13517         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
13518         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
13519         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
13520         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
13521         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
13522         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
13523         Reported by Eric Blake.
13524
13525 2008-04-11  Bruno Haible  <bruno@clisp.org>
13526
13527         * lib/wchar.in.h: Tweak comment.
13528
13529 2008-04-11  Bruno Haible  <bruno@clisp.org>
13530
13531         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
13532         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
13533         gl_COMMON.
13534         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
13535
13536 2008-04-11  Bruno Haible  <bruno@clisp.org>
13537
13538         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
13539
13540 2008-04-11  Simon Josefsson  <simon@josefsson.org>
13541
13542         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
13543         of attempting to use non-existing /dev/*random.  Based on patch
13544         from Adam Strzelecki <ono@java.pl> in
13545         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
13546
13547 2008-04-08  Bruno Haible  <bruno@clisp.org>
13548
13549         Add tentative support for emx+gcc.
13550         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
13551         * lib/fpurge.c (fpurge): Likewise.
13552         * lib/freadable.c (freadable): Likewise.
13553         * lib/freadahead.c (freadahead): Likewise.
13554         * lib/freading.c (freading): Likewise.
13555         * lib/freadptr.c (freadptr): Likewise.
13556         * lib/freadseek.c (freadptrinc): Likewise.
13557         * lib/fseeko.c (rpl_fseeko): Likewise.
13558         * lib/fseterr.c (fseterr): Likewise.
13559         * lib/fwritable.c (fwritable): Likewise.
13560         * lib/fwriting.c (fwriting): Likewise.
13561         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
13562
13563 2008-04-09  Eric Blake  <ebb9@byu.net>
13564
13565         Avoid some autoconf warnings.
13566         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
13567         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
13568         * m4/afs.m4 (gl_AFS): Likewise.
13569         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
13570         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
13571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13572         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
13573         (gl_INTEGER_TYPE_SUFFIX): Likewise.
13574         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
13575         (AC_CHECK_DECLS_ONCE): Likewise.
13576         Rename file...
13577         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
13578         gnulib-tool requires autoconf 2.59 or better.
13579         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
13580
13581 2008-04-08  Eric Blake  <ebb9@byu.net>
13582
13583         Use 'git describe --match' if present (added in git 1.5.5).
13584         * build-aux/git-version-gen: Limit result to tags that match 'v*'
13585         if possible.
13586
13587 2008-04-08  Bruno Haible  <bruno@clisp.org>
13588
13589         Add tentative support for OpenServer.
13590         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
13591         _ptr, _cnt.
13592         * lib/fpurge.c (fpurge): Likewise.
13593         * lib/freadable.c (freadable): Likewise.
13594         * lib/freadahead.c (freadahead): Likewise.
13595         * lib/freading.c (freading): Likewise.
13596         * lib/freadptr.c (freadptr): Likewise.
13597         * lib/freadseek.c (freadptrinc): Likewise.
13598         * lib/fseeko.c (rpl_fseeko): Likewise.
13599         * lib/fseterr.c (fseterr): Likewise.
13600         * lib/fwritable.c (fwritable): Likewise.
13601         * lib/fwriting.c (fwriting): Likewise.
13602         Reported by Roger Cornelius <rac@tenzing.org> and
13603         Brian K. White <brian@aljex.com>.
13604
13605 2008-04-06  Jim Meyering  <meyering@redhat.com>
13606
13607         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
13608
13609 2008-04-06  Bruno Haible  <bruno@clisp.org>
13610
13611         Avoid possible error with non-ASCII bytes in UTF-8 locales.
13612         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
13613         * tests/test-printf-posix.sh: Likewise.
13614         * tests/test-vfprintf-posix.sh: Likewise.
13615         * tests/test-vprintf-posix.sh: Likewise.
13616         * tests/test-xprintf-posix.sh: Likewise.
13617
13618 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13619
13620         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
13621         hide error from 'ls', needed on OS/2.
13622         Report by Elbert Pol <elbert.pol@gmail.com>.
13623
13624 2008-04-04  Eric Blake  <ebb9@byu.net>
13625
13626         Make test-fseeko.c failures meaningful.
13627         * tests/test-fseeko.c: Print line number on failure.
13628         * tests/test-fseek.c: Likewise.
13629         Reported by Nelson H. F. Beebe.
13630
13631         Improve strtod bug detection check.
13632         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
13633         required for Solaris 10.
13634         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
13635
13636 2008-04-04  Bruno Haible  <bruno@clisp.org>
13637
13638         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
13639         by m4/setenv.m4.
13640
13641 2008-04-03  Eric Blake  <ebb9@byu.net>
13642
13643         Ensure sane .version contents.
13644         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
13645         version string.
13646         * build-aux/git-version-gen: Improve documentation.
13647
13648         Make GNU make output nicer.
13649         * top/GNUmakefile [!_have-Makefile]: Add dependency on
13650         MAKECMDGOALS to enforce message for all command line targets.  Set
13651         srcdir for use in maint.mk.
13652
13653         Another maintainer tweak.
13654         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
13655         a target that regenerates version.
13656
13657 2008-04-03  Jim Meyering  <meyering@redhat.com>
13658
13659         vc-list-files: don't cause coreutils "make po-check" failure
13660         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
13661
13662 2008-04-03  Eric Blake  <ebb9@byu.net>
13663
13664         Allow VPATH usage of vc-list-files.
13665         * build-aux/vc-list-files (scriptversion): Add timestamp.
13666         (options): Add --help, --version, -C.
13667         (CVS): Support installed cvsu.
13668
13669 2008-04-02  Bruno Haible  <bruno@clisp.org>
13670
13671         Avoid some "statement with no effect" warnings from gcc.
13672         * tests/test-wctype.c (main): Explicitly ignore unused values.
13673         Reported by Jim Meyering.
13674
13675 2008-04-02  Jim Meyering  <meyering@redhat.com>
13676
13677         Avoid some warnings from "gcc -Wshadow".
13678         * tests/test-frexp.c (exp): Define to a different identifier.
13679         * tests/test-frexpl.c (exp): Likewise.
13680
13681 2008-04-03  Jim Meyering  <meyering@redhat.com>
13682
13683         bootstrap: remove dangling *.[ch] symlinks from lib
13684         * build-aux/bootstrap [dangling symlink removal]: Move find's
13685         -depth option to precede all others, to avoid a warning.
13686         Remove *.[ch] files too, and from "$source_base" (usually lib/).
13687
13688 2008-04-02  Bruno Haible  <bruno@clisp.org>
13689
13690         Avoid some warnings from "gcc -Wshadow".
13691         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
13692         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
13693         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
13694         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
13695         Reported by Jim Meyering.
13696
13697 2008-04-01  Bruno Haible  <bruno@clisp.org>
13698
13699         Fix test to work on IRIX 6.5 with cc.
13700         * tests/test-math.c (numeric_equal): New function.
13701         (main): Use it.
13702
13703 2008-04-01  Bruno Haible  <bruno@clisp.org>
13704
13705         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
13706
13707 2008-04-01  Bruno Haible  <bruno@clisp.org>
13708
13709         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
13710         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13711         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
13712         (Depends-on): Remove math.
13713
13714         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
13715         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13716         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
13717         (Depends-on): Remove math.
13718
13719         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
13720         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13721         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
13722         (Depends-on): Remove math.
13723         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
13724         (Depends-on): Remove math.
13725
13726         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
13727         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13728         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
13729         (Depends-on): Remove math.
13730         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
13731         (Depends-on): Remove math.
13732
13733         * tests/test-round1.c: Include nan.h.
13734         (main): Use NaNd instead of NAN.
13735         * modules/round-tests (Files): Add tests/nan.h.
13736
13737         * tests/test-trunc1.c: Include nan.h.
13738         (main): Use NaNd instead of NAN.
13739         * modules/trunc-tests (Files): Add tests/nan.h.
13740
13741         * tests/test-roundf1.c: Include nan.h.
13742         (main): Use NaNf instead of NAN.
13743         * modules/roundf-tests (Files): Add tests/nan.h.
13744
13745         * tests/test-truncf1.c: Include nan.h.
13746         (main): Use NaNf instead of NAN.
13747         * modules/truncf-tests (Files): Add tests/nan.h.
13748
13749         * tests/test-ceilf1.c: Include nan.h.
13750         (main): Use NaNf instead of NAN.
13751         * modules/ceilf-tests (Files): Add tests/nan.h.
13752
13753         * tests/test-floorf1.c: Include nan.h.
13754         (main): Use NaNf instead of NAN.
13755         * modules/floorf-tests (Files): Add tests/nan.h.
13756
13757         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
13758         (main): Use NaNf instead of NAN.
13759         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
13760
13761         * tests/test-isnand.c: Include nan.h instead of <math.h>.
13762         (main): Use NaNd instead of NAN.
13763         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
13764
13765         * tests/test-frexp.c: Include nan.h.
13766         (main): Use NaNd instead of NAN.
13767         * modules/frexp-tests (Files): Add tests/nan.h.
13768
13769         * lib/isnan.c: Don't include <math.h>.
13770         (FUNC): Don't use NAN macro.
13771         * modules/isnand-nolibm (Depends-on): Remove math.
13772         * modules/isnanf-nolibm (Depends-on): Remove math.
13773         * modules/isnanl (Depends-on): Remove math.
13774         * modules/isnanl-nolibm (Depends-on): Remove math.
13775
13776         * tests/nan.h: New file.
13777
13778 2008-04-01  Eric Blake  <ebb9@byu.net>
13779
13780         Fix typos.
13781         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
13782         values to be the right type.
13783
13784         For now, cater to gnulib strtod inaccuracies.
13785         * tests/test-strtod.c (main): Allow 1-ulp error on expected
13786         fractional results.  While not as nice from a QoI perspective, it
13787         is a quicker patch than correctly implementing decimal to binary
13788         rounding.
13789
13790 2008-03-31  Eric Blake  <ebb9@byu.net>
13791
13792         Guarantee a definition of NAN.
13793         * lib/math.in.h (NAN): Define if missing.
13794         * tests/test-math.c (main): Test it.
13795         * doc/posix-headers/math.texi (math.h): Document this.
13796         * lib/isnan.c (rpl_isnand): Use it.
13797         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
13798         * tests/test-floorf1.c (NaN): Likewise.
13799         * tests/test-frexp.c (NaN): Likewise.
13800         * tests/test-isnand.c (NaN): Likewise.
13801         * tests/test-isnanf.c (NaN): Likewise.
13802         * tests/test-round1.c (NaN): Likewise.
13803         * tests/test-roundf1.c (NaN): Likewise.
13804         * tests/test-snprintf-posix.h (NaN): Likewise.
13805         * tests/test-sprintf-posix.h (NaN): Likewise.
13806         * tests/test-trunc1.c (NaN): Likewise.
13807         * tests/test-truncf1.c (NaN): Likewise.
13808         * tests/test-vasnprintf-posix.c (NaN): Likewise.
13809         * tests/test-vasprintf-posix.c (NaN): Likewise.
13810         * modules/isnand-nolibm (Depends-on): Add math.
13811         * modules/isnanf-nolibm (Depends-on): Likewise.
13812         * modules/isnanl (Depends-on): Likewise.
13813         * modules/isnanl-nolibm (Depends-on): Likewise.
13814         * modules/snprintf-posix-tests (Depends-on): Likewise.
13815         * modules/sprintf-posix-tests (Depends-on): Likewise.
13816         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
13817         * modules/vsprintf-posix-tests (Depends-on): Likewise.
13818         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
13819         * modules/vasprintf-posix-tests (Depends-on): Likewise.
13820
13821 2008-03-31  Bruno Haible  <bruno@clisp.org>
13822
13823         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
13824         * doc/posix-functions/strtod.texi: Likewise.
13825
13826 2008-03-31  Bruno Haible  <bruno@clisp.org>
13827
13828         * tests/test-strtod.c (main): Don't use C99 syntax.
13829
13830 2008-03-31  Bruno Haible  <bruno@clisp.org>
13831
13832         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
13833         Reported by Eric Blake.
13834
13835 2008-03-31  Jim Meyering  <meyering@redhat.com>
13836
13837         Don't compare actual signbit return values.
13838         * tests/test-strtod.c (main): Rather, compare only their
13839         zero/non-zero nature.
13840
13841 2008-03-31  Eric Blake  <ebb9@byu.net>
13842
13843         More strtod documentation.
13844         * doc/posix-functions/strtod.texi (strtod): Interpret more test
13845         failures as distinct bugs.
13846
13847 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
13850         Problem reported by Erik Benada in
13851         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
13852
13853 2008-03-30  Bruno Haible  <bruno@clisp.org>
13854
13855         * tests/test-strtod.c: Add comments about which assertion fails on which
13856         platform.
13857         * doc/posix-functions/strtod.texi: Add info about many more platforms.
13858
13859 2008-03-30  Eric Blake  <ebb9@byu.net>
13860
13861         Test signbit behavior on zeros.
13862         * tests/test-signbit.c (test_signbitf): Add tests for zero.
13863         (test_signbitd, test_signbitl): Likewise.
13864
13865         More strtod touchups.
13866         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
13867         sign of negative underflow, for now.  Use .5, not .1.
13868         * doc/posix-functions/strtod.texi (strtod): Mention these
13869         limitations.
13870         Reported by Jim Meyering.
13871
13872 2008-03-30  Bruno Haible  <bruno@clisp.org>
13873
13874         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
13875         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
13876
13877 2008-03-30  Bruno Haible  <bruno@clisp.org>
13878
13879         Avoid failure when attempting to return empty iconv results on some
13880         platforms.
13881         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
13882         allocation, don't report ENOMEM when the resulting string is empty.
13883
13884 2008-03-30  Bruno Haible  <bruno@clisp.org>
13885
13886         Fix buffer overrun.
13887         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
13888         Don't consider the width for tmp_length. Check count against tmp_length
13889         before doing the padding. Ensure enough allocation during padding.
13890
13891 2008-03-30  Eric Blake  <ebb9@byu.net>
13892
13893         strtod touchups.
13894         * lib/strtod.c (strtod): Avoid compiler warnings.
13895         Reported by Jim Meyering.
13896
13897 2008-03-30  Bruno Haible  <bruno@clisp.org>
13898
13899         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
13900         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
13901         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
13902         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
13903         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
13904         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
13905         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
13906         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
13907
13908         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
13909         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
13910         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
13911         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
13912         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
13913         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
13914         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
13915         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
13916
13917         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
13918         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
13919         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
13920         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
13921         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
13922         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
13923         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
13924         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
13925
13926         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
13927         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
13928
13929         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
13930         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
13931
13932         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
13933         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
13934
13935         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
13936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
13937         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
13938
13939         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
13940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
13941         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
13942
13943         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
13944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
13945         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
13946
13947         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
13948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
13949         * modules/vasprintf (Depends-on): Add EOVERFLOW.
13950
13951         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
13952         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
13953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
13954         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
13955         (Depends-on): Add EOVERFLOW.
13956         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
13957         (Depends-on): Add EOVERFLOW.
13958         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
13959         (Depends-on): Add EOVERFLOW.
13960         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
13961         (Depends-on): Add EOVERFLOW.
13962         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
13963         (Depends-on): Add EOVERFLOW.
13964         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
13965         (Depends-on): Add EOVERFLOW.
13966         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
13967         (Depends-on): Add EOVERFLOW.
13968         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
13969         (Depends-on): Add EOVERFLOW.
13970
13971         * lib/sprintf.c (EOVERFLOW): Remove fallback.
13972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
13973         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
13974
13975         * lib/snprintf.c (EOVERFLOW): Remove fallback.
13976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
13977         * modules/snprintf (Depends-on): Add EOVERFLOW.
13978
13979         * lib/poll.c (EOVERFLOW): Remove fallback.
13980         * modules/poll (Depends-on): Add EOVERFLOW.
13981
13982         * lib/getugroups.c (EOVERFLOW): Remove fallback.
13983         * modules/getugroups (Depends-on): Add EOVERFLOW.
13984
13985         * lib/getdelim.c (EOVERFLOW): Remove fallback.
13986         * modules/getdelim (Depends-on): Add EOVERFLOW.
13987
13988         * lib/ftell.c (EOVERFLOW): Remove fallback.
13989         * modules/ftell (Depends-on): Add EOVERFLOW.
13990
13991         * lib/fprintf.c (EOVERFLOW): Remove fallback.
13992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
13993         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
13994
13995         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
13996
13997         * modules/EOVERFLOW-tests: New file.
13998         * tests/test-EOVERFLOW.c: New file.
13999
14000         * modules/EOVERFLOW: New file.
14001         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
14002
14003 2008-03-30  Bruno Haible  <bruno@clisp.org>
14004
14005         Fix bug introduced on 2007-06-10.
14006         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
14007         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
14008
14009 2008-03-30  Bruno Haible  <bruno@clisp.org>
14010
14011         Improve freadseek's efficiency after ungetc.
14012         * lib/freadseek.c: Include freadahead.h.
14013         (freadptrinc): New function, extracted from freadseek.
14014         (freadseek): Use it in a loop. Use freadahead to determine the number
14015         of loop iterations.
14016         * modules/freadseek (Depends-on): Add freadahead.
14017         (configure.ac): Require AC_C_INLINE.
14018
14019 2008-03-30  Bruno Haible  <bruno@clisp.org>
14020
14021         * lib/freadseek.c (freadseek): Don't ignore the return value of
14022         freadptr.
14023
14024 2008-03-29  Eric Blake  <ebb9@byu.net>
14025
14026         Add hex float support.
14027         * modules/strtod (Depends-on): Add c-ctype.
14028         (Link): Mention POW_LIB.
14029         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
14030         whitespace between 'e' and exponent.
14031         * tests/test-strtod.c (main): Enable hex float tests.
14032         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
14033         now provides.
14034
14035         Document various strtod bugs, with some fixes.
14036         * doc/posix-functions/strtod.texi (strtod): Document bugs with
14037         "-0x", "inf", "nan", and hex constants.
14038         * doc/posix-functions/atof.texi (atof): Likewise.
14039         * modules/stdlib (Makefile.am): Support strtod.
14040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14041         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
14042         detect additional strtod bugs.
14043         * lib/stdlib.in.h (rpl_strtod): Add declarations.
14044         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
14045         bool where appropriate.  Parse 'inf' and 'nan'.
14046         * tests/test-strtod.c: New file.
14047         * modules/strtod (Depends-on): Add stdbool, stdlib.
14048         (configure.ac): Turn on module indicator.
14049         * modules/strtod-tests: New module.
14050
14051 2008-03-29  Eric Blake  <ebb9@byu.net>
14052
14053         Fix ftell on mingw.
14054         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
14055         * modules/ftell-tests (Depends-on): Add binary-io.
14056         * modules/ftello-tests (Depends-on): Likewise.
14057         * tests/test-ftell.c (main): Enhance test to cover behavior after
14058         ungetc.  Enforce binary mode.
14059         * tests/test-ftello.c (main): Likewise.
14060
14061         Pass test-freadseek on cygwin.
14062         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
14063         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
14064         ungetc buffer.
14065
14066         * tests/test-fflush2.c (main): Fix typo.
14067
14068 2008-03-29  Bruno Haible  <bruno@clisp.org>
14069
14070         * tests/test-fflush2.c (main): Temporarily disable the contents of
14071         this test.
14072         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
14073         Reported by Eric Blake.
14074
14075 2008-03-28  Simon Josefsson  <simon@josefsson.org>
14076
14077         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
14078         (GC_SHA224_DIGEST_SIZE): Add.
14079
14080         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
14081         (gc_hash_digest_length): Likewise.
14082         (gc_hash_buffer): Likewise.
14083
14084 2008-03-25  Bruno Haible  <bruno@clisp.org>
14085
14086         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
14087         detail which gettext release to use.
14088         Reported by Simon Josefsson.
14089
14090 2008-03-26  Jim Meyering  <meyering@redhat.com>
14091
14092         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
14093         * modules/gnumakefile (clean-GNUmakefile): Also, use
14094         test ... && ... || : syntax rather than if-then ... fi.
14095
14096         gnumakefile: Don't double-quote-expand $(VPATH) value.
14097         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
14098
14099 2008-03-24  Eric Blake  <ebb9@byu.net>
14100
14101         Alter GNUmakefile to install into top directory.
14102         * modules/maintainer-makefile: Split, and add dependency...
14103         * modules/gnumakefile: to this new module.
14104         * build-aux/GNUmakefile: Move...
14105         * top/GNUmakefile: ...here.
14106         * build-aux/maint.mk: Move...
14107         * top/maint.mk: ...here.
14108         * MODULES.html.sh (Support for maintaining...): Document new
14109         module.
14110
14111 2008-03-23  Bruno Haible  <bruno@clisp.org>
14112
14113         * gnulib-tool: New options --vc-files, --no-vc-files.
14114         (func_usage): Document them.
14115         (vc_files): New variable.
14116         (func_import): Consider vc_files.
14117         (func_create_testdir): Set vc_files to empty.
14118         Suggested by Jim Meyering and Karl Berry.
14119
14120 2008-03-23  Bruno Haible  <bruno@clisp.org>
14121
14122         Fix regex compilation error on HP-UX 11.
14123         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
14124         * modules/regex (Files): Add m4/mbstate_t.m4.
14125         Reported by Ton Voon <ton.voon@altinity.com>.
14126
14127 2008-03-23  Bruno Haible  <bruno@clisp.org>
14128
14129         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
14130
14131 2008-03-23  Eric Blake  <ebb9@byu.net>
14132             Bruno Haible  <bruno@clisp.org>
14133
14134         Install files from top/ in the destination directory.
14135         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14136         augmentation also for the files from top/.
14137         (func_import, func_create_testdir): Rewrite file names:
14138         top/filename -> filename.
14139
14140 2008-03-23  Bruno Haible  <bruno@clisp.org>
14141
14142         Tweak "gnulib --version" output.
14143         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
14144
14145 2008-03-23  Bruno Haible  <bruno@clisp.org>
14146
14147         Tweak "gnulib --version" output.
14148         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
14149         rather than contents of ChangeLog, when possible.
14150
14151 2008-03-21  Eric Blake  <ebb9@byu.net>
14152
14153         More --version tweaks.
14154         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
14155         date of last ChangeLog entry.
14156
14157 2008-03-21  Jim Meyering  <meyering@redhat.com>
14158
14159         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
14160
14161 2008-03-20  Eric Blake  <ebb9@byu.net>
14162
14163         VPATH fix.
14164         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
14165
14166 2008-03-20  Simon Josefsson  <simon@josefsson.org>
14167
14168         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
14169         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
14170
14171 2008-03-20  Eric Blake  <ebb9@byu.net>
14172
14173         Sync GNUmakefile with coreutils.
14174         * build-aux/GNUmakefile (have-Makefile): Rename...
14175         (_have-Makefile): ...to this, for namespace consideration.
14176         (GNUmakefile.cfg): Include, if present.
14177         (_autoreconf): Define a default.
14178         (_is-dist-target): New rule for rebuilds to pick up intra-release
14179         version.
14180         (maint-cfg.mk): Rename...
14181         (cfg.mk): ...to this.
14182
14183 2008-03-18  Jim Meyering  <meyering@redhat.com>
14184
14185         New script and module: mktempd
14186         * MODULES.html.sh (maint+release support): Add mktempd.
14187         * build-aux/mktempd: New file.
14188         * modules/mktempd: New file.
14189
14190 2008-03-15  Jim Meyering  <meyering@redhat.com>
14191
14192         Undo last change.
14193         * lib/sha1.c, lib/md5.c: 63 != ~63.
14194         Reported by Andreas Schwab.
14195
14196         sha1.c, md5.c: Hoist a redundant expression.
14197         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
14198         "ctx->buflen" only once, before calling *_process_block.
14199         * lib/md5.c (md5_process_bytes): Likewise.
14200
14201 2008-03-14  Eric Blake  <ebb9@byu.net>
14202
14203         Bump copyright year in files generated by gnulib-tool.
14204         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
14205         gnulib-tool, rather than hard-coding it.
14206
14207         Fix 'gnulib-tool --version' output to work with git.
14208         * gnulib-tool (func_gnulib_dir): New function, extracted from...
14209         (startup): ...here.
14210         (func_version): Use it to invoke git-version-gen, rather than
14211         relying on CVS keyword expansion.  Modernize wording.
14212         (cvsdatestamp, last_checkin_date, version): Kill unused
14213         variables.
14214
14215 2008-03-12  Jim Meyering  <meyering@redhat.com>
14216
14217         Recognize optional cast of the argument to free.
14218         * build-aux/useless-if-before-free: Update regexps.
14219
14220         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
14221
14222 2008-03-11  Bruno Haible  <bruno@clisp.org>
14223
14224         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
14225         by a single package.
14226         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
14227         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
14228         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
14229         Reported by Sam Steingold <sds@gnu.org>.
14230
14231 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14232
14233         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
14234         repositories.
14235
14236 2008-03-11  Bruno Haible  <bruno@clisp.org>
14237
14238         Avoid conflicts between local macro definitions.
14239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14240         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
14241
14242 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
14243             Bruno Haible  <bruno@clisp.org>
14244
14245         Make va_copy work with some version of xlc on AIX 5.1.
14246         * lib/stdarg.in.h: New file.
14247         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
14248         On AIX, use a <stdarg.h> file substitute.
14249         * modules/stdarg (Files): Add lib/stdarg.in.h.
14250         (Depends-on): Add include_next.
14251         (Makefile.am): Build a stdarg.h substitute if requested.
14252         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
14253
14254 2008-03-10  Bruno Haible  <bruno@clisp.org>
14255
14256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
14257         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14258         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14259
14260 2008-03-10  Bruno Haible  <bruno@clisp.org>
14261
14262         * modules/stdlib (Depends-on): Add include_next, remove
14263         absolute-header.
14264
14265 2008-03-09  Bruno Haible  <bruno@clisp.org>
14266
14267         * lib/freadahead.h (freadahead): Document more precisely.
14268         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
14269         the sum of both buffer sizes.
14270         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
14271         * NEWS: Document the change.
14272
14273 2008-03-09  Bruno Haible  <bruno@clisp.org>
14274
14275         Extend freadptr to return also the buffer size.
14276         * lib/freadptr.h (freadptr): Add sizep argument.
14277         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
14278         (freadptr): Add sizep argument. Determine buffer size like freadahead
14279         does.
14280         * tests/test-freadptr.c: Don't include freadahead.h.
14281         (main): Adapt for new calling convention of freadptr.
14282         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
14283         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
14284         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
14285         tests/test-freadptr2.sh.
14286         (Depends): Remove freadahead.
14287         (TESTS): Add test-freadptr2.sh.
14288         (check_PROGRAMS): Add test-freadptr2.
14289
14290 2008-03-09  Bruno Haible  <bruno@clisp.org>
14291
14292         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
14293         Report and solution by Simon Josefsson.
14294
14295 2008-03-06  Bruno Haible  <bruno@clisp.org>
14296
14297         Make fflush after ungetc work on BSD platforms.
14298         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
14299         * tests/test-fflush2.c: New file.
14300         * tests/test-fflush2.sh: New file.
14301         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
14302         tests/test-fflush2.c.
14303         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
14304         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
14305
14306 2008-03-06  Eric Blake  <ebb9@byu.net>
14307
14308         Likewise for ftello.
14309         * modules/ftello (Dependencies): Add extensions.
14310         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
14311
14312 2008-03-06  Bruno Haible  <bruno@clisp.org>
14313
14314         * modules/fseeko (Dependencies): Add extensions.
14315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
14316         Needed on glibc systems.
14317
14318 2008-03-06  Bruno Haible  <bruno@clisp.org>
14319
14320         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
14321         email address.
14322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14323
14324 2008-03-06  Bruno Haible  <bruno@clisp.org>
14325
14326         * users.txt: Add libgnupdf.
14327
14328 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14329
14330         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
14331         (Header File Substitutes, Function Substitutes,
14332         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
14333         (Build robot for gnulib): Fix typo.
14334
14335 2008-03-06  Bruno Haible  <bruno@clisp.org>
14336
14337         * doc/gnulib-tool.texi (VCS Issues): Small updates.
14338         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14339
14340 2008-03-06  Bruno Haible  <bruno@clisp.org>
14341
14342         * doc/func.texi: New file, extracted from doc/gnulib.texi.
14343         * doc/gnulib.texi: Include it.
14344
14345 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14346
14347         * modules/func (License): Change license to unlimited; there was
14348         no LGPL parts in the module anyway.
14349
14350 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14351
14352         * modules/__func__: Renamed to modules/func.
14353         * modules/__func__-tests: Renamed to modules/func-tests.
14354         * tests/test-__func__.c: Renamed to tests/test-func.c.
14355         * m4/__func__.m4: Renamed to m4/func.m4.
14356         * doc/gnulib.texi (__func__): Section renamed to func.
14357         Suggested by Eric Blake <ebb9@byu.net>.
14358
14359 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14360
14361         * doc/gnulib.texi (__func__): Use C99 terminology when talking
14362         about __func__.  Make example self-contained.  Suggested by Eric
14363         Blake <ebb9@byu.net>.
14364
14365         * tests/test-__func__.c (main): Avoid extraneous () around __func.
14366         Suggested by Eric Blake <ebb9@byu.net>.
14367
14368 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14369
14370         * modules/__func__: New file.
14371         * modules/__func__-tests: New file.
14372         * tests/test-__func__.c: New file.
14373         * m4/__func__.m4: New file.
14374         * doc/gnulib.texi (__func__): Document __func__ module.
14375
14376 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14377
14378         * modules/byteswap (License): Re-license as LGPLv2+.
14379
14380 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14381
14382         * doc/Makefile: Add pdf target.
14383
14384 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14385
14386         * modules/inline (License): Use 'unlimited', since there are only
14387         *.m4 files in this module.
14388
14389 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14390             Bruno Haible  <bruno@clisp.org>
14391
14392         Add support for HP C 7.1 on OpenVMS 8.3.
14393         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
14394
14395 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14396
14397         Update VMS specifics.
14398         * lib/getopt.c [VMS]: Remove include of unixlib.h.
14399
14400 2008-03-02  Jim Meyering  <meyering@redhat.com>
14401
14402         Remove the last dependency on the "free" module.
14403         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
14404         Reported by Bob Proulx.
14405
14406         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
14407
14408         Remove useless "if" tests before free.  Deprecate "free" module.
14409         * doc/posix-functions/free.texi: Mention that this
14410         module is no longer useful.
14411         * modules/free (Notice): Say this module is obsolete.
14412         * modules/readutmp (Depends-on): Remove free.
14413         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
14414         * lib/putenv.c (putenv): Likewise.
14415         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
14416         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
14417         * tests/test-c-strcasestr.c (main): Likewise.
14418         * tests/test-c-strstr.c (main): Likewise.
14419         * tests/test-mbscasestr1.c (main): Likewise.
14420         * tests/test-mbscasestr2.c (main): Likewise.
14421         * tests/test-mbsstr1.c (main): Likewise.
14422         * tests/test-mbsstr2.c (main): Likewise.
14423         * tests/test-memmem.c (main): Likewise.
14424         * tests/test-strcasestr.c (main): Likewise.
14425         * tests/test-striconv.c (main): Likewise.
14426         * tests/test-striconveh.c (main): Likewise.
14427         * tests/test-striconveha.c (main): Likewise.
14428         * tests/test-strstr.c (main): Likewise.
14429
14430         * build-aux/git-version-gen: Adjust a comment and the Usage string.
14431
14432         bootstrap: sync from coreutils again
14433         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
14434
14435 2008-03-01  Jim Meyering  <meyering@redhat.com>
14436
14437         bootstrap: sync from coreutils
14438         * build-aux/bootstrap (update_po_files): Copy a .po file into place
14439         also when the target doesn't exist.
14440
14441 2008-03-01  Eric Blake  <ebb9@byu.net>
14442
14443         Fix bugs in last patch.
14444         * lib/memchr2.c (memchr2): Fix typo.
14445         * tests/test-memchr2.c: Test previous bug, and don't use GNU
14446         extension.
14447         Reported by Bruce Korb.
14448
14449         New module 'memchr2'.
14450         * modules/memchr2: New file.
14451         * modules/memchr2-tests: Likewise.
14452         * lib/memchr2.h: Likewise.
14453         * lib/memchr2.c: Likewise, based on memchr.c.
14454         * tests/test-memchr2.c: New test.
14455         * MODULES.html.sh (String handling): Add memchr2.
14456
14457 2008-02-29  Bruno Haible  <bruno@clisp.org>
14458
14459         * modules/freadseek-tests: New file.
14460         * tests/test-freadseek.sh: New file.
14461         * tests/test-freadseek.c: New file.
14462
14463         New module 'freadseek'.
14464         * modules/freadseek: New file.
14465         * lib/freadseek.h: New file.
14466         * lib/freadseek.c: New file.
14467         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
14468
14469 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14470
14471         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
14472         wydawca.
14473
14474         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
14475         program_invocation_name and program_invocation_short_name are
14476         present.
14477
14478 2008-02-28  Bruno Haible  <bruno@clisp.org>
14479
14480         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
14481         * tests/test-freadptr.sh: Also test non-seekable stdin.
14482
14483 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
14484
14485         * build-aux/bootstrap (source_base, m4_base)
14486         (doc_base, tests_base): New variables.
14487         (gnulib_tool_options): Do not hardcode base directories, use
14488         the above variables instead.
14489
14490 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
14491
14492         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
14493
14494 2008-02-28  Bruno Haible  <bruno@clisp.org>
14495
14496         * modules/freadptr-tests: New file.
14497         * tests/test-freadptr.sh: New file.
14498         * tests/test-freadptr.c: New file.
14499
14500         New module 'freadptr'.
14501         * modules/freadptr: New file.
14502         * lib/freadptr.h: New file.
14503         * lib/freadptr.c: New file.
14504         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
14505
14506 2008-02-26  Karl Berry  <karl@freefriends.org>
14507
14508         Sync from Libtool:
14509         * libltdl/argz.c (argz_add, argz_count): New functions.
14510         * libltdl/argz.in.h: Declare them.
14511         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
14512
14513 2008-02-22  Bruno Haible  <bruno@clisp.org>
14514
14515         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
14516         is a pointer type.  Needed for HP-UX 10.
14517         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
14518         * doc/posix-functions/gmtime_r.texi: Likewise.
14519         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14520
14521 2008-02-24  Bruno Haible  <bruno@clisp.org>
14522
14523         * modules/environ-tests: New file.
14524         * tests/test-environ.c: New file.
14525
14526         New module 'environ'.
14527         * modules/environ: New file.
14528         * lib/unistd.in.h (environ): New declaration.
14529         * m4/environ.m4: New file.
14530         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
14531         after use.
14532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
14533         HAVE_DECL_ENVIRON.
14534         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
14535         HAVE_DECL_ENVIRON.
14536         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
14537         wrong claim that 'environ' is missing on some systems.
14538         * modules/execute (Depends-on): Add environ.
14539         * lib/execute.c (environ): Remove fallback declaration.
14540         * modules/pipe (Depends-on): Add environ.
14541         * lib/pipe.c (environ): Remove fallback declaration.
14542         * modules/setenv (Depends-on): Add environ.
14543         * lib/setenv.c (environ): Remove fallback declaration.
14544         * modules/unsetenv (Depends-on): Add environ.
14545         * lib/unsetenv.c (environ): Remove fallback declaration.
14546         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
14547         m4/environ.m4.
14548         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
14549         (gl_PREREQ_UNSETENV): Likewise.
14550
14551 2008-02-24  Bruno Haible  <bruno@clisp.org>
14552
14553         * doc/posix-functions/environ.texi: Document the MacOS X problem.
14554
14555 2008-02-20  Bob Proulx  <bob@proulx.com>
14556
14557         Enable use of older two part flavor 'git describe'.
14558         * build-aux/git-version-gen: If using the older two part flavor of
14559         git version then recreate the third part now present in the
14560         newer three part flavor of git describe.
14561
14562 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
14563
14564         * lib/fts.c (fts_build): Typo correction to comment.
14565
14566 2008-02-17  Bruno Haible  <bruno@clisp.org>
14567
14568         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
14569         generating no-op conflicts.
14570
14571 2008-02-17  Bruno Haible  <bruno@clisp.org>
14572
14573         Speed up by 10%.
14574         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
14575         result_entries, rather than an index-based loop.
14576
14577 2008-02-17  Bruno Haible  <bruno@clisp.org>
14578
14579         Speed up by 25%.
14580         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
14581         'hashcode_cached'.
14582         (entry_create): New function.
14583         (entry_hashcode): Use the cached hashcode if possible.
14584         (read_changelog_file, try_split_merged_entry): Use entry_create.
14585
14586 2008-02-17  Bruno Haible  <bruno@clisp.org>
14587
14588         Speed up from O(n^2) to O(n) for long ChangeLog files.
14589         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
14590         (read_changelog_file): Change implementation of entries_reversed list
14591         to rbtreehash.
14592         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
14593
14594 2008-02-17  Bruno Haible  <bruno@clisp.org>
14595
14596         New option --split-merged-entry.
14597         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
14598         (find_paragraph_end, try_split_merged_entry): New functions.
14599         (long_options): Add option --split-merged-entry.
14600         (usage): Document option --split-merged-entry.
14601         (main): Implement option --split-merged-entry.
14602         Reported by Eric Blake.
14603
14604 2008-02-17  Bruno Haible  <bruno@clisp.org>
14605
14606         * lib/git-merge-changelog.c: Include c-strstr.h.
14607         (main): Support the "git pull --rebase" situation.
14608         * modules/git-merge-changelog (Depends-on): Add c-strstr.
14609         Reported by Eric Blake.
14610
14611 2008-02-16  Eric Blake  <ebb9@byu.net>
14612
14613         Avoid doubling \ in common case of "c-maybe" quoting style.
14614         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
14615         eliding outer quotes.
14616         * lib/quotearg.h: Document this.
14617         * tests/test-quotearg.c (result_strings, inputs, results_g)
14618         (flag_results, locale_results): Test it by adding a new string to
14619         each test group.
14620         (compare_strings): Test new string.
14621
14622 2008-02-13  Eric Blake  <ebb9@byu.net>
14623
14624         Avoid trigraph quoting in default output.
14625         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
14626         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
14627         unless explicitly requested.
14628         * tests/test-quotearg.c (flag_results, main): Add additional tests.
14629
14630 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
14631
14632         Don't rely on signed integer overflowing to negative value.
14633         * lib/getugroups.c (getugroups): Include <limits.h>.
14634         Instead, compare against INT_MAX, and increment only if the test passes.
14635
14636 2008-02-13  Jim Meyering  <meyering@redhat.com>
14637         and Eric Blake  <ebb9@byu.net>
14638
14639         Avoid shadowing warning and compile errors on Linux.
14640         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
14641         forwarding macros on Linux.
14642         (dcgettext): Define a stub, for Linux.
14643         (results_g, main): Avoid warnings.
14644
14645 2008-02-12  Eric Blake  <ebb9@byu.net>
14646
14647         Silence warning in last patch.
14648         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
14649
14650         Quotearg part 4: add tests, fix c-maybe colon quoting.
14651         * lib/quotearg.h: Improve documentation.
14652         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
14653         escapes when adding outer quotes.  When quoting trigraphs, use
14654         valid C notation.  When quoting NUL, omit extra characters if next
14655         character is not digit.  Alter prototype.
14656         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
14657         callers.
14658         * modules/quotearg-tests: New module.
14659         * tests/test-quotearg.c: New test.
14660
14661 2008-02-07  Eric Blake  <ebb9@byu.net>
14662
14663         Quotearg part 3: add flag to control outer quote elision.
14664         * lib/quotearg.h (c_maybe_quoting_style): New style.
14665         (enum quoting_flags): Better documentation of flags.
14666         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
14667         c-maybe style.
14668         (quotearg_buffer_restyled): Handle new flag to elide outer
14669         quotes.
14670
14671         Quotearg part 2: add flag that can control NUL elision.
14672         * lib/quotearg.h (set_quoting_flags): New prototype.
14673         * lib/quotearg.c (struct quoting_options): Add flag field.
14674         (set_quoting_flags): New function.
14675         (quotearg_buffer_restyled): Add flags parameter.
14676         (quotearg_alloc_mem): Set the flag if length cannot be returned.
14677         (quotearg_n_options): Set the flag, since length cannot be
14678         returned.
14679         (quoting_options_from_style): Default flags correctly.
14680
14681         Quotearg part 1: more wrappers, restore quotearg_char state.
14682         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
14683         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
14684         (quotearg_colon_mem): New wrappers.
14685         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
14686         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
14687         functions.
14688         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
14689         (quotearg_colon_mem): New functions.
14690
14691 2008-02-11  Bruno Haible  <bruno@clisp.org>
14692
14693         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
14694         library in the current directory: it does not work with parallel make.
14695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14696
14697 2008-02-11  Bruno Haible  <bruno@clisp.org>
14698
14699         * .gitattributes: New file.
14700
14701 2008-02-11  Jim Meyering  <meyering@redhat.com>
14702
14703         useless-if-before-free: Fix reversed exit values.
14704         * build-aux/useless-if-before-free: Use correct values
14705         for EXIT_MATCH and EXIT_NO_MATCH.
14706
14707         * build-aux/useless-if-before-free: Close stdout carefully.
14708
14709 2008-02-10  Bruno Haible  <bruno@clisp.org>
14710
14711         New module 'git-merge-changelog'.
14712         * modules/git-merge-changelog: New file.
14713         * lib/git-merge-changelog.c: New file.
14714
14715 2008-02-10  Jim Meyering  <meyering@redhat.com>
14716
14717         useless-if-before-free: New option: --list (-l).
14718
14719         useless-if-before-free: Don't exit immediately upon open failure.
14720         * build-aux/useless-if-before-free: Exit 2 for errors.
14721         Upon failure to open a file, don't exit immediately.
14722         Rather, just warn and continue with any remaining files.
14723
14724 2008-02-10  Bruno Haible  <bruno@clisp.org>
14725
14726         New abstract list operation 'node_set_value'.
14727         * lib/gl_list.h (gl_list_node_set_value): New function.
14728         (struct gl_list_implementation): New field node_set_value.
14729         * lib/gl_list.c (gl_list_node_set_value): New function.
14730         * lib/gl_array_list.c (gl_array_node_set_value): New function.
14731         (gl_array_list_implementation): Update.
14732         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
14733         (gl_carray_list_implementation): Update.
14734         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
14735         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14736         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14737         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
14738         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14739         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14740         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14741         Update.
14742         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
14743         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
14744         (gl_sublist_list_implementation): Update.
14745
14746 2008-02-10  Bruno Haible  <bruno@clisp.org>
14747
14748         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
14749         Needed when ELEMENT is #defined to 'some_type *'.
14750
14751 2008-02-10  Jim Meyering  <meyering@redhat.com>
14752
14753         New script and module: useless-if-before-free
14754         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
14755         * build-aux/useless-if-before-free: New file.
14756         * modules/useless-if-before-free: New file.
14757
14758         * build-aux/gitlog-to-changelog: Use committer date, not author date.
14759
14760         xstrtol_error: Fix typo.
14761         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
14762         s/exit_failure/exit_status/.
14763
14764 2008-02-09  Jim Meyering  <meyering@redhat.com>
14765
14766         New script and module: gitlog-to-changelog
14767         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
14768         * modules/gitlog-to-changelog: New file.
14769         * build-aux/gitlog-to-changelog: New file.
14770
14771 2008-02-08  Jim Meyering  <meyering@redhat.com>
14772
14773         Avoid two "parameter unused" warnings.
14774         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
14775         Mark "st" as used.
14776
14777         Use "git COMMAND", not "git-COMMAND".
14778         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
14779         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
14780         * build-aux/git-version-gen: Use "git status", not "git-status".
14781
14782 2008-02-07  Bruno Haible  <bruno@clisp.org>
14783
14784         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
14785         Avoids a crash on Windows Vista.
14786         Reported by Adam Strzelecki <ono@java.pl> via
14787         Simon Josefsson <simon@josefsson.org>.
14788
14789 2008-02-06  Bruno Haible  <bruno@clisp.org>
14790
14791         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
14792         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
14793         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
14794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
14795         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14797         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
14798         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
14799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14806         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
14807         left-adjust flag.
14808         * tests/test-snprintf-posix.h (test_function): Likewise.
14809         * tests/test-sprintf-posix.h (test_function): Likewise.
14810         * tests/test-vasprintf-posix.c (test_function): Likewise.
14811         * doc/posix-functions/fprintf.texi: Update.
14812         * doc/posix-functions/printf.texi: Update.
14813         * doc/posix-functions/snprintf.texi: Update.
14814         * doc/posix-functions/sprintf.texi: Update.
14815         * doc/posix-functions/vfprintf.texi: Update.
14816         * doc/posix-functions/vprintf.texi: Update.
14817         * doc/posix-functions/vsnprintf.texi: Update.
14818         * doc/posix-functions/vsprintf.texi: Update.
14819         Reported by Peter Fales <psfales@alcatel-lucent.com>.
14820
14821 2008-02-06  Bruno Haible  <bruno@clisp.org>
14822
14823         Fix bug introduced on 2008-01-26.
14824         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
14825
14826 2008-02-06  Bruno Haible  <bruno@clisp.org>
14827
14828         Fix bug introduced on 2007-06-10.
14829         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
14830         !NEED_PRINTF_FLAG_ZERO.
14831
14832 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
14833
14834         getloadavg: use libperfstat on AIX5
14835         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
14836
14837 2008-02-03  Bruno Haible  <bruno@clisp.org>
14838
14839         * lib/diffseq.h: Add comments about required #includes.
14840         Reported by Michael Biggs <gnulib@doubleplum.net>.
14841
14842 2008-02-01  Bruno Haible  <bruno@clisp.org>
14843
14844         * users.txt: Add gnuit.
14845
14846 2008-01-31  Bruno Haible  <bruno@clisp.org>
14847
14848         * lib/md4.c (set_uint32): Mark as inline.
14849         * lib/md5.c (set_uint32): Likewise.
14850         * lib/sha1.c (set_uint32): Likewise.
14851         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
14852         * m4/md5.m4 (gl_MD5): Likewise.
14853         * m4/sha1.m4 (gl_SHA1): Likewise.
14854
14855 2008-01-31  Jim Meyering  <meyering@redhat.com>
14856
14857         Use "sizeof VAR", rather than a literal "4".
14858         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
14859         * lib/md4.c (md4_read_ctx): Likewise.
14860         * lib/sha1.c (sha1_read_ctx): Likewise.
14861
14862 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14863
14864         * tests/test-sha1.c: New file, based on test-md5.c.
14865
14866         * modules/crypto/sha1-tests: New file.
14867
14868 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14869
14870         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
14871
14872 2008-01-31  Jim Meyering  <meyering@redhat.com>
14873
14874         Prefer "sizeof v" over the equivalent "4".
14875         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
14876         * lib/md5.c (set_uint32): Likewise.
14877         * lib/sha1.c (set_uint32): Likewise.
14878
14879 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14880
14881         * lib/sha1.c (set_uint32): Mark function as static.
14882
14883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14884
14885         md2: clarify comments to say that alignment is not required.
14886         * lib/md2.h: Remove warning about alignment in comment.
14887         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
14888         never been required.
14889
14890 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14891
14892         md4: adapt alignment constraint fix from sha1.
14893         * lib/md4.c (set_uint32): New function, from sha1.c
14894         (md4_read_ctx): Use it.
14895         (md4_finish_ctx): Doc fix.
14896         * lib/md4.h: Doc fix.
14897
14898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14899
14900         md5: adapt alignment constraint fix from sha1.
14901         * lib/md5.c (set_uint32): New function, from sha1.c
14902         (md5_read_ctx): Use it.
14903         (md5_finish_ctx): Doc fix.
14904         * lib/md5.h: Doc fix.
14905
14906 2008-01-30  Peter Palfrader  <weasel@debian.org>
14907
14908         sha1: remove the result buffer alignment constraint
14909         * lib/sha1.c (set_uint32): New function.
14910         (sha1_read_ctx): Rewrite to remove the result buffer alignment
14911         constraint.
14912         (sha1_finish_ctx): Remove comment warning about alignment constraint.
14913         * lib/sha1.h: Likewise.
14914
14915 2008-01-30  Andreas Schwab  <schwab@suse.de>
14916             Bruno Haible  <bruno@clisp.org>
14917
14918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
14919         correct definition of LDBL_MIN_EXP.
14920
14921 2008-01-30  Karl Berry  <karl@gnu.org>
14922
14923         * config/srclist-update: try to preserve x bit on updates.
14924         * config/srclistvars.sh: update for karl.
14925
14926 2008-01-29  Jim Meyering  <meyering@redhat.com>
14927
14928         vasnprintf.c: Avoid warning about unused label
14929         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
14930         "overflow" label definition and associated code with the
14931         same cpp condition that guards the sole use of that label.
14932
14933 2008-01-26  Bruno Haible  <bruno@clisp.org>
14934
14935         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
14936         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
14937         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
14938         * lib/isnanl-nolibm.h (isnanl): Likewise.
14939         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14940
14941 2008-01-26  Bruno Haible  <bruno@clisp.org>
14942
14943         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
14944         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
14945
14946 2008-01-26  Bruno Haible  <bruno@clisp.org>
14947
14948         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
14949         GCC >= 4.0 built-in.
14950         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
14951
14952 2008-01-26  Bruno Haible  <bruno@clisp.org>
14953
14954         Rename isnan, applicable to 'double' only, to isnand.
14955         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
14956         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
14957         (configure.ac): Update.
14958         (Include): Replace "isnan.h" with "isnand.h".
14959         * m4/isnand.m4: Renamed from m4/isnan.m4.
14960         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
14961         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
14962         instead of isnan.c.
14963         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
14964         instead of HAVE_ISNAN_IN_LIBC.
14965         (isnand): Renamed from isnan.
14966         * lib/isnand.c: New file.
14967         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
14968         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
14969         (Makefile.am): Update.
14970         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
14971         Include isnand.h instead of isnan.h.
14972         (main): Test isnand instead of isnan.
14973         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
14974         isnan-nolibm.
14975         * modules/frexp (Depends-on): Likewise.
14976         * modules/frexp-tests (Depends-on): Likewise.
14977         * modules/frexp-nolibm (Depends-on): Likewise.
14978         * modules/frexp-nolibm-tests (Depends-on): Likewise.
14979         * modules/isfinite (Depends-on): Likewise.
14980         * modules/round-tests (Depends-on): Likewise.
14981         * modules/signbit (Depends-on): Likewise.
14982         * modules/signbit-tests (Depends-on): Likewise.
14983         * modules/snprintf-posix (Depends-on): Likewise.
14984         * modules/sprintf-posix (Depends-on): Likewise.
14985         * modules/trunc-tests (Depends-on): Likewise.
14986         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14987         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14988         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14989         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14990         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14991         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14992         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14993         * modules/vasnprintf-posix (Depends-on): Likewise.
14994         * modules/vasprintf-posix (Depends-on): Likewise.
14995         * modules/vfprintf-posix (Depends-on): Likewise.
14996         * modules/vsnprintf-posix (Depends-on): Likewise.
14997         * modules/vsprintf-posix (Depends-on): Likewise.
14998         * lib/frexp.c: Include isnand.h instead of isnan.h.
14999         (ISNAN): Set to isnand instead of isnan.
15000         * lib/isfinite.c: Include isnand.h instead of isnan.h.
15001         (gl_isfinited): Use isnand instead of isnan.
15002         * lib/signbitd.c: Include isnand.h instead of isnan.h.
15003         (gl_signbitd): Use isnand instead of isnan.
15004         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
15005         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
15006         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
15007         (main): Use isnand instead of isnan.
15008         * tests/test-round1.c: Include isnand.h.
15009         (main): Use isnand instead of isnan.
15010         * tests/test-round2.c: Include isnand.h instead of isnan.h.
15011         (ISNAN): Set to isnand instead of isnan.
15012         * tests/test-trunc1.c: Include isnand.h.
15013         (main): Use isnand instead of isnan.
15014         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
15015         (equal): Use isnand instead of isnan.
15016         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
15017         isnand-nolibm.
15018         * NEWS: Mention the change.
15019
15020 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15021             Bruno Haible  <bruno@clisp.org>
15022
15023         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
15024         the GCC builtins for signbits are present and set
15025         REPLACE_SIGNBIT_USING_GCC if so.
15026         * lib/math.in.h (signbit): Define using GCC builtins if
15027         REPLACE_SIGNBIT_USING_GCC is set.
15028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
15029         REPLACE_SIGNBIT_USING_GCC.
15030         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
15031
15032 2008-01-25  Jim Meyering  <meyering@redhat.com>
15033
15034         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
15035         * lib/poll.c: Include <config.h>, not "config.h".
15036         * tests/test-getaddrinfo.c: Likewise.
15037
15038 2008-01-25  Simon Josefsson  <simon@josefsson.org>
15039
15040         * modules/sockets-tests: New file.
15041
15042 2008-01-24  Simon Josefsson  <simon@josefsson.org>
15043
15044         * modules/sockets: New module, can be used to call WSA_Startup and
15045         WSA_Cleanup when needed.
15046
15047         * lib/sockets.h, lib/sockets.c: New files.
15048
15049         * m4/sockets.m4: New file.
15050
15051         * tests/test-sockets.c: New file.
15052
15053 2008-01-19  Bruno Haible  <bruno@clisp.org>
15054
15055         * doc/posix-headers: Renamed from doc/headers.
15056         * doc/posix-functions: Renamed from doc/functions.
15057         * doc/gnulib.texi: Update.
15058
15059 2008-01-19  Bruno Haible  <bruno@clisp.org>
15060
15061         * doc/glibc-functions/strcasestr.texi: Include contents of
15062         doc/functions/strcasestr.texi, fixing the list of platforms.
15063         * doc/functions/strcasestr.texi: Remove file.
15064
15065 2008-01-19  Bruno Haible  <bruno@clisp.org>
15066
15067         * doc/glibc-functions/memmem.texi: Include contents of
15068         doc/functions/memmem.texi.
15069         * doc/functions/memmem.texi: Remove file.
15070
15071 2008-01-18  Bruno Haible  <bruno@clisp.org>
15072
15073         * doc/glibc-functions/*.texi: New files.
15074         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
15075         to use the new files.
15076
15077 2008-01-17  Bruno Haible  <bruno@clisp.org>
15078
15079         * tests/test-gethostname.c (main): Fix printf statement.
15080
15081 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15082
15083         * modules/gethostname-tests: New file.
15084
15085         * tests/test-gethostname.c: New file.
15086
15087 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15088
15089         * lib/gethostname.c: Include string.h unconditionally, strncpy is
15090         used by the UNAME case.  Reported by Bruno Haible
15091         <bruno@clisp.org>.
15092
15093 2008-01-17  Eric Blake  <ebb9@byu.net>
15094
15095         Convert c-strcasestr to be more efficient.
15096         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
15097         (Depends-on): Add c-strcase, remove malloca, strnlen.
15098         * tests/test-c-strcasestr.c (main): Enhance test.
15099         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
15100
15101 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15102
15103         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
15104         Use it in creating po/Makevars.
15105
15106 2008-01-15  Simon Josefsson  <simon@josefsson.org>
15107
15108         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
15109         Applications that requires it should initialize libgcrypt
15110         manually.
15111
15112 2008-01-16  Simon Josefsson  <simon@josefsson.org>
15113
15114         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
15115
15116 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         Fix problem with getdate on mingw32 reported by Simon Josefsson
15119         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
15120         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
15121         tzname", when deciding whether to declare tzname.
15122         * lib/strftime.c (tzname): Likewise.
15123
15124 2008-01-15  Bruno Haible  <bruno@clisp.org>
15125
15126         Work around a MacOS X 10.5 bug in frexpl().
15127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
15128         * doc/functions/frexpl.texi: Document the bug.
15129         Reported by Elias Pipping <pipping@gentoo.org>.
15130
15131 2008-01-14  Eric Blake  <ebb9@byu.net>
15132
15133         Touch up previous patch.
15134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
15135         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
15136
15137         Convert strcasestr module to use Two-Way algorithm.
15138         * modules/strcasestr-simple: New module, based on the old
15139         strcasestr, but with Two-Way rather than KMP.
15140         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
15141         * lib/string.in.h (rpl_strcasestr): Declare.
15142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
15143         performance.
15144         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
15145         * modules/string (Makefile.am): Support strcasestr.
15146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15147         * modules/strcasestr-tests (Depends-on): Check for alarm.
15148         * tests/test-strcasestr.c: Augment test.
15149         * lib/str-two-way.h: Clean up stray macro.
15150         * NEWS: Document new module.
15151         * MODULES.html.sh (string handling): Likewise.
15152         * doc/functions/strcasestr.texi: New file.
15153         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
15154         here, since it is not a POSIX function.
15155
15156 2008-01-14  Colin Watson  <cjwatson@debian.org>
15157             Bruno Haible  <bruno@clisp.org>
15158
15159         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
15160         works fine; if not, set REPLACE_STRSIGNAL.
15161         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
15162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15163         REPLACE_STRSIGNAL.
15164         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
15165         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
15166         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
15167
15168 2008-01-14  Bruno Haible  <bruno@clisp.org>
15169
15170         * modules/strsignal (Include): Change to <string.h>.
15171
15172 2008-01-14  Colin Watson  <cjwatson@debian.org>
15173
15174         * modules/argp (Notice): Add a notice recommending to change
15175         XGETTEXT_OPTIONS.
15176         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
15177
15178 2008-01-13  Colin Watson  <cjwatson@debian.org>
15179
15180         * modules/strsignal-tests: New file.
15181         * tests/test-strsignal.c: New file.
15182
15183         * lib/strsignal.c: New file, from glibc with modifications.
15184         * lib/siglist.h: New file, from glibc with modifications.
15185         * lib/string.in.h (strsignal): New declaration.
15186         * m4/strsignal.m4: New file.
15187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15188         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
15189         * modules/strsignal: New file.
15190         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
15191         HAVE_DECL_STRSIGNAL.
15192
15193 2008-01-13  Bruno Haible  <bruno@clisp.org>
15194
15195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
15196         locale encoding is not ASCII. Needed for OpenBSD 4.0.
15197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15199
15200 2008-01-13  Bruno Haible  <bruno@clisp.org>
15201
15202         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
15203         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
15204         * lib/argp.h (__attribute__): Likewise.
15205         * lib/c-stack.c (__attribute__): Likewise.
15206         * lib/error.h (__attribute__): Likewise.
15207         * lib/fts.c (__attribute__): Likewise.
15208         * lib/openat.h (__attribute__): Likewise.
15209         * lib/stdio.in.h (__attribute__): Likewise.
15210         * lib/string.in.h (__attribute__): Likewise.
15211         * lib/utimens.c (__attribute__): Likewise.
15212         * lib/vasnprintf.h (__attribute__): Likewise.
15213         * lib/xalloc.h (__attribute__): Likewise.
15214         * lib/xprintf.h (__attribute__): Likewise.
15215         * lib/xstrtol.h (__attribute__): Likewise.
15216         * lib/xvasprintf.h (__attribute__): Likewise.
15217
15218 2008-01-12  Bruno Haible  <bruno@clisp.org>
15219
15220         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
15221         * doc/glibc-headers/a.out.texi: New file.
15222         * doc/glibc-headers/aliases.texi: New file.
15223         * doc/glibc-headers/alloca.texi: New file.
15224         * doc/glibc-headers/ar.texi: New file.
15225         * doc/glibc-headers/argp.texi: New file.
15226         * doc/glibc-headers/argz.texi: New file.
15227         * doc/glibc-headers/byteswap.texi: New file.
15228         * doc/glibc-headers/crypt.texi: New file.
15229         * doc/glibc-headers/endian.texi: New file.
15230         * doc/glibc-headers/envz.texi: New file.
15231         * doc/glibc-headers/err.texi: New file.
15232         * doc/glibc-headers/error.texi: New file.
15233         * doc/glibc-headers/execinfo.texi: New file.
15234         * doc/glibc-headers/fpu_control.texi: New file.
15235         * doc/glibc-headers/fstab.texi: New file.
15236         * doc/glibc-headers/fts.texi: New file.
15237         * doc/glibc-headers/getopt.texi: New file.
15238         * doc/glibc-headers/ieee754.texi: New file.
15239         * doc/glibc-headers/ifaddrs.texi: New file.
15240         * doc/glibc-headers/libintl.texi: New file.
15241         * doc/glibc-headers/mcheck.texi: New file.
15242         * doc/glibc-headers/mntent.texi: New file.
15243         * doc/glibc-headers/obstack.texi: New file.
15244         * doc/glibc-headers/paths.texi: New file.
15245         * doc/glibc-headers/printf.texi: New file.
15246         * doc/glibc-headers/pty.texi: New file.
15247         * doc/glibc-headers/resolv.texi: New file.
15248         * doc/glibc-headers/shadow.texi: New file.
15249         * doc/glibc-headers/sysexits.texi: New file.
15250         * doc/glibc-headers/ttyent.texi: New file.
15251
15252 2008-01-12  Jim Meyering  <meyering@redhat.com>
15253
15254         announce-gen: emit Gnulib's git-based version string.
15255         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
15256         New option --gnulib-version=V, where V is expected to be
15257         the output of running git describe in the gnulib directory.
15258         (get_tool_versions): Request feedback on xdelta.  I suspect it's
15259         not useful, and plan to stop publishing an xdelta file with each
15260         coreutils release.
15261
15262         * build-aux/announce-gen: Also check for lzma-compressed files.
15263
15264 2008-01-11  Bruno Haible  <bruno@clisp.org>
15265
15266         * tests/test-memmem.c (main): Increase maximum allowed time.
15267         * tests/test-strstr.c (main): Likewise.
15268
15269 2008-01-11  Bruno Haible  <bruno@clisp.org>
15270
15271         * doc/functions/memmem.texi: Add more precisions about platforms.
15272         * doc/functions/strstr.texi: Likewise.
15273
15274 2008-01-10  Eric Blake  <ebb9@byu.net>
15275
15276         * m4/strstr.m4: Delete cruft from copy-n-paste.
15277         Reported by Bruno Haible.
15278
15279 2008-01-10  Bruno Haible  <bruno@clisp.org>
15280
15281         Make c-strstr rely on strstr.
15282         * lib/c-strstr.c: Don't include str-kmp.h.
15283         (c_strstr): Define in terms of strstr.
15284         * modules/c-strstr (Files): Remove lib/str-kmp.h.
15285         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
15286
15287 2008-01-10  Bruno Haible  <bruno@clisp.org>
15288
15289         * doc/gnulib.texi (String Functions in C Locale): New section.
15290         * doc/c-ctype.texi: New file.
15291         * doc/c-strcase.texi: New file.
15292         * doc/c-strcaseeq.texi: New file.
15293         * doc/c-strcasestr.texi: New file.
15294         * doc/c-strstr.texi: New file.
15295         * doc/c-strtod.texi: New file.
15296         * doc/c-strtold.texi: New file.
15297
15298 2008-01-10  Eric Blake  <ebb9@byu.net>
15299
15300         * lib/relocatable.h: Fix a comment.
15301
15302 2008-01-10  Eric Blake  <ebb9@byu.net>
15303
15304         Share two-way algorithm.
15305         * lib/str-two-way.h: New file, merged from...
15306         * lib/memmem.c: ...here...
15307         * lib/strstr.c: ...and here.
15308         * modules/memmem (Files): Use it.
15309         * modules/strstr (Files): Likewise.
15310
15311         Avoid quadratic strstr implementations.
15312         * lib/strstr.c: New file.
15313         * m4/strstr.m4: Likewise.
15314         * modules/strstr: Likewise.
15315         * modules/strstr-tests: Likewise.
15316         * tests/test-strstr.c: Likewise.
15317         * lib/string.in.h (rpl_strstr): Declare.
15318         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
15319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
15320         * modules/string (Makefile.am): Likewise.
15321         * MODULES.html.sh (string handling): Mention new module.
15322         * doc/functions/strstr.texi (strstr): Document the bug.
15323
15324 2008-01-10  Bruno Haible  <bruno@clisp.org>
15325
15326         * lib/relocatable.h (relocate): State whether result is freshly
15327         allocated or not.
15328         * lib/relocatable.c (relocate): Return a freshly allocated string
15329         instead of a pointer to a privately held string.
15330         Reported by Sylvain Beucler <beuc@gnu.org>.
15331
15332 2008-01-10  Colin Watson  <cjwatson@debian.org>
15333
15334         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
15335         s/S_ISNLK/S_ISLNK/.
15336
15337 2008-01-09  Bruno Haible  <bruno@clisp.org>
15338
15339         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
15340         and other files.
15341         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
15342         if it's only a guess.
15343         * modules/memmem: Simplify by depending on memmem-simple.
15344
15345 2008-01-09  Bruno Haible  <bruno@clisp.org>
15346
15347         Work around OpenBSD 4.0 tdelete() bug.
15348         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
15349         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
15350         macros and don't redefine the enum values.
15351         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
15352         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
15353         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
15354
15355 2008-01-09  Bruno Haible  <bruno@clisp.org>
15356
15357         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
15358         (main): Don't perform the tests if setlocale did not install a UTF-8
15359         locale. Needed on OpenBSD 4.0.
15360         * modules/wcwidth-tests (Depends-on): Add localcharset.
15361
15362 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15363
15364         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
15365         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
15366         * NEWS: announce this.
15367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
15368
15369 2008-01-09  Simon Josefsson  <simon@josefsson.org>
15370         and Eric Blake  <ebb9@byu.net>
15371
15372         Add memmem-simple module.
15373         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
15374         (gl_FUNC_MEMMEM): Separate performance from presence checks.
15375         * modules/memmem-simple: New file.
15376         * modules/memmem (Description): Tweak.
15377         * MODULES.html.sh (string handling): Mention new module.
15378         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
15379         addressed by memmem-simple.
15380         * NEWS: Document the difference.
15381
15382 2008-01-09  Eric Blake  <ebb9@byu.net>
15383
15384         Give gcc some memmem optimization hints.
15385         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
15386         (strcasestr): Declare as pure.
15387         * modules/memmem (Maintainer): Claim my implementation.
15388
15389 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15390
15391         Support AIX 6.1 and higher.
15392         * build-aux/config.libpath: Likewise.
15393         * build-aux/config.rpath: Likewise.
15394
15395 2008-01-08  Jim Meyering  <meyering@redhat.com>
15396             Bruno Haible  <bruno@clisp.org>
15397
15398         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
15399         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
15400         Reported by Peter Fales in
15401         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
15402
15403 2008-01-08  Bruno Haible  <bruno@clisp.org>
15404
15405         * modules/unictype/category-of (Depends-on): Add
15406         unictype/category-none.
15407         * modules/unictype/category-and-tests (Depends-on): Add
15408         unictype/category-{L,N,Lu,Nd}.
15409         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
15410         * modules/unictype/category-or-tests (Depends-on): Add
15411         unictype/category-{L,N}.
15412         * modules/unictype/category-name-tests (Depends-on): Add
15413         unictype/category-{Z,Nl}.
15414         Reported by Simon Josefsson.
15415
15416 2008-01-08  Bruno Haible  <bruno@clisp.org>
15417
15418         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
15419         convention better.
15420         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
15421         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
15422         Reported by Peter Miller <millerp@canb.auug.org.au>.
15423
15424 2008-01-08  Eric Blake  <ebb9@byu.net>
15425
15426         Rewrite memmem to guarantee linear complexity without malloc.
15427         * lib/memmem.c (memmem): Use Two-Way rather than
15428         Knuth-Morris-Pratt, to allow O(1) space usage.
15429         (critical_factorization, two_way_short_needle)
15430         (two_way_long_needle): New functions.
15431         (knuth_morris_pratt): Delete.
15432         * modules/memmem (Depends-on): No longer need malloca or stdbool.
15433         Add stdint.
15434         * tests/test-memmem.c (main): Add tests for periodic needle and
15435         sublinear performance.
15436         * doc/functions/memmem.texi (memmem): Document other deficiencies
15437         in cygwin and older glibc.
15438
15439 2008-01-08  Bruno Haible  <bruno@clisp.org>
15440
15441         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
15442         augmentation.
15443
15444 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
15445
15446         Add a configure time option: --disable-acl.
15447         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
15448         AC_ARG_ENABLE(acl).
15449
15450 2008-01-06  Simon Josefsson  <simon@josefsson.org>
15451
15452         * tests/test-localename.c: Don't include obsolete "setenv.h".
15453
15454         * modules/localename-tests (Depends-on): Need unsetenv.
15455
15456 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15457
15458         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
15459
15460 2008-01-06  Colin Watson  <cjwatson@debian.org>
15461
15462         * users.txt: Add man-db.
15463
15464 2008-01-07  Bruno Haible  <bruno@clisp.org>
15465
15466         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
15467         previous section name.
15468
15469 2008-01-07  Bruno Haible  <bruno@clisp.org>
15470
15471         * lib/progname.c (set_program_name): Don't strip off a leading
15472         "lt-" prefix outside a .libs directory.
15473         Suggested by Paul Eggert.
15474
15475 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
15476             Bruno Haible  <bruno@clisp.org>
15477
15478         Improve memory cleanup in 'relocatable' module.
15479         * lib/relocatable.h (compute_curr_prefix): Change return type to
15480         'char *'.
15481         * lib/relocatable.c (compute_curr_prefix): Change return type to
15482         'char *'. Free curr_installdir after use.
15483         (relocate): Free curr_prefix_better after use.
15484         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
15485
15486 2008-01-01  Bruno Haible  <bruno@clisp.org>
15487
15488         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
15489         failure on older glibc systems.
15490         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15491
15492 2008-01-05  Eric Blake  <ebb9@byu.net>
15493
15494         Avoid quadratic system memmem.
15495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
15496         Reported by Ralf Wildenhues.
15497
15498         Fix memmem test for mingw.
15499         * modules/memmem-tests (configure.ac): Check for alarm.
15500         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
15501         it.
15502         * doc/functions/memmem.texi: New file.
15503         * doc/gnulib.texi (Function Substitutes): Add memmem.
15504         Reported by Bruno Haible.
15505
15506 2008-01-04  Bruno Haible  <bruno@clisp.org>
15507
15508         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
15509         Require gl_HEADER_STRINGS_H_DEFAULTS, not
15510         gl_HEADER_STRING_H_DEFAULTS.
15511
15512 2008-01-04  Eric Blake  <ebb9@byu.net>
15513
15514         Shorten duration of memmem test.
15515         * tests/test-memmem.c (main): Use alarm to declare failure if test
15516         is taking too long.
15517         Reported by Ralf Wildenhues.
15518
15519 2007-12-21  Simon Josefsson  <simon@josefsson.org>
15520
15521         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
15522         string, needed by strerror.
15523
15524 2008-01-03  Colin Watson  <cjwatson@debian.org>
15525             Bruno Haible  <bruno@clisp.org>
15526
15527         * doc/gnulib-tool.texi (Localization): New section.
15528
15529 2008-01-02  Bruno Haible  <bruno@clisp.org>
15530
15531         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
15532         variables to 'unsigned char *' type.
15533         Reported by Paul Eggert.
15534
15535 2008-01-02  Jim Meyering  <jim@meyering.net>
15536
15537         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
15538
15539 2007-12-31  Jim Meyering  <jim@meyering.net>
15540
15541         Avoid use of private FTS type name.
15542         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
15543
15544 2007-12-30  Karl Berry  <karl@gnu.org>
15545
15546         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
15547         work around defect in Texinfo and/or the standalone Info browser.
15548
15549 2007-12-30  Bruno Haible  <bruno@clisp.org>
15550
15551         Unify 5 copies of the KMP code.
15552         * lib/str-kmp.h: New file.
15553         * lib/c-strcasestr.c: Include str-kmp.h.
15554         (knuth_morris_pratt): Remove function.
15555         (c_strcasestr): Update.
15556         * lib/c-strstr.c: Include str-kmp.h.
15557         (knuth_morris_pratt): Remove function.
15558         (c_strcasestr): Update.
15559         * lib/mbscasestr.c: Include str-kmp.h.
15560         (knuth_morris_pratt_unibyte): Remove function.
15561         * lib/mbsstr.c: Include str-kmp.h.
15562         (knuth_morris_pratt_unibyte): Remove function.
15563         * lib/strcasestr.c: Include str-kmp.h.
15564         (knuth_morris_pratt): Remove function.
15565         (strcasestr): Update.
15566         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
15567         * modules/c-strstr (Files): Likewise.
15568         * modules/mbscasestr (Files): Likewise.
15569         * modules/mbsstr (Files): Likewise.
15570         * modules/strcasestr (Files): Likewise.
15571         Suggested by Paul Eggert.
15572
15573 2007-12-30  Bruno Haible  <bruno@clisp.org>
15574
15575         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
15576         defined.
15577
15578 2007-12-30  Bruno Haible  <bruno@clisp.org>
15579
15580         * lib/xmalloca.h: Include xalloc.h.
15581         (xnmalloca): New macro.
15582
15583 2007-12-30  Bruno Haible  <bruno@clisp.org>
15584
15585         * lib/malloca.h (nmalloca): New macro.
15586         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
15587         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
15588         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
15589         knuth_morris_pratt_multibyte): Likewise.
15590         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
15591         knuth_morris_pratt_multibyte): Likewise.
15592         * lib/memmem.c (knuth_morris_pratt): Likewise.
15593         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
15594
15595 2007-12-25  Bruno Haible  <bruno@clisp.org>
15596
15597         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
15598         * lib/glob.c: Don't include openat.h.
15599         (link_exists2_p): Add back the code that deals with the
15600         !GLOB_ALTDIRFUNC case.
15601         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
15602         let it do the filename concatenation.
15603         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
15604         * modules/glob (Depends-on): Remove openat.
15605
15606 2007-12-31  Bruno Haible  <bruno@clisp.org>
15607
15608         * modules/dirfd (License): Change to LGPLv2+.
15609         Approved by Jim Meyering.
15610
15611 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
15614         when multiplying M by sizeof (size_t).
15615
15616 2007-12-10  Martin Lambers  <marlam@marlam.de>
15617
15618         Override getpagesize on mingw.
15619         * lib/getpagesize.c: New file.
15620         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
15621         * modules/getpagesize (Files): Add lib/getpagesize.c.
15622         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
15623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15624         REPLACE_GETPAGESIZE.
15625         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
15626
15627 2007-12-25  Bruno Haible  <bruno@clisp.org>
15628
15629         * modules/localcharset (Notice): New field.
15630         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
15631         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15632
15633 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15634             Bruno Haible  <bruno@clisp.org>
15635
15636         Avoid using the syntax symbol() in formatted documentation.
15637         * MODULES.html.sh (func_module): When replacing symbol() with a
15638         hyperlink, remove the parentheses. Show an error if some remain.
15639         Recognize and render the '...' syntax.
15640         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
15641         Rework. Add paragraph about GCC's inlining.
15642         * doc/alloca.texi: Likewise.
15643         * doc/error.texi: Remove parentheses from symbol reference.
15644         * doc/gnulib-intro.texi: Likewise.
15645         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
15646         * modules/fnmatch (Description): Reword to say "the ... function".
15647         * modules/full-read (Description): Likewise.
15648         * modules/full-write (Description): Likewise.
15649         * modules/safe-read (Description): Likewise.
15650         * modules/safe-write (Description): Likewise.
15651         * modules/strchrnul (Description): Likewise.
15652         * modules/trim (Description): Likewise.
15653         * modules/error (Description): Remove parentheses from symbol
15654         references.
15655         * modules/verror (Description): Likewise.
15656         Reported by Karl Berry.
15657
15658 2007-12-25  Bruno Haible  <bruno@clisp.org>
15659
15660         Fixup after 2007-10-16 commit.
15661         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
15662
15663 2007-12-24  Bruno Haible  <bruno@clisp.org>
15664
15665         Make --enable-relocatable work with DESTDIR.
15666         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
15667         to compute installdir from destprog.
15668         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
15669         also set the RELOC_DESTDIR variable.
15670         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15671
15672 2007-12-24  Bruno Haible  <bruno@clisp.org>
15673
15674         Fix link error due to xalloc_die().
15675         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
15676         of xreadlink.
15677         * lib/relocwrapper.c: Update comments.
15678         * build-aux/install-reloc: Remove xreadlink.c from file list.
15679         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
15680         xreadlink.c.
15681         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15682
15683 2007-12-24  Bruno Haible  <bruno@clisp.org>
15684
15685         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
15686         * lib/setenv.h: Remove file.
15687         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
15688         lib/setenv.h.
15689         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
15690         (Depends-on): Add stdlib.
15691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
15692         gl_FUNC_UNSETENV.
15693         (Include): Replace setenv.h with <stdlib.h>.
15694         * modules/unsetenv: New file.
15695         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
15696         * lib/unsetenv.c: Include <stdlib.h> first.
15697         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
15698         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
15699         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
15700         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
15701         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
15702         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
15704         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15705         * doc/functions/unsetenv.texi: Update.
15706         * modules/xsetenv (Depends-on): Add unsetenv.
15707         * modules/getdate (Depends-on): Likewise.
15708         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
15709         * lib/xsetenv.c: Don't include setenv.h.
15710         * lib/getdate.y: Likewise.
15711         * lib/relocwrapper.c: Likewise.
15712         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
15713         (Depends-on): Add stdlib.
15714         * NEWS: Mention the changes.
15715         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15716
15717 2007-12-23  Bruno Haible  <bruno@clisp.org>
15718
15719         * lib/memmem.c (memmem): Use lowercase variable names. Tab
15720         indentation.
15721
15722 2007-12-23  Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/c-strcasestr.c: Add more comments.
15725         * lib/c-strstr.c: Likewise.
15726         * lib/mbscasestr.c: Likewise.
15727         * lib/mbsstr.c: Likewise.
15728         * lib/strcasestr.c: Likewise.
15729         * lib/memmem.c: Likewise.
15730
15731 2007-12-23  Bruno Haible  <bruno@clisp.org>
15732
15733         * tests/test-memmem.c: Include <string.h> first.
15734
15735 2007-12-22  Bruno Haible  <bruno@clisp.org>
15736
15737         * gnulib-tool (func_create_testdir): Change $auxdir while generating
15738         the contents of $testsbase.
15739         Reported by Ralf Wildenhues.
15740
15741 2007-12-22  Bruno Haible  <bruno@clisp.org>
15742
15743         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
15744         two variables local_ldadd_before, local_ldadd_last.
15745
15746 2007-12-20  Eric Blake  <ebb9@byu.net>
15747
15748         Work around circular library issue when cross-compiling.
15749         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
15750         that progname.o does not need to pull in rpl_memcmp.
15751
15752 2007-12-19  Eric Blake  <ebb9@byu.net>
15753
15754         Fix memmem to avoid O(n^2) worst-case complexity.
15755         * lib/memmem.c (knuth_morris_pratt): New function.
15756         (memmem): Use it if first few naive iterations fail.
15757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
15758         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
15759         * modules/memchr (License): Likewise.
15760         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
15761         malloca.
15762         * tests/test-memmem.c: Rewrite, borrowing ideas from
15763         test-mbsstr1.c; the old version wouldn't even compile!
15764         * modules/memmem-tests: New file.
15765         * lib/string.in.h (rpl_memmem): Add declaration.
15766         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
15767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
15768         REPLACE_MEMMEM.
15769
15770 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
15773         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
15774         before any system include files, and undef after them all.  This
15775         should fix a problem on VMS reported by John E. Malmberg in
15776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
15777
15778 2007-12-17  Eric Blake  <ebb9@byu.net>
15779
15780         Revert addition of verify, for BSD/OS.
15781         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
15782         can't handle large files, for the sake of obsolete platforms.
15783         * modules/fseeko (Depends-on): Remove verify.
15784         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
15785         * doc/functions/ftello.texi (ftello): Likewise.
15786         * doc/functions/fgetpos.texi (fgetpos): Likewise.
15787         Reported by Larry Jones.
15788
15789 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
15790
15791         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
15792         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
15793
15794 2007-12-17  Jim Meyering  <meyering@redhat.com>
15795
15796         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
15797         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
15798         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
15799         * modules/getcwd (Depends-on): Add openat.
15800         Reported by Petr Salinger.
15801
15802 2007-12-17  Bruno Haible  <bruno@clisp.org>
15803
15804         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
15805         avoid a segmentation fault of the configure test on x86_64 systems.
15806
15807 2007-12-15  Jim Meyering  <meyering@redhat.com>
15808
15809         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
15810
15811 2007-12-13  Eric Blake  <ebb9@byu.net>
15812
15813         Another fseek test.
15814         * tests/test-fseek.c (main): Also test ungetc handling.
15815         * tests/test-fseeko.c (main): Likewise.
15816         * modules/fseeko (Depends-on): Add verify.
15817         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
15818         large.
15819         Reported by Larry Jones.
15820
15821         Fix fseeko on mingw.
15822         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
15823         seek.
15824
15825         Beef up fseek tests.
15826         * tests/test-fseek.c (main): Also test eof handling.
15827         * tests/test-fseeko.c (main): Likewise.
15828         Reported by Larry Jones.
15829
15830 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
15831
15832         Fix fseeko on BSD-based platforms.
15833         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
15834         successful seek.
15835
15836 2007-12-12  Eric Blake  <ebb9@byu.net>
15837
15838         Allow circular dependency of separate libtests.a
15839         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
15840         when use_libtests.
15841
15842 2007-12-11  Eric Blake  <ebb9@byu.net>
15843
15844         Fix bug with -0.0L in previous patch.
15845         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
15846         * tests/test-isnan.c (main): Also test on zeroes.
15847         * tests/test-isnanf.c (main): Likewise.
15848         * tests/test-isnanl.h (main): Likewise.
15849
15850         Detect pseudo-denormals on x86 even when cross-compiling.
15851         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
15852         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
15853         invalid bit patterns that happen to satisfy ==.
15854
15855         Avoid link failures with separate libtests.a.
15856         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
15857         last, to satisfy circular dependencies.
15858
15859 2007-12-11  Eric Blake  <ebb9@byu.net>
15860         and Bruno Haible  <bruno@clisp.org>
15861
15862         Fix OpenBSD 4.0 <float.h> handling of long double.
15863         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
15864         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
15865         * doc/headers/float.texi (float.h): Document OpenBSD bug.
15866
15867 2007-12-11  Jim Meyering  <meyering@redhat.com>
15868
15869         * users.txt: Add libvirt.
15870
15871         Support versions of autoconf prior to 2.59c.
15872         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
15873         if it is not already defined.
15874
15875 2007-12-09  Bruno Haible  <bruno@clisp.org>
15876
15877         Let 'gnulib-tool --import' collect sources needed for the tests in
15878         tests/ rather than in lib/.
15879         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
15880         argument. If true, add rules to generate libtests.a, and put libtests.a
15881         into $(LDADD). Consider source files in subdirectories and set
15882         uses_subdirs.
15883         (func_emit_initmacro_start, func_emit_initmacro_end,
15884         func_emit_initmacro_done): Pass all arguments explicitly.
15885         (func_import): Determine two module lists main_modules,
15886         testsrelated_modules. Determine use_libtests. Determine two variables
15887         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
15888         instead of just sed_transform_lib_file. Determine two variables
15889         main_files and testsrelated_files. Compute 'files' as the union of
15890         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
15891         func_add_or_update. In the generated gnulib-comp.m4, collect the
15892         object files for tests/ in different variables than those for lib/.
15893         Substitute LIBTESTS_LIBDEPS.
15894         (func_create_testdir): Combine the uses_subdirs results from
15895         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
15896
15897 2007-12-09  Bruno Haible  <bruno@clisp.org>
15898
15899         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
15900         the build-aux directory.
15901
15902 2007-12-09  Bruno Haible  <bruno@clisp.org>
15903
15904         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
15905         introduced on 2006-09-09.
15906
15907 2007-12-07  Jim Meyering  <meyering@redhat.com>
15908
15909         Let these macros work also with autoconf-2.59.
15910         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
15911         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
15912         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15913
15914 2007-12-06  Jim Meyering  <meyering@redhat.com>
15915
15916         Avoid a configure-time syntax error in gl_FUNC_ACL.
15917         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
15918         function in each branch, before testing the cache variable.
15919
15920 2007-12-04  Eric Blake  <ebb9@byu.net>
15921
15922         Make scripts executable.
15923         * build-aux/config.guess: Add execute permissions.
15924         * build-aux/config.sub: Likewise.
15925         * build-aux/gendocs.sh: Likewise.
15926
15927         Fix frexp on mingw.
15928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
15929         cross-compiling.
15930         * doc/functions/frexp.texi (frexp): Document the bug.
15931
15932         Make cygwin fseeko check more reliable.
15933         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
15934         version numbers, rather than unrelated feature check.
15935         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
15936         * doc/functions/ftello.texi (ftello): Likewise.
15937         Reported by Bruno Haible.
15938
15939         * m4/strerror.m4: Bump version number.
15940
15941 2007-12-03  Bruno Haible  <bruno@clisp.org>
15942
15943         * doc/functions/mprotect.texi: Mention the mingw problem.
15944
15945 2007-12-03  Eric Blake  <ebb9@byu.net>
15946
15947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
15948         REPLACE_STRERROR is initialized before this macro.
15949
15950 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
15951
15952         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
15953         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
15954         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
15955         put -lsec in even for programs other than 'ls'.  This fixes a problem
15956         for gettext reported by Bruno Haible in
15957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
15958         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
15959         Add support for Solaris 10.  This isn't efficient, but should get the
15960         job done for now.
15961
15962 2007-12-03  James Youngman  <jay@gnu.org>
15963
15964         * doc/regexprops-generic.texi: change "an close-group" to "a
15965         close-group" and "illegal" to "not allowed".
15966
15967 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15968
15969         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
15970         pr_byname.h. Needed for the rare case when the maintainer has done
15971         "make maintainer-clean" in the source directory and then attempts a
15972         build outside the source directory.
15973         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
15974         scripts_byname.h.
15975
15976 2007-12-02  Martin Lambers <marlam@marlam.de>
15977             Bruno Haible  <bruno@clisp.org>
15978
15979         * lib/getpagesize.h: Remove file.
15980         * lib/unistd.in.h: Include declaration of getpagesize here.
15981         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
15982         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
15983         HAVE_SYS_PARAM_H.
15984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
15985         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
15986         * modules/getpagesize (Files): Remove lib/getpagesize.h.
15987         (Depends-on): Add unistd.
15988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15989         (Include): Use <unistd.h> instead of getpagesize.h.
15990         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
15991         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
15992         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
15993         gl_GETPAGESIZE invocation, already handled by module dependency.
15994         * lib/pagealign_alloc.c: Don't include getpagesize.h.
15995
15996 2007-12-02  Bruno Haible  <bruno@clisp.org>
15997
15998         * modules/strings-tests: New file.
15999         * tests/test-strings.c: New file.
16000
16001         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
16002         * lib/strings.in.h: New file.
16003         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
16004         * m4/strings_h.m4: New file.
16005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
16006         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
16007         * modules/strings: New file.
16008         * modules/string (Makefile.am): Update.
16009         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
16010         Reported by Karl Berry.
16011
16012 2007-12-01  Eric Blake  <ebb9@byu.net>
16013
16014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
16015         accomodate fix in cygwin 1.5.25.
16016
16017 2007-12-01  Jim Meyering  <meyering@redhat.com>
16018
16019         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
16020         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
16021         that would inhibit utf8-optimization of a regexp containing line-
16022         or buffer-anchors, e.g., `^', `$'.
16023
16024 2007-11-30  Bruno Haible  <bruno@clisp.org>
16025
16026         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
16027         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
16028         glthread_recursive_lock_init.
16029         * lib/lock.c (glthread_recursive_lock_init)
16030         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
16031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16032
16033 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16034
16035         New function qset_acl, like set_acl but with syscall semantics.
16036         * lib/acl.h (qset_acl): New decl.
16037         * lib/acl.c (qset_acl): New function.
16038         (set_acl): Use new function.  Use more-consistent diagnostics.
16039
16040 2007-11-28  Jim Meyering  <meyering@redhat.com>
16041
16042         * modules/physmem (License): Change from GPL to LGPLv2+.
16043
16044 2007-11-26  Bruno Haible  <bruno@clisp.org>
16045
16046         * lib/vasnprintf.c (decode_long_double): Don't abort if the
16047         'long double' type has excess precision.
16048         Reported by Jim Meyering in
16049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
16050
16051 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16052
16053         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
16054         Sync from <http://gnu.org/licenses>.
16055         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
16056         with license text from same location.
16057         * doc/maintain.texi, doc/standards.texi:  Sync from
16058         <http://savannah.gnu.org/projects/gnustandards>.
16059
16060 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
16061         and Jim Meyering  <meyering@redhat.com>
16062
16063         Adjust getdate' grammar to accept a slightly more regular language.
16064         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
16065         Before, the former was rejected.
16066         * lib/getdate.y (digits_to_date_time): New function, factored
16067         out of ...
16068         (number): ...here.  Just call digits_to_date_time.
16069         (hybrid): New non-terminal to handle an <unsigned number,
16070         signed relative offset> sequence consistently.
16071
16072 2007-11-18  Jim Meyering  <meyering@redhat.com>
16073
16074         Pull my changes from coreutils:
16075         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
16076         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
16077         use of $gnulib_tool_option_extras, so that it's separated from the
16078         preceding argument.
16079
16080         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
16081         * build-aux/bootstrap (cp_mark_as_generated): Create any required
16082         parent destination directories before copying a file into place.
16083
16084 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16085
16086         bootstrap: work also with 4-argument variant of AC_INIT
16087         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
16088
16089 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16090
16091         Port test-getaddrinfo to Solaris.
16092         Problem reported by Bruno Haible in
16093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
16094         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
16095         explanation of setting 'hints'.
16096         Don't reject an implementation merely because it returns EAI_SERVICE.
16097         (EAI_SERVICE): Define to 0 if not defined.
16098
16099 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16100
16101         The license of gnu-make and posix-shell is now "GPLed build tool".
16102         * modules/gnu-make (License): Likewise.
16103         * modules/posix-shell (License): Likewise.
16104
16105         New module posix-shell, for determining a POSIX shell
16106         or perhaps something that is close enough to a POSIX shell.
16107         * m4/posix-shell.m4: New file.
16108         * modules/posix-shell: New file.
16109
16110         * MODULES.html.sh: Mention new module.
16111
16112         New module gnu-make, for determining whether we're using GNU Make.
16113         * m4/gnu-make.m4: New file.
16114         * modules/gnu-make: New file.
16115         * MODULES.html.sh: Mention new module.
16116
16117 2007-11-14  Jim Meyering  <meyering@redhat.com>
16118
16119         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
16120         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
16121         use this macro to create a function _definition_.
16122         Remove useless "#undef ARGMATCH_DIE".
16123
16124 2007-11-14  Bruno Haible  <bruno@clisp.org>
16125
16126         * lib/config.charset: Update for OpenBSD 4.1.
16127         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
16128
16129 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16130
16131         Document 64-bit #if problems in stdint.texi.
16132         * doc/headers/stdint.texi (stdint.h): Mention problems with
16133         64-bit-#if, and how to work around them.
16134
16135         Don't insist on 'long long int' support in the preprocessor.  It
16136         breaks too many things.  For example, PRIdMAX still uses a 'long
16137         long int' format with the latest Sun compiler, even though
16138         HAVE_LONG_LONG_INT isn't defined due to that compiler's
16139         preprocessor problem.  This causes the latest coreutils to dump
16140         core on Solaris 10 sparc with the Sun C compiler.
16141         Instead, fix the 2007-10-16 problem in a different way, by evaluating
16142         the troublesome expressions at configure-time, not at #if-time.
16143         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
16144         preprocessor.
16145         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
16146         compile-time C checks, done at 'configure'-time.
16147         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
16148         * modules/inttypes (Makefile): Substitute the new symbols that
16149         gl_INTTYPES_H now generates.
16150         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
16151
16152 2007-11-12  Bruno Haible  <bruno@clisp.org>
16153
16154         Tests for Unicode character classification functions.
16155
16156         * modules/unictype/bidicategory-byname-tests: New file.
16157         * modules/unictype/bidicategory-name-tests: New file.
16158         * modules/unictype/bidicategory-of-tests: New file.
16159         * modules/unictype/bidicategory-test-tests: New file.
16160         * modules/unictype/block-list-tests: New file.
16161         * modules/unictype/block-of-tests: New file.
16162         * modules/unictype/block-test-tests: New file.
16163         * modules/unictype/category-C-tests: New file.
16164         * modules/unictype/category-Cc-tests: New file.
16165         * modules/unictype/category-Cf-tests: New file.
16166         * modules/unictype/category-Cn-tests: New file.
16167         * modules/unictype/category-Co-tests: New file.
16168         * modules/unictype/category-Cs-tests: New file.
16169         * modules/unictype/category-L-tests: New file.
16170         * modules/unictype/category-Ll-tests: New file.
16171         * modules/unictype/category-Lm-tests: New file.
16172         * modules/unictype/category-Lo-tests: New file.
16173         * modules/unictype/category-Lt-tests: New file.
16174         * modules/unictype/category-Lu-tests: New file.
16175         * modules/unictype/category-M-tests: New file.
16176         * modules/unictype/category-Mc-tests: New file.
16177         * modules/unictype/category-Me-tests: New file.
16178         * modules/unictype/category-Mn-tests: New file.
16179         * modules/unictype/category-N-tests: New file.
16180         * modules/unictype/category-Nd-tests: New file.
16181         * modules/unictype/category-Nl-tests: New file.
16182         * modules/unictype/category-No-tests: New file.
16183         * modules/unictype/category-P-tests: New file.
16184         * modules/unictype/category-Pc-tests: New file.
16185         * modules/unictype/category-Pd-tests: New file.
16186         * modules/unictype/category-Pe-tests: New file.
16187         * modules/unictype/category-Pf-tests: New file.
16188         * modules/unictype/category-Pi-tests: New file.
16189         * modules/unictype/category-Po-tests: New file.
16190         * modules/unictype/category-Ps-tests: New file.
16191         * modules/unictype/category-S-tests: New file.
16192         * modules/unictype/category-Sc-tests: New file.
16193         * modules/unictype/category-Sk-tests: New file.
16194         * modules/unictype/category-Sm-tests: New file.
16195         * modules/unictype/category-So-tests: New file.
16196         * modules/unictype/category-Z-tests: New file.
16197         * modules/unictype/category-Zl-tests: New file.
16198         * modules/unictype/category-Zp-tests: New file.
16199         * modules/unictype/category-Zs-tests: New file.
16200         * modules/unictype/category-and-not-tests: New file.
16201         * modules/unictype/category-and-tests: New file.
16202         * modules/unictype/category-byname-tests: New file.
16203         * modules/unictype/category-name-tests: New file.
16204         * modules/unictype/category-none-tests: New file.
16205         * modules/unictype/category-of-tests: New file.
16206         * modules/unictype/category-or-tests: New file.
16207         * modules/unictype/category-test-withtable-tests: New file.
16208         * modules/unictype/combining-class-tests: New file.
16209         * modules/unictype/ctype-alnum-tests: New file.
16210         * modules/unictype/ctype-alpha-tests: New file.
16211         * modules/unictype/ctype-blank-tests: New file.
16212         * modules/unictype/ctype-cntrl-tests: New file.
16213         * modules/unictype/ctype-digit-tests: New file.
16214         * modules/unictype/ctype-graph-tests: New file.
16215         * modules/unictype/ctype-lower-tests: New file.
16216         * modules/unictype/ctype-print-tests: New file.
16217         * modules/unictype/ctype-punct-tests: New file.
16218         * modules/unictype/ctype-space-tests: New file.
16219         * modules/unictype/ctype-upper-tests: New file.
16220         * modules/unictype/ctype-xdigit-tests: New file.
16221         * modules/unictype/decimal-digit-tests: New file.
16222         * modules/unictype/digit-tests: New file.
16223         * modules/unictype/mirror-tests: New file.
16224         * modules/unictype/numeric-tests: New file.
16225         * modules/unictype/property-alphabetic-tests: New file.
16226         * modules/unictype/property-ascii-hex-digit-tests: New file.
16227         * modules/unictype/property-bidi-arabic-digit-tests: New file.
16228         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
16229         * modules/unictype/property-bidi-block-separator-tests: New file.
16230         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
16231         * modules/unictype/property-bidi-common-separator-tests: New file.
16232         * modules/unictype/property-bidi-control-tests: New file.
16233         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
16234         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
16235         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
16236         * modules/unictype/property-bidi-european-digit-tests: New file.
16237         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
16238         * modules/unictype/property-bidi-left-to-right-tests: New file.
16239         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
16240         * modules/unictype/property-bidi-other-neutral-tests: New file.
16241         * modules/unictype/property-bidi-pdf-tests: New file.
16242         * modules/unictype/property-bidi-segment-separator-tests: New file.
16243         * modules/unictype/property-bidi-whitespace-tests: New file.
16244         * modules/unictype/property-byname-tests: New file.
16245         * modules/unictype/property-combining-tests: New file.
16246         * modules/unictype/property-composite-tests: New file.
16247         * modules/unictype/property-currency-symbol-tests: New file.
16248         * modules/unictype/property-dash-tests: New file.
16249         * modules/unictype/property-decimal-digit-tests: New file.
16250         * modules/unictype/property-default-ignorable-code-point-tests: New file.
16251         * modules/unictype/property-deprecated-tests: New file.
16252         * modules/unictype/property-diacritic-tests: New file.
16253         * modules/unictype/property-extender-tests: New file.
16254         * modules/unictype/property-format-control-tests: New file.
16255         * modules/unictype/property-grapheme-base-tests: New file.
16256         * modules/unictype/property-grapheme-extend-tests: New file.
16257         * modules/unictype/property-grapheme-link-tests: New file.
16258         * modules/unictype/property-hex-digit-tests: New file.
16259         * modules/unictype/property-hyphen-tests: New file.
16260         * modules/unictype/property-id-continue-tests: New file.
16261         * modules/unictype/property-id-start-tests: New file.
16262         * modules/unictype/property-ideographic-tests: New file.
16263         * modules/unictype/property-ids-binary-operator-tests: New file.
16264         * modules/unictype/property-ids-trinary-operator-tests: New file.
16265         * modules/unictype/property-ignorable-control-tests: New file.
16266         * modules/unictype/property-iso-control-tests: New file.
16267         * modules/unictype/property-join-control-tests: New file.
16268         * modules/unictype/property-left-of-pair-tests: New file.
16269         * modules/unictype/property-line-separator-tests: New file.
16270         * modules/unictype/property-logical-order-exception-tests: New file.
16271         * modules/unictype/property-lowercase-tests: New file.
16272         * modules/unictype/property-math-tests: New file.
16273         * modules/unictype/property-non-break-tests: New file.
16274         * modules/unictype/property-not-a-character-tests: New file.
16275         * modules/unictype/property-numeric-tests: New file.
16276         * modules/unictype/property-other-alphabetic-tests: New file.
16277         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
16278         * modules/unictype/property-other-grapheme-extend-tests: New file.
16279         * modules/unictype/property-other-id-continue-tests: New file.
16280         * modules/unictype/property-other-id-start-tests: New file.
16281         * modules/unictype/property-other-lowercase-tests: New file.
16282         * modules/unictype/property-other-math-tests: New file.
16283         * modules/unictype/property-other-uppercase-tests: New file.
16284         * modules/unictype/property-paired-punctuation-tests: New file.
16285         * modules/unictype/property-paragraph-separator-tests: New file.
16286         * modules/unictype/property-pattern-syntax-tests: New file.
16287         * modules/unictype/property-pattern-white-space-tests: New file.
16288         * modules/unictype/property-private-use-tests: New file.
16289         * modules/unictype/property-punctuation-tests: New file.
16290         * modules/unictype/property-quotation-mark-tests: New file.
16291         * modules/unictype/property-radical-tests: New file.
16292         * modules/unictype/property-sentence-terminal-tests: New file.
16293         * modules/unictype/property-soft-dotted-tests: New file.
16294         * modules/unictype/property-space-tests: New file.
16295         * modules/unictype/property-terminal-punctuation-tests: New file.
16296         * modules/unictype/property-test-tests: New file.
16297         * modules/unictype/property-titlecase-tests: New file.
16298         * modules/unictype/property-unassigned-code-value-tests: New file.
16299         * modules/unictype/property-unified-ideograph-tests: New file.
16300         * modules/unictype/property-uppercase-tests: New file.
16301         * modules/unictype/property-variation-selector-tests: New file.
16302         * modules/unictype/property-white-space-tests: New file.
16303         * modules/unictype/property-xid-continue-tests: New file.
16304         * modules/unictype/property-xid-start-tests: New file.
16305         * modules/unictype/property-zero-width-tests: New file.
16306         * modules/unictype/scripts-tests: New file.
16307         * modules/unictype/syntax-c-ident-tests: New file.
16308         * modules/unictype/syntax-c-whitespace-tests: New file.
16309         * modules/unictype/syntax-java-ident-tests: New file.
16310         * modules/unictype/syntax-java-whitespace-tests: New file.
16311         * tests/unictype/test-bidi_byname.c: New file.
16312         * tests/unictype/test-bidi_name.c: New file.
16313         * tests/unictype/test-bidi_of.c: New file.
16314         * tests/unictype/test-bidi_test.c: New file.
16315         * tests/unictype/test-block_list.c: New file.
16316         * tests/unictype/test-block_of.c: New file.
16317         * tests/unictype/test-block_test.c: New file.
16318         * tests/unictype/test-categ_and.c: New file.
16319         * tests/unictype/test-categ_and_not.c: New file.
16320         * tests/unictype/test-categ_byname.c: New file.
16321         * tests/unictype/test-categ_name.c: New file.
16322         * tests/unictype/test-categ_none.c: New file.
16323         * tests/unictype/test-categ_of.c: New file.
16324         * tests/unictype/test-categ_or.c: New file.
16325         * tests/unictype/test-categ_test_withtable.c: New file.
16326         * tests/unictype/test-combining.c: New file.
16327         * tests/unictype/test-decdigit.c: New file.
16328         * tests/unictype/test-digit.c: New file.
16329         * tests/unictype/test-mirror.c: New file.
16330         * tests/unictype/test-numeric.c: New file.
16331         * tests/unictype/test-pr_byname.c: New file.
16332         * tests/unictype/test-pr_test.c: New file.
16333         * tests/unictype/test-predicate-part1.h: New file.
16334         * tests/unictype/test-predicate-part2.h: New file.
16335         * tests/unictype/test-scripts.c: New file.
16336         * tests/unictype/test-sy_c_ident.c: New file.
16337         * tests/unictype/test-sy_java_ident.c: New file.
16338
16339         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
16340         for Unicode 5.0.0.
16341         * tests/unictype/test-categ_Cc.c: Likewise.
16342         * tests/unictype/test-categ_Cf.c: Likewise.
16343         * tests/unictype/test-categ_Cn.c: Likewise.
16344         * tests/unictype/test-categ_Co.c: Likewise.
16345         * tests/unictype/test-categ_Cs.c: Likewise.
16346         * tests/unictype/test-categ_L.c: Likewise.
16347         * tests/unictype/test-categ_Ll.c: Likewise.
16348         * tests/unictype/test-categ_Lm.c: Likewise.
16349         * tests/unictype/test-categ_Lo.c: Likewise.
16350         * tests/unictype/test-categ_Lt.c: Likewise.
16351         * tests/unictype/test-categ_Lu.c: Likewise.
16352         * tests/unictype/test-categ_M.c: Likewise.
16353         * tests/unictype/test-categ_Mc.c: Likewise.
16354         * tests/unictype/test-categ_Me.c: Likewise.
16355         * tests/unictype/test-categ_Mn.c: Likewise.
16356         * tests/unictype/test-categ_N.c: Likewise.
16357         * tests/unictype/test-categ_Nd.c: Likewise.
16358         * tests/unictype/test-categ_Nl.c: Likewise.
16359         * tests/unictype/test-categ_No.c: Likewise.
16360         * tests/unictype/test-categ_P.c: Likewise.
16361         * tests/unictype/test-categ_Pc.c: Likewise.
16362         * tests/unictype/test-categ_Pd.c: Likewise.
16363         * tests/unictype/test-categ_Pe.c: Likewise.
16364         * tests/unictype/test-categ_Pf.c: Likewise.
16365         * tests/unictype/test-categ_Pi.c: Likewise.
16366         * tests/unictype/test-categ_Po.c: Likewise.
16367         * tests/unictype/test-categ_Ps.c: Likewise.
16368         * tests/unictype/test-categ_S.c: Likewise.
16369         * tests/unictype/test-categ_Sc.c: Likewise.
16370         * tests/unictype/test-categ_Sk.c: Likewise.
16371         * tests/unictype/test-categ_Sm.c: Likewise.
16372         * tests/unictype/test-categ_So.c: Likewise.
16373         * tests/unictype/test-categ_Z.c: Likewise.
16374         * tests/unictype/test-categ_Zl.c: Likewise.
16375         * tests/unictype/test-categ_Zp.c: Likewise.
16376         * tests/unictype/test-categ_Zs.c: Likewise.
16377         * tests/unictype/test-ctype_alnum.c: Likewise.
16378         * tests/unictype/test-ctype_alpha.c: Likewise.
16379         * tests/unictype/test-ctype_blank.c: Likewise.
16380         * tests/unictype/test-ctype_cntrl.c: Likewise.
16381         * tests/unictype/test-ctype_digit.c: Likewise.
16382         * tests/unictype/test-ctype_graph.c: Likewise.
16383         * tests/unictype/test-ctype_lower.c: Likewise.
16384         * tests/unictype/test-ctype_print.c: Likewise.
16385         * tests/unictype/test-ctype_punct.c: Likewise.
16386         * tests/unictype/test-ctype_space.c: Likewise.
16387         * tests/unictype/test-ctype_upper.c: Likewise.
16388         * tests/unictype/test-ctype_xdigit.c: Likewise.
16389         * tests/unictype/test-decdigit.h: Likewise.
16390         * tests/unictype/test-digit.h: Likewise.
16391         * tests/unictype/test-numeric.h: Likewise.
16392         * tests/unictype/test-pr_alphabetic.c: Likewise.
16393         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
16394         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16396         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
16397         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16398         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
16399         * tests/unictype/test-pr_bidi_control.c: Likewise.
16400         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
16401         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
16402         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16403         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16404         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16405         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16406         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16407         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16408         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
16409         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
16410         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
16411         * tests/unictype/test-pr_combining.c: Likewise.
16412         * tests/unictype/test-pr_composite.c: Likewise.
16413         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16414         * tests/unictype/test-pr_dash.c: Likewise.
16415         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16416         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
16417         * tests/unictype/test-pr_deprecated.c: Likewise.
16418         * tests/unictype/test-pr_diacritic.c: Likewise.
16419         * tests/unictype/test-pr_extender.c: Likewise.
16420         * tests/unictype/test-pr_format_control.c: Likewise.
16421         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16422         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16423         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16424         * tests/unictype/test-pr_hex_digit.c: Likewise.
16425         * tests/unictype/test-pr_hyphen.c: Likewise.
16426         * tests/unictype/test-pr_id_continue.c: Likewise.
16427         * tests/unictype/test-pr_id_start.c: Likewise.
16428         * tests/unictype/test-pr_ideographic.c: Likewise.
16429         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
16430         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
16431         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16432         * tests/unictype/test-pr_iso_control.c: Likewise.
16433         * tests/unictype/test-pr_join_control.c: Likewise.
16434         * tests/unictype/test-pr_left_of_pair.c: Likewise.
16435         * tests/unictype/test-pr_line_separator.c: Likewise.
16436         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16437         * tests/unictype/test-pr_lowercase.c: Likewise.
16438         * tests/unictype/test-pr_math.c: Likewise.
16439         * tests/unictype/test-pr_non_break.c: Likewise.
16440         * tests/unictype/test-pr_not_a_character.c: Likewise.
16441         * tests/unictype/test-pr_numeric.c: Likewise.
16442         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16443         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
16444         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
16445         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16446         * tests/unictype/test-pr_other_id_start.c: Likewise.
16447         * tests/unictype/test-pr_other_lowercase.c: Likewise.
16448         * tests/unictype/test-pr_other_math.c: Likewise.
16449         * tests/unictype/test-pr_other_uppercase.c: Likewise.
16450         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
16451         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
16452         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
16453         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
16454         * tests/unictype/test-pr_private_use.c: Likewise.
16455         * tests/unictype/test-pr_punctuation.c: Likewise.
16456         * tests/unictype/test-pr_quotation_mark.c: Likewise.
16457         * tests/unictype/test-pr_radical.c: Likewise.
16458         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16459         * tests/unictype/test-pr_soft_dotted.c: Likewise.
16460         * tests/unictype/test-pr_space.c: Likewise.
16461         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16462         * tests/unictype/test-pr_titlecase.c: Likewise.
16463         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16464         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16465         * tests/unictype/test-pr_uppercase.c: Likewise.
16466         * tests/unictype/test-pr_variation_selector.c: Likewise.
16467         * tests/unictype/test-pr_white_space.c: Likewise.
16468         * tests/unictype/test-pr_xid_continue.c: Likewise.
16469         * tests/unictype/test-pr_xid_start.c: Likewise.
16470         * tests/unictype/test-pr_zero_width.c: Likewise.
16471         * tests/unictype/test-sy_c_whitespace.c: Likewise.
16472         * tests/unictype/test-sy_java_whitespace.c: Likewise.
16473
16474 2007-11-12  Bruno Haible  <bruno@clisp.org>
16475
16476         Unicode character classification functions.
16477         * lib/unictype.h: New file.
16478         * modules/unictype/base: New file.
16479         * modules/unictype/category-L: New file.
16480         * modules/unictype/category-Lu: New file.
16481         * modules/unictype/category-Ll: New file.
16482         * modules/unictype/category-Lt: New file.
16483         * modules/unictype/category-Lm: New file.
16484         * modules/unictype/category-Lo: New file.
16485         * modules/unictype/category-M: New file.
16486         * modules/unictype/category-Mn: New file.
16487         * modules/unictype/category-Mc: New file.
16488         * modules/unictype/category-Me: New file.
16489         * modules/unictype/category-N: New file.
16490         * modules/unictype/category-Nd: New file.
16491         * modules/unictype/category-Nl: New file.
16492         * modules/unictype/category-No: New file.
16493         * modules/unictype/category-P: New file.
16494         * modules/unictype/category-Pc: New file.
16495         * modules/unictype/category-Pd: New file.
16496         * modules/unictype/category-Ps: New file.
16497         * modules/unictype/category-Pe: New file.
16498         * modules/unictype/category-Pi: New file.
16499         * modules/unictype/category-Pf: New file.
16500         * modules/unictype/category-Po: New file.
16501         * modules/unictype/category-S: New file.
16502         * modules/unictype/category-Sm: New file.
16503         * modules/unictype/category-Sc: New file.
16504         * modules/unictype/category-Sk: New file.
16505         * modules/unictype/category-So: New file.
16506         * modules/unictype/category-Z: New file.
16507         * modules/unictype/category-Zs: New file.
16508         * modules/unictype/category-Zl: New file.
16509         * modules/unictype/category-Zp: New file.
16510         * modules/unictype/category-C: New file.
16511         * modules/unictype/category-Cc: New file.
16512         * modules/unictype/category-Cf: New file.
16513         * modules/unictype/category-Cs: New file.
16514         * modules/unictype/category-Co: New file.
16515         * modules/unictype/category-Cn: New file.
16516         * modules/unictype/category-or: New file.
16517         * modules/unictype/category-of: New file.
16518         * modules/unictype/category-test: New file.
16519         * modules/unictype/category-test-withtable: New file.
16520         * modules/unictype/category-byname: New file.
16521         * modules/unictype/category-none: New file.
16522         * modules/unictype/category-and: New file.
16523         * modules/unictype/category-and-not: New file.
16524         * modules/unictype/category-name: New file.
16525         * modules/unictype/combining-class: New file.
16526         * modules/unictype/category-all: New file.
16527         * modules/unictype/bidicategory-all: New file.
16528         * modules/unictype/bidicategory-byname: New file.
16529         * modules/unictype/bidicategory-name: New file.
16530         * modules/unictype/bidicategory-of: New file.
16531         * modules/unictype/bidicategory-test: New file.
16532         * modules/unictype/decimal-digit: New file.
16533         * modules/unictype/digit: New file.
16534         * modules/unictype/numeric: New file.
16535         * modules/unictype/mirror: New file.
16536         * modules/unictype/property-white-space: New file.
16537         * modules/unictype/property-alphabetic: New file.
16538         * modules/unictype/property-other-alphabetic: New file.
16539         * modules/unictype/property-not-a-character: New file.
16540         * modules/unictype/property-default-ignorable-code-point: New file.
16541         * modules/unictype/property-other-default-ignorable-code-point: New
16542         file.
16543         * modules/unictype/property-deprecated: New file.
16544         * modules/unictype/property-logical-order-exception: New file.
16545         * modules/unictype/property-variation-selector: New file.
16546         * modules/unictype/property-private-use: New file.
16547         * modules/unictype/property-unassigned-code-value: New file.
16548         * modules/unictype/property-uppercase: New file.
16549         * modules/unictype/property-other-uppercase: New file.
16550         * modules/unictype/property-lowercase: New file.
16551         * modules/unictype/property-other-lowercase: New file.
16552         * modules/unictype/property-titlecase: New file.
16553         * modules/unictype/property-soft-dotted: New file.
16554         * modules/unictype/property-id-start: New file.
16555         * modules/unictype/property-other-id-start: New file.
16556         * modules/unictype/property-id-continue: New file.
16557         * modules/unictype/property-other-id-continue: New file.
16558         * modules/unictype/property-xid-start: New file.
16559         * modules/unictype/property-xid-continue: New file.
16560         * modules/unictype/property-pattern-white-space: New file.
16561         * modules/unictype/property-pattern-syntax: New file.
16562         * modules/unictype/property-join-control: New file.
16563         * modules/unictype/property-grapheme-base: New file.
16564         * modules/unictype/property-grapheme-extend: New file.
16565         * modules/unictype/property-other-grapheme-extend: New file.
16566         * modules/unictype/property-grapheme-link: New file.
16567         * modules/unictype/property-bidi-control: New file.
16568         * modules/unictype/property-bidi-left-to-right: New file.
16569         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
16570         * modules/unictype/property-bidi-arabic-right-to-left: New file.
16571         * modules/unictype/property-bidi-european-digit: New file.
16572         * modules/unictype/property-bidi-eur-num-separator: New file.
16573         * modules/unictype/property-bidi-eur-num-terminator: New file.
16574         * modules/unictype/property-bidi-arabic-digit: New file.
16575         * modules/unictype/property-bidi-common-separator: New file.
16576         * modules/unictype/property-bidi-block-separator: New file.
16577         * modules/unictype/property-bidi-segment-separator: New file.
16578         * modules/unictype/property-bidi-whitespace: New file.
16579         * modules/unictype/property-bidi-non-spacing-mark: New file.
16580         * modules/unictype/property-bidi-boundary-neutral: New file.
16581         * modules/unictype/property-bidi-pdf: New file.
16582         * modules/unictype/property-bidi-embedding-or-override: New file.
16583         * modules/unictype/property-bidi-other-neutral: New file.
16584         * modules/unictype/property-hex-digit: New file.
16585         * modules/unictype/property-ascii-hex-digit: New file.
16586         * modules/unictype/property-ideographic: New file.
16587         * modules/unictype/property-unified-ideograph: New file.
16588         * modules/unictype/property-radical: New file.
16589         * modules/unictype/property-ids-binary-operator: New file.
16590         * modules/unictype/property-ids-trinary-operator: New file.
16591         * modules/unictype/property-zero-width: New file.
16592         * modules/unictype/property-space: New file.
16593         * modules/unictype/property-non-break: New file.
16594         * modules/unictype/property-iso-control: New file.
16595         * modules/unictype/property-format-control: New file.
16596         * modules/unictype/property-dash: New file.
16597         * modules/unictype/property-hyphen: New file.
16598         * modules/unictype/property-punctuation: New file.
16599         * modules/unictype/property-line-separator: New file.
16600         * modules/unictype/property-paragraph-separator: New file.
16601         * modules/unictype/property-quotation-mark: New file.
16602         * modules/unictype/property-sentence-terminal: New file.
16603         * modules/unictype/property-terminal-punctuation: New file.
16604         * modules/unictype/property-currency-symbol: New file.
16605         * modules/unictype/property-math: New file.
16606         * modules/unictype/property-other-math: New file.
16607         * modules/unictype/property-paired-punctuation: New file.
16608         * modules/unictype/property-left-of-pair: New file.
16609         * modules/unictype/property-combining: New file.
16610         * modules/unictype/property-composite: New file.
16611         * modules/unictype/property-decimal-digit: New file.
16612         * modules/unictype/property-numeric: New file.
16613         * modules/unictype/property-diacritic: New file.
16614         * modules/unictype/property-extender: New file.
16615         * modules/unictype/property-ignorable-control: New file.
16616         * modules/unictype/property-test: New file.
16617         * modules/unictype/property-byname: New file.
16618         * modules/unictype/property-all: New file.
16619         * modules/unictype/scripts: New file.
16620         * modules/unictype/scripts-all: New file.
16621         * modules/unictype/block-of: New file.
16622         * modules/unictype/block-test: New file.
16623         * modules/unictype/block-list: New file.
16624         * modules/unictype/block-all: New file.
16625         * modules/unictype/syntax-c-whitespace: New file.
16626         * modules/unictype/syntax-java-whitespace: New file.
16627         * modules/unictype/syntax-c-ident: New file.
16628         * modules/unictype/syntax-java-ident: New file.
16629         * modules/unictype/ctype-alnum: New file.
16630         * modules/unictype/ctype-alpha: New file.
16631         * modules/unictype/ctype-cntrl: New file.
16632         * modules/unictype/ctype-digit: New file.
16633         * modules/unictype/ctype-graph: New file.
16634         * modules/unictype/ctype-lower: New file.
16635         * modules/unictype/ctype-print: New file.
16636         * modules/unictype/ctype-punct: New file.
16637         * modules/unictype/ctype-space: New file.
16638         * modules/unictype/ctype-upper: New file.
16639         * modules/unictype/ctype-xdigit: New file.
16640         * modules/unictype/ctype-blank: New file.
16641         * lib/unictype/bidi_byname.c: New file.
16642         * lib/unictype/bidi_name.c: New file.
16643         * lib/unictype/bidi_of.c: New file.
16644         * lib/unictype/bidi_test.c: New file.
16645         * lib/unictype/bitmap.h: New file.
16646         * lib/unictype/block_test.c: New file.
16647         * lib/unictype/blocks.c: New file.
16648         * lib/unictype/categ_C.c: New file.
16649         * lib/unictype/categ_Cc.c: New file.
16650         * lib/unictype/categ_Cf.c: New file.
16651         * lib/unictype/categ_Cn.c: New file.
16652         * lib/unictype/categ_Co.c: New file.
16653         * lib/unictype/categ_Cs.c: New file.
16654         * lib/unictype/categ_L.c: New file.
16655         * lib/unictype/categ_Ll.c: New file.
16656         * lib/unictype/categ_Lm.c: New file.
16657         * lib/unictype/categ_Lo.c: New file.
16658         * lib/unictype/categ_Lt.c: New file.
16659         * lib/unictype/categ_Lu.c: New file.
16660         * lib/unictype/categ_M.c: New file.
16661         * lib/unictype/categ_Mc.c: New file.
16662         * lib/unictype/categ_Me.c: New file.
16663         * lib/unictype/categ_Mn.c: New file.
16664         * lib/unictype/categ_N.c: New file.
16665         * lib/unictype/categ_Nd.c: New file.
16666         * lib/unictype/categ_Nl.c: New file.
16667         * lib/unictype/categ_No.c: New file.
16668         * lib/unictype/categ_P.c: New file.
16669         * lib/unictype/categ_Pc.c: New file.
16670         * lib/unictype/categ_Pd.c: New file.
16671         * lib/unictype/categ_Pe.c: New file.
16672         * lib/unictype/categ_Pf.c: New file.
16673         * lib/unictype/categ_Pi.c: New file.
16674         * lib/unictype/categ_Po.c: New file.
16675         * lib/unictype/categ_Ps.c: New file.
16676         * lib/unictype/categ_S.c: New file.
16677         * lib/unictype/categ_Sc.c: New file.
16678         * lib/unictype/categ_Sk.c: New file.
16679         * lib/unictype/categ_Sm.c: New file.
16680         * lib/unictype/categ_So.c: New file.
16681         * lib/unictype/categ_Z.c: New file.
16682         * lib/unictype/categ_Zl.c: New file.
16683         * lib/unictype/categ_Zp.c: New file.
16684         * lib/unictype/categ_Zs.c: New file.
16685         * lib/unictype/categ_and.c: New file.
16686         * lib/unictype/categ_and_not.c: New file.
16687         * lib/unictype/categ_byname.c: New file.
16688         * lib/unictype/categ_name.c: New file.
16689         * lib/unictype/categ_none.c: New file.
16690         * lib/unictype/categ_of.c: New file.
16691         * lib/unictype/categ_or.c: New file.
16692         * lib/unictype/categ_test.c: New file.
16693         * lib/unictype/combining.c: New file.
16694         * lib/unictype/ctype_alnum.c: New file.
16695         * lib/unictype/ctype_alpha.c: New file.
16696         * lib/unictype/ctype_blank.c: New file.
16697         * lib/unictype/ctype_cntrl.c: New file.
16698         * lib/unictype/ctype_digit.c: New file.
16699         * lib/unictype/ctype_graph.c: New file.
16700         * lib/unictype/ctype_lower.c: New file.
16701         * lib/unictype/ctype_print.c: New file.
16702         * lib/unictype/ctype_punct.c: New file.
16703         * lib/unictype/ctype_space.c: New file.
16704         * lib/unictype/ctype_upper.c: New file.
16705         * lib/unictype/ctype_xdigit.c: New file.
16706         * lib/unictype/decdigit.c: New file.
16707         * lib/unictype/digit.c: New file.
16708         * lib/unictype/identsyntaxmap.h: New file.
16709         * lib/unictype/mirror.c: New file.
16710         * lib/unictype/numeric.c: New file.
16711         * lib/unictype/pr_alphabetic.c: New file.
16712         * lib/unictype/pr_ascii_hex_digit.c: New file.
16713         * lib/unictype/pr_bidi_arabic_digit.c: New file.
16714         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
16715         * lib/unictype/pr_bidi_block_separator.c: New file.
16716         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
16717         * lib/unictype/pr_bidi_common_separator.c: New file.
16718         * lib/unictype/pr_bidi_control.c: New file.
16719         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
16720         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
16721         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
16722         * lib/unictype/pr_bidi_european_digit.c: New file.
16723         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
16724         * lib/unictype/pr_bidi_left_to_right.c: New file.
16725         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
16726         * lib/unictype/pr_bidi_other_neutral.c: New file.
16727         * lib/unictype/pr_bidi_pdf.c: New file.
16728         * lib/unictype/pr_bidi_segment_separator.c: New file.
16729         * lib/unictype/pr_bidi_whitespace.c: New file.
16730         * lib/unictype/pr_byname.c: New file.
16731         * lib/unictype/pr_byname.gperf: New file.
16732         * lib/unictype/pr_combining.c: New file.
16733         * lib/unictype/pr_composite.c: New file.
16734         * lib/unictype/pr_currency_symbol.c: New file.
16735         * lib/unictype/pr_dash.c: New file.
16736         * lib/unictype/pr_decimal_digit.c: New file.
16737         * lib/unictype/pr_default_ignorable_code_point.c: New file.
16738         * lib/unictype/pr_deprecated.c: New file.
16739         * lib/unictype/pr_diacritic.c: New file.
16740         * lib/unictype/pr_extender.c: New file.
16741         * lib/unictype/pr_format_control.c: New file.
16742         * lib/unictype/pr_grapheme_base.c: New file.
16743         * lib/unictype/pr_grapheme_extend.c: New file.
16744         * lib/unictype/pr_grapheme_link.c: New file.
16745         * lib/unictype/pr_hex_digit.c: New file.
16746         * lib/unictype/pr_hyphen.c: New file.
16747         * lib/unictype/pr_id_continue.c: New file.
16748         * lib/unictype/pr_id_start.c: New file.
16749         * lib/unictype/pr_ideographic.c: New file.
16750         * lib/unictype/pr_ids_binary_operator.c: New file.
16751         * lib/unictype/pr_ids_trinary_operator.c: New file.
16752         * lib/unictype/pr_ignorable_control.c: New file.
16753         * lib/unictype/pr_iso_control.c: New file.
16754         * lib/unictype/pr_join_control.c: New file.
16755         * lib/unictype/pr_left_of_pair.c: New file.
16756         * lib/unictype/pr_line_separator.c: New file.
16757         * lib/unictype/pr_logical_order_exception.c: New file.
16758         * lib/unictype/pr_lowercase.c: New file.
16759         * lib/unictype/pr_math.c: New file.
16760         * lib/unictype/pr_non_break.c: New file.
16761         * lib/unictype/pr_not_a_character.c: New file.
16762         * lib/unictype/pr_numeric.c: New file.
16763         * lib/unictype/pr_other_alphabetic.c: New file.
16764         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
16765         * lib/unictype/pr_other_grapheme_extend.c: New file.
16766         * lib/unictype/pr_other_id_continue.c: New file.
16767         * lib/unictype/pr_other_id_start.c: New file.
16768         * lib/unictype/pr_other_lowercase.c: New file.
16769         * lib/unictype/pr_other_math.c: New file.
16770         * lib/unictype/pr_other_uppercase.c: New file.
16771         * lib/unictype/pr_paired_punctuation.c: New file.
16772         * lib/unictype/pr_paragraph_separator.c: New file.
16773         * lib/unictype/pr_pattern_syntax.c: New file.
16774         * lib/unictype/pr_pattern_white_space.c: New file.
16775         * lib/unictype/pr_private_use.c: New file.
16776         * lib/unictype/pr_punctuation.c: New file.
16777         * lib/unictype/pr_quotation_mark.c: New file.
16778         * lib/unictype/pr_radical.c: New file.
16779         * lib/unictype/pr_sentence_terminal.c: New file.
16780         * lib/unictype/pr_soft_dotted.c: New file.
16781         * lib/unictype/pr_space.c: New file.
16782         * lib/unictype/pr_terminal_punctuation.c: New file.
16783         * lib/unictype/pr_test.c: New file.
16784         * lib/unictype/pr_titlecase.c: New file.
16785         * lib/unictype/pr_unassigned_code_value.c: New file.
16786         * lib/unictype/pr_unified_ideograph.c: New file.
16787         * lib/unictype/pr_uppercase.c: New file.
16788         * lib/unictype/pr_variation_selector.c: New file.
16789         * lib/unictype/pr_white_space.c: New file.
16790         * lib/unictype/pr_xid_continue.c: New file.
16791         * lib/unictype/pr_xid_start.c: New file.
16792         * lib/unictype/pr_zero_width.c: New file.
16793         * lib/unictype/scripts.c: New file.
16794         * lib/unictype/sy_c_ident.c: New file.
16795         * lib/unictype/sy_c_whitespace.c: New file.
16796         * lib/unictype/sy_java_ident.c: New file.
16797         * lib/unictype/sy_java_whitespace.c: New file.
16798
16799         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
16800         Unicode 5.0.0.
16801         * lib/unictype/blocks.h: Likewise.
16802         * lib/unictype/categ_C.h: Likewise.
16803         * lib/unictype/categ_Cc.h: Likewise.
16804         * lib/unictype/categ_Cf.h: Likewise.
16805         * lib/unictype/categ_Cn.h: Likewise.
16806         * lib/unictype/categ_Co.h: Likewise.
16807         * lib/unictype/categ_Cs.h: Likewise.
16808         * lib/unictype/categ_L.h: Likewise.
16809         * lib/unictype/categ_Ll.h: Likewise.
16810         * lib/unictype/categ_Lm.h: Likewise.
16811         * lib/unictype/categ_Lo.h: Likewise.
16812         * lib/unictype/categ_Lt.h: Likewise.
16813         * lib/unictype/categ_Lu.h: Likewise.
16814         * lib/unictype/categ_M.h: Likewise.
16815         * lib/unictype/categ_Mc.h: Likewise.
16816         * lib/unictype/categ_Me.h: Likewise.
16817         * lib/unictype/categ_Mn.h: Likewise.
16818         * lib/unictype/categ_N.h: Likewise.
16819         * lib/unictype/categ_Nd.h: Likewise.
16820         * lib/unictype/categ_Nl.h: Likewise.
16821         * lib/unictype/categ_No.h: Likewise.
16822         * lib/unictype/categ_P.h: Likewise.
16823         * lib/unictype/categ_Pc.h: Likewise.
16824         * lib/unictype/categ_Pd.h: Likewise.
16825         * lib/unictype/categ_Pe.h: Likewise.
16826         * lib/unictype/categ_Pf.h: Likewise.
16827         * lib/unictype/categ_Pi.h: Likewise.
16828         * lib/unictype/categ_Po.h: Likewise.
16829         * lib/unictype/categ_Ps.h: Likewise.
16830         * lib/unictype/categ_S.h: Likewise.
16831         * lib/unictype/categ_Sc.h: Likewise.
16832         * lib/unictype/categ_Sk.h: Likewise.
16833         * lib/unictype/categ_Sm.h: Likewise.
16834         * lib/unictype/categ_So.h: Likewise.
16835         * lib/unictype/categ_Z.h: Likewise.
16836         * lib/unictype/categ_Zl.h: Likewise.
16837         * lib/unictype/categ_Zp.h: Likewise.
16838         * lib/unictype/categ_Zs.h: Likewise.
16839         * lib/unictype/categ_of.h: Likewise.
16840         * lib/unictype/combining.h: Likewise.
16841         * lib/unictype/ctype_alnum.h: Likewise.
16842         * lib/unictype/ctype_alpha.h: Likewise.
16843         * lib/unictype/ctype_blank.h: Likewise.
16844         * lib/unictype/ctype_cntrl.h: Likewise.
16845         * lib/unictype/ctype_digit.h: Likewise.
16846         * lib/unictype/ctype_graph.h: Likewise.
16847         * lib/unictype/ctype_lower.h: Likewise.
16848         * lib/unictype/ctype_print.h: Likewise.
16849         * lib/unictype/ctype_punct.h: Likewise.
16850         * lib/unictype/ctype_space.h: Likewise.
16851         * lib/unictype/ctype_upper.h: Likewise.
16852         * lib/unictype/ctype_xdigit.h: Likewise.
16853         * lib/unictype/decdigit.h: Likewise.
16854         * lib/unictype/digit.h: Likewise.
16855         * lib/unictype/mirror.h: Likewise.
16856         * lib/unictype/numeric.h: Likewise.
16857         * lib/unictype/pr_alphabetic.h: Likewise.
16858         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16859         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16860         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16861         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16862         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16863         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16864         * lib/unictype/pr_bidi_control.h: Likewise.
16865         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16866         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16867         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16868         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16869         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16870         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16871         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16872         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16873         * lib/unictype/pr_bidi_pdf.h: Likewise.
16874         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16875         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16876         * lib/unictype/pr_combining.h: Likewise.
16877         * lib/unictype/pr_composite.h: Likewise.
16878         * lib/unictype/pr_currency_symbol.h: Likewise.
16879         * lib/unictype/pr_dash.h: Likewise.
16880         * lib/unictype/pr_decimal_digit.h: Likewise.
16881         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16882         * lib/unictype/pr_deprecated.h: Likewise.
16883         * lib/unictype/pr_diacritic.h: Likewise.
16884         * lib/unictype/pr_extender.h: Likewise.
16885         * lib/unictype/pr_format_control.h: Likewise.
16886         * lib/unictype/pr_grapheme_base.h: Likewise.
16887         * lib/unictype/pr_grapheme_extend.h: Likewise.
16888         * lib/unictype/pr_grapheme_link.h: Likewise.
16889         * lib/unictype/pr_hex_digit.h: Likewise.
16890         * lib/unictype/pr_hyphen.h: Likewise.
16891         * lib/unictype/pr_id_continue.h: Likewise.
16892         * lib/unictype/pr_id_start.h: Likewise.
16893         * lib/unictype/pr_ideographic.h: Likewise.
16894         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16895         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16896         * lib/unictype/pr_ignorable_control.h: Likewise.
16897         * lib/unictype/pr_iso_control.h: Likewise.
16898         * lib/unictype/pr_join_control.h: Likewise.
16899         * lib/unictype/pr_left_of_pair.h: Likewise.
16900         * lib/unictype/pr_line_separator.h: Likewise.
16901         * lib/unictype/pr_logical_order_exception.h: Likewise.
16902         * lib/unictype/pr_lowercase.h: Likewise.
16903         * lib/unictype/pr_math.h: Likewise.
16904         * lib/unictype/pr_non_break.h: Likewise.
16905         * lib/unictype/pr_not_a_character.h: Likewise.
16906         * lib/unictype/pr_numeric.h: Likewise.
16907         * lib/unictype/pr_other_alphabetic.h: Likewise.
16908         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16909         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16910         * lib/unictype/pr_other_id_continue.h: Likewise.
16911         * lib/unictype/pr_other_id_start.h: Likewise.
16912         * lib/unictype/pr_other_lowercase.h: Likewise.
16913         * lib/unictype/pr_other_math.h: Likewise.
16914         * lib/unictype/pr_other_uppercase.h: Likewise.
16915         * lib/unictype/pr_paired_punctuation.h: Likewise.
16916         * lib/unictype/pr_paragraph_separator.h: Likewise.
16917         * lib/unictype/pr_pattern_syntax.h: Likewise.
16918         * lib/unictype/pr_pattern_white_space.h: Likewise.
16919         * lib/unictype/pr_private_use.h: Likewise.
16920         * lib/unictype/pr_punctuation.h: Likewise.
16921         * lib/unictype/pr_quotation_mark.h: Likewise.
16922         * lib/unictype/pr_radical.h: Likewise.
16923         * lib/unictype/pr_sentence_terminal.h: Likewise.
16924         * lib/unictype/pr_soft_dotted.h: Likewise.
16925         * lib/unictype/pr_space.h: Likewise.
16926         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16927         * lib/unictype/pr_titlecase.h: Likewise.
16928         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16929         * lib/unictype/pr_unified_ideograph.h: Likewise.
16930         * lib/unictype/pr_uppercase.h: Likewise.
16931         * lib/unictype/pr_variation_selector.h: Likewise.
16932         * lib/unictype/pr_white_space.h: Likewise.
16933         * lib/unictype/pr_xid_continue.h: Likewise.
16934         * lib/unictype/pr_xid_start.h: Likewise.
16935         * lib/unictype/pr_zero_width.h: Likewise.
16936         * lib/unictype/scripts.h: Likewise.
16937         * lib/unictype/scripts_byname.gperf: Likewise.
16938         * lib/unictype/sy_c_ident.h: Likewise.
16939         * lib/unictype/sy_c_whitespace.h: Likewise.
16940         * lib/unictype/sy_java_ident.h: Likewise.
16941         * lib/unictype/sy_java_whitespace.h: Likewise.
16942
16943         * lib/unictype/Makefile: New file.
16944         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
16945         glibc.
16946         * lib/unictype/3level.h: New file, copied from glibc.
16947         * lib/unictype/3levelbit.h: New file.
16948
16949 2007-11-11  Bruno Haible  <bruno@clisp.org>
16950
16951         * modules/gperf: New file.
16952         * modules/iconv_open (Depends-on): Add it.
16953         (Makefile.am): Remove the GPERF definition.
16954
16955 2007-11-11  Bruno Haible  <bruno@clisp.org>
16956
16957         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
16958         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
16959
16960 2007-11-11  Bruno Haible  <bruno@clisp.org>
16961
16962         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
16963         (usage): Remove function.
16964
16965 2007-11-11  Bruno Haible  <bruno@clisp.org>
16966
16967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
16968         gl_FUNC_CEILF_LIBS.
16969         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
16970         gl_FUNC_CEIL_LIBS.
16971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
16972         gl_FUNC_CEILL_LIBS.
16973         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
16974         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
16975         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
16976
16977 2007-11-11  Bruno Haible  <bruno@clisp.org>
16978
16979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
16980         roundf were declared but do not exist on functions.
16981         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
16982         roundl were declared but do not exist on functions.
16983         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
16984         HAVE_FLOORL_AND_CEILL, respectively.
16985         Needed for Sun C on Solaris 10.
16986
16987 2007-11-11  Bruno Haible  <bruno@clisp.org>
16988
16989         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
16990         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
16991         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
16992         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
16993         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
16994         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
16995         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
16996         HAVE_DECL_ROUNDF.
16997         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
16998         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
16999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
17000         of HAVE_DECL_ROUND*.
17001         * modules/math (Makefile.am): Update.
17002
17003 2007-11-10  Bruno Haible  <bruno@clisp.org>
17004
17005         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
17006         ptrdiff_t as m4/intl.m4.
17007
17008 2007-11-10  Jim Meyering  <meyering@redhat.com>
17009
17010         Avoid link failure for the argmatch test.
17011         * tests/test-argmatch.c (usage): Define function to avoid a link
17012         failure: argmatch_die requires a usage function.
17013
17014 2007-11-09  Bruno Haible  <bruno@clisp.org>
17015
17016         * doc/functions/snprintf.texi: Mention BeOS deficiency.
17017         * doc/functions/vsnprintf.texi: Likewise.
17018         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
17019         with a size argument < 2.
17020
17021 2007-11-09  Bruno Haible  <bruno@clisp.org>
17022
17023         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
17024         buffer. Fixes an inefficiency introduced on 2007-11-03.
17025
17026 2007-11-09  Bruno Haible  <bruno@clisp.org>
17027
17028         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
17029         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
17030
17031 2007-11-08  Jim Meyering  <meyering@redhat.com>
17032
17033         Change cache variable name prefix "jm_" to "gl_" everywhere.
17034         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
17035         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
17036         * m4/uptime.m4: s/gl_/jm_/
17037
17038 2007-11-07  Bruno Haible  <bruno@clisp.org>
17039
17040         Update to GNU gettext 0.17.
17041         * m4/intl.m4: Update to GNU gettext 0.17.
17042         * m4/po.m4: Likewise.
17043         * modules/gettext (Files): Remove m4/ulonglong.m4.
17044         (configure.ac): Require gettext infrastructure from version 0.17.
17045
17046 2007-11-06  Bruno Haible  <bruno@clisp.org>
17047
17048         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
17049         symbolic values are not defined in a public header.
17050         * lib/freadable.c (freadable) [QNX]: Likewise.
17051         * lib/freadahead.c (freadahead) [QNX]: Likewise.
17052         * lib/freading.c (freading) [QNX]: Likewise.
17053         * lib/fseterr.c (fseterr) [QNX]: Likewise.
17054         * lib/fwritable.c (fwritable) [QNX]: Likewise.
17055         * lib/fwriting.c (fwriting) [QNX]: Likewise.
17056         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
17057         Reported by Alain Magloire.
17058
17059         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
17060
17061 2007-11-05  Bruno Haible  <bruno@clisp.org>
17062
17063         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
17064         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
17065         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
17066         Reported by Eric Blake.
17067
17068 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17069             Bruno Haible  <bruno@clisp.org>
17070
17071         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
17072         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
17073         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
17074         (malloc): Undefine also before including <stdlib.h>.
17075         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
17076         Needed on OSF/1 4.0.
17077
17078 2007-11-05  Jim Meyering  <meyering@redhat.com>
17079
17080         git-version-gen: sync from coreutils.
17081         * build-aux/git-version-gen: Add comments.
17082         Change the first '-' to '.' in the snapshot version string,
17083         e.g., 6.9-377-08144 -> 6.9.377-08144
17084         Remove first parameter.
17085         Don't declare a version "-dirty" merely because a time
17086         stamp has changed.
17087
17088 2007-11-04  Bruno Haible  <bruno@clisp.org>
17089
17090         * lib/lock.h: Protect all macro definitions containing an 'if'
17091         statement through a "do { ... } while (0)".
17092         * lib/tls.h: Likewise.
17093
17094 2007-11-04  Bruno Haible  <bruno@clisp.org>
17095
17096         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
17097
17098 2007-11-04  Bruno Haible  <bruno@clisp.org>
17099
17100         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
17101         * modules/fprintf-posix (Depends-on): Add nocrash.
17102         * modules/snprintf-posix (Depends-on): Likewise.
17103         * modules/sprintf-posix (Depends-on): Likewise.
17104         * modules/vasnprintf-posix (Depends-on): Likewise.
17105         * modules/vasprintf-posix (Depends-on): Likewise.
17106         * modules/vfprintf-posix (Depends-on): Likewise.
17107         * modules/vsnprintf-posix (Depends-on): Likewise.
17108         * modules/vsprintf-posix (Depends-on): Likewise.
17109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17111         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17112         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17113         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17114         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17115         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17116
17117 2007-11-04  Bruno Haible  <bruno@clisp.org>
17118
17119         * modules/nocrash: New file.
17120         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
17121         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
17122
17123 2007-11-04  Bruno Haible  <bruno@clisp.org>
17124
17125         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
17126         precision handling.
17127         * tests/test-vasprintf-posix.c (test_function): Likewise.
17128         * tests/test-snprintf-posix.h (test_function): Likewise.
17129         * tests/test-sprintf-posix.h (test_function): Likewise.
17130
17131         Fix *printf behaviour for large precisions on mingw and BeOS.
17132         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
17133         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
17134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
17135         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17137         gl_PRINTF_PRECISION and test its result. Invoke
17138         gl_PREREQ_VASNPRINTF_PRECISION.
17139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17146         * doc/functions/fprintf.texi: Update.
17147         * doc/functions/printf.texi: Update.
17148         * doc/functions/snprintf.texi: Update.
17149         * doc/functions/sprintf.texi: Update.
17150         * doc/functions/vfprintf.texi: Update.
17151         * doc/functions/vprintf.texi: Update.
17152         * doc/functions/vsnprintf.texi: Update.
17153         * doc/functions/vsprintf.texi: Update.
17154
17155 2007-11-04  Bruno Haible  <bruno@clisp.org>
17156
17157         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
17158
17159 2007-11-04  Bruno Haible  <bruno@clisp.org>
17160
17161         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
17162         Reported by Sylvain Beucler <beuc@gnu.org>.
17163
17164 2007-11-03  Bruno Haible  <bruno@clisp.org>
17165
17166         * tests/test-fprintf-posix2.sh: New file.
17167         * tests/test-fprintf-posix2.c: New file.
17168         * modules/fprintf-posix-tests (Files): Add them.
17169         (TESTS): Add test-fprintf-posix2.sh.
17170         (configure.ac): Check for getrlimit and setrlimit.
17171         (check_PROGRAMS): Add test-fprintf-posix2.
17172
17173         * tests/test-printf-posix2.sh: New file.
17174         * tests/test-printf-posix2.c: New file.
17175         * modules/printf-posix-tests (Files): Add them.
17176         (TESTS): Add test-printf-posix2.sh.
17177         (configure.ac): Check for getrlimit and setrlimit.
17178         (check_PROGRAMS): Add test-printf-posix2.
17179
17180         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
17181         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
17182         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
17183         (decode_double): New function, copied from decode_long_double.
17184         (scale10_round_decimal_decoded): New function, extracted from
17185         scale10_round_decimal_long_double.
17186         (scale10_round_decimal_long_double): Use it.
17187         (scale10_round_decimal_double): New function.
17188         (floorlog10): New function.
17189         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
17190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
17191         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17193         gl_PRINTF_ENOMEM and test its result. Invoke
17194         gl_PREREQ_VASNPRINTF_ENOMEM.
17195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17198         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17199         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17201         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17202         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
17203         * modules/snprintf-posix (Depends-on): Likewise.
17204         * modules/sprintf-posix (Depends-on): Likewise.
17205         * modules/vasnprintf-posix (Depends-on): Likewise.
17206         * modules/vasprintf-posix (Depends-on): Likewise.
17207         * modules/vfprintf-posix (Depends-on): Likewise.
17208         * modules/vsnprintf-posix (Depends-on): Likewise.
17209         * modules/vsprintf-posix (Depends-on): Likewise.
17210         * doc/functions/fprintf.texi: Update.
17211         * doc/functions/printf.texi: Update.
17212         * doc/functions/snprintf.texi: Update.
17213         * doc/functions/sprintf.texi: Update.
17214         * doc/functions/vfprintf.texi: Update.
17215         * doc/functions/vprintf.texi: Update.
17216         * doc/functions/vsnprintf.texi: Update.
17217         * doc/functions/vsprintf.texi: Update.
17218
17219 2007-11-03  Bruno Haible  <bruno@clisp.org>
17220
17221         * modules/frexp-nolibm-tests: New file.
17222
17223         * modules/frexp-nolibm: New file.
17224         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
17225
17226 2007-11-03  Bruno Haible  <bruno@clisp.org>
17227
17228         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
17229         value is C99 compliant.
17230         Needed for OSF/1 5.1.
17231
17232 2007-11-03  Bruno Haible  <bruno@clisp.org>
17233
17234         Fix out-of-memory handling of vasnprintf.
17235         * lib/printf-parse.c: Include <errno.h>.
17236         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
17237         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
17238         is already set.
17239
17240 2007-11-02  Eric Blake  <ebb9@byu.net>
17241
17242         Fix tests on cygwin.
17243         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
17244
17245 2007-11-01  Bruno Haible  <bruno@clisp.org>
17246
17247         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
17248         warning.
17249         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
17250         needed for POSIX compatibility.
17251
17252 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17253
17254         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
17255         for compatibility with GNU.
17256
17257 2007-11-01  Bruno Haible  <bruno@clisp.org>
17258
17259         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
17260         (putenv): Renamed from rpl_putenv. Change argument type from
17261         'const char *' to 'char *'.
17262         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
17263         of defining putenv in config.h, just set REPLACE_PUTENV.
17264         * modules/putenv (Depends-on): Add stdlib.
17265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17266         (Include): Use <stdlib.h>.
17267         * lib/stdlib.in.h (putenv): New declaration.
17268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
17269         REPLACE_PUTENV.
17270         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
17271         REPLACE_PUTENV.
17272         Needed for MacOS X 10.5.0.
17273         Reported by Peter O'Gorman <peter@pogma.com>.
17274
17275 2007-11-01  Jim Meyering  <meyering@redhat.com>
17276
17277         Treat an empty date string exactly like "0".
17278         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
17279         if the remaining date string (to be parsed) is empty, use "0".
17280         Reported by Mischa Molhoek and discussed in this thread:
17281         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
17282
17283 2007-10-31  Bruno Haible  <bruno@clisp.org>
17284
17285         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
17286         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
17287         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
17288         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
17289         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
17290         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
17291
17292 2007-10-31  Bruno Haible  <bruno@clisp.org>
17293
17294         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
17295         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
17296         (AC_TYPE_LONG_LONG_INT): Use it.
17297         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
17298         it as well.
17299         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
17300         to m4/longlong.m4.
17301         * modules/stdint (Files): Remove m4/ulonglong.m4.
17302         * modules/strtoull (Files): Use m4/longlong.m4 instead of
17303         m4/ulonglong.m4.
17304         * modules/strtoumax (Files): Likewise.
17305
17306 2007-10-30  Bruno Haible  <bruno@clisp.org>
17307
17308         * modules/xvasprintf-posix: New file.
17309         Suggested by Eric Blake.
17310
17311 2007-10-30  Bruno Haible  <bruno@clisp.org>
17312
17313         * modules/xprintf-posix-tests: New file.
17314         * tests/test-xprintf-posix.sh: New file.
17315         * tests/test-xprintf-posix.c: New file.
17316         * tests/test-xfprintf-posix.c: New file.
17317
17318         * modules/xprintf-posix: New file.
17319
17320 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17321
17322         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
17323         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
17324         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
17325
17326 2007-10-29  Bruno Haible  <bruno@clisp.org>
17327
17328         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
17329         contain the special marker '_cv_'.
17330         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17331         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17332         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17333         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17334         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17335         Reported by Ralf Wildenhues.
17336
17337 2007-10-29  Bruno Haible  <bruno@clisp.org>
17338
17339         * gnulib-tool (func_import): When --lgpl is not specified, set
17340         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
17341         GPLv3.
17342         Reported by Simon Josefsson.
17343
17344 2007-10-28  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
17347         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
17348         HAVE_DECL_ISFINITE.
17349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17350         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
17351         HAVE_DECL_ISFINITE.
17352
17353 2007-10-28  Bruno Haible  <bruno@clisp.org>
17354
17355         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
17356         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
17357
17358 2007-10-28  Bruno Haible  <bruno@clisp.org>
17359
17360         Fix link errors with Sun C 5.0 on Solaris 10.
17361         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
17362         function is declared but not present in the compiler's libm.
17363         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17364         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17365         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
17366         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
17367         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
17368         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
17369         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
17370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17371         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
17372         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
17373         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
17374         HAVE_DECL_FLOORL.
17375
17376 2007-10-28  Bruno Haible  <bruno@clisp.org>
17377
17378         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
17379         gl_FUNC_FLOORL. Cache the result.
17380         (gl_FUNC_FLOORL): Use it.
17381         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
17382         gl_FUNC_CEILL. Cache the result.
17383         (gl_FUNC_CEILL): Use it.
17384
17385         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
17386         gl_FUNC_FLOOR. Cache the result.
17387         (gl_FUNC_FLOOR): Use it.
17388         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
17389         gl_FUNC_CEIL. Cache the result.
17390         (gl_FUNC_CEIL): Use it.
17391
17392         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
17393         gl_FUNC_FLOORF. Cache the result.
17394         (gl_FUNC_FLOORF): Use it.
17395         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
17396         gl_FUNC_CEILF. Cache the result.
17397         (gl_FUNC_CEILF): Use it.
17398
17399 2007-10-28  Bruno Haible  <bruno@clisp.org>
17400
17401         * gnulib-tool: Allow specifying the LGPL version number through
17402         --lgpl=2 or --lgpl=3.
17403         (func_usage): Document --lgpl with argument.
17404         Handle --lgpl=... arguments.
17405         (func_import): Recognize also gl_LGPL calls with an argument. When
17406         --lgpl=2 is used and the module's license is just LGPL, report an
17407         error. Set sed_transform_lib_file according to the lgpl variable. In
17408         the generated files, use --lgpl or gl_LGPL invocations with argument,
17409         if necessary.
17410         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
17411         an LGPv2+ license.
17412         * doc/gnulib-tool.texi (Modified imports): Update explanation of
17413         gl_LGPL macro.
17414
17415 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17416             Bruno Haible  <bruno@clisp.org>
17417
17418         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
17419         (u16_uctomb_aux): Likewise.
17420         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
17421         !HAVE_INLINE.
17422         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
17423
17424 2007-10-28  Bruno Haible  <bruno@clisp.org>
17425
17426         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
17427         Invoke AM_GETTEXT_OPTION if it exists.
17428         * modules/vasprintf: Likewise.
17429         * modules/verror: Likewise.
17430         * modules/xprintf: Likewise.
17431         * modules/xvasprintf: Likewise.
17432
17433 2007-10-27  Ben Pfaff  <blp@gnu.org>
17434
17435         * lib/math.in.h: Define isfinite macro and prototypes for
17436         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
17437         implementations.
17438         * m4/math_h.m4: New substitutions for isfinite module.
17439         * lib/isfinite.c: New file.
17440         * m4/isfinite.m4: New file.
17441         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
17442         * modules/isfinite: New file.
17443         * modules/isfinite-tests: New file.
17444         * tests/tests-isfinite.c: New file.
17445         * doc/functions/isfinite.texi: Mention isfinite module.
17446         * MODULES.html.sh: Mention new module.
17447
17448 2007-10-27  Ben Pfaff  <blp@gnu.org>
17449
17450         Ralf Wildenhues reported that Tru64 4.0D declares the round
17451         functions but does not have definitions.
17452         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
17453         cannot be found in any library, set the output variable to
17454         "missing" instead of "".
17455         * m4/round.m4: Also use our substitute if we cannot find round in
17456         any library, even if it is declared.
17457         * m4/roundf.m4: Likewise for roundf.
17458         * m4/roundl.m4: Likewise for roundl.
17459         * lib/math.in.h: Undefine roundf, round, roundl before defining
17460         their replacements, to allow for hypothetical systems where these
17461         may be defined as macros but not available in libraries.
17462
17463 2007-10-27  Bruno Haible  <bruno@clisp.org>
17464
17465         * doc/gnulib.texi: Invoke @firstparagraphindent.
17466         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
17467         changes in gnulib.
17468         (Source changes): New section.
17469
17470 2007-10-26  Bruno Haible  <bruno@clisp.org>
17471
17472         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
17473         borrowed from autoconf.
17474
17475 2007-10-26  Bruno Haible  <bruno@clisp.org>
17476
17477         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
17478         strerror returned the empty string. Needed on HP-UX 11.00.
17479
17480 2007-10-24  Micah Cowan  <micah@cowan.name>
17481
17482         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
17483         * build-aux/bootstrap: Remove support for now-unnecessary option,
17484         --cvs-user, and envvars CVS_USER, CVS_RSH.
17485
17486 2007-10-24  Jim Meyering  <meyering@redhat.com>
17487
17488         Avoid diagnostics from sha1sum when there is no cached checksum.
17489         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
17490         if the po.s1 file hasn't been created yet.
17491
17492         * build-aux/bootstrap: Sync from coreutils:
17493         2007-10-24  Jim Meyering  <meyering@redhat.com>
17494         Get gnulib from the git repository, not from an obsolete cvs one.
17495         * build-aux/bootstrap: Suggestion from Micah Cowan.
17496         2007-10-04  Jim Meyering  <jim@meyering.net>
17497         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
17498         (update_po_files): Work also when there are no .po files in po/.
17499
17500 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17501
17502         * README: Append ".git" to git and cg examples.
17503         Problem reported by Benoit Sigoure.
17504
17505 2007-10-23  Micah Cowan  <micah@cowan.name>
17506
17507         * users.txt: Add wget.
17508
17509 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17510
17511         Fix linking of some unistdio tests on FreeBSD.
17512         * modules/unistdio/u16-vsnprintf-tests
17513         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
17514         * modules/unistdio/u16-vsprintf-tests
17515         (test_u16_vsnprintf1_LDADD): Likewise.
17516         * modules/unistdio/u32-vsnprintf-tests
17517         (test_u32_vsnprintf1_LDADD): Likewise.
17518         * modules/unistdio/u32-vsprintf-tests
17519         (test_u32_vsprintf1_LDADD): Likewise.
17520         * modules/unistdio/u8-vsnprintf-tests
17521         (test_u8_vsnprintf1_LDADD): Likewise.
17522         * modules/unistdio/u8-vsprintf-tests
17523         (test_u8_vsprintf1_LDADD): Likewise.
17524         * modules/unistdio/ulc-vsnprintf-tests
17525         (test_ulc_vsnprintf1_LDADD): Likewise.
17526         * modules/unistdio/ulc-vsprintf-tests
17527         (test_ulc_vsprintf1_LDADD): Likewise.
17528
17529         Fix linking of some uniconv tests on FreeBSD.
17530         * modules/uniconv/u16-conv-from-enc-tests
17531         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
17532         * modules/uniconv/u16-conv-to-enc-tests
17533         (test_u16_conv_to_enc_LDADD): Likewise.
17534         * modules/uniconv/u16-strconv-from-enc-tests
17535         (test_u16_strconv_from_enc_LDADD): Likewise.
17536         * modules/uniconv/u16-strconv-to-enc-tests
17537         (test_u16_strconv_to_enc_LDADD): Likewise.
17538         * modules/uniconv/u32-conv-from-enc-tests
17539         (test_u32_conv_from_enc_LDADD): Likewise.
17540         * modules/uniconv/u32-conv-to-enc-tests
17541         (test_u32_conv_to_enc_LDADD): Likewise.
17542         * modules/uniconv/u32-strconv-from-enc-tests
17543         (test_u32_strconv_from_enc_LDADD): Likewise.
17544         * modules/uniconv/u32-strconv-to-enc-tests
17545         (test_u32_strconv_to_enc_LDADD): Likewise.
17546         * modules/uniconv/u8-conv-from-enc-tests
17547         (test_u8_conv_from_enc_LDADD): Likewise.
17548         * modules/uniconv/u8-conv-to-enc-tests
17549         (test_u8_conv_to_enc_LDADD): Likewise.
17550         * modules/uniconv/u8-strconv-from-enc-tests
17551         (test_u8_strconv_from_enc_LDADD): Likewise.
17552         * modules/uniconv/u8-strconv-to-enc-tests
17553         (test_u8_strconv_to_enc_LDADD): Likewise.
17554
17555 2007-10-22  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
17558         size.
17559
17560 2007-10-22  Eric Blake  <ebb9@byu.net>
17561
17562         Tweak x*printf documentation.
17563         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
17564         variable name and comments.
17565         Suggested by Bruno Haible.
17566
17567 2007-10-22  Bruno Haible  <bruno@clisp.org>
17568
17569         * lib/acl.c (copy_acl): Fix file name in comment.
17570
17571 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17572
17573         Fix Tru64 problem with stdbool.h.
17574         * lib/stdbool.in.h (false, true):
17575         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
17576         Don't declare as an enum in this situation; it runs afoul of Tru64.
17577         Problem reported by Steven M. Schweda in
17578         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
17579
17580 2007-10-22  Eric Blake  <ebb9@byu.net>
17581
17582         Also wrap vf?printf.
17583         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
17584         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
17585         (xvprintf, xvfprintf): New functions.
17586
17587 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17588
17589         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
17590         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
17591
17592         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
17593         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
17594
17595 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
17598         by Bruno Haible.
17599
17600 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17601
17602         * lib/getloadavg.c
17603         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
17604         Undef `sys' after including sys/table.h, for Tru64 4.0D.
17605
17606         * tests/test-i-ring.c: Work for C89.
17607
17608 2007-10-22  Bruno Haible  <bruno@clisp.org>
17609
17610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
17611         -1u, in preprocessor expression, so that we don't test for the bug
17612         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
17613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
17614
17615 2007-10-22  Eric Blake  <ebb9@byu.net>
17616
17617         * tests/test-yesno.sh: Silence stderr during test.
17618
17619 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17620
17621         * modules/crypto/gc-camellia: New file.
17622
17623         * m4/gc-camellia.m4: New file.
17624
17625         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
17626
17627         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
17628
17629 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17630
17631         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
17632         --help to stdout.  Reported by sms@antinode.org (Steven
17633         M. Schweda).
17634
17635 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17636
17637         * users.txt: Fix link to libksba.
17638
17639 2007-10-21  Ben Pfaff  <blp@gnu.org>
17640
17641         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
17642         round.c roundf implementation that depends on floorf and ceilf to
17643         be tested unconditionally.
17644
17645 2007-10-21  Ben Pfaff  <blp@gnu.org>
17646
17647         * m4/check-libm-func.m4: Removed.
17648         * m4/check-math-lib.m4: New file.
17649         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
17650         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
17651         definition and lack of AC_LIBOBJ([roundf]).
17652         * m4/roundl.m4: Ditto, and similarly for roundl.
17653         * modules/round: Reference new m4 file.
17654         * modules/roundf: Ditto.
17655         * modules/roundl: Ditto.
17656         * tests/test-round2.c (main): Use ROUND instead of round.
17657         Bug report from Bruno Haible.
17658
17659 2007-10-21  Bruno Haible  <bruno@clisp.org>
17660
17661         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
17662         context.
17663
17664 2007-10-21  Bruno Haible  <bruno@clisp.org>
17665
17666         * tests/test-wcwidth.c (main): Allow negative result for some control
17667         characters.
17668
17669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
17670         Needed on OSF/1 5.1.
17671
17672 2007-10-21  Bruno Haible  <bruno@clisp.org>
17673
17674         * tests/test-floorf1.c: Include isnanf.h.
17675         (main): Use isnanf() instead of isnan().
17676         * tests/test-ceilf1.c: Include isnanf.h.
17677         (main): Use isnanf() instead of isnan().
17678         * tests/test-truncf1.c: Include isnanf.h.
17679         (main): Use isnanf() instead of isnan().
17680         * tests/test-roundf1.c: Include isnanf.h.
17681         (main): Use isnanf() instead of isnan().
17682
17683 2007-10-21  Eric Blake  <ebb9@byu.net>
17684
17685         * users.txt: Update URL for m4.
17686
17687 2007-10-21  Bruno Haible  <bruno@clisp.org>
17688
17689         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
17690
17691 2007-10-21  Bruno Haible  <bruno@clisp.org>
17692
17693         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
17694         Git's management files if the CVS files are not present.
17695
17696 2007-10-20  Bruno Haible  <bruno@clisp.org>
17697
17698         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
17699         gcc-3.4.x.
17700
17701 2007-10-20  Ben Pfaff  <blp@gnu.org>
17702
17703         * lib/math.in.h: Declare round, roundf, roundl if we are providing
17704         implementations.
17705         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
17706         * lib/round.c: New file.
17707         * lib/roundf.c: New file.
17708         * lib/roundl.c: New file.
17709         * m4/round.m4: New file.
17710         * m4/roundf.m4: New file.
17711         * m4/roundl.m4: New file.
17712         * m4/check-libm-func-m4: New file.
17713         * modules/math: Replace round, roundf, roundl related @VARS@ in
17714         math.in.h.
17715         * modules/round: New file.
17716         * modules/round-tests: New file.
17717         * modules/roundf: New file.
17718         * modules/roundf-tests: New file.
17719         * modules/roundl: New file.
17720         * modules/roundl-tests: New file.
17721         * tests/test-round1.c: New file.
17722         * tests/test-round2.c: New file.
17723         * tests/test-roundf1.c: New file.
17724         * tests/test-roundf2.c: New file.
17725         * tests/test-roundl.c: New file.
17726         * doc/functions/round.texi: Mention round module.
17727         * doc/functions/roundf.texi: Mention roundf module.
17728         * doc/functions/roundl.texi: Mention roundl module.
17729         * MODULES.html.sh: Mention new modules.
17730         Thanks to Bruno Haible for suggestions.
17731
17732 2007-10-20  Jim Meyering  <meyering@redhat.com>
17733
17734         * lib/xprintf.c: Include <config.h> unconditionally.
17735
17736         Change xprintf's license to GPL.
17737         * modules/xprintf (License): s/LGPL/GPL/, since this module
17738         depends on modules (exit and exitfail) which are GPL.
17739         Suggestion from Bruno Haible.
17740
17741         xprintf fixes.
17742         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
17743         Use a clearer diagnostic.
17744         Patch from Bruno Haible.
17745
17746 2007-10-20  Bruno Haible  <bruno@clisp.org>
17747
17748         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
17749         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
17750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17751
17752 2007-10-20  Bruno Haible  <bruno@clisp.org>
17753
17754         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
17755         precision in the comparison result > x - 1 or similar.
17756         * tests/test-ceilf2.c (correct_result_p): Likewise.
17757         * tests/test-truncf2.c (correct_result_p): Likewise.
17758         * tests/test-trunc2.c (correct_result_p): Likewise.
17759         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17760
17761 2007-10-20  Bruno Haible  <bruno@clisp.org>
17762
17763         * modules/ceil: New file.
17764         * m4/ceil.m4: New file.
17765         * doc/functions/ceil.texi: Mention the 'ceil' module.
17766
17767 2007-10-20  Bruno Haible  <bruno@clisp.org>
17768
17769         * modules/floor: New file.
17770         * m4/floor.m4: New file.
17771         * doc/functions/floor.texi: Mention the 'floor' module.
17772
17773 2007-10-20  Bruno Haible  <bruno@clisp.org>
17774
17775         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
17776         of %a.
17777         * modules/floorf-tests (Depends-on): Likewise.
17778         * modules/truncf-tests (Depends-on): Likewise.
17779         * modules/trunc-tests (Depends-on): Likewise.
17780         Reported by Ben Pfaff.
17781
17782 2007-10-19  Jim Meyering  <meyering@redhat.com>
17783
17784         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
17785         Don't bother testing specific errno values.  Just test ferror.
17786
17787         New module: xprintf
17788         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
17789
17790 2007-10-19  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
17793         syntax.
17794         * modules/javaexec (Makefile.am): Likewise.
17795         * modules/relocatable-prog (Makefile.am): Likewise.
17796         Suggested by Jim Meyering.
17797
17798 2007-10-18  Bruno Haible  <bruno@clisp.org>
17799
17800         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
17801         Reported by Jim Meyering.
17802
17803 2007-10-18  Eric Blake  <ebb9@byu.net>
17804
17805         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
17806
17807 2007-10-18  Bruno Haible  <bruno@clisp.org>
17808
17809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
17810         the format string into writable memory. Needed in Fortify conditions.
17811
17812 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
17813             Bruno Haible  <bruno@clisp.org>
17814
17815         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
17816         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
17817         * modules/trim (Depends-on): Add mbchar.
17818         (configure.ac): Add gl_FUNC_MBRTOWC.
17819         (Makefile.am): Augment lib_SOURCES.
17820
17821 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17822
17823         Modify glob.c to use fstatat and dirfd, to simplify it.
17824         Suggested by Eric Blake.
17825         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
17826         Don't include <stdbool.h>; not used.
17827         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
17828         (link_exists_p): Simplify implementation, since we can now assume
17829         dirfd and fstatat.
17830         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
17831
17832 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17833
17834         * gnulib-tool (func_get_dependencies): Fix sed script to
17835         match only tests.
17836
17837 2007-10-17  Bruno Haible  <bruno@clisp.org>
17838
17839         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
17840         allow locale names without encoding suffix.
17841         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17842         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17843
17844 2007-10-16  Bruno Haible  <bruno@clisp.org>
17845
17846         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
17847         * lib/getgroups.c (getgroups): Likewise.
17848         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
17849
17850 2007-10-16  Bruno Haible  <bruno@clisp.org>
17851
17852         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
17853         * modules/malloc-posix (License): Likewise.
17854         * modules/realloc-posix (License): Likewise.
17855         * modules/calloc-posix (License): Likewise.
17856         * modules/intprops (License): Change from GPL to LGPL, with
17857         Paul Eggert's approval.
17858
17859 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17860
17861         Merge glibc changes into lib/glob.c.
17862
17863         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
17864         2007-10-15 04:59:03 UTC.  Here are the changes:
17865
17866         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
17867
17868         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
17869
17870         * lib/glob.c: Add some branch prediction throughout.
17871
17872         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
17873
17874         [BZ #5103]
17875         * lib/glob.c (glob): Recognize patterns starting \/.
17876
17877         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
17878
17879         [BZ #3996]
17880         * lib/glob.c (attribute_hidden): Define if not defined.
17881         (glob): Unescape dirname, filename or username when needed and not
17882         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
17883         is NULL.  Handle unescaped [ in pattern without closing ].
17884         Don't pass GLOB_CHECK down to recursive glob for directories.
17885         (__glob_pattern_type): New function.
17886         (__glob_pattern_p): Implement using __glob_pattern_type.
17887         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
17888         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
17889         Remove unreachable code.
17890
17891         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
17892
17893         * lib/glob.c (glob_in_dir): Add some comments and asserts to
17894         explain why there are no leaks.
17895
17896         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
17897
17898         [BZ #3253]
17899         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
17900         time, rather allocate increasingly bigger arrays of pointers, if
17901         possible with alloca, if too large with malloc.
17902
17903 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
17906         Problem reported by H.Merijn Brand in
17907         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
17908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
17909         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
17910
17911 2007-10-15  Bruno Haible  <bruno@clisp.org>
17912
17913         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
17914         with explicit rpl_ prefix.
17915         * lib/fopen.c (fopen): Likewise.
17916         * lib/freopen.c (freopen): Likewise.
17917         * lib/iconv.c (iconv): Likewise.
17918         * lib/iconv_close.c (iconv_close): Likewise.
17919
17920 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17921
17922         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
17923
17924 2007-10-15  Bruno Haible  <bruno@clisp.org>
17925
17926         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
17927         <stddef.h> instead of <stdlib.h> since we only need NULL.
17928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17929
17930 2007-10-15  Bruno Haible  <bruno@clisp.org>
17931
17932         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
17933         Replace paragraph talking about LIBOBJS.
17934         Reported by Colin Watson <cjwatson@debian.org>.
17935
17936 2007-10-15  Bruno Haible  <bruno@clisp.org>
17937
17938         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
17939         <stdlib.h> before using NULL.
17940
17941 2007-10-15  Simon Josefsson  <simon@josefsson.org>
17942
17943         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
17944         Reported by Albert Chin <china@thewrittenword.com>.
17945
17946 2007-10-14  Bruno Haible  <bruno@clisp.org>
17947
17948         * modules/iconv_open-utf-tests: New file.
17949         * tests/test-iconv-utf.c: New file.
17950
17951         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
17952         * modules/iconv_open-utf: New file.
17953         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
17954         (iconv, iconv_close): New declarations.
17955         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
17956         be defined.
17957         (iconv_open): Add special handling of conversion between UTF-8 and
17958         UTF-{16,32}{BE,LE}.
17959         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
17960         * lib/iconv_close.c: New file.
17961         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
17962         gl_FUNC_ICONV_OPEN.
17963         (gl_FUNC_ICONV_OPEN): Use it.
17964         (gl_FUNC_ICONV_OPEN_UTF): New macro.
17965         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
17966         and REPLACE_ICONV_UTF.
17967         * modules/iconv_open (Depends-on): Add c-strcase.
17968         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
17969         ICONV_CONST.
17970         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
17971
17972 2007-10-13  Albert Chin  <china@thewrittenword.com>
17973             Bruno Haible  <bruno@clisp.org>
17974
17975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
17976         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
17977
17978 2007-10-13  Bruno Haible  <bruno@clisp.org>
17979
17980         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
17981         defined, use the ISO C99 inline semantics.
17982         * lib/argp.h (ARGP_EI): Likewise.
17983
17984 2007-10-13  Bruno Haible  <bruno@clisp.org>
17985
17986         Handle 'inline' change in gcc 4.3.0.
17987         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
17988         argp_fmtstream_write, argp_fmtstream_set_lmargin,
17989         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
17990         argp_fmtstream_point): Disable 'extern' declaration if the function
17991         definition is going to be provided inline.
17992         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
17993         semantics, not the ISO C99 inline semantics.
17994         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
17995         'extern' declaration if the function definition is going to be provided
17996         inline.
17997         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
17998         the GNU C inline semantics, not the ISO C99 inline semantics. With
17999         GCC 4.2, avoid a warning.
18000
18001 2007-10-13  Bruno Haible  <bruno@clisp.org>
18002
18003         * lib/freading.h (freading): Enable the use of __freading for
18004         glibc >= 2.7.
18005         * lib/freading.c (freading): Likewise.
18006
18007 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18008
18009         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
18010         "warning: C99 inline functions are not supported; using GNU89".
18011
18012 2007-10-12  Bruno Haible  <bruno@clisp.org>
18013
18014         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
18015         of 2.
18016         * tests/test-ceilf2.c: New file.
18017         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
18018
18019         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
18020         * modules/ceilf-tests: Update.
18021
18022 2007-10-12  Bruno Haible  <bruno@clisp.org>
18023
18024         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
18025         of 2.
18026         * tests/test-floorf2.c: New file.
18027         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
18028
18029         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
18030         * modules/floorf-tests: Update.
18031
18032 2007-10-12  Bruno Haible  <bruno@clisp.org>
18033
18034         * tests/test-trunc2.c: New file.
18035         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
18036
18037         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
18038         * modules/trunc-tests: Update.
18039
18040 2007-10-12  Bruno Haible  <bruno@clisp.org>
18041
18042         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
18043         of 2.
18044         * tests/test-truncf2.c: New file.
18045         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
18046
18047         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
18048         * modules/truncf-tests: Update.
18049
18050 2007-10-11  Eric Blake  <ebb9@byu.net>
18051
18052         Don't claim strerror is broken on Interix.
18053         * doc/functions/strerror.texi (strerror): Known broken systems are
18054         now Solaris 8, and not Interix.
18055         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
18056         Interix on cross-compile.
18057         Reported by Martin Koeppe in
18058         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
18059
18060 2007-10-11  Bruno Haible  <bruno@clisp.org>
18061
18062         * modules/i-ring-tests: New file.
18063         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
18064         instead of assert.
18065
18066 2007-10-11  Bruno Haible  <bruno@clisp.org>
18067
18068         * modules/filenamecat-tests: New file.
18069         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
18070         * lib/filenamecat.c: Remove test code.
18071
18072 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18073
18074         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
18075
18076         * lib/strerror.c: Include <string.h> always, to test interface,
18077         and to remove the need for the dummy.
18078         Include intprops.h to compute width instead of doing it ourselves
18079         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
18080         (strerror): Define it to return NULL if there's no system strerror.
18081         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
18082         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
18083         ancient pre-strerror Unix systems well any more.  Saying "unknown
18084         system error" is enough.
18085         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
18086         simpler strerror.c implementation.
18087         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
18088         Simplify the tests to reflect the simpler strerror implementation.
18089         * modules/strerror (Depends-on): Add intprops.
18090
18091 2007-10-09  Eric Blake  <ebb9@byu.net>
18092
18093         Silence test-fpending.
18094         * modules/fpending-tests (Files): Add wrapper script.
18095         * tests/test-fpending.sh: New file.
18096
18097 2007-10-09  Bruno Haible  <bruno@clisp.org>
18098
18099         * MODULES.html.sh (func_module): Don't create a hyperlink for
18100         function names like 'printf_frexp'.
18101         (Misc): Add crc, memxor.
18102         (Characteristics of floating types): New section.
18103         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
18104         isnanf-nolibm, signbit, trunc, truncf, truncl.
18105         (Enhancements for ISO C 99 functions): New subsection Input/output.
18106         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
18107         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
18108         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
18109         (Compatibility checks for POSIX:2001 functions): Add clock-time.
18110         (Enhancements for POSIX:2001 functions): Add chdir-long.
18111         (File system functions): Add areadlink, chdir-safer, read-file.
18112         Remove cycle-check.
18113         (File system as inode set): New section.
18114         (Date and time): Add gethrxtime.
18115         (Multithreading): Add openmp.
18116         (Internationalization functions): Add localename.
18117         (Unicode string functions): Add unistr/u*-mbsnlen.
18118         (Support for maintaining and releasing projects): Add git-version-gen.
18119         (Lone files): Remove directories.
18120
18121 2007-10-08  Ben Pfaff  <blp@gnu.org>
18122
18123         * lib/xmalloca.h: Fix typo in comment.
18124
18125 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18126
18127         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
18128         when avoiding problems with integer overflow.  Use a portable test
18129         instead.
18130
18131 2007-10-08  Simon Josefsson  <simon@josefsson.org>
18132
18133         * modules/dummy (License): Change to LGPLv2+.
18134         * modules/float (License): Likewise
18135         * modules/realloc (License): Likewise
18136         * modules/stdlib (License): Likewise
18137
18138 2007-10-07  Bruno Haible  <bruno@clisp.org>
18139
18140         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
18141         * floor.c (TWO_MANT_DIG): Likewise.
18142         * ceil.c (TWO_MANT_DIG): Likewise.
18143         Reported by Ben Pfaff.
18144
18145 2007-10-07  Bruno Haible  <bruno@clisp.org>
18146
18147         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
18148         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
18149         * lib/frexp.c (FUNC): Likewise.
18150         * lib/printf-frexp.h (printf_frexp): Likewise.
18151         * lib/printf-frexpl.h (printf_frexpl): Likewise.
18152         * lib/printf-frexp.c (FUNC): Likewise.
18153         Suggested by Jim Meyering.
18154
18155 2007-10-07  Jim Meyering  <meyering@redhat.com>
18156
18157         Make xnanosleep's integer overflow test more robust.
18158         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
18159         so that gcc-4.3.0 doesn't optimize away this test for overflow.
18160
18161 2007-10-07  Bruno Haible  <bruno@clisp.org>
18162
18163         * NEWS: Mention the license change.
18164
18165         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
18166         abbreviations in the modules files.
18167
18168         Change copyright notice from GPLv2+ to GPLv3+.
18169         * README: Change copyright notice.
18170         * MODULES.html.sh: Likewise.
18171         * build-aux/bootstrap.conf: Likewise.
18172         * build-aux/config.libpath: Likewise.
18173         * build-aux/csharpcomp.sh.in: Likewise.
18174         * build-aux/csharpexec.sh.in: Likewise.
18175         * build-aux/install-reloc: Likewise.
18176         * build-aux/javacomp.sh.in: Likewise.
18177         * build-aux/javaexec.sh.in: Likewise.
18178         * build-aux/ldd.sh.in: Likewise.
18179         * build-aux/reloc-ldflags: Likewise.
18180         * build-aux/relocatable.sh.in: Likewise.
18181         * build-aux/x-to-1.in: Likewise.
18182         * check-module: Likewise.
18183         * config/srclistvars.sh: Likewise.
18184         * gnulib-tool: Likewise.
18185         * lib/acl-internal.h: Likewise.
18186         * lib/acl.c: Likewise.
18187         * lib/acl.h: Likewise.
18188         * lib/acl_entries.c: Likewise.
18189         * lib/areadlink-with-size.c: Likewise.
18190         * lib/areadlink.c: Likewise.
18191         * lib/areadlink.h: Likewise.
18192         * lib/argmatch.c: Likewise.
18193         * lib/argmatch.h: Likewise.
18194         * lib/argp-ba.c: Likewise.
18195         * lib/argp-eexst.c: Likewise.
18196         * lib/argp-fmtstream.c: Likewise.
18197         * lib/argp-fmtstream.h: Likewise.
18198         * lib/argp-fs-xinl.c: Likewise.
18199         * lib/argp-help.c: Likewise.
18200         * lib/argp-namefrob.h: Likewise.
18201         * lib/argp-parse.c: Likewise.
18202         * lib/argp-pin.c: Likewise.
18203         * lib/argp-pv.c: Likewise.
18204         * lib/argp-pvh.c: Likewise.
18205         * lib/argp-xinl.c: Likewise.
18206         * lib/argp.h: Likewise.
18207         * lib/at-func.c: Likewise.
18208         * lib/atanl.c: Likewise.
18209         * lib/backupfile.c: Likewise.
18210         * lib/backupfile.h: Likewise.
18211         * lib/basename.c: Likewise.
18212         * lib/binary-io.h: Likewise.
18213         * lib/byteswap.in.h: Likewise.
18214         * lib/c-stack.c: Likewise.
18215         * lib/c-stack.h: Likewise.
18216         * lib/c-strcasestr.c: Likewise.
18217         * lib/c-strcasestr.h: Likewise.
18218         * lib/c-strstr.c: Likewise.
18219         * lib/c-strstr.h: Likewise.
18220         * lib/c-strtod.c: Likewise.
18221         * lib/calloc.c: Likewise.
18222         * lib/canon-host.c: Likewise.
18223         * lib/canon-host.h: Likewise.
18224         * lib/canonicalize-lgpl.c: Likewise.
18225         * lib/canonicalize.c: Likewise.
18226         * lib/canonicalize.h: Likewise.
18227         * lib/ceil.c: Likewise.
18228         * lib/ceilf.c: Likewise.
18229         * lib/ceill.c: Likewise.
18230         * lib/chdir-long.c: Likewise.
18231         * lib/chdir-long.h: Likewise.
18232         * lib/chdir-safer.c: Likewise.
18233         * lib/chdir-safer.h: Likewise.
18234         * lib/chown.c: Likewise.
18235         * lib/classpath.c: Likewise.
18236         * lib/classpath.h: Likewise.
18237         * lib/clean-temp.c: Likewise.
18238         * lib/clean-temp.h: Likewise.
18239         * lib/cloexec.c: Likewise.
18240         * lib/close-stream.c: Likewise.
18241         * lib/closein.c: Likewise.
18242         * lib/closein.h: Likewise.
18243         * lib/closeout.c: Likewise.
18244         * lib/closeout.h: Likewise.
18245         * lib/concat-filename.c: Likewise.
18246         * lib/copy-file.c: Likewise.
18247         * lib/copy-file.h: Likewise.
18248         * lib/count-one-bits.h: Likewise.
18249         * lib/crc.c: Likewise.
18250         * lib/crc.h: Likewise.
18251         * lib/creat-safer.c: Likewise.
18252         * lib/csharpcomp.c: Likewise.
18253         * lib/csharpcomp.h: Likewise.
18254         * lib/csharpexec.c: Likewise.
18255         * lib/csharpexec.h: Likewise.
18256         * lib/cycle-check.c: Likewise.
18257         * lib/cycle-check.h: Likewise.
18258         * lib/diacrit.c: Likewise.
18259         * lib/diacrit.h: Likewise.
18260         * lib/diffseq.h: Likewise.
18261         * lib/dirchownmod.c: Likewise.
18262         * lib/dirent.in.h: Likewise.
18263         * lib/dirfd.c: Likewise.
18264         * lib/dirfd.h: Likewise.
18265         * lib/dirname.c: Likewise.
18266         * lib/dirname.h: Likewise.
18267         * lib/dummy.c: Likewise.
18268         * lib/dup-safer.c: Likewise.
18269         * lib/dup2.c: Likewise.
18270         * lib/eealloc.h: Likewise.
18271         * lib/error.c: Likewise.
18272         * lib/error.h: Likewise.
18273         * lib/euidaccess.c: Likewise.
18274         * lib/exclude.c: Likewise.
18275         * lib/exclude.h: Likewise.
18276         * lib/execute.c: Likewise.
18277         * lib/execute.h: Likewise.
18278         * lib/exitfail.c: Likewise.
18279         * lib/exitfail.h: Likewise.
18280         * lib/expl.c: Likewise.
18281         * lib/fatal-signal.c: Likewise.
18282         * lib/fatal-signal.h: Likewise.
18283         * lib/fbufmode.c: Likewise.
18284         * lib/fbufmode.h: Likewise.
18285         * lib/fchdir.c: Likewise.
18286         * lib/fchmodat.c: Likewise.
18287         * lib/fchownat.c: Likewise.
18288         * lib/fcntl--.h: Likewise.
18289         * lib/fcntl-safer.h: Likewise.
18290         * lib/fcntl.in.h: Likewise.
18291         * lib/fd-safer.c: Likewise.
18292         * lib/fflush.c: Likewise.
18293         * lib/file-has-acl.c: Likewise.
18294         * lib/file-set.c: Likewise.
18295         * lib/file-type.c: Likewise.
18296         * lib/file-type.h: Likewise.
18297         * lib/fileblocks.c: Likewise.
18298         * lib/filemode.c: Likewise.
18299         * lib/filemode.h: Likewise.
18300         * lib/filename.h: Likewise.
18301         * lib/filenamecat.c: Likewise.
18302         * lib/filenamecat.h: Likewise.
18303         * lib/findprog.c: Likewise.
18304         * lib/findprog.h: Likewise.
18305         * lib/float.in.h: Likewise.
18306         * lib/floor.c: Likewise.
18307         * lib/floorf.c: Likewise.
18308         * lib/floorl.c: Likewise.
18309         * lib/fopen-safer.c: Likewise.
18310         * lib/fopen.c: Likewise.
18311         * lib/fpending.c: Likewise.
18312         * lib/fpending.h: Likewise.
18313         * lib/fprintf.c: Likewise.
18314         * lib/fprintftime.h: Likewise.
18315         * lib/fpucw.h: Likewise.
18316         * lib/fpurge.c: Likewise.
18317         * lib/fpurge.h: Likewise.
18318         * lib/freadable.c: Likewise.
18319         * lib/freadable.h: Likewise.
18320         * lib/freadahead.c: Likewise.
18321         * lib/freadahead.h: Likewise.
18322         * lib/freading.c: Likewise.
18323         * lib/freading.h: Likewise.
18324         * lib/free.c: Likewise.
18325         * lib/freopen.c: Likewise.
18326         * lib/frexp.c: Likewise.
18327         * lib/frexpl.c: Likewise.
18328         * lib/fseek.c: Likewise.
18329         * lib/fseterr.c: Likewise.
18330         * lib/fseterr.h: Likewise.
18331         * lib/fstatat.c: Likewise.
18332         * lib/fstrcmp.c: Likewise.
18333         * lib/fstrcmp.h: Likewise.
18334         * lib/fsusage.c: Likewise.
18335         * lib/fsusage.h: Likewise.
18336         * lib/ftell.c: Likewise.
18337         * lib/ftello.c: Likewise.
18338         * lib/fts-cycle.c: Likewise.
18339         * lib/fts.c: Likewise.
18340         * lib/fts_.h: Likewise.
18341         * lib/full-read.c: Likewise.
18342         * lib/full-read.h: Likewise.
18343         * lib/full-write.c: Likewise.
18344         * lib/full-write.h: Likewise.
18345         * lib/fwritable.c: Likewise.
18346         * lib/fwritable.h: Likewise.
18347         * lib/fwriteerror.c: Likewise.
18348         * lib/fwriteerror.h: Likewise.
18349         * lib/fwriting.c: Likewise.
18350         * lib/fwriting.h: Likewise.
18351         * lib/gcd.c: Likewise.
18352         * lib/gcd.h: Likewise.
18353         * lib/getcwd.c: Likewise.
18354         * lib/getdate.h: Likewise.
18355         * lib/getdate.y: Likewise.
18356         * lib/getdomainname.c: Likewise.
18357         * lib/getdomainname.h: Likewise.
18358         * lib/getgroups.c: Likewise.
18359         * lib/gethostname.c: Likewise.
18360         * lib/gethrxtime.c: Likewise.
18361         * lib/gethrxtime.h: Likewise.
18362         * lib/getloadavg.c: Likewise.
18363         * lib/getndelim2.c: Likewise.
18364         * lib/getndelim2.h: Likewise.
18365         * lib/getnline.c: Likewise.
18366         * lib/getnline.h: Likewise.
18367         * lib/getopt.c: Likewise.
18368         * lib/getopt.in.h: Likewise.
18369         * lib/getopt1.c: Likewise.
18370         * lib/getopt_int.h: Likewise.
18371         * lib/getpagesize.h: Likewise.
18372         * lib/getsubopt.c: Likewise.
18373         * lib/gettime.c: Likewise.
18374         * lib/getugroups.c: Likewise.
18375         * lib/getugroups.h: Likewise.
18376         * lib/getusershell.c: Likewise.
18377         * lib/gl_anyavltree_list1.h: Likewise.
18378         * lib/gl_anyavltree_list2.h: Likewise.
18379         * lib/gl_anyhash_list1.h: Likewise.
18380         * lib/gl_anyhash_list2.h: Likewise.
18381         * lib/gl_anylinked_list1.h: Likewise.
18382         * lib/gl_anylinked_list2.h: Likewise.
18383         * lib/gl_anyrbtree_list1.h: Likewise.
18384         * lib/gl_anyrbtree_list2.h: Likewise.
18385         * lib/gl_anytree_list1.h: Likewise.
18386         * lib/gl_anytree_list2.h: Likewise.
18387         * lib/gl_anytree_oset.h: Likewise.
18388         * lib/gl_anytreehash_list1.h: Likewise.
18389         * lib/gl_anytreehash_list2.h: Likewise.
18390         * lib/gl_array_list.c: Likewise.
18391         * lib/gl_array_list.h: Likewise.
18392         * lib/gl_array_oset.c: Likewise.
18393         * lib/gl_array_oset.h: Likewise.
18394         * lib/gl_avltree_list.c: Likewise.
18395         * lib/gl_avltree_list.h: Likewise.
18396         * lib/gl_avltree_oset.c: Likewise.
18397         * lib/gl_avltree_oset.h: Likewise.
18398         * lib/gl_avltreehash_list.c: Likewise.
18399         * lib/gl_avltreehash_list.h: Likewise.
18400         * lib/gl_carray_list.c: Likewise.
18401         * lib/gl_carray_list.h: Likewise.
18402         * lib/gl_linked_list.c: Likewise.
18403         * lib/gl_linked_list.h: Likewise.
18404         * lib/gl_linkedhash_list.c: Likewise.
18405         * lib/gl_linkedhash_list.h: Likewise.
18406         * lib/gl_list.c: Likewise.
18407         * lib/gl_list.h: Likewise.
18408         * lib/gl_oset.c: Likewise.
18409         * lib/gl_oset.h: Likewise.
18410         * lib/gl_rbtree_list.c: Likewise.
18411         * lib/gl_rbtree_list.h: Likewise.
18412         * lib/gl_rbtree_oset.c: Likewise.
18413         * lib/gl_rbtree_oset.h: Likewise.
18414         * lib/gl_rbtreehash_list.c: Likewise.
18415         * lib/gl_rbtreehash_list.h: Likewise.
18416         * lib/gl_sublist.c: Likewise.
18417         * lib/gl_sublist.h: Likewise.
18418         * lib/group-member.c: Likewise.
18419         * lib/group-member.h: Likewise.
18420         * lib/hard-locale.c: Likewise.
18421         * lib/hard-locale.h: Likewise.
18422         * lib/hash-pjw.c: Likewise.
18423         * lib/hash-pjw.h: Likewise.
18424         * lib/hash-triple.c: Likewise.
18425         * lib/hash.c: Likewise.
18426         * lib/hash.h: Likewise.
18427         * lib/human.c: Likewise.
18428         * lib/human.h: Likewise.
18429         * lib/i-ring.c: Likewise.
18430         * lib/i-ring.h: Likewise.
18431         * lib/idcache.c: Likewise.
18432         * lib/imaxabs.c: Likewise.
18433         * lib/imaxdiv.c: Likewise.
18434         * lib/inet_pton.c: Likewise.
18435         * lib/inet_pton.h: Likewise.
18436         * lib/intprops.h: Likewise.
18437         * lib/inttostr.c: Likewise.
18438         * lib/inttostr.h: Likewise.
18439         * lib/inttypes.in.h: Likewise.
18440         * lib/isapipe.c: Likewise.
18441         * lib/isdir.c: Likewise.
18442         * lib/isnan.c: Likewise.
18443         * lib/isnan.h: Likewise.
18444         * lib/isnanf.c: Likewise.
18445         * lib/isnanf.h: Likewise.
18446         * lib/isnanl-nolibm.h: Likewise.
18447         * lib/isnanl.c: Likewise.
18448         * lib/isnanl.h: Likewise.
18449         * lib/javacomp.c: Likewise.
18450         * lib/javacomp.h: Likewise.
18451         * lib/javaexec.c: Likewise.
18452         * lib/javaexec.h: Likewise.
18453         * lib/javaversion.c: Likewise.
18454         * lib/javaversion.h: Likewise.
18455         * lib/javaversion.java: Likewise.
18456         * lib/lbrkprop.h: Likewise.
18457         * lib/lchmod.h: Likewise.
18458         * lib/lchown.c: Likewise.
18459         * lib/ldexpl.c: Likewise.
18460         * lib/linebreak.c: Likewise.
18461         * lib/linebreak.h: Likewise.
18462         * lib/linebuffer.c: Likewise.
18463         * lib/linebuffer.h: Likewise.
18464         * lib/locale.in.h: Likewise.
18465         * lib/logl.c: Likewise.
18466         * lib/long-options.c: Likewise.
18467         * lib/long-options.h: Likewise.
18468         * lib/lstat.c: Likewise.
18469         * lib/lstat.h: Likewise.
18470         * lib/math.in.h: Likewise.
18471         * lib/mbchar.c: Likewise.
18472         * lib/mbchar.h: Likewise.
18473         * lib/mbfile.h: Likewise.
18474         * lib/mbiter.h: Likewise.
18475         * lib/mbscasecmp.c: Likewise.
18476         * lib/mbscasestr.c: Likewise.
18477         * lib/mbschr.c: Likewise.
18478         * lib/mbscspn.c: Likewise.
18479         * lib/mbslen.c: Likewise.
18480         * lib/mbsncasecmp.c: Likewise.
18481         * lib/mbsnlen.c: Likewise.
18482         * lib/mbspbrk.c: Likewise.
18483         * lib/mbspcasecmp.c: Likewise.
18484         * lib/mbsrchr.c: Likewise.
18485         * lib/mbssep.c: Likewise.
18486         * lib/mbsspn.c: Likewise.
18487         * lib/mbsstr.c: Likewise.
18488         * lib/mbstok_r.c: Likewise.
18489         * lib/mbswidth.c: Likewise.
18490         * lib/mbswidth.h: Likewise.
18491         * lib/mbuiter.h: Likewise.
18492         * lib/memcasecmp.c: Likewise.
18493         * lib/memcasecmp.h: Likewise.
18494         * lib/memchr.c: Likewise.
18495         * lib/memcmp.c: Likewise.
18496         * lib/memcoll.c: Likewise.
18497         * lib/memcoll.h: Likewise.
18498         * lib/memcpy.c: Likewise.
18499         * lib/memrchr.c: Likewise.
18500         * lib/mkancesdirs.c: Likewise.
18501         * lib/mkdir-p.c: Likewise.
18502         * lib/mkdir-p.h: Likewise.
18503         * lib/mkdir.c: Likewise.
18504         * lib/mkdirat.c: Likewise.
18505         * lib/mkdtemp.c: Likewise.
18506         * lib/mkstemp-safer.c: Likewise.
18507         * lib/mkstemp.c: Likewise.
18508         * lib/modechange.c: Likewise.
18509         * lib/modechange.h: Likewise.
18510         * lib/mountlist.c: Likewise.
18511         * lib/mountlist.h: Likewise.
18512         * lib/mpsort.c: Likewise.
18513         * lib/nanosleep.c: Likewise.
18514         * lib/obstack.c: Likewise.
18515         * lib/obstack.h: Likewise.
18516         * lib/open-safer.c: Likewise.
18517         * lib/open.c: Likewise.
18518         * lib/openat-die.c: Likewise.
18519         * lib/openat-priv.h: Likewise.
18520         * lib/openat-proc.c: Likewise.
18521         * lib/openat.c: Likewise.
18522         * lib/openat.h: Likewise.
18523         * lib/pagealign_alloc.c: Likewise.
18524         * lib/pagealign_alloc.h: Likewise.
18525         * lib/physmem.c: Likewise.
18526         * lib/physmem.h: Likewise.
18527         * lib/pipe-safer.c: Likewise.
18528         * lib/pipe.c: Likewise.
18529         * lib/pipe.h: Likewise.
18530         * lib/posixtm.c: Likewise.
18531         * lib/posixtm.h: Likewise.
18532         * lib/posixver.c: Likewise.
18533         * lib/printf-frexp.c: Likewise.
18534         * lib/printf-frexp.h: Likewise.
18535         * lib/printf-frexpl.c: Likewise.
18536         * lib/printf-frexpl.h: Likewise.
18537         * lib/printf.c: Likewise.
18538         * lib/progname.c: Likewise.
18539         * lib/progname.h: Likewise.
18540         * lib/progreloc.c: Likewise.
18541         * lib/putenv.c: Likewise.
18542         * lib/quote.c: Likewise.
18543         * lib/quote.h: Likewise.
18544         * lib/quotearg.c: Likewise.
18545         * lib/quotearg.h: Likewise.
18546         * lib/raise.c: Likewise.
18547         * lib/readline.c: Likewise.
18548         * lib/readline.h: Likewise.
18549         * lib/readlink.c: Likewise.
18550         * lib/readtokens.c: Likewise.
18551         * lib/readtokens.h: Likewise.
18552         * lib/readtokens0.c: Likewise.
18553         * lib/readtokens0.h: Likewise.
18554         * lib/readutmp.c: Likewise.
18555         * lib/readutmp.h: Likewise.
18556         * lib/realloc.c: Likewise.
18557         * lib/relocwrapper.c: Likewise.
18558         * lib/rename-dest-slash.c: Likewise.
18559         * lib/rename.c: Likewise.
18560         * lib/rmdir.c: Likewise.
18561         * lib/rpmatch.c: Likewise.
18562         * lib/safe-read.c: Likewise.
18563         * lib/safe-read.h: Likewise.
18564         * lib/safe-write.c: Likewise.
18565         * lib/safe-write.h: Likewise.
18566         * lib/same-inode.h: Likewise.
18567         * lib/same.c: Likewise.
18568         * lib/same.h: Likewise.
18569         * lib/save-cwd.c: Likewise.
18570         * lib/save-cwd.h: Likewise.
18571         * lib/savedir.c: Likewise.
18572         * lib/savedir.h: Likewise.
18573         * lib/savewd.c: Likewise.
18574         * lib/savewd.h: Likewise.
18575         * lib/search.in.h: Likewise.
18576         * lib/setenv.c: Likewise.
18577         * lib/setenv.h: Likewise.
18578         * lib/settime.c: Likewise.
18579         * lib/sh-quote.c: Likewise.
18580         * lib/sh-quote.h: Likewise.
18581         * lib/sig2str.c: Likewise.
18582         * lib/sig2str.h: Likewise.
18583         * lib/signal.in.h: Likewise.
18584         * lib/signbitd.c: Likewise.
18585         * lib/signbitf.c: Likewise.
18586         * lib/signbitl.c: Likewise.
18587         * lib/sigprocmask.c: Likewise.
18588         * lib/sincosl.c: Likewise.
18589         * lib/sleep.c: Likewise.
18590         * lib/sprintf.c: Likewise.
18591         * lib/sqrtl.c: Likewise.
18592         * lib/stat-time.h: Likewise.
18593         * lib/stdio--.h: Likewise.
18594         * lib/stdio-safer.h: Likewise.
18595         * lib/stdlib--.h: Likewise.
18596         * lib/stdlib-safer.h: Likewise.
18597         * lib/stdlib.in.h: Likewise.
18598         * lib/stpcpy.c: Likewise.
18599         * lib/stpncpy.c: Likewise.
18600         * lib/strchrnul.c: Likewise.
18601         * lib/strcspn.c: Likewise.
18602         * lib/strerror.c: Likewise.
18603         * lib/strftime.c: Likewise.
18604         * lib/strftime.h: Likewise.
18605         * lib/striconveh.c: Likewise.
18606         * lib/striconveh.h: Likewise.
18607         * lib/striconveha.c: Likewise.
18608         * lib/striconveha.h: Likewise.
18609         * lib/stripslash.c: Likewise.
18610         * lib/strnlen1.c: Likewise.
18611         * lib/strnlen1.h: Likewise.
18612         * lib/strtod.c: Likewise.
18613         * lib/strtoimax.c: Likewise.
18614         * lib/strtok_r.c: Likewise.
18615         * lib/strtol.c: Likewise.
18616         * lib/strtoll.c: Likewise.
18617         * lib/strtoul.c: Likewise.
18618         * lib/strtoull.c: Likewise.
18619         * lib/sysexits.in.h: Likewise.
18620         * lib/tempname.c: Likewise.
18621         * lib/tempname.h: Likewise.
18622         * lib/timespec.h: Likewise.
18623         * lib/tls.c: Likewise.
18624         * lib/tls.h: Likewise.
18625         * lib/tmpdir.c: Likewise.
18626         * lib/tmpdir.h: Likewise.
18627         * lib/tmpfile-safer.c: Likewise.
18628         * lib/tmpfile.c: Likewise.
18629         * lib/trigl.c: Likewise.
18630         * lib/trigl.h: Likewise.
18631         * lib/trim.c: Likewise.
18632         * lib/trim.h: Likewise.
18633         * lib/trunc.c: Likewise.
18634         * lib/truncf.c: Likewise.
18635         * lib/truncl.c: Likewise.
18636         * lib/tsearch.c: Likewise.
18637         * lib/unicodeio.c: Likewise.
18638         * lib/unicodeio.h: Likewise.
18639         * lib/unistd--.h: Likewise.
18640         * lib/unistd-safer.h: Likewise.
18641         * lib/unistdio/ulc-fprintf.c: Likewise.
18642         * lib/unistdio/ulc-vfprintf.c: Likewise.
18643         * lib/unlinkdir.c: Likewise.
18644         * lib/unlinkdir.h: Likewise.
18645         * lib/unlocked-io.h: Likewise.
18646         * lib/unsetenv.c: Likewise.
18647         * lib/userspec.c: Likewise.
18648         * lib/utime.c: Likewise.
18649         * lib/utimecmp.c: Likewise.
18650         * lib/utimecmp.h: Likewise.
18651         * lib/utimens.c: Likewise.
18652         * lib/verify.h: Likewise.
18653         * lib/verror.c: Likewise.
18654         * lib/verror.h: Likewise.
18655         * lib/version-etc-fsf.c: Likewise.
18656         * lib/version-etc.c: Likewise.
18657         * lib/version-etc.h: Likewise.
18658         * lib/vfprintf.c: Likewise.
18659         * lib/vprintf.c: Likewise.
18660         * lib/vsprintf.c: Likewise.
18661         * lib/w32spawn.h: Likewise.
18662         * lib/wait-process.c: Likewise.
18663         * lib/wait-process.h: Likewise.
18664         * lib/wcwidth.c: Likewise.
18665         * lib/write-any-file.c: Likewise.
18666         * lib/xalloc-die.c: Likewise.
18667         * lib/xalloc.h: Likewise.
18668         * lib/xasprintf.c: Likewise.
18669         * lib/xgetcwd.c: Likewise.
18670         * lib/xgetcwd.h: Likewise.
18671         * lib/xgetdomainname.c: Likewise.
18672         * lib/xgetdomainname.h: Likewise.
18673         * lib/xgethostname.c: Likewise.
18674         * lib/xmalloc.c: Likewise.
18675         * lib/xmalloca.c: Likewise.
18676         * lib/xmalloca.h: Likewise.
18677         * lib/xmemcoll.c: Likewise.
18678         * lib/xnanosleep.c: Likewise.
18679         * lib/xreadlink.c: Likewise.
18680         * lib/xreadlink.h: Likewise.
18681         * lib/xsetenv.c: Likewise.
18682         * lib/xsetenv.h: Likewise.
18683         * lib/xstriconv.c: Likewise.
18684         * lib/xstriconv.h: Likewise.
18685         * lib/xstrndup.c: Likewise.
18686         * lib/xstrndup.h: Likewise.
18687         * lib/xstrtod.c: Likewise.
18688         * lib/xstrtod.h: Likewise.
18689         * lib/xstrtol-error.c: Likewise.
18690         * lib/xstrtol.c: Likewise.
18691         * lib/xstrtol.h: Likewise.
18692         * lib/xtime.h: Likewise.
18693         * lib/xvasprintf.c: Likewise.
18694         * lib/xvasprintf.h: Likewise.
18695         * lib/yesno.c: Likewise.
18696         * lib/yesno.h: Likewise.
18697         * posix-modules: Likewise.
18698         * tests/test-alloca-opt.c: Likewise.
18699         * tests/test-arcfour.c: Likewise.
18700         * tests/test-arctwo.c: Likewise.
18701         * tests/test-argmatch.c: Likewise.
18702         * tests/test-argp-2.sh: Likewise.
18703         * tests/test-argp.c: Likewise.
18704         * tests/test-arpa_inet.c: Likewise.
18705         * tests/test-array_list.c: Likewise.
18706         * tests/test-array_oset.c: Likewise.
18707         * tests/test-atexit.c: Likewise.
18708         * tests/test-avltree_list.c: Likewise.
18709         * tests/test-avltree_oset.c: Likewise.
18710         * tests/test-avltreehash_list.c: Likewise.
18711         * tests/test-base64.c: Likewise.
18712         * tests/test-binary-io.c: Likewise.
18713         * tests/test-byteswap.c: Likewise.
18714         * tests/test-c-ctype.c: Likewise.
18715         * tests/test-c-strcasecmp.c: Likewise.
18716         * tests/test-c-strcasestr.c: Likewise.
18717         * tests/test-c-strncasecmp.c: Likewise.
18718         * tests/test-c-strstr.c: Likewise.
18719         * tests/test-canonicalize-lgpl.c: Likewise.
18720         * tests/test-canonicalize.c: Likewise.
18721         * tests/test-carray_list.c: Likewise.
18722         * tests/test-ceilf.c: Likewise.
18723         * tests/test-ceill.c: Likewise.
18724         * tests/test-count-one-bits.c: Likewise.
18725         * tests/test-crc.c: Likewise.
18726         * tests/test-dirname.c: Likewise.
18727         * tests/test-fbufmode.c: Likewise.
18728         * tests/test-fcntl.c: Likewise.
18729         * tests/test-fflush.c: Likewise.
18730         * tests/test-floorf.c: Likewise.
18731         * tests/test-floorl.c: Likewise.
18732         * tests/test-fopen.c: Likewise.
18733         * tests/test-fprintf-posix.c: Likewise.
18734         * tests/test-fprintf-posix.h: Likewise.
18735         * tests/test-fpurge.c: Likewise.
18736         * tests/test-freadable.c: Likewise.
18737         * tests/test-freadahead.c: Likewise.
18738         * tests/test-freading.c: Likewise.
18739         * tests/test-freopen.c: Likewise.
18740         * tests/test-frexp.c: Likewise.
18741         * tests/test-frexpl.c: Likewise.
18742         * tests/test-fseek.c: Likewise.
18743         * tests/test-fseeko.c: Likewise.
18744         * tests/test-fseterr.c: Likewise.
18745         * tests/test-fstrcmp.c: Likewise.
18746         * tests/test-ftell.c: Likewise.
18747         * tests/test-ftello.c: Likewise.
18748         * tests/test-fwritable.c: Likewise.
18749         * tests/test-fwriting.c: Likewise.
18750         * tests/test-getaddrinfo.c: Likewise.
18751         * tests/test-getpass.c: Likewise.
18752         * tests/test-gettimeofday.c: Likewise.
18753         * tests/test-hmac-md5.c: Likewise.
18754         * tests/test-hmac-sha1.c: Likewise.
18755         * tests/test-iconv.c: Likewise.
18756         * tests/test-iconvme.c: Likewise.
18757         * tests/test-inttypes.c: Likewise.
18758         * tests/test-isnan.c: Likewise.
18759         * tests/test-isnanf.c: Likewise.
18760         * tests/test-isnanl-nolibm.c: Likewise.
18761         * tests/test-isnanl.c: Likewise.
18762         * tests/test-isnanl.h: Likewise.
18763         * tests/test-ldexpl.c: Likewise.
18764         * tests/test-linked_list.c: Likewise.
18765         * tests/test-linkedhash_list.c: Likewise.
18766         * tests/test-locale.c: Likewise.
18767         * tests/test-localename.c: Likewise.
18768         * tests/test-lock.c: Likewise.
18769         * tests/test-lseek.c: Likewise.
18770         * tests/test-malloca.c: Likewise.
18771         * tests/test-math.c: Likewise.
18772         * tests/test-mbscasecmp.c: Likewise.
18773         * tests/test-mbscasestr1.c: Likewise.
18774         * tests/test-mbscasestr2.c: Likewise.
18775         * tests/test-mbscasestr3.c: Likewise.
18776         * tests/test-mbscasestr4.c: Likewise.
18777         * tests/test-mbschr.c: Likewise.
18778         * tests/test-mbscspn.c: Likewise.
18779         * tests/test-mbsncasecmp.c: Likewise.
18780         * tests/test-mbspbrk.c: Likewise.
18781         * tests/test-mbspcasecmp.c: Likewise.
18782         * tests/test-mbsrchr.c: Likewise.
18783         * tests/test-mbsspn.c: Likewise.
18784         * tests/test-mbsstr1.c: Likewise.
18785         * tests/test-mbsstr2.c: Likewise.
18786         * tests/test-mbsstr3.c: Likewise.
18787         * tests/test-md5.c: Likewise.
18788         * tests/test-memmem.c: Likewise.
18789         * tests/test-netinet_in.c: Likewise.
18790         * tests/test-open.c: Likewise.
18791         * tests/test-printf-frexp.c: Likewise.
18792         * tests/test-printf-frexpl.c: Likewise.
18793         * tests/test-printf-posix.c: Likewise.
18794         * tests/test-printf-posix.h: Likewise.
18795         * tests/test-rbtree_list.c: Likewise.
18796         * tests/test-rbtree_oset.c: Likewise.
18797         * tests/test-rbtreehash_list.c: Likewise.
18798         * tests/test-read-file.c: Likewise.
18799         * tests/test-rijndael.c: Likewise.
18800         * tests/test-search.c: Likewise.
18801         * tests/test-signbit.c: Likewise.
18802         * tests/test-sleep.c: Likewise.
18803         * tests/test-snprintf-posix.c: Likewise.
18804         * tests/test-snprintf-posix.h: Likewise.
18805         * tests/test-snprintf.c: Likewise.
18806         * tests/test-sprintf-posix.c: Likewise.
18807         * tests/test-sprintf-posix.h: Likewise.
18808         * tests/test-stat-time.c: Likewise.
18809         * tests/test-stdbool.c: Likewise.
18810         * tests/test-stdint.c: Likewise.
18811         * tests/test-stdio.c: Likewise.
18812         * tests/test-stdlib.c: Likewise.
18813         * tests/test-stpncpy.c: Likewise.
18814         * tests/test-strcasestr.c: Likewise.
18815         * tests/test-striconv.c: Likewise.
18816         * tests/test-striconveh.c: Likewise.
18817         * tests/test-striconveha.c: Likewise.
18818         * tests/test-string.c: Likewise.
18819         * tests/test-sys_select.c: Likewise.
18820         * tests/test-sys_socket.c: Likewise.
18821         * tests/test-sys_stat.c: Likewise.
18822         * tests/test-sys_time.c: Likewise.
18823         * tests/test-sysexits.c: Likewise.
18824         * tests/test-time.c: Likewise.
18825         * tests/test-tls.c: Likewise.
18826         * tests/test-trunc.c: Likewise.
18827         * tests/test-truncf.c: Likewise.
18828         * tests/test-truncl.c: Likewise.
18829         * tests/test-unistd.c: Likewise.
18830         * tests/test-vasnprintf-posix.c: Likewise.
18831         * tests/test-vasnprintf-posix2.c: Likewise.
18832         * tests/test-vasnprintf.c: Likewise.
18833         * tests/test-vasprintf-posix.c: Likewise.
18834         * tests/test-vasprintf.c: Likewise.
18835         * tests/test-verify.c: Likewise.
18836         * tests/test-vfprintf-posix.c: Likewise.
18837         * tests/test-vprintf-posix.c: Likewise.
18838         * tests/test-vsnprintf-posix.c: Likewise.
18839         * tests/test-vsnprintf.c: Likewise.
18840         * tests/test-vsprintf-posix.c: Likewise.
18841         * tests/test-wchar.c: Likewise.
18842         * tests/test-wctype.c: Likewise.
18843         * tests/test-wcwidth.c: Likewise.
18844         * tests/test-xstrtol.c: Likewise.
18845         * tests/test-xvasprintf.c: Likewise.
18846         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18847         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18848         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18849         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18850         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18851         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18854         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18855         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18856         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18857         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18858         * tests/uniname/test-uninames.c: Likewise.
18859         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18860         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
18861         * tests/unistdio/test-u16-printf1.h: Likewise.
18862         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18863         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18864         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18865         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18866         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18867         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18868         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18869         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
18870         * tests/unistdio/test-u32-printf1.h: Likewise.
18871         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18872         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18873         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18874         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18875         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18876         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18877         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18878         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
18879         * tests/unistdio/test-u8-printf1.h: Likewise.
18880         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18881         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18882         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18883         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18884         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18885         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18886         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18887         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
18888         * tests/unistdio/test-ulc-printf1.h: Likewise.
18889         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18890         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18891         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18892         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18893         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18894         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18895         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18896         * tests/uniwidth/test-u16-width.c: Likewise.
18897         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18898         * tests/uniwidth/test-u32-width.c: Likewise.
18899         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18900         * tests/uniwidth/test-u8-width.c: Likewise.
18901         * tests/uniwidth/test-uc_width.c: Likewise.
18902         * config/srclist-update: Likewise.
18903         (fixlicense): Update to GPLv3+.
18904
18905         Change copyright notice from LGPLv2.1+ to LGPLv3+.
18906         * tests/test-tsearch.c: Change copyright notice.
18907
18908         Change copyright notice from LGPLv2.0+ to LGPLv3+.
18909         * lib/c-strcaseeq.h: Change copyright notice.
18910         * lib/streq.h: Likewise.
18911         * lib/uniconv.h: Likewise.
18912         * lib/uniconv/u-conv-from-enc.h: Likewise.
18913         * lib/uniconv/u-conv-to-enc.h: Likewise.
18914         * lib/uniconv/u-strconv-from-enc.h: Likewise.
18915         * lib/uniconv/u-strconv-to-enc.h: Likewise.
18916         * lib/uniconv/u16-conv-from-enc.c: Likewise.
18917         * lib/uniconv/u16-conv-to-enc.c: Likewise.
18918         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
18919         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
18920         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
18921         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
18922         * lib/uniconv/u32-conv-from-enc.c: Likewise.
18923         * lib/uniconv/u32-conv-to-enc.c: Likewise.
18924         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
18925         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
18926         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
18927         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
18928         * lib/uniconv/u8-conv-from-enc.c: Likewise.
18929         * lib/uniconv/u8-conv-to-enc.c: Likewise.
18930         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
18931         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
18932         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
18933         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
18934         * lib/uniname.h: Likewise.
18935         * lib/uniname/uniname.c: Likewise.
18936         * lib/unistdio.h: Likewise.
18937         * lib/unistdio/u-asnprintf.h: Likewise.
18938         * lib/unistdio/u-asprintf.h: Likewise.
18939         * lib/unistdio/u-printf-args.c: Likewise.
18940         * lib/unistdio/u-printf-args.h: Likewise.
18941         * lib/unistdio/u-printf-parse.h: Likewise.
18942         * lib/unistdio/u-snprintf.h: Likewise.
18943         * lib/unistdio/u-sprintf.h: Likewise.
18944         * lib/unistdio/u-vasprintf.h: Likewise.
18945         * lib/unistdio/u-vsnprintf.h: Likewise.
18946         * lib/unistdio/u-vsprintf.h: Likewise.
18947         * lib/unistdio/u16-asnprintf.c: Likewise.
18948         * lib/unistdio/u16-asprintf.c: Likewise.
18949         * lib/unistdio/u16-printf-parse.c: Likewise.
18950         * lib/unistdio/u16-snprintf.c: Likewise.
18951         * lib/unistdio/u16-sprintf.c: Likewise.
18952         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
18953         * lib/unistdio/u16-u16-asprintf.c: Likewise.
18954         * lib/unistdio/u16-u16-snprintf.c: Likewise.
18955         * lib/unistdio/u16-u16-sprintf.c: Likewise.
18956         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
18957         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
18958         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
18959         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
18960         * lib/unistdio/u16-vasnprintf.c: Likewise.
18961         * lib/unistdio/u16-vasprintf.c: Likewise.
18962         * lib/unistdio/u16-vsnprintf.c: Likewise.
18963         * lib/unistdio/u16-vsprintf.c: Likewise.
18964         * lib/unistdio/u32-asnprintf.c: Likewise.
18965         * lib/unistdio/u32-asprintf.c: Likewise.
18966         * lib/unistdio/u32-printf-parse.c: Likewise.
18967         * lib/unistdio/u32-snprintf.c: Likewise.
18968         * lib/unistdio/u32-sprintf.c: Likewise.
18969         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
18970         * lib/unistdio/u32-u32-asprintf.c: Likewise.
18971         * lib/unistdio/u32-u32-snprintf.c: Likewise.
18972         * lib/unistdio/u32-u32-sprintf.c: Likewise.
18973         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
18974         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
18975         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
18976         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
18977         * lib/unistdio/u32-vasnprintf.c: Likewise.
18978         * lib/unistdio/u32-vasprintf.c: Likewise.
18979         * lib/unistdio/u32-vsnprintf.c: Likewise.
18980         * lib/unistdio/u32-vsprintf.c: Likewise.
18981         * lib/unistdio/u8-asnprintf.c: Likewise.
18982         * lib/unistdio/u8-asprintf.c: Likewise.
18983         * lib/unistdio/u8-printf-parse.c: Likewise.
18984         * lib/unistdio/u8-snprintf.c: Likewise.
18985         * lib/unistdio/u8-sprintf.c: Likewise.
18986         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
18987         * lib/unistdio/u8-u8-asprintf.c: Likewise.
18988         * lib/unistdio/u8-u8-snprintf.c: Likewise.
18989         * lib/unistdio/u8-u8-sprintf.c: Likewise.
18990         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
18991         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
18992         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
18993         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
18994         * lib/unistdio/u8-vasnprintf.c: Likewise.
18995         * lib/unistdio/u8-vasprintf.c: Likewise.
18996         * lib/unistdio/u8-vsnprintf.c: Likewise.
18997         * lib/unistdio/u8-vsprintf.c: Likewise.
18998         * lib/unistdio/ulc-asnprintf.c: Likewise.
18999         * lib/unistdio/ulc-asprintf.c: Likewise.
19000         * lib/unistdio/ulc-printf-parse.c: Likewise.
19001         * lib/unistdio/ulc-snprintf.c: Likewise.
19002         * lib/unistdio/ulc-sprintf.c: Likewise.
19003         * lib/unistdio/ulc-vasnprintf.c: Likewise.
19004         * lib/unistdio/ulc-vasprintf.c: Likewise.
19005         * lib/unistdio/ulc-vsnprintf.c: Likewise.
19006         * lib/unistdio/ulc-vsprintf.c: Likewise.
19007         * lib/unistr.h: Likewise.
19008         * lib/unistr/u-cpy-alloc.h: Likewise.
19009         * lib/unistr/u-cpy.h: Likewise.
19010         * lib/unistr/u-endswith.h: Likewise.
19011         * lib/unistr/u-move.h: Likewise.
19012         * lib/unistr/u-set.h: Likewise.
19013         * lib/unistr/u-startswith.h: Likewise.
19014         * lib/unistr/u-stpcpy.h: Likewise.
19015         * lib/unistr/u-stpncpy.h: Likewise.
19016         * lib/unistr/u-strcat.h: Likewise.
19017         * lib/unistr/u-strcpy.h: Likewise.
19018         * lib/unistr/u-strcspn.h: Likewise.
19019         * lib/unistr/u-strdup.h: Likewise.
19020         * lib/unistr/u-strlen.h: Likewise.
19021         * lib/unistr/u-strncat.h: Likewise.
19022         * lib/unistr/u-strncpy.h: Likewise.
19023         * lib/unistr/u-strnlen.h: Likewise.
19024         * lib/unistr/u-strpbrk.h: Likewise.
19025         * lib/unistr/u-strspn.h: Likewise.
19026         * lib/unistr/u-strstr.h: Likewise.
19027         * lib/unistr/u-strtok.h: Likewise.
19028         * lib/unistr/u16-check.c: Likewise.
19029         * lib/unistr/u16-chr.c: Likewise.
19030         * lib/unistr/u16-cmp.c: Likewise.
19031         * lib/unistr/u16-cpy-alloc.c: Likewise.
19032         * lib/unistr/u16-cpy.c: Likewise.
19033         * lib/unistr/u16-endswith.c: Likewise.
19034         * lib/unistr/u16-mblen.c: Likewise.
19035         * lib/unistr/u16-mbsnlen.c: Likewise.
19036         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19037         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19038         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19039         * lib/unistr/u16-mbtouc.c: Likewise.
19040         * lib/unistr/u16-mbtoucr.c: Likewise.
19041         * lib/unistr/u16-move.c: Likewise.
19042         * lib/unistr/u16-next.c: Likewise.
19043         * lib/unistr/u16-prev.c: Likewise.
19044         * lib/unistr/u16-set.c: Likewise.
19045         * lib/unistr/u16-startswith.c: Likewise.
19046         * lib/unistr/u16-stpcpy.c: Likewise.
19047         * lib/unistr/u16-stpncpy.c: Likewise.
19048         * lib/unistr/u16-strcat.c: Likewise.
19049         * lib/unistr/u16-strchr.c: Likewise.
19050         * lib/unistr/u16-strcmp.c: Likewise.
19051         * lib/unistr/u16-strcpy.c: Likewise.
19052         * lib/unistr/u16-strcspn.c: Likewise.
19053         * lib/unistr/u16-strdup.c: Likewise.
19054         * lib/unistr/u16-strlen.c: Likewise.
19055         * lib/unistr/u16-strmblen.c: Likewise.
19056         * lib/unistr/u16-strmbtouc.c: Likewise.
19057         * lib/unistr/u16-strncat.c: Likewise.
19058         * lib/unistr/u16-strncmp.c: Likewise.
19059         * lib/unistr/u16-strncpy.c: Likewise.
19060         * lib/unistr/u16-strnlen.c: Likewise.
19061         * lib/unistr/u16-strpbrk.c: Likewise.
19062         * lib/unistr/u16-strrchr.c: Likewise.
19063         * lib/unistr/u16-strspn.c: Likewise.
19064         * lib/unistr/u16-strstr.c: Likewise.
19065         * lib/unistr/u16-strtok.c: Likewise.
19066         * lib/unistr/u16-to-u32.c: Likewise.
19067         * lib/unistr/u16-to-u8.c: Likewise.
19068         * lib/unistr/u16-uctomb-aux.c: Likewise.
19069         * lib/unistr/u16-uctomb.c: Likewise.
19070         * lib/unistr/u32-check.c: Likewise.
19071         * lib/unistr/u32-chr.c: Likewise.
19072         * lib/unistr/u32-cmp.c: Likewise.
19073         * lib/unistr/u32-cpy-alloc.c: Likewise.
19074         * lib/unistr/u32-cpy.c: Likewise.
19075         * lib/unistr/u32-endswith.c: Likewise.
19076         * lib/unistr/u32-mblen.c: Likewise.
19077         * lib/unistr/u32-mbsnlen.c: Likewise.
19078         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19079         * lib/unistr/u32-mbtouc.c: Likewise.
19080         * lib/unistr/u32-mbtoucr.c: Likewise.
19081         * lib/unistr/u32-move.c: Likewise.
19082         * lib/unistr/u32-next.c: Likewise.
19083         * lib/unistr/u32-prev.c: Likewise.
19084         * lib/unistr/u32-set.c: Likewise.
19085         * lib/unistr/u32-startswith.c: Likewise.
19086         * lib/unistr/u32-stpcpy.c: Likewise.
19087         * lib/unistr/u32-stpncpy.c: Likewise.
19088         * lib/unistr/u32-strcat.c: Likewise.
19089         * lib/unistr/u32-strchr.c: Likewise.
19090         * lib/unistr/u32-strcmp.c: Likewise.
19091         * lib/unistr/u32-strcpy.c: Likewise.
19092         * lib/unistr/u32-strcspn.c: Likewise.
19093         * lib/unistr/u32-strdup.c: Likewise.
19094         * lib/unistr/u32-strlen.c: Likewise.
19095         * lib/unistr/u32-strmblen.c: Likewise.
19096         * lib/unistr/u32-strmbtouc.c: Likewise.
19097         * lib/unistr/u32-strncat.c: Likewise.
19098         * lib/unistr/u32-strncmp.c: Likewise.
19099         * lib/unistr/u32-strncpy.c: Likewise.
19100         * lib/unistr/u32-strnlen.c: Likewise.
19101         * lib/unistr/u32-strpbrk.c: Likewise.
19102         * lib/unistr/u32-strrchr.c: Likewise.
19103         * lib/unistr/u32-strspn.c: Likewise.
19104         * lib/unistr/u32-strstr.c: Likewise.
19105         * lib/unistr/u32-strtok.c: Likewise.
19106         * lib/unistr/u32-to-u16.c: Likewise.
19107         * lib/unistr/u32-to-u8.c: Likewise.
19108         * lib/unistr/u32-uctomb.c: Likewise.
19109         * lib/unistr/u8-check.c: Likewise.
19110         * lib/unistr/u8-chr.c: Likewise.
19111         * lib/unistr/u8-cmp.c: Likewise.
19112         * lib/unistr/u8-cpy-alloc.c: Likewise.
19113         * lib/unistr/u8-cpy.c: Likewise.
19114         * lib/unistr/u8-endswith.c: Likewise.
19115         * lib/unistr/u8-mblen.c: Likewise.
19116         * lib/unistr/u8-mbsnlen.c: Likewise.
19117         * lib/unistr/u8-mbtouc-aux.c: Likewise.
19118         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19119         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19120         * lib/unistr/u8-mbtouc.c: Likewise.
19121         * lib/unistr/u8-mbtoucr.c: Likewise.
19122         * lib/unistr/u8-move.c: Likewise.
19123         * lib/unistr/u8-next.c: Likewise.
19124         * lib/unistr/u8-prev.c: Likewise.
19125         * lib/unistr/u8-set.c: Likewise.
19126         * lib/unistr/u8-startswith.c: Likewise.
19127         * lib/unistr/u8-stpcpy.c: Likewise.
19128         * lib/unistr/u8-stpncpy.c: Likewise.
19129         * lib/unistr/u8-strcat.c: Likewise.
19130         * lib/unistr/u8-strchr.c: Likewise.
19131         * lib/unistr/u8-strcmp.c: Likewise.
19132         * lib/unistr/u8-strcpy.c: Likewise.
19133         * lib/unistr/u8-strcspn.c: Likewise.
19134         * lib/unistr/u8-strdup.c: Likewise.
19135         * lib/unistr/u8-strlen.c: Likewise.
19136         * lib/unistr/u8-strmblen.c: Likewise.
19137         * lib/unistr/u8-strmbtouc.c: Likewise.
19138         * lib/unistr/u8-strncat.c: Likewise.
19139         * lib/unistr/u8-strncmp.c: Likewise.
19140         * lib/unistr/u8-strncpy.c: Likewise.
19141         * lib/unistr/u8-strnlen.c: Likewise.
19142         * lib/unistr/u8-strpbrk.c: Likewise.
19143         * lib/unistr/u8-strrchr.c: Likewise.
19144         * lib/unistr/u8-strspn.c: Likewise.
19145         * lib/unistr/u8-strstr.c: Likewise.
19146         * lib/unistr/u8-strtok.c: Likewise.
19147         * lib/unistr/u8-to-u16.c: Likewise.
19148         * lib/unistr/u8-to-u32.c: Likewise.
19149         * lib/unistr/u8-uctomb-aux.c: Likewise.
19150         * lib/unistr/u8-uctomb.c: Likewise.
19151         * lib/unitypes.h: Likewise.
19152         * lib/uniwidth.h: Likewise.
19153         * lib/uniwidth/cjk.h: Likewise.
19154         * lib/uniwidth/u16-strwidth.c: Likewise.
19155         * lib/uniwidth/u16-width.c: Likewise.
19156         * lib/uniwidth/u32-strwidth.c: Likewise.
19157         * lib/uniwidth/u32-width.c: Likewise.
19158         * lib/uniwidth/u8-strwidth.c: Likewise.
19159         * lib/uniwidth/u8-width.c: Likewise.
19160         * lib/uniwidth/width.c: Likewise.
19161
19162 2007-10-07  Bruno Haible  <bruno@clisp.org>
19163
19164         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
19165         The file is still under LGPL (see modules/inttypes).
19166
19167 2007-10-06  Bruno Haible  <bruno@clisp.org>
19168
19169         * modules/trunc (Dependencies): Add 'extensions'.
19170         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
19171         Reported by Ben Pfaff <blp@gnu.org>.
19172
19173 2007-10-06  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/freopen-tests: New file.
19176         * tests/test-freopen.c: New file.
19177
19178         * modules/fopen-tests: New file.
19179         * tests/test-fopen.c: New file.
19180
19181         * modules/fopen: New file.
19182         * lib/fopen.c: New file.
19183         * m4/fopen.m4: New file.
19184         * modules/freopen: New file.
19185         * lib/freopen.c: New file.
19186         * m4/freopen.m4: New file.
19187         * lib/stdio.in.h (fopen, freopen): New declarations.
19188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
19189         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19190         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19191         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19192         * doc/functions/fopen.texi: Mention the 'fopen' module.
19193         * doc/functions/freopen.texi: Mention the 'freopen' module.
19194
19195 2007-10-06  Bruno Haible  <bruno@clisp.org>
19196
19197         * modules/open-tests: New file.
19198         * tests/test-open.c: New file.
19199
19200         * modules/open: New file.
19201         * lib/open.c: New file.
19202         * m4/open.m4: New file.
19203         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
19204         lib/open.c does.
19205         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
19206         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
19207         macros.
19208         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
19209         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
19210         REPLACE_OPEN.
19211         * doc/functions/open.texi: Mention the 'open' module.
19212
19213 2007-10-04  Bruno Haible  <bruno@clisp.org>
19214
19215         * modules/ceill-tests: New file.
19216         * tests/test-ceill.c: New file.
19217
19218         * modules/ceill: New file.
19219         * lib/ceill.c: Replace entire file.
19220         * m4/ceill.m4: New file.
19221         * lib/math.in.h (ceill): Replace declaration.
19222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
19223         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
19224         * doc/functions/ceill.texi: Mention the 'ceill' module.
19225         * modules/mathl (Files): Remove lib/ceill.c.
19226         (Depends-on): Add ceill.
19227
19228 2007-10-04  Bruno Haible  <bruno@clisp.org>
19229
19230         * modules/ceilf-tests: New file.
19231         * tests/test-ceilf.c: New file.
19232
19233         * modules/ceilf: New file.
19234         * lib/ceil.c: New file.
19235         * lib/ceilf.c: New file.
19236         * m4/ceilf.m4: New file.
19237         * lib/math.in.h (ceilf): New declaration.
19238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
19239         HAVE_DECL_CEILF.
19240         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
19241         HAVE_DECL_CEILF.
19242         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
19243
19244 2007-10-04  Bruno Haible  <bruno@clisp.org>
19245
19246         * modules/floorl-tests: New file.
19247         * tests/test-floorl.c: New file.
19248
19249         * modules/floorl: New file.
19250         * lib/floorl.c: Replace entire file.
19251         * m4/floorl.m4: New file.
19252         * lib/math.in.h (floorl): Replace declaration.
19253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
19254         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
19255         * doc/functions/floorl.texi: Mention the 'floorl' module.
19256         * modules/mathl (Files): Remove lib/floorl.c.
19257         (Depends-on): Add floorl.
19258
19259 2007-10-04  Bruno Haible  <bruno@clisp.org>
19260
19261         * modules/floorf-tests: New file.
19262         * tests/test-floorf.c: New file.
19263
19264         * modules/floorf: New file.
19265         * lib/floor.c: New file.
19266         * lib/floorf.c: New file.
19267         * m4/floorf.m4: New file.
19268         * lib/math.in.h (floorf): New declaration.
19269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
19270         HAVE_DECL_FLOORF.
19271         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
19272         HAVE_DECL_FLOORF.
19273         * doc/functions/floorf.texi: Mention the 'floorf' module.
19274
19275 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
19276             Bruno Haible  <bruno@clisp.org>
19277
19278         Advertise for the Git server instead of the CVS server.
19279         * doc/gnulib-intro.texi (Steady Development): Mention the Git
19280         repository instead of the CVS one.
19281         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
19282         about all VCS systems generically.
19283         * doc/gnulib.texi (Introduction): Capitalize `Git'.
19284
19285 2007-10-04  Bruno Haible  <bruno@clisp.org>
19286
19287         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
19288         means.
19289         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
19290
19291 2007-10-04  Bruno Haible  <bruno@clisp.org>
19292
19293         * modules/truncl-tests: New file.
19294         * tests/test-truncl.c: New file.
19295
19296         * modules/truncl: New file.
19297         * lib/truncl.c: New file.
19298         * m4/truncl.m4: New file.
19299         * lib/math.in.h (truncl): New declaration.
19300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
19301         HAVE_DECL_TRUNCL.
19302         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
19303         HAVE_DECL_TRUNCL.
19304         * doc/functions/truncl.texi: Mention the 'truncl' module.
19305
19306 2007-10-04  Bruno Haible  <bruno@clisp.org>
19307
19308         * modules/truncf-tests: New file.
19309         * tests/test-truncf.c: New file.
19310
19311         * modules/truncf: New file.
19312         * lib/trunc.c: Make paramerizable through USE_* macros.
19313         * lib/truncf.c: New file.
19314         * m4/truncf.m4: New file.
19315         * lib/math.in.h (truncf): New declaration.
19316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
19317         HAVE_DECL_TRUNCF.
19318         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
19319         HAVE_DECL_TRUNCF.
19320         * doc/functions/truncf.texi: Mention the 'truncf' module.
19321
19322 2007-10-03  Bruno Haible  <bruno@clisp.org>
19323
19324         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19325         augmentation also for tests modules.
19326         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
19327         * modules/atexit-tests (Makefile.am): Likewise.
19328         * modules/binary-io-tests (Makefile.am): Likewise.
19329         * modules/c-strcase-tests (Makefile.am): Likewise.
19330         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
19331         * modules/canonicalize-tests (Makefile.am): Likewise.
19332         * modules/closein-tests (Makefile.am): Likewise.
19333         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19334         * modules/freadahead-tests (Makefile.am): Likewise.
19335         * modules/fseek-tests (Makefile.am): Likewise.
19336         * modules/fseeko-tests (Makefile.am): Likewise.
19337         * modules/ftell-tests (Makefile.am): Likewise.
19338         * modules/ftello-tests (Makefile.am): Likewise.
19339         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
19340         * modules/isnanl-tests (Makefile.am): Likewise.
19341         * modules/lseek-tests (Makefile.am): Likewise.
19342         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19343         * modules/mbscasestr-tests (Makefile.am): Likewise.
19344         * modules/mbschr-tests (Makefile.am): Likewise.
19345         * modules/mbscspn-tests (Makefile.am): Likewise.
19346         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19347         * modules/mbspbrk-tests (Makefile.am): Likewise.
19348         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19349         * modules/mbsrchr-tests (Makefile.am): Likewise.
19350         * modules/mbsspn-tests (Makefile.am): Likewise.
19351         * modules/mbsstr-tests (Makefile.am): Likewise.
19352         * modules/printf-posix-tests (Makefile.am): Likewise.
19353         * modules/snprintf-posix-tests (Makefile.am): Likewise.
19354         * modules/sprintf-posix-tests (Makefile.am): Likewise.
19355         * modules/tsearch-tests (Makefile.am): Likewise.
19356         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19357         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19358         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19359         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19360         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19361         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19362         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19363         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19364         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
19365         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
19366         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19367         * modules/xstrtol-tests (Makefile.am): Likewise.
19368         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19369         * modules/yesno-tests (Makefile.am): Likewise.
19370
19371 2007-10-03  Bruno Haible  <bruno@clisp.org>
19372
19373         * modules/trunc-tests: New file.
19374         * tests/test-trunc.c: New file.
19375
19376         * modules/trunc: New file.
19377         * lib/trunc.c: New file.
19378         * m4/trunc.m4: New file.
19379         * lib/math.in.h (trunc): New declaration.
19380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
19381         HAVE_DECL_TRUNC.
19382         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
19383         HAVE_DECL_TRUNC.
19384         * doc/functions/trunc.texi: Mention the 'trunc' module.
19385
19386 2007-10-03  Bruno Haible  <bruno@clisp.org>
19387
19388         * tests/test-fpending.c: New file, mostly copied
19389         from coreutils/lib/t-fpending.c.
19390         * modules/fpending-tests: New file.
19391
19392 2007-10-03  Bruno Haible  <bruno@clisp.org>
19393
19394         Port the stdio extensions to QNX (untested).
19395         * lib/fseterr.c (fseterr): Add support for QNX.
19396         * lib/fbufmode.c (fbufmode): Likewise.
19397         * lib/freadable.c (freadable): Likewise.
19398         * lib/fwritable.c (fwritable): Likewise.
19399         * lib/freading.c (freading): Likewise.
19400         * lib/fwriting.c (fwriting): Likewise.
19401         * lib/freadahead.c (freadahed): Likewise.
19402         * lib/fpurge.c (fpurge): Likewise.
19403         * lib/fseeko.c (rpl_fseeko): Likewise.
19404
19405 2007-10-03  Bruno Haible  <bruno@clisp.org>
19406             Jim Meyering  <jim@meyering.net>
19407             Eric Blake  <ebb9@byu.net>
19408
19409         * doc/relocatable.texi: Use @command instead of @program.
19410
19411 2007-10-02  Jim Meyering  <jim@meyering.net>
19412
19413         Perform one more "_.h" -> ".in.h" substitution.
19414         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
19415         instead of unistd_.h here, too.
19416
19417 2007-10-01  Bruno Haible  <bruno@clisp.org>
19418
19419         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
19420         Needed for the alloca-opt module.
19421
19422 2007-09-30  Bruno Haible  <bruno@clisp.org>
19423
19424         * lib/alloca.in.h: Renamed from lib/alloca_.h.
19425         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
19426         alloca_.h.
19427         * lib/argz.in.h: Renamed from lib/argz_.h.
19428         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
19429         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
19430         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
19431         byteswap_.h.
19432         * lib/dirent.in.h: Renamed from lib/dirent_.h.
19433         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
19434         dirent_.h.
19435         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
19436         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
19437         fcntl_.h.
19438         * lib/float.in.h: Renamed from lib/float_.h.
19439         * modules/float (Files, Makefile.am): Use float.in.h instead of
19440         float_.h.
19441         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
19442         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
19443         fnmatch_.h.
19444         * lib/getopt.in.h: Renamed from lib/getopt_.h.
19445         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
19446         getopt_.h.
19447         * lib/glob.in.h: Renamed from lib/glob_.h.
19448         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
19449         * lib/iconv.in.h: Renamed from lib/iconv_.h.
19450         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
19451         iconv_.h.
19452         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
19453         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
19454         inttypes_.h.
19455         * lib/locale.in.h: Renamed from lib/locale_.h.
19456         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
19457         locale_.h.
19458         * lib/math.in.h: Renamed from lib/math_.h.
19459         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
19460         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
19461         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
19462         of netinet_in_.h. Add dependency.
19463         * lib/poll.in.h: Renamed from lib/poll_.h.
19464         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
19465         * lib/search.in.h: Renamed from lib/search_.h.
19466         * modules/search (Files, Makefile.am): Use search.in.h instead of
19467         search_.h.
19468         * lib/signal.in.h: Renamed from lib/signal_.h.
19469         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
19470         _signal.h.
19471         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
19472         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
19473         stdbool_.h.
19474         * lib/stdint.in.h: Renamed from lib/stdint_.h.
19475         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
19476         stdint_.h.
19477         * lib/stdio.in.h: Renamed from lib/stdio_.h.
19478         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
19479         stdio_.h.
19480         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
19481         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
19482         stdlib_.h.
19483         * lib/string.in.h: Renamed from lib/string_.h.
19484         * modules/string (Files, Makefile.am): Use string.in.h instead of
19485         string_.h.
19486         * doc/gnulib-tool.texi (Initial import): Update.
19487         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
19488         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
19489         of sys_select_.h. Add dependency.
19490         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
19491         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
19492         of sys_socket_.h.
19493         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
19494         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
19495         sys_stat_.h.
19496         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
19497         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
19498         sys_time_.h.
19499         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
19500         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
19501         sysexits_.h.
19502         * lib/time.in.h: Renamed from lib/time_.h.
19503         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
19504         * lib/unistd.in.h: Renamed from lib/unistd_.h.
19505         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
19506         unistd_.h.
19507         * lib/wchar.in.h: Renamed from lib/wchar_.h.
19508         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
19509         wchar_.h.
19510         * lib/wctype.in.h: Renamed from lib/wctype_.h.
19511         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
19512         wctype_.h.
19513         * build-aux/bootstrap (slurp): Update.
19514         * lib/.cppi-disable: Update.
19515
19516 2007-09-30  Bruno Haible  <bruno@clisp.org>
19517
19518         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
19519         Needed on BeOS.
19520
19521 2007-09-30  Bruno Haible  <bruno@clisp.org>
19522
19523         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
19524
19525 2007-09-29  Bruno Haible  <bruno@clisp.org>
19526
19527         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
19528
19529 2007-09-29  Bruno Haible  <bruno@clisp.org>
19530
19531         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
19532         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
19533         * build-aux/install-reloc: Compile also areadlink.c.
19534         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
19535
19536 2007-09-29  Bruno Haible  <bruno@clisp.org>
19537
19538         * gnulib-tool (func_emit_initmacro_done): Indentation.
19539
19540 2007-09-29  Bruno Haible  <bruno@clisp.org>
19541
19542         * README: Add CVS checkout update instructions.
19543         Info from Bob Proulx <bob@proulx.com>.
19544
19545 2007-09-28  Eric Blake  <ebb9@byu.net>
19546
19547         Provide move-if-change.
19548         * build-aux/move-if-change: New file, based on best practice
19549         rather than any canonical upstream location.
19550
19551 2007-09-28  Jim Meyering  <jim@meyering.net>
19552
19553         Fix canonicalize loop-detection corner case.
19554         Do not attempt to stat the symlink values stored via seen_triple.
19555         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
19556         on linux-2.6.18, (but not 2.6.22).
19557         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
19558         triple_compare.  The former compares dev,ino,filename, while the latter
19559         would actually stat dirname(filename) when dev and ino were equal.
19560         * lib/hash-triple.c: Install <string.h>.
19561         (STREQ): Define.
19562         (triple_compare_ino_str): New function.
19563         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
19564
19565 2007-09-28  Eric Blake  <ebb9@byu.net>
19566
19567         Enforce that AC_REPLACE_FUNCS files exist.
19568         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
19569         override check for typos.
19570
19571         Fix test-closein on Solaris 10.
19572         * tests/test-closein.c (main): Don't assume stdin can be inherited
19573         closed on all systems.
19574         * tests/test-closein.sh: Likewise.
19575         Reported by Piotr Tarnowski.
19576
19577 2007-09-28  Jim Meyering  <jim@meyering.net>
19578
19579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
19580
19581 2007-09-27  Jim Meyering  <jim@meyering.net>
19582
19583         canonicalize: Avoid a false-positive cycle failure.
19584         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
19585         Sort.  Remove cycle-check.
19586         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
19587         not cycle-check.h.
19588         (seen_triple): New function.
19589         (canonicalize_filename_mode): Use it instead of cycle-check.
19590         * tests/test-canonicalize.c: Add a test for this bug.
19591         * tests/test-canonicalize.sh: Set up and run the test.
19592
19593         New module, file-set, from coreutils.
19594         * modules/file-set: Define it.
19595         * lib/file-set.c, lib/file-set.h: Implement.
19596
19597         New module, hash-triple, from coreutils.
19598         * modules/hash-triple: Define it.
19599         * lib/hash-triple.c, lib/hash-triple.h: Implement.
19600
19601 2007-09-25  Eric Blake  <ebb9@byu.net>
19602
19603         Fix strerror on Interix.
19604         * lib/string_.h (strerror): Declare replacement.
19605         * doc/functions/strerror.texi (strerror): Document the Interix
19606         shortcoming.
19607         * modules/string (Makefile.am): Support new hooks.
19608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
19609         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
19610         gl_FUNC_STRERROR_SEPARATE.
19611         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
19612         * lib/strerror.c (rpl_strerror): Provide replacement.
19613         * modules/strerror (Depends-on): Add string.
19614         (configure.ac): Detect use of module.
19615         * tests/test-strerror.c: New file.
19616         * modules/strerror-tests: New test module.
19617         * modules/argp (Depends-on): Add strerror.
19618         * modules/error (Depends-on): Likewise.
19619         Reported by Martin Koeppe.
19620
19621 2007-09-24  Bruno Haible  <bruno@clisp.org>
19622
19623         * README: Update git instructions.
19624
19625 2007-09-24  Eric Blake  <ebb9@byu.net>
19626
19627         Revert fpending breakage from 2007-09-08.
19628         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
19629         __fpending.c.
19630
19631 2007-09-24  Jim Meyering  <jim@meyering.net>
19632
19633         filenamecat.c: Add a test.
19634         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
19635         showing how the function works when DIR is the empty string.
19636
19637 2007-09-21  Simon Josefsson  <simon@josefsson.org>
19638
19639         * tests/test-canonicalize.sh: Turn on executable bit.
19640
19641 2007-09-19  Eric Blake  <ebb9@byu.net>
19642
19643         * README: Update CVS instructions.
19644
19645 2007-09-18  Bruno Haible  <bruno@clisp.org>
19646
19647         * modules/areadlink: New file.
19648         * lib/areadlink.h (areadlink): New declaration.
19649         * lib/areadlink.c: New file, based on lib/xreadlink.c.
19650
19651 2007-09-17  Jim Meyering  <jim@meyering.net>
19652
19653         * lib/savewd.c (ESTALE) [!defined]: Define.
19654         Reported to be required on Interix by Martin Koeppe.
19655
19656 2007-09-17  Bruno Haible  <bruno@clisp.org>
19657
19658         * gnulib-tool (func_version): Use $version.
19659
19660 2007-09-16  Bruno Haible  <bruno@clisp.org>
19661
19662         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
19663         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
19664         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
19665         Reported by Greg Schafer <gschafer@zip.com.au>.
19666
19667 2007-09-15  Bruno Haible  <bruno@clisp.org>
19668
19669         * gnulib-tool (sed): Try a little harder to make bash understand the
19670         alias.
19671         Reported by Bruce Korb <bruce.korb@gmail.com>.
19672
19673 2007-09-13  Eric Blake  <ebb9@byu.net>
19674
19675         * ChangeLog: Remove conflict markers.
19676
19677 2007-09-13  Simon Josefsson  <simon@josefsson.org>
19678
19679         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
19680         Reported by Bruno Haible <bruno@clisp.org>.
19681
19682 2007-09-12  Bruno Haible  <bruno@clisp.org>
19683
19684         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
19685         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
19686         is not defined.
19687
19688 2007-09-12  Eric Blake  <ebb9@byu.net>
19689
19690         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
19691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
19692         Autoconf definition.
19693         * modules/euidaccess (Depends-on): Add extensions, for
19694         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
19695         * modules/fnmatch (Depends-on): Likewise.
19696         * modules/getaddrinfo (Depends-on): Likewise.
19697         * modules/getdelim (Depends-on): Likewise.
19698         * modules/getline (Depends-on): Likewise.
19699         * modules/getsubopt (Depends-on): Likewise.
19700         * modules/gettext (Depends-on): Likewise.
19701         * modules/group-member (Depends-on): Likewise.
19702         * modules/mbchar (Depends-on): Likewise.
19703         * modules/memmem (Depends-on): Likewise.
19704         * modules/mempcpy (Depends-on): Likewise.
19705         * modules/memrchr (Depends-on): Likewise.
19706         * modules/pagealign_alloc (Depends-on): Likewise.
19707         * modules/readutmp (Depends-on): Likewise.
19708         * modules/stpcpy (Depends-on): Likewise.
19709         * modules/stpncpy (Depends-on): Likewise.
19710         * modules/strchrnul (Depends-on): Likewise.
19711         * modules/strndup (Depends-on): Likewise.
19712         * modules/strsep (Depends-on): Likewise.
19713         * modules/strverscmp (Depends-on): Likewise.
19714         * modules/vasprintf (Depends-on): Likewise.
19715         * modules/wcwidth (Depends-on): Likewise.
19716         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
19717         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
19718         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
19719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
19720         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19721         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19722         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
19723         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19724         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
19725         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19727         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19729         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19730         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
19731         * m4/readutmp.m4 (gl_READUTMP): Likewise.
19732         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19733         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19735         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19737         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19738         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19739         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
19740         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
19741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19742         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
19743         so that lock.m4 can be used in gettext without extensions module.
19744
19745 2007-09-11  Bruno Haible  <bruno@clisp.org>
19746
19747         * m4/isc-posix.m4: Remove file.
19748         Suggested by Eric Blake.
19749
19750 2007-09-11  Eric Blake  <ebb9@byu.net>
19751
19752         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
19753
19754 2007-09-10  Bruno Haible  <bruno@clisp.org>
19755
19756         * posix-modules: Fix typo in error message.
19757         Reported by Matt <mkraai@beckman.com>.
19758
19759 2007-09-09  Bruno Haible  <bruno@clisp.org>
19760
19761         * doc/functions/getdelim.texi: Update list of platforms lacking the
19762         function.
19763         * doc/functions/getline.texi: Likewise.
19764
19765 2007-09-09  Jim Meyering  <jim@meyering.net>
19766
19767         * lib/hash.c (hash_initialize): Detect calloc failure.
19768         Reported by Bruno Haible.
19769
19770 2007-09-09  Bruno Haible  <bruno@clisp.org>
19771
19772         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
19773         malloc or realloc fails.
19774
19775 2007-09-09  Bruno Haible  <bruno@clisp.org>
19776
19777         * modules/getcwd (Depends-on): Add malloc-posix.
19778         * modules/glob (Depends-on): Likewise.
19779         * modules/putenv (Depends-on): Likewise.
19780         * modules/strdup (Depends-on): Likewise.
19781         * modules/getdelim (Depends-on): Add realloc-posix.
19782         * modules/read-file (Depends-on): Likewise.
19783
19784 2007-09-09  Bruno Haible  <bruno@clisp.org>
19785
19786         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
19787         (gl_FUNC_MALLOC_POSIX): Require it.
19788         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
19789         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
19790         * modules/realloc (Files): Add m4/malloc.m4.
19791         * modules/calloc (Files): Likewise.
19792
19793 2007-09-09  Bruno Haible  <bruno@clisp.org>
19794
19795         * modules/malloc-posix: New file.
19796         * modules/malloc (Depends-on): Add malloc-posix.
19797         * lib/malloc.c: Include errno.h.
19798         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
19799         and a POSIX-compatible malloc into a single function. Set ENOMEM
19800         when returning NULL.
19801         * m4/malloc.m4: New file.
19802         * doc/functions/malloc.texi: Mention the malloc-posix module.
19803         * lib/stdlib_.h (malloc): New declaration.
19804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19805         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
19806         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
19807         and HAVE_MALLOC_POSIX.
19808
19809 2007-09-09  Bruno Haible  <bruno@clisp.org>
19810
19811         * modules/realloc-posix: New file.
19812         * modules/realloc (Depends-on): Add realloc-posix.
19813         * lib/realloc.c: Include errno.h.
19814         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
19815         and a POSIX-compatible realloc into a single function. Set ENOMEM
19816         when returning NULL.
19817         * m4/realloc.m4: New file.
19818         * doc/functions/realloc.texi: Mention the realloc-posix module.
19819         * lib/stdlib_.h (realloc): New declaration.
19820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19821         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
19822         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
19823         and HAVE_REALLOC_POSIX.
19824
19825 2007-09-09  Bruno Haible  <bruno@clisp.org>
19826
19827         * modules/calloc-posix: New file.
19828         * modules/calloc (Depends-on): Add calloc-posix.
19829         * lib/calloc.c: Include errno.h.
19830         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
19831         and a POSIX-compatible calloc into a single function. Set ENOMEM
19832         when returning NULL.
19833         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
19834         * doc/functions/calloc.texi: Mention the calloc-posix module.
19835         * lib/stdlib_.h (calloc): New declaration.
19836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19837         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
19838         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
19839         and HAVE_CALLOC_POSIX.
19840
19841 2007-09-09  Bruno Haible  <bruno@clisp.org>
19842
19843         Allow for modules to show an arbitrary notice.
19844         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
19845         * gnulib-tool: New option --extract-notice.
19846         (func_usage): Document it.
19847         (sed_extract_prog): Update.
19848         (func_get_notice): New function.
19849         (func_modules_notice): New function.
19850         (func_import, func_create_testdir): Invoke it.
19851         Suggested by Jim Meyering.
19852
19853 2007-09-09  Bruno Haible  <bruno@clisp.org>
19854
19855         * gnulib-tool: New options --verbose, --quiet.
19856         (func_usage): Document them.
19857         (verbose): New variable.
19858         (func_execute_command): New function.
19859         (func_import): Don't show the module list and the file list if
19860         $verbose < 0.
19861         (func_create_testdir): Likewise. Use func_execute_command.
19862         (func_create_megatestdir): Use func_execute_command.
19863
19864 2007-09-08  Bruno Haible  <bruno@clisp.org>
19865
19866         * gnulib-tool (func_import): Prefer rsync over wget when available,
19867         for fetching the PO files.
19868
19869 2007-09-08  Bruno Haible  <bruno@clisp.org>
19870
19871         * posix-modules: New file. Portions copied from gnulib-tool.
19872         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
19873
19874 2007-09-08  Jim Meyering  <jim@meyering.net>
19875
19876         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
19877         * lib/fpending.h: Rename from __fpending.h.
19878         * lib/fpending.c: Rename from __fpending.c.
19879         Include "fpending.h", not "__fpending.h".
19880         * lib/__fpending.h, lib/__fpending.c: Remove files.
19881         * modules/fpending (Files): Reflect new file names.
19882         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
19883
19884 2007-09-08  Bruno Haible  <bruno@clisp.org>
19885
19886         * m4/inttypes-h.m4: Remove stub file.
19887
19888 2007-09-07  Simon Josefsson  <simon@josefsson.org>
19889
19890         * doc/headers/stdint.texi: Discuss #include_next issue.
19891
19892 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         * build-aux/bootstrap: Remove obsolete comment about wget --help.
19895
19896 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19897
19898         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
19899         in variable name.
19900
19901 2007-09-03  Jim Meyering  <jim@meyering.net>
19902
19903         New module: git-version-gen.
19904         * modules/git-version-gen: New file.
19905
19906         Import changes from coreutils for bootstrap script.
19907
19908         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
19909
19910         bootstrap: uses rsync to download the .po files
19911         * build-aux/bootstrap (po_download_command_format): New global.
19912         (download_po_files): Use rsync.
19913         (update_po_files): Don't remove .po files after download,
19914         so future rsync runs can take advantage of the copies.
19915
19916         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
19917
19918         Solve the unnecessary-.po-file-regeneration problem once and for all.
19919         * build-aux/bootstrap (download_po_files): New function, renamed from
19920         get_translations.  Now, downloads, but doesn't update LINGUAS.
19921         (update_po_files): New function.
19922
19923         bootstrap: Ignore more.
19924         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
19925         uniwidth to e.g., lib/.gitignore.
19926         (slurp): Handle the sys_stat_.h -> sys mapping, too.
19927
19928         * build-aux/bootstrap: New setting: vc_ignore.
19929         (insert_sorted_if_absent): Create $file if absent.
19930         Adapt to new, possibly empty, list: $vc_ignore.
19931
19932         bootstrap: generate more ignorable names
19933         * build-aux/bootstrap (slurp): When generating ignorable names,
19934         also map .sin to .sed, .gperf to .c, and .y to .c.
19935
19936 2007-09-03  Jim Meyering  <jim@meyering.net>
19937
19938         * build-aux/git-version-gen: New file, from coreutils.  For details, see
19939         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
19940
19941 2007-09-02  Bruno Haible  <bruno@clisp.org>
19942
19943         Fix mis-recognition of 'mcs' on QNX 6.
19944         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
19945         output contains the string "Mono".
19946         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
19947         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
19948
19949 2007-09-01  Bruno Haible  <bruno@clisp.org>
19950
19951         Fix collision between uniwidth/* and linebreak modules.
19952         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
19953         u32_width): Remove declarations.
19954         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
19955         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
19956         streq3, streq2, streq1, streq0): Remove functions.
19957         (STREQ): Remove macro.
19958         (is_cjk_encoding): Remove function.
19959         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
19960         (uc_width, u8_width, u16_width, u32_width): Remove functions.
19961         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
19962         * NEWS: Document the change.
19963
19964 2007-09-01  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/streq.h: Add double-inclusion guard.
19967
19968 2007-09-01  Karl Berry  <karl@gnu.org>
19969
19970         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
19971
19972 2007-08-28  Jim Meyering  <jim@meyering.net>
19973
19974         Rename mreadlink_with_size to areadlink_with_size.
19975         * NEWS: Document the change.
19976         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
19977         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
19978         * lib/mreadlink.h: Rename this to...
19979         * lib/areadlink.h: ...this.
19980         * modules/mreadlink-with-size: Rename this to...
19981         * modules/areadlink-with-size: ...this.
19982         * lib/canonicalize.c: Reflect the renaming.
19983         * modules/canonicalize: Likewise.
19984
19985 2007-08-26  Bruno Haible  <bruno@clisp.org>
19986
19987         * gnulib-tool (func_import): When deciding which files to remove,
19988         consider also dangling symbolic links.
19989         Reported by Eric Blake.
19990
19991 2007-08-26  Bruno Haible  <bruno@clisp.org>
19992
19993         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
19994
19995 2007-08-23  Simon Josefsson  <simon@josefsson.org>
19996
19997         * lib/readline.c: Don't include getline.h, the prototype is now
19998         found in stdio.h.
19999
20000 2007-08-23  Jim Meyering  <jim@meyering.net>
20001
20002         Getdelim touchup.
20003         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
20004         around the funlockfile call, since funlockfile never sets errno.
20005         Don't set errno upon failed realloc.
20006
20007 2007-08-22  Eric Blake  <ebb9@byu.net>
20008
20009         Getline touchups.
20010         * lib/getdelim.c (getdelim): Revert regression that required *n to
20011         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
20012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
20013         getdelim, rather than whether implementation is missing.
20014         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
20015         * lib/stdio_.h (getline): Also declare if replacement is
20016         required.
20017         * doc/functions/getdelim.texi: New file.
20018         * doc/functions/getline.texi: Likewise.
20019         * doc/gnulib.texi (Function Substitutes): Add new files.
20020         Reported by Bruno Haible.
20021
20022 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
20023
20024         * users.txt: Add Guile.
20025
20026 2007-08-22  Eric Blake  <ebb9@byu.net>
20027
20028         * tests/test-getdelim.c (main): Use remove, not unlink.
20029         * tests/test-getline.c (main): Likewise.
20030
20031         Move getline and getdelim into stdio.h, per POSIX 200x.
20032         * modules/getline (Files): Remove getline.h.
20033         (Depends-on): Add stdio.
20034         (configure.ac): Add module indicator.
20035         * modules/getdelim (Files): Remove getdelim.h.
20036         (Depends-on): Add stdio.
20037         (configure.ac): Add module indicator.
20038         * modules/stdio (Makefile.am): Work with new indicators.
20039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
20041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20042         * lib/getdelim.h: Delete.
20043         * lib/getline.h: Delete.
20044         * lib/stdio_.h (getdelim, getline): Declare.
20045         * modules/getdelim-tests: New module.
20046         * modules/getline-tests: Likewise.
20047         * tests/test-getdelim.c: New file.
20048         * tests/test-getline.c: Likewise.
20049         * NEWS: Document the change.
20050         * lib/getline.c: Update choice of header.
20051         * lib/csharpcomp.c: Likewise.
20052         * lib/getpass.c: Likewise.
20053         * lib/javacomp.c: Likewise.
20054         * lib/javaversion.c: Likewise.
20055         * lib/yesno.c: Likewise.
20056         * lib/getdelim.c: Likewise.
20057         (getdelim): Set errno on failure, and avoid memory leak.
20058
20059 2007-08-19  Bruno Haible  <bruno@clisp.org>
20060
20061         * modules/closein (Depends-on): Add freadahead.
20062         * lib/closein.c: Include freadahead.h.
20063         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
20064         is zero.
20065
20066 2007-08-19  Bruno Haible  <bruno@clisp.org>
20067
20068         * modules/freadahead-tests: New file.
20069         * tests/test-freadahead.sh: New file.
20070         * tests/test-freadahead.c: New file.
20071
20072         * modules/freadahead: New file.
20073         * lib/freadahead.h: New file.
20074         * lib/freadahead.c: New file.
20075         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
20076         fbufmode, fpurge, freadable, fwritable.
20077
20078 2007-08-19  Eric Blake  <ebb9@byu.net>
20079
20080         Test yesno in combination with closein.
20081         * lib/yesno.c (yesno): Document use of stdin.
20082         * modules/yesno-tests (Files): New module.
20083         * tests/test-yesno.c (main): New file.
20084         * tests/test-yesno.sh: Likewise.
20085
20086 2007-08-19  Bruno Haible  <bruno@clisp.org>
20087
20088         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
20089         * lib/fseeko.c (rpl_fseeko): Likewise.
20090         * lib/fseterr.c (fseterr): Likewise.
20091
20092 2007-08-19  Bruno Haible  <bruno@clisp.org>
20093
20094         * tests/test-lseek.c (main): Disable a test for BeOS.
20095         * doc/functions/lseek.texi: Document the BeOS bug.
20096
20097 2007-08-19  Bruno Haible  <bruno@clisp.org>
20098             Eric Blake  <ebb9@byu.net>
20099
20100         * lib/lseek.c: Include <sys/stat.h>.
20101         (rpl_lseek): Add workaround code also for Unix platforms.
20102         Needed for BeOS.
20103         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
20104         * doc/functions/lseek.texi: Document BeOS definiency.
20105
20106 2007-08-18  Bruno Haible  <bruno@clisp.org>
20107
20108         * modules/fstrcmp-tests: New file.
20109         * tests/test-fstrcmp.c: New file.
20110
20111 2007-08-18  Bruno Haible  <bruno@clisp.org>
20112
20113         * modules/fstrcmp: New file, from GNU gettext with modifications.
20114         * lib/fstrcmp.h: New file, from GNU gettext.
20115         * lib/fstrcmp.c: New file, from GNU gettext.
20116         * MODULES.html.sh (String handling): Add fstrcmp.
20117
20118 2007-08-18  Bruno Haible  <bruno@clisp.org>
20119
20120         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
20121         'bool'.
20122         (diag, compareseq): Remove const from the ctxt argument.
20123         (USE_HEURISTIC): Undefine at the end.
20124
20125 2007-08-18  Jim Meyering  <jim@meyering.net>
20126
20127         New file: lib/idcache.h
20128         * NEWS: Mention the addition.
20129         * modules/idcache (Files): Add lib/idcache.h
20130         * lib/idcache.c: Include "idcache.h".
20131         Don't include <sys/types.h>.
20132         Add a FIXME comment.
20133         Move file-scoped "static" declarations to the top.
20134         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
20135
20136 2007-08-17  Bruno Haible  <bruno@clisp.org>
20137         and Paul Eggert  <eggert@cs.ucla.edu>
20138
20139         * MODULES.html.sh: Add diffseq.
20140         * modules/diffseq: New file.
20141         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
20142         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
20143
20144 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         Import changes from coreutils for bootstrap script.
20147
20148         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
20149
20150         * build-aux/bootstrap (slurp): Work even in environments where
20151         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
20152         current code does not slurp files whose names start with ".", and
20153         this looks like it might be a troublesome area.
20154
20155         2007-07-11  Jim Meyering  <jim@meyering.net>
20156
20157         If there's a GPL vN copyright comment, require that N == 3.
20158
20159         2007-07-08  Jim Meyering  <jim@meyering.net>
20160
20161         Run the coreutils-specific code only if tests/Makefile.am.in exists.
20162         * build-aux/bootstrap (mam_template): Move definition out of loop.
20163
20164         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
20165
20166         * build-aux/bootstrap (symlink_to_dir): Rename function from
20167         symlink_to_gnulib.  Add a directory parameter.  Update all
20168         callers.
20169         (cp_mark_as_generated): Also check for -- and link to -- files in
20170         gl/.
20171
20172         2007-07-08  Jim Meyering  <jim@meyering.net>
20173
20174         Adapt to deeper hierarchy in gnulib.
20175         * build-aux/bootstrap (symlink_to_dir): If the destination
20176         directory doesn't exist, create it. This is required at least for
20177         "lib/uniwidth/cjk.h".
20178
20179         2007-05-15  Jim Meyering  <jim@meyering.net>
20180
20181         * build-aux/bootstrap: Now that generated Makefile.am files
20182         are no longer under version control, they must be created at
20183         bootstrap time.
20184
20185 2007-08-14  Ben Pfaff  <blp@gnu.org>
20186
20187         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
20188
20189 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20190
20191         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
20192         given the changes below.
20193         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
20194         even on hosts that have padding bits beyond the supported 64.
20195
20196 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20197
20198         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
20199         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
20200         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
20201         depends on it.
20202         (xstrtol_error): Remove.
20203         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
20204         but with a different signature.
20205         (ATTRIBUTE_NORETURN, __attribute__): New macros.
20206         * lib/xstrtol-error.c: Include exitfail.h.
20207         (xstrtol_fatal): New function, with a different signature from the
20208         old xstrtol_error, so that the caller need not worry about passing
20209         in an exit status, or about storage management of the option argument.
20210         (xstrtol_error): Now a static function.  Redo signature to
20211         implement xstrtol_fatal.  Output the correct number of hyphens in
20212         front of the option so that the caller need not worry about
20213         storage management.
20214         (N_): New macro.
20215         (_): Remove; not used now.
20216         * modules/xstrtol: Depend on getopt.
20217         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
20218         of old STRTOL_FATAL_ERROR macro.
20219         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
20220         of test program.
20221         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
20222         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
20223
20224 2007-08-08  Eric Blake  <ebb9@byu.net>
20225
20226         * lib/xstrtol-error.c: Add missing include.
20227
20228         Move xstrtol messages into gnulib domain, when --pobase is used.
20229         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
20230         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
20231         * modules/xstrtol (Files): Distribute new file.
20232         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
20233         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
20234         * tests/test-xstrtol.c: ...into new file.
20235         * tests/test-xstrtoul.c: Also test xstrtoul.
20236         * tests/test-xstrtoimax.c: Also test xstrtoimax.
20237         * tests/test-xstrtoumax.c: Also test xstrtoumax.
20238         * tests/test-xstrtol.sh: Drive the tests.
20239         * tests/test-xstrtoimax.sh: Likewise.
20240         * tests/test-xstrtoumax.sh: Likewise.
20241         * modules/xstrtol-tests: New module.
20242         * modules/xstrtoimax-tests: Likewise.
20243         * modules/xstrtoumax-tests: Likewise.
20244
20245 2007-08-08  Jim Meyering  <jim@meyering.net>
20246
20247         New function: mfile_name_concat.
20248         * lib/filenamecat.c (mfile_name_concat): New function, just like
20249         file_name_concat, but return NULL upon failure rather than exiting
20250         with a diagnostic.
20251         * lib/filenamecat.h: Declare it.
20252
20253 2007-08-07  Bruno Haible  <bruno@clisp.org>
20254
20255         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
20256         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
20257         warning from gcc.
20258         Reported by Eric Blake.
20259
20260 2007-08-07  Simon Josefsson  <simon@josefsson.org>
20261
20262         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
20263         * modules/crypto/arcfour (License): Likewise.
20264         * modules/crypto/des-tests (License): Likewise.
20265         * modules/crypto/gc-arctwo-tests (License): Likewise.
20266         * modules/crypto/gc-des-tests (License): Likewise.
20267         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
20268         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
20269         * modules/crypto/gc-md2-tests (License): Likewise.
20270         * modules/crypto/gc-md4-tests (License): Likewise.
20271         * modules/crypto/gc-md5-tests (License): Likewise.
20272         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
20273         * modules/crypto/gc-rijndael-tests (License): Likewise.
20274         * modules/crypto/gc-sha1-tests (License): Likewise.
20275         * modules/crypto/gc-tests (License): Likewise.
20276         * modules/crypto/hmac-md5 (License): Likewise.
20277         * modules/crypto/hmac-sha1 (License): Likewise.
20278         * modules/crypto/md2-tests (License): Likewise.
20279         * modules/crypto/md4-tests (License): Likewise.
20280         * modules/crypto/md5 (License): Likewise.
20281         * modules/crypto/rijndael (License): Likewise.
20282         * modules/crypto/sha1 (License): Likewise.
20283         * modules/memxor (License): Likewise.
20284
20285 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20286         and Bruno Haible  <bruno@clisp.org>
20287
20288         * NEWS: Describe interface changes to human, xstrtol.
20289         * lib/human.h: Include <xstrtol.h>.
20290         (human_options): Return enum strtol_error, not int.  Remove
20291         bool arg; take int * instead.
20292         * lib/human.c: Don't include "gettext.h".
20293         (_): Remove; no longer used.
20294         Don't include <xstrtol.h>, since human.h does it.
20295         (human_options): Adjust to abovementioned interface changes.
20296         Do not report error to stderr; that's now the caller's
20297         responsibility.
20298         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
20299         interface change.
20300         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
20301         Str, Argument_type_string.  All uses changed.  Put " argument"
20302         in diagnostics to make them clearer.  Change wording of suffix
20303         message for clarity.
20304         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
20305         Argument_type_string.
20306         (STRTOL_FATAL_WARN): Remove; no longer used.
20307         * modules/human (Depends-on): Remove gettext-h.
20308
20309 2007-08-06  Simon Josefsson  <simon@josefsson.org>
20310
20311         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
20312
20313 2007-07-31  Bruno Haible  <bruno@clisp.org>
20314
20315         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
20316         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
20317         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
20318
20319 2007-07-31  Bruno Haible  <bruno@clisp.org>
20320
20321         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
20322         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
20323
20324 2007-07-30  Bruno Haible  <bruno@clisp.org>
20325
20326         * modules/base64 (License): Use the synonymous term "LGPLv2+".
20327         * modules/c-ctype (License): Likewise.
20328         * modules/c-strcase (License): Likewise.
20329         * modules/check-version (License): Likewise.
20330         * modules/iconv (License): Likewise.
20331         * modules/iconv_open (License): Likewise.
20332         * modules/read-file (License): Likewise.
20333         * modules/striconv (License): Likewise.
20334         * modules/strverscmp (License): Likewise.
20335         * modules/vasprintf (License): Likewise.
20336         * modules/crypto/des (License): Likewise.
20337         * modules/crypto/gc (License): Likewise.
20338         * modules/crypto/gc-arcfour (License): Likewise.
20339         * modules/crypto/gc-arctwo (License): Likewise.
20340         * modules/crypto/gc-des (License): Likewise.
20341         * modules/crypto/gc-hmac-md5 (License): Likewise.
20342         * modules/crypto/gc-hmac-sha1 (License): Likewise.
20343         * modules/crypto/gc-md2 (License): Likewise.
20344         * modules/crypto/gc-md4 (License): Likewise.
20345         * modules/crypto/gc-md5 (License): Likewise.
20346         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
20347         * modules/crypto/gc-random (License): Likewise.
20348         * modules/crypto/gc-rijndael (License): Likewise.
20349         * modules/crypto/gc-sha1 (License): Likewise.
20350         * modules/crypto/md2 (License): Likewise.
20351         * modules/crypto/md4 (License): Likewise.
20352
20353 2007-07-30  Jim Meyering  <jim@meyering.net>
20354
20355         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
20356         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
20357         it has valid stat data.  This bug would cause du not to count the
20358         sizes of inaccessible directories.
20359         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
20360         in <http://bugzilla.redhat.com/250077>.
20361
20362 2007-07-25  Peter O'Gorman  <peter@pogma.com>
20363             Bruno Haible  <bruno@clisp.org>
20364
20365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
20366         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
20367         #include_next, gives a diagnostic about it, but reports no error in
20368         the exit code.
20369         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20370
20371 2007-07-24  Ben Pfaff  <blp@gnu.org>
20372
20373         Improve name: "count-one-bits" is better than "popcount".
20374         * MODULES.html.sh: Update name.
20375         * lib/popcount.h: Renamed lib/count-one-bits.h.
20376         (popcount): Renamed count_one_bits.
20377         (popcountl): Renamed count_one_bits_l.
20378         (popcountll): Renamed count_one_bits_ll.
20379         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
20380         * modules/popcount: Renamed module/count-one-bits.
20381         * modules/popcount-tests: Renamed module/count-one-bits-tests.
20382         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
20383
20384 2007-07-23  Ben Pfaff  <blp@gnu.org>
20385
20386         * lib/popcount.h (popcount32): Reduce size of constants, to allow
20387         better code generation, and add U to large constants to avoid
20388         warnings, in non-GCC case.
20389         Suggested by Bruno Haible.
20390
20391 2007-07-23  Ben Pfaff  <blp@gnu.org>
20392
20393         * lib/popcount.h: Use verify_true instead of if...abort.
20394         * modules/popcount: Depend on verify module.
20395         Suggested by Jim Meyering.
20396
20397 2007-07-23  Bruno Haible  <bruno@clisp.org>
20398
20399         * gnulib-tool (func_import): Create a .cvsignore file also when the
20400         directory is not yet in CVS but the toplevel directory is. When
20401         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
20402         Reported by Karl Berry.
20403
20404 2007-07-22  Ben Pfaff  <blp@gnu.org>
20405
20406         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
20407         case.
20408         Suggested by Eric Blake.
20409
20410 2007-07-22  Ben Pfaff  <blp@gnu.org>
20411
20412         New module: popcount.
20413         * MODULES.html.sh: Add popcount.
20414         * modules/popcount: New file.
20415         * modules/popcount-tests: New file.
20416         * tests/test-popcount.c: New file.
20417         * lib/popcount.h: New file.
20418         * m4/popcount.m4: New file.
20419
20420 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20421
20422         * build-aux/announce-gen: Update to GPLv3.
20423
20424         * build-aux/config.guess: Update from config.
20425
20426 2007-07-21  Bruno Haible  <bruno@clisp.org>
20427
20428         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
20429         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
20430
20431 2007-07-20  Jim Meyering  <jim@meyering.net>
20432
20433         * check-module: Diagnose a self-dependency.
20434
20435 2007-07-19  Bruno Haible  <bruno@clisp.org>
20436
20437         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
20438         empty.
20439         Reported by Eric Blake.
20440
20441 2007-07-18  Bruno Haible  <bruno@clisp.org>
20442
20443         * gnulib-tool: New options --po-base, --po-domain.
20444         (func_usage): Document them.
20445         (pobase, po_domain): New variables.
20446         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
20447         DEFAULT_TEXT_DOMAIN.
20448         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
20449         (func_import): Consider pobase and po_domain. Create a po/ directory.
20450         (func_create_testdir): Set pobase and po_domain to empty.
20451         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
20452         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
20453
20454 2007-07-18  Bruno Haible  <bruno@clisp.org>
20455
20456         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20457         EXTRA_DIST augmentation for files in build-aux/.
20458
20459 2007-07-16  Bruno Haible  <bruno@clisp.org>
20460
20461         * modules/lseek (License): Use the synonymous term "LGPLv2+".
20462         * modules/getdelim (License): Likewise.
20463
20464 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20465
20466         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
20467         * modules/d-type (License): Likewise.
20468         * modules/extensions (License): Likewise.
20469         * modules/fnmatch (License): Likewise.
20470         * modules/fseeko (License): Likewise.
20471         * modules/getaddrinfo (License): Likewise.
20472         * modules/getline (License): Likewise.
20473         * modules/getlogin_r (License): Likewise.
20474         * modules/getpass (License): Likewise.
20475         * modules/gettimeofday (License): Likewise.
20476         * modules/glob (License): Likewise.
20477         * modules/inet_ntop (License): Likewise.
20478         * modules/malloc (License): Likewise.
20479         * modules/malloca (License): Likewise.
20480         * modules/memmem (License): Likewise.
20481         * modules/mempcpy (License): Likewise.
20482         * modules/memset (License): Likewise.
20483         * modules/minmax (License): Likewise.
20484         * modules/mktime (License): Likewise.
20485         * modules/netinet_in (License): Likewise.
20486         * modules/pathmax (License): Likewise.
20487         * modules/poll (License): Likewise.
20488         * modules/regex (License): Likewise.
20489         * modules/snprintf (License): Likewise.
20490         * modules/stdbool (License): Likewise.
20491         * modules/stdint (License): Likewise.
20492         * modules/stdio (License): Likewise.
20493         * modules/strcase (License): Likewise.
20494         * modules/strcasestr (License): Likewise.
20495         * modules/strdup (License): Likewise.
20496         * modules/string (License): Likewise.
20497         * modules/strndup (License): Likewise.
20498         * modules/strnlen (License): Likewise.
20499         * modules/strpbrk (License): Likewise.
20500         * modules/strptime (License): Likewise.
20501         * modules/strsep (License): Likewise.
20502         * modules/sys_select (License): Likewise.
20503         * modules/sys_socket (License): Likewise.
20504         * modules/sys_stat (License): Likewise.
20505         * modules/sys_time (License): Likewise.
20506         * modules/time (License): Likewise.
20507         * modules/time_r (License): Likewise.
20508         * modules/timegm (License): Likewise.
20509         * modules/unistd (License): Likewise.
20510         * modules/vsnprintf (License): Likewise.
20511         * modules/wctype (License): Likewise.
20512
20513 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20514
20515         * modules/argz (License): LGPLv2+.
20516
20517 2007-07-15  Karl Berry  <karl@gnu.org>
20518
20519         * doc/gnulib.texi: revise node structure per new fdl.texi.
20520
20521 2007-07-14  Bruno Haible  <bruno@clisp.org>
20522
20523         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
20524         the output file.
20525         * lib/uniname/uninames.h: Regenerated.
20526
20527 2007-07-14  Karl Berry  <karl@gnu.org>
20528
20529         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
20530         omitting sectioning and index commands.
20531
20532 2007-07-13  Bruno Haible  <bruno@clisp.org>
20533
20534         New gnulib-tool option --more-symlinks.
20535         * gnulib-tool (func_usage): Document --more-symlinks.
20536         (do_copyrights): New variable.
20537         Recognize option --more-symlinks.
20538         (func_import): Don't add a copyright notice transform to
20539         sed_transform_lib_file if do_copyrights is empty.
20540
20541 2007-07-13  Bruno Haible  <bruno@clisp.org>
20542
20543         * lib/vasnprintf.c (decimal_point_char): Define also if
20544         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
20545         && !NEED_PRINTF_DIRECTIVE_A.
20546         Reported by Clemens Koller <clemens.koller@anagramm.de> via
20547         Gary V. Vaughan <gary@gnu.org>.
20548
20549 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
20550
20551         * lib/inttypes_.h: Undo previous change, since it was fixed
20552         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
20553
20554 2007-07-13  Bruno Haible  <bruno@clisp.org>
20555
20556         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
20557         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
20558
20559 2007-07-13  Jim Meyering  <jim@meyering.net>
20560
20561         df: Don't fail for Tru64's "file-on-file mount".
20562         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
20563         so we fall through and use statfs instead.  Details here:
20564         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
20565         Reported by Albert Chin.
20566
20567 2007-07-13  Bruno Haible  <bruno@clisp.org>
20568
20569         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
20570         * modules/configmake (License): Likewise.
20571         * modules/gettext (License): Likewise.
20572         * modules/gettext-h (License): Likewise.
20573         * modules/include_next (License): Likewise.
20574         * modules/link-warning (License): Likewise.
20575         * modules/localcharset (License): Likewise.
20576         * modules/localename (License): Likewise.
20577         * modules/lock (License): Likewise.
20578         * modules/relocatable-lib-lgpl (License): Likewise.
20579         * modules/size_max (License): Likewise.
20580         * modules/vasnprintf (License): Likewise.
20581         * modules/wchar (License): Likewise.
20582         * modules/xsize (License): Likewise.
20583
20584 2007-07-13  Bruno Haible  <bruno@clisp.org>
20585
20586         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
20587         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
20588
20589 2007-07-12  Bruno Haible  <bruno@clisp.org>
20590
20591         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
20592         in the modules files.
20593
20594 2007-07-11  Karl Berry  <karl@gnu.org>
20595
20596         * MODULES.html.sh (func_module): use
20597          sed -e '\|^'"${includefile}"'$|d'
20598          instead of /.../d, to avoid errors on $includefile's containing /.
20599
20600 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20601
20602         * gnulib-tool (func_import): Avoid duplication of --avoid
20603         statements
20604         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
20605         names to `_' in variable names.
20606
20607 2007-07-10  Eric Blake  <ebb9@byu.net>
20608
20609         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
20610         * NEWS: Document this change.
20611
20612 2007-07-08  Bruno Haible  <bruno@clisp.org>
20613
20614         Update to Unicode 5.0.
20615         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
20616         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
20617         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
20618         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
20619         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
20620         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
20621         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
20622         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
20623         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
20624         U+10A3F, U+1D242..U+1D244.
20625         (nonspacing_table_ind): Update.
20626         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
20627         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
20628
20629 2007-07-08  Bruno Haible  <bruno@clisp.org>
20630
20631         Update to Unicode 5.0.
20632         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
20633         code transform. Extend the name index field of unicode_name_to_code and
20634         unicode_code_to_name from 16 to 24 bits.
20635         * lib/uniname/uniname.c (unicode_character_name,
20636         unicode_name_character): Add the range 0x12xxx to the code transform.
20637         * lib/uniname/uninames.h: Regenerated.
20638         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
20639
20640 2007-07-07  Bruno Haible  <bruno@clisp.org>
20641
20642         * modules/wcwidth-tests: New file.
20643         * tests/test-wcwidth.c: New file.
20644
20645         Work around MacOS X wcwidth() bug.
20646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
20647         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
20648         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
20649         original wcwidth in non-UTF-8 locales.
20650         * modules/wcwidth (Depends-on): Add localcharset, streq,
20651         uniwidth/width.
20652         * doc/functions/wcwidth.texi: Update.
20653
20654 2007-07-07  Bruno Haible  <bruno@clisp.org>
20655
20656         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
20657         (wcwidth): New declaration.
20658         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
20659         macros.
20660         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
20661         here. Prepare for creating <wchar.h> unconditionally.
20662         * modules/wchar (Depends-on): Add link-warning.
20663         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
20664         REPLACE_WCWIDTH, and GL_LINK_WARNING.
20665         * lib/wcwidth.h: Remove file.
20666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
20667         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
20668         * modules/wcwidth (Files): Remove lib/wcwidth.h.
20669         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
20670         (Include): Replace wcwidth.h with <wchar.h>.
20671         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
20672         * lib/mbchar.h: Don't include wcwidth.h.
20673         * lib/mbswidth.c: Likewise.
20674         * NEWS: Mention the change.
20675
20676 2007-07-07  Bruno Haible  <bruno@clisp.org>
20677
20678         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
20679         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
20680         definition with an external declaration.
20681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
20682         defined as a function. Remove AC_C_INLINE requirement.
20683         * modules/wcwidth (Files): Add lib/wcwidth.c.
20684         (Makefile.am): Remove redundant statement.
20685
20686 2007-07-07  Bruno Haible  <bruno@clisp.org>
20687
20688         * MODULES.html.sh (Unicode string functions): Add the new modules.
20689
20690         * tests/uniwidth/test-u32-strwidth.c: New file.
20691         * modules/uniwidth/u32-strwidth-tests: New file.
20692
20693         * lib/uniwidth/u32-strwidth.c: New file.
20694         * modules/uniwidth/u32-strwidth: New file.
20695
20696         * tests/uniwidth/test-u16-strwidth.c: New file.
20697         * modules/uniwidth/u16-strwidth-tests: New file.
20698
20699         * lib/uniwidth/u16-strwidth.c: New file.
20700         * modules/uniwidth/u16-strwidth: New file.
20701
20702         * tests/uniwidth/test-u8-strwidth.c: New file.
20703         * modules/uniwidth/u8-strwidth-tests: New file.
20704
20705         * lib/uniwidth/u8-strwidth.c: New file.
20706         * modules/uniwidth/u8-strwidth: New file.
20707
20708         * tests/uniwidth/test-u32-width.c: New file.
20709         * modules/uniwidth/u32-width-tests: New file.
20710
20711         * lib/uniwidth/u32-width.c: New file.
20712         * modules/uniwidth/u32-width: New file.
20713
20714         * tests/uniwidth/test-u16-width.c: New file.
20715         * modules/uniwidth/u16-width-tests: New file.
20716
20717         * lib/uniwidth/u16-width.c: New file.
20718         * modules/uniwidth/u16-width: New file.
20719
20720         * tests/uniwidth/test-u8-width.c: New file.
20721         * modules/uniwidth/u8-width-tests: New file.
20722
20723         * lib/uniwidth/u8-width.c: New file.
20724         * modules/uniwidth/u8-width: New file.
20725
20726         * tests/uniwidth/test-uc_width.c: New file.
20727         * modules/uniwidth/width-tests: New file.
20728
20729         * lib/uniwidth/width.c: New file, from GNU libiconv.
20730         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
20731         * modules/uniwidth/width: New file.
20732
20733         * lib/uniwidth.h: New file, from GNU libiconv.
20734         * modules/uniwidth/base: New file.
20735
20736 2007-07-07  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/uniname.h: New file, from GNU gettext.
20739         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
20740         * lib/uniname/uninames.h: New file, from GNU gettext.
20741         * lib/uniname/uniname.c: New file, from GNU gettext.
20742         * tests/uniname/test-uninames.sh: New file.
20743         * tests/uniname/test-uninames.c: New file, from GNU gettext.
20744         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
20745         * modules/uniname/base: New file.
20746         * modules/uniname/uniname: New file.
20747         * modules/uniname/uniname-tests: New file.
20748         * MODULES.html.sh (Unicode string functions): Add the new modules.
20749
20750 2007-07-06  Bruno Haible  <bruno@clisp.org>
20751
20752         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
20753
20754 2007-07-06  Bruno Haible  <bruno@clisp.org>
20755
20756         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
20757         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
20758         includes <cygwin/sys_time.h> which includes <sys/select.h> which
20759         include <sys/time.h>.
20760         Reported by Eric Blake.
20761
20762 2007-07-06  Eric Blake  <ebb9@byu.net>
20763
20764         Fix testing canonicalize on cygwin.
20765         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
20766         Revert patch from 2007-06-19.
20767         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
20768         canonicalize module is also in use.
20769         * tests/test-canonicalize.c: New file.
20770         * tests/test-canonicalize.sh: Likewise.
20771         * modules/canonicalize-tests: Likewise.
20772
20773 2007-07-06  Jim Meyering  <jim@meyering.net>
20774
20775         * lib/getugroups.c (getugroups): Detect getgrent failure.
20776         Adjust comment to reflect reality: this function may return -1.
20777
20778 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20779
20780         * build-aux/bootstrap (TP_URL,get_translations): Update to use
20781         the new TP address.
20782         (usage): Fix typo
20783         (gnulib_mk): New variable.
20784
20785 2007-07-05  Jim Meyering  <jim@meyering.net>
20786
20787         Don't let endgrent clobber errno, no matter how improbable.
20788         * lib/getugroups.c (getugroups): Save and restore errno around
20789         endgrent call.
20790
20791         Close the group DB even when failing with 2^31 or more members.
20792         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
20793
20794 2007-07-04  Jim Meyering  <jim@meyering.net>
20795
20796         * lib/getugroups.h: New file.
20797         * lib/getugroups.c: Include "getugroups.h".
20798         Remove uses of "register" keyword.
20799         Move local variable, "cp", down into scope where used.
20800         Give "username" parameter the "const" attribute.
20801         * modules/getugroups (Files): Add lib/getugroups.h
20802
20803 2007-07-04  Karl Berry  <karl@gnu.org>
20804
20805         * MODULES.html.sh (func_all_modules): Complete rename of
20806         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
20807
20808 2007-07-02  Bruno Haible  <bruno@clisp.org>
20809
20810         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
20811         mode, when inttypes.h comes from gnulib.
20812         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20813
20814 2007-07-02  Simon Josefsson  <simon@josefsson.org>
20815
20816         * NEWS: Mention lgpl module name change.
20817
20818         * modules/lgpl-2.1: Renamed from lgpl.
20819
20820         * NEWS: Mention gpl module name change.
20821
20822         * modules/gpl-3.0: New file, based on gpl-2.0.
20823
20824         * modules/gpl-2.0: Renamed from gpl.
20825
20826         * modules/gpl: Fix filename, doc/gpl.texi is now found at
20827         doc/gpl-2.0.texi.
20828
20829 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20830
20831         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
20832         #define __STDC_LIMIT_MACROS temporarily while including
20833         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
20834         Problem reported by Joel E. Denny in
20835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
20836
20837 2007-07-01  Bruno Haible  <bruno@clisp.org>
20838
20839         * lib/unistdio.h: New file.
20840         * lib/unistdio/u-asnprintf.h: New file.
20841         * lib/unistdio/u-asprintf.h: New file.
20842         * lib/unistdio/u-printf-args.c: New file.
20843         * lib/unistdio/u-printf-args.h: New file.
20844         * lib/unistdio/u-printf-parse.h: New file.
20845         * lib/unistdio/u-snprintf.h: New file.
20846         * lib/unistdio/u-sprintf.h: New file.
20847         * lib/unistdio/u-vasprintf.h: New file.
20848         * lib/unistdio/u-vsnprintf.h: New file.
20849         * lib/unistdio/u-vsprintf.h: New file.
20850         * lib/unistdio/ulc-asnprintf.c: New file.
20851         * lib/unistdio/ulc-asprintf.c: New file.
20852         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
20853         * lib/unistdio/ulc-printf-parse.c: New file.
20854         * lib/unistdio/ulc-snprintf.c: New file.
20855         * lib/unistdio/ulc-sprintf.c: New file.
20856         * lib/unistdio/ulc-vasnprintf.c: New file.
20857         * lib/unistdio/ulc-vasprintf.c: New file.
20858         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
20859         * lib/unistdio/ulc-vsnprintf.c: New file.
20860         * lib/unistdio/ulc-vsprintf.c: New file.
20861         * lib/unistdio/u8-asnprintf.c: New file.
20862         * lib/unistdio/u8-asprintf.c: New file.
20863         * lib/unistdio/u8-printf-parse.c: New file.
20864         * lib/unistdio/u8-snprintf.c: New file.
20865         * lib/unistdio/u8-sprintf.c: New file.
20866         * lib/unistdio/u8-vasnprintf.c: New file.
20867         * lib/unistdio/u8-vasprintf.c: New file.
20868         * lib/unistdio/u8-vsnprintf.c: New file.
20869         * lib/unistdio/u8-vsprintf.c: New file.
20870         * lib/unistdio/u8-u8-asnprintf.c: New file.
20871         * lib/unistdio/u8-u8-asprintf.c: New file.
20872         * lib/unistdio/u8-u8-snprintf.c: New file.
20873         * lib/unistdio/u8-u8-sprintf.c: New file.
20874         * lib/unistdio/u8-u8-vasnprintf.c: New file.
20875         * lib/unistdio/u8-u8-vasprintf.c: New file.
20876         * lib/unistdio/u8-u8-vsnprintf.c: New file.
20877         * lib/unistdio/u8-u8-vsprintf.c: New file.
20878         * lib/unistdio/u16-asnprintf.c: New file.
20879         * lib/unistdio/u16-asprintf.c: New file.
20880         * lib/unistdio/u16-printf-parse.c: New file.
20881         * lib/unistdio/u16-snprintf.c: New file.
20882         * lib/unistdio/u16-sprintf.c: New file.
20883         * lib/unistdio/u16-vasnprintf.c: New file.
20884         * lib/unistdio/u16-vasprintf.c: New file.
20885         * lib/unistdio/u16-vsnprintf.c: New file.
20886         * lib/unistdio/u16-vsprintf.c: New file.
20887         * lib/unistdio/u16-u16-asnprintf.c: New file.
20888         * lib/unistdio/u16-u16-asprintf.c: New file.
20889         * lib/unistdio/u16-u16-snprintf.c: New file.
20890         * lib/unistdio/u16-u16-sprintf.c: New file.
20891         * lib/unistdio/u16-u16-vasnprintf.c: New file.
20892         * lib/unistdio/u16-u16-vasprintf.c: New file.
20893         * lib/unistdio/u16-u16-vsnprintf.c: New file.
20894         * lib/unistdio/u16-u16-vsprintf.c: New file.
20895         * lib/unistdio/u32-asnprintf.c: New file.
20896         * lib/unistdio/u32-asprintf.c: New file.
20897         * lib/unistdio/u32-printf-parse.c: New file.
20898         * lib/unistdio/u32-snprintf.c: New file.
20899         * lib/unistdio/u32-sprintf.c: New file.
20900         * lib/unistdio/u32-vasnprintf.c: New file.
20901         * lib/unistdio/u32-vasprintf.c: New file.
20902         * lib/unistdio/u32-vsnprintf.c: New file.
20903         * lib/unistdio/u32-vsprintf.c: New file.
20904         * lib/unistdio/u32-u32-asnprintf.c: New file.
20905         * lib/unistdio/u32-u32-asprintf.c: New file.
20906         * lib/unistdio/u32-u32-snprintf.c: New file.
20907         * lib/unistdio/u32-u32-sprintf.c: New file.
20908         * lib/unistdio/u32-u32-vasnprintf.c: New file.
20909         * lib/unistdio/u32-u32-vasprintf.c: New file.
20910         * lib/unistdio/u32-u32-vsnprintf.c: New file.
20911         * lib/unistdio/u32-u32-vsprintf.c: New file.
20912         * tests/unistdio/test-ulc-asnprintf1.c: New file.
20913         * tests/unistdio/test-ulc-asnprintf1.h: New file.
20914         * tests/unistdio/test-ulc-printf1.h: New file.
20915         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
20916         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
20917         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
20918         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
20919         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
20920         * tests/unistdio/test-ulc-vasprintf1.c: New file.
20921         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
20922         * tests/unistdio/test-ulc-vsprintf1.c: New file.
20923         * tests/unistdio/test-u8-asnprintf1.c: New file.
20924         * tests/unistdio/test-u8-asnprintf1.h: New file.
20925         * tests/unistdio/test-u8-printf1.h: New file.
20926         * tests/unistdio/test-u8-vasnprintf1.c: New file.
20927         * tests/unistdio/test-u8-vasnprintf2.c: New file.
20928         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
20929         * tests/unistdio/test-u8-vasnprintf3.c: New file.
20930         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
20931         * tests/unistdio/test-u8-vasprintf1.c: New file.
20932         * tests/unistdio/test-u8-vsnprintf1.c: New file.
20933         * tests/unistdio/test-u8-vsprintf1.c: New file.
20934         * tests/unistdio/test-u16-asnprintf1.c: New file.
20935         * tests/unistdio/test-u16-asnprintf1.h: New file.
20936         * tests/unistdio/test-u16-printf1.h: New file.
20937         * tests/unistdio/test-u16-vasnprintf1.c: New file.
20938         * tests/unistdio/test-u16-vasnprintf2.c: New file.
20939         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
20940         * tests/unistdio/test-u16-vasnprintf3.c: New file.
20941         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
20942         * tests/unistdio/test-u16-vasprintf1.c: New file.
20943         * tests/unistdio/test-u16-vsnprintf1.c: New file.
20944         * tests/unistdio/test-u16-vsprintf1.c: New file.
20945         * tests/unistdio/test-u32-asnprintf1.c: New file.
20946         * tests/unistdio/test-u32-asnprintf1.h: New file.
20947         * tests/unistdio/test-u32-printf1.h: New file.
20948         * tests/unistdio/test-u32-vasnprintf1.c: New file.
20949         * tests/unistdio/test-u32-vasnprintf2.c: New file.
20950         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
20951         * tests/unistdio/test-u32-vasnprintf3.c: New file.
20952         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
20953         * tests/unistdio/test-u32-vasprintf1.c: New file.
20954         * tests/unistdio/test-u32-vsnprintf1.c: New file.
20955         * tests/unistdio/test-u32-vsprintf1.c: New file.
20956         * modules/unistdio/base: New file.
20957         * modules/unistdio/u-printf-args: New file.
20958         * modules/unistdio/ulc-asnprintf: New file.
20959         * modules/unistdio/ulc-asprintf: New file.
20960         * modules/unistdio/ulc-fprintf: New file.
20961         * modules/unistdio/ulc-printf-parse: New file.
20962         * modules/unistdio/ulc-snprintf: New file.
20963         * modules/unistdio/ulc-sprintf: New file.
20964         * modules/unistdio/ulc-vasnprintf: New file.
20965         * modules/unistdio/ulc-vasprintf: New file.
20966         * modules/unistdio/ulc-vfprintf: New file.
20967         * modules/unistdio/ulc-vsnprintf: New file.
20968         * modules/unistdio/ulc-vsprintf: New file.
20969         * modules/unistdio/u8-asnprintf: New file.
20970         * modules/unistdio/u8-asprintf: New file.
20971         * modules/unistdio/u8-printf-parse: New file.
20972         * modules/unistdio/u8-snprintf: New file.
20973         * modules/unistdio/u8-sprintf: New file.
20974         * modules/unistdio/u8-vasnprintf: New file.
20975         * modules/unistdio/u8-vasprintf: New file.
20976         * modules/unistdio/u8-vsnprintf: New file.
20977         * modules/unistdio/u8-vsprintf: New file.
20978         * modules/unistdio/u8-u8-asnprintf: New file.
20979         * modules/unistdio/u8-u8-asprintf: New file.
20980         * modules/unistdio/u8-u8-snprintf: New file.
20981         * modules/unistdio/u8-u8-sprintf: New file.
20982         * modules/unistdio/u8-u8-vasnprintf: New file.
20983         * modules/unistdio/u8-u8-vasprintf: New file.
20984         * modules/unistdio/u8-u8-vsnprintf: New file.
20985         * modules/unistdio/u8-u8-vsprintf: New file.
20986         * modules/unistdio/u16-asnprintf: New file.
20987         * modules/unistdio/u16-asprintf: New file.
20988         * modules/unistdio/u16-printf-parse: New file.
20989         * modules/unistdio/u16-snprintf: New file.
20990         * modules/unistdio/u16-sprintf: New file.
20991         * modules/unistdio/u16-vasnprintf: New file.
20992         * modules/unistdio/u16-vasprintf: New file.
20993         * modules/unistdio/u16-vsnprintf: New file.
20994         * modules/unistdio/u16-vsprintf: New file.
20995         * modules/unistdio/u16-u16-asnprintf: New file.
20996         * modules/unistdio/u16-u16-asprintf: New file.
20997         * modules/unistdio/u16-u16-snprintf: New file.
20998         * modules/unistdio/u16-u16-sprintf: New file.
20999         * modules/unistdio/u16-u16-vasnprintf: New file.
21000         * modules/unistdio/u16-u16-vasprintf: New file.
21001         * modules/unistdio/u16-u16-vsnprintf: New file.
21002         * modules/unistdio/u16-u16-vsprintf: New file.
21003         * modules/unistdio/u32-asnprintf: New file.
21004         * modules/unistdio/u32-asprintf: New file.
21005         * modules/unistdio/u32-printf-parse: New file.
21006         * modules/unistdio/u32-snprintf: New file.
21007         * modules/unistdio/u32-sprintf: New file.
21008         * modules/unistdio/u32-vasnprintf: New file.
21009         * modules/unistdio/u32-vasprintf: New file.
21010         * modules/unistdio/u32-vsnprintf: New file.
21011         * modules/unistdio/u32-vsprintf: New file.
21012         * modules/unistdio/u32-u32-asnprintf: New file.
21013         * modules/unistdio/u32-u32-asprintf: New file.
21014         * modules/unistdio/u32-u32-snprintf: New file.
21015         * modules/unistdio/u32-u32-sprintf: New file.
21016         * modules/unistdio/u32-u32-vasnprintf: New file.
21017         * modules/unistdio/u32-u32-vasprintf: New file.
21018         * modules/unistdio/u32-u32-vsnprintf: New file.
21019         * modules/unistdio/u32-u32-vsprintf: New file.
21020         * modules/unistdio/ulc-asnprintf-tests: New file.
21021         * modules/unistdio/ulc-vasnprintf-tests: New file.
21022         * modules/unistdio/ulc-vasprintf-tests: New file.
21023         * modules/unistdio/ulc-vsnprintf-tests: New file.
21024         * modules/unistdio/ulc-vsprintf-tests: New file.
21025         * modules/unistdio/u8-asnprintf-tests: New file.
21026         * modules/unistdio/u8-vasnprintf-tests: New file.
21027         * modules/unistdio/u8-vasprintf-tests: New file.
21028         * modules/unistdio/u8-vsnprintf-tests: New file.
21029         * modules/unistdio/u8-vsprintf-tests: New file.
21030         * modules/unistdio/u16-asnprintf-tests: New file.
21031         * modules/unistdio/u16-vasnprintf-tests: New file.
21032         * modules/unistdio/u16-vasprintf-tests: New file.
21033         * modules/unistdio/u16-vsnprintf-tests: New file.
21034         * modules/unistdio/u16-vsprintf-tests: New file.
21035         * modules/unistdio/u32-asnprintf-tests: New file.
21036         * modules/unistdio/u32-vasnprintf-tests: New file.
21037         * modules/unistdio/u32-vasprintf-tests: New file.
21038         * modules/unistdio/u32-vsnprintf-tests: New file.
21039         * modules/unistdio/u32-vsprintf-tests: New file.
21040         * MODULES.html.sh (Unicode string functions): Add the new modules.
21041
21042 2007-07-01  Bruno Haible  <bruno@clisp.org>
21043
21044         * lib/sprintf.c (sprintf): Limit the available length estimation,
21045         to avoid address wraparound.
21046         * lib/vsprintf.c (vsprintf): Likewise.
21047         * modules/sprintf-posix (Dependencies): Add stdint.
21048         * modules/vsprintf-posix (Dependencies): Likewise.
21049
21050 2007-07-01  Bruno Haible  <bruno@clisp.org>
21051
21052         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
21053         Windows PATH as well. Conservative double-quoting. Comments.
21054
21055 2007-07-01  Bruno Haible  <bruno@clisp.org>
21056             Eric Blake  <ebb9@byu.net>
21057             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21058
21059         * gnulib-tool (self_abspathname): Fix algorithm to cope with
21060         empty components in $PATH, denoting '.'.
21061
21062 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21063
21064         * gnulib-tool: Fix indentation.
21065         (func_create_megatestdir): Likewise.
21066         Report by Bruno Haible.
21067
21068 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21069
21070         Sync from Automake.
21071         * build-aux/gnupload: Fix shell portability issues with for loops.
21072         Report by Karl Berry.
21073
21074 2007-06-29  Simon Josefsson  <simon@josefsson.org>
21075
21076         * build-aux/maint.mk (POURL): Use translationproject.org.
21077
21078 2007-06-27  Simon Josefsson  <simon@josefsson.org>
21079             Bruno Haible  <bruno@clisp.org>
21080
21081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
21082         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
21083         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
21084         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
21085         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
21086
21087 2007-06-27  Bruno Haible  <bruno@clisp.org>
21088
21089         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
21090         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
21091
21092 2007-06-26  Karl Berry  <karl@gnu.org>
21093
21094         * MODULES.html.sh: remove xreadlink-with-size.
21095
21096 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21097
21098         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
21099         method that I hope also handles the double-include problem noted
21100         by Bruno Haible in
21101         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
21102
21103 2007-06-23  Bruno Haible  <bruno@clisp.org>
21104
21105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21106         Don't let the 'mostlyclean' target fail if the last subdirectory could
21107         not be removed.
21108         Reported by Karl Berry.
21109
21110 2007-06-23  Bruno Haible  <bruno@clisp.org>
21111
21112         * gnulib-tool (echo): Add a speedier workaround for ksh.
21113         * tests/test-echo.sh: Likewise.
21114
21115 2007-06-23  Bruno Haible  <bruno@clisp.org>
21116
21117         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
21118         * tests/test-echo.sh: Likewise.
21119
21120 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21121
21122         * gnulib-tool (IFS): Initialize early, so we don't set it to
21123         empty later.
21124         (self_abspathname): Rewrite algorithm to set it, reindent.
21125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21126         (func_create_megatestdir): Merge some sed scripts.
21127
21128 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21129
21130         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
21131         exposed by Sun Studio 11 cc on Solaris 8.
21132
21133 2007-06-22  Bruno Haible  <bruno@clisp.org>
21134
21135         * gnulib-tool (echo): Ensure the echo primitive does not interpret
21136         backslashes.
21137         * tests/test-echo.sh: New file.
21138
21139 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21140
21141         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
21142         simplify `sed_replace_build_aux' scripts, they are portable but
21143         echoing them with `echo' is not.
21144         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
21145
21146 2007-06-21  Karl Berry  <karl@gnu.org>
21147
21148         * config/srclist.txt: guess we can't handle the licenses via
21149         srclist at the moment.
21150
21151 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21152
21153         * MODULES.html.sh: Add include_next.
21154         * modules/include_next: New file.
21155
21156 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21157
21158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
21159         INCLUDE_NEXT.
21160         (gl_CHECK_NEXT_HEADERS): New macro.
21161         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
21162         the obsolescent gl_ABSOLUTE_HEADER.
21163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21164         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21165         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21166         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21167         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21168         * m4/math_h.m4 (gl_MATH_H): Likewise.
21169         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21170         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21171         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21172         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21173         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21174         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21175         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21178         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21180         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21181         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
21182         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21183         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21184         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21185         * m4/inttypes.m4 (gl_INTTYPES_H): Define
21186         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
21187         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
21188         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
21189         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
21190         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
21191         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
21192         * lib/float_.h: Likewise.
21193         * lib/inttypes_.h: Likewise.
21194         * lib/math_.h: Likewise.
21195         * lib/search_.h: Likewise.
21196         * lib/signal_.h: Likewise.
21197         * lib/stdint_.h: Likewise.
21198         * lib/stdio_.h: Likewise.
21199         * lib/stdlib_.h: Likewise.
21200         * lib/string_.h: Likewise.
21201         * lib/sys_stat_.h: Likewise.
21202         * lib/sys_time_.h: Likewise.
21203         * lib/time_.h: Likewise.
21204         * lib/unistd_.h: Likewise.
21205         * lib/wchar_.h: Likewise.
21206         * lib/wctype_.h: Likewise.
21207         * lib/dirent_.h: Likewise.
21208         * lib/iconv_.h: Likewise.
21209         * lib/locale_.h: Likewise.
21210         * lib/netinet_in_.h: Likewise.
21211         * lib/sys_select_.h: Likewise.
21212         * lib/sys_socket_.h: Likewise.
21213         * lib/sysexits_.h: Likewise.
21214         * modules/fcntl (Depends-on): Depend on include_next, not
21215         absolute_header.
21216         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
21217         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
21218         * modules/fchdir: Likewise.
21219         * modules/float: Likewise.
21220         * modules/iconv_open: Likewise.
21221         * modules/inttypes: Likewise.
21222         * modules/locale: Likewise.
21223         * modules/math: Likewise.
21224         * modules/netinet_in: Likewise.
21225         * modules/search: Likewise.
21226         * modules/signal: Likewise.
21227         * modules/stdint: Likewise.
21228         * modules/stdio: Likewise.
21229         * modules/stdlib: Likewise.
21230         * modules/string: Likewise.
21231         * modules/sys_select: Likewise.
21232         * modules/sys_socket: Likewise.
21233         * modules/sys_stat: Likewise.
21234         * modules/sys_time: Likewise.
21235         * modules/sysexits: Likewise.
21236         * modules/time: Likewise.
21237         * modules/unistd: Likewise.
21238         * modules/wchar: Likewise.
21239         * modules/wctype: Likewise.
21240         * modules/sys_stat: Change maintainer to "all".
21241         * modules/unistd: Likewise.
21242
21243 2007-06-20  Karl Berry  <karl@gnu.org>
21244
21245         * config/srclist.txt: track www changes in license files.
21246
21247 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
21248
21249         * build-aux/bootstrap: Remove stray dot.
21250         Make sure build_aux settings are honored when linking
21251         gnulib_extra_files.
21252
21253 2007-06-19  Eric Blake  <ebb9@byu.net>
21254
21255         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21256         Allow compilation on cygwin.
21257
21258 2007-06-19  Jim Meyering  <jim@meyering.net>
21259
21260         xreadlink-with-size: Remove module.  No longer used.
21261         Ex-callers now use xreadlink or mreadlink-with-size.
21262         * modules/xreadlink-with-size: Remove module.
21263         * lib/xreadlink-with-size.c: Remove file.
21264         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
21265         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
21266         just before the function definition *is* accurate.
21267
21268         Eliminate one way canonicalize_filename_mode could exit.
21269         * lib/canonicalize.c (canonicalize_filename_mode):
21270         Use mreadlink_with_size, not xreadlink_with_size.
21271
21272 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
21273
21274         Detect porting problems to FreeBSD/arm, which has time_t wider than
21275         long int.  Original problem reported for GNU diff by Xin Li in
21276         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
21277         * modules/getdate (Depends-on): Add intprops, verify.
21278         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
21279         is an integer type no wider than long int.
21280
21281 2007-06-18  Jim Meyering  <jim@meyering.net>
21282
21283         New module: mreadlink-with-size.
21284         * MODULES.html.sh: Add mreadlink-with-size.
21285         * modules/mreadlink-with-size: New module
21286         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
21287         not xreadlink-with-size.
21288         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
21289
21290 2007-06-16  Bruno Haible  <bruno@clisp.org>
21291
21292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
21293         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
21294         Reported by Gary V. Vaughan <gary@gnu.org>.
21295
21296 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
21297
21298         Revamp lchown so that it lives in unistd.h where it belongs.
21299         * lib/lchown.h: Remove.
21300         * lib/dirchownmod.c: Don't include lib/lchown.h.
21301         * lib/fchownat.c: Likewise.
21302         * lib/openat.c: Likewise.
21303         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
21304         does not follow symlinks.
21305         (EOPNOTSUPP): Define if not defined.
21306         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
21307         is defined to 0.
21308         (lchown): New decl.
21309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
21310         Do not check for lchown decl.
21311         Set REPLACE_LCHOWN.
21312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
21313         REPLACE_LCHOWN.
21314         * modules/chown: Make it clear it follows symlinks.
21315         * modules/lchown: Make it clear it doesn't follow symlinks.
21316         (Files): Remove lib/lchown.h
21317         (Depends-on): Add unistd.
21318         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
21319         (Include): Include <unistd.h>, not "lchown.h".
21320         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
21321         REPLACE_LCHOWN.
21322
21323 2007-06-15  Jim Meyering  <jim@meyering.net>
21324
21325         Change license (GPL to LGPL) of fsusage and dependents.
21326         * modules/fsusage (License): Change to LGPL.
21327         * modules/full-read (License): Likewise.
21328         * modules/full-write (License): Likewise.
21329         * modules/safe-read (License): Likewise.
21330         * modules/safe-write (License): Likewise.
21331
21332 2007-06-14  Ben Pfaff  <blp@gnu.org>
21333
21334         Missing part of allocsa -> malloca transition.
21335         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
21336         gl_MALLOCA.
21337
21338 2007-06-12  Bruno Haible  <bruno@clisp.org>
21339
21340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
21341         to ia64, x86_64, i386.
21342         Reported by Eric Blake.
21343
21344 2007-06-12  Bruno Haible  <bruno@clisp.org>
21345
21346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
21347         cross-compiling to x86_64.
21348
21349 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
21350
21351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
21352         glitch reported by Ralf Wildenhues in
21353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
21354
21355         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
21356         Vin Shelton.
21357
21358 2007-06-11  Bruno Haible  <bruno@clisp.org>
21359
21360         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
21361         replacement string.
21362         Reported by Eric Blake.
21363
21364 2007-06-10  Bruno Haible  <bruno@clisp.org>
21365
21366         Prepare vasnprintf code for use with Unicode strings.
21367         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
21368         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
21369         TYPE_U32_STRING.
21370         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
21371         a_u32_string variants.
21372         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21373         * lib/printf-args.c: Don't include config.h and the specification
21374         header if PRINTF_FETCHARGS is already defined.
21375         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21376         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
21377         TYPE_U16_STRING, TYPE_U32_STRING.
21378         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
21379         u16_directive, u16_directives, u32_directive, u32_directives): New
21380         types.
21381         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
21382         New declarations.
21383         * lib/printf-parse.c: Don't include config.h and the specification
21384         header if PRINTF_PARSE is already defined. Eliminate the set of
21385         parameters for WIDE_CHAR_VERSION; the user of this file must provide
21386         them now. Include c-ctype.h.
21387         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
21388         directive and CHAR_T_ONLY_ASCII.
21389         * lib/vasnprintf.c: Don't include config.h and the specification header
21390         if VASNPRINTF is already defined.
21391         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
21392         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
21393         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
21394         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
21395         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
21396         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
21397         code accordingly.
21398         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
21399         pad_ourselves also in this case, with the 'c' and 's' directives, and
21400         with a different notion of "width".
21401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
21402
21403 2007-06-10  Bruno Haible  <bruno@clisp.org>
21404
21405         * modules/unistr/u32-mbsnlen: New file.
21406         * lib/unistr/u32-mbsnlen.c: New file.
21407
21408         * modules/unistr/u16-mbsnlen: New file.
21409         * lib/unistr/u16-mbsnlen.c: New file.
21410
21411         * modules/unistr/u8-mbsnlen: New file.
21412         * lib/unistr/u8-mbsnlen.c: New file.
21413
21414         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
21415         declarations.
21416
21417 2007-06-10  Bruno Haible  <bruno@clisp.org>
21418
21419         * lib/string_.h (mbsnlen): New declaration.
21420         * lib/mbsnlen.c: New file.
21421         * m4/mbsnlen.m4: New file.
21422         * modules/mbsnlen: New file.
21423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
21424         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
21425         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
21426
21427 2007-06-10  Bruno Haible  <bruno@clisp.org>
21428
21429         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
21430
21431 2007-06-10  Bruno Haible  <bruno@clisp.org>
21432
21433         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
21434         * lib/mbuiter.h: Likewise.
21435
21436 2007-06-10  Bruno Haible  <bruno@clisp.org>
21437
21438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
21439         declaration.
21440
21441 2007-06-10  Karl Berry  <karl@gnu.org>
21442
21443         * config/srclist.txt: remove gettext entries, Bruno prefers
21444         to update individually.
21445
21446 2007-06-10  Bruno Haible  <bruno@clisp.org>
21447
21448         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
21449         'maxlen'. Ensure only length + width bytes are allocated, not
21450         length + 1 + width.
21451
21452 2007-06-09  Bruno Haible  <bruno@clisp.org>
21453
21454         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
21455         (CHAR_T): Remove macro.
21456         (VASNPRINTF): Update.
21457
21458 2007-06-09  Bruno Haible  <bruno@clisp.org>
21459
21460         * MODULES.html.sh (Unicode string functions): Add the new modules.
21461
21462         * modules/uniconv/u32-conv-to-enc: New file.
21463         * lib/uniconv/u32-conv-to-enc.c: New file.
21464         * modules/uniconv/u32-conv-to-enc-tests: New file.
21465         * tests/uniconv/test-u32-conv-to-enc.c: New file.
21466
21467         * modules/uniconv/u16-conv-to-enc: New file.
21468         * lib/uniconv/u16-conv-to-enc.c: New file.
21469         * lib/uniconv/u-conv-to-enc.h: New file.
21470         * modules/uniconv/u16-conv-to-enc-tests: New file.
21471         * tests/uniconv/test-u16-conv-to-enc.c: New file.
21472
21473         * modules/uniconv/u8-conv-to-enc: New file.
21474         * lib/uniconv/u8-conv-to-enc.c: New file.
21475         * modules/uniconv/u8-conv-to-enc-tests: New file.
21476         * tests/uniconv/test-u8-conv-to-enc.c: New file.
21477
21478         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21479         u32_conv_to_encoding): New declarations.
21480
21481 2007-06-09  Bruno Haible  <bruno@clisp.org>
21482
21483         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
21484
21485 2007-06-09  Bruno Haible  <bruno@clisp.org>
21486
21487         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
21488         * modules/malloca: Renamed from modules/allocsa, updated.
21489         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
21490         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
21491         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
21492         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
21493         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
21494         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
21495         * modules/xmalloca: Renamed from modules/xallocsa, updated.
21496         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
21497         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
21498         * modules/c-strcasestr (Depends-on): Update.
21499         * lib/c-strcasestr.c: Update.
21500         * modules/c-strstr (Depends-on): Update.
21501         * lib/c-strstr.c: Update.
21502         * modules/canonicalize-lgpl (Depends-on): Update.
21503         * lib/canonicalize-lgpl.c: Update.
21504         * modules/clean-temp (Depends-on): Update.
21505         * lib/clean-temp.c: Update.
21506         * modules/csharpcomp (Depends-on): Update.
21507         * lib/csharpcomp.c: Update.
21508         * modules/csharpexec (Depends-on): Update.
21509         * lib/csharpexec.c: Update.
21510         * modules/javacomp (Depends-on): Update.
21511         * lib/javacomp.c: Update.
21512         * modules/javaexec (Depends-on): Update.
21513         * lib/javaexec.c: Update.
21514         * modules/mbscasestr (Depends-on): Update.
21515         * lib/mbscasestr.c: Update.
21516         * modules/mbsstr (Depends-on): Update.
21517         * lib/mbsstr.c: Update.
21518         * modules/setenv (Depends-on): Update.
21519         * lib/setenv.c: Update.
21520         * modules/strcasestr (Depends-on): Update.
21521         * lib/strcasestr.c: Update.
21522         * modules/striconveha (Depends-on): Update.
21523         * lib/striconveha.c: Update.
21524         * modules/relocatable-prog-wrapper (Files): Update.
21525         * lib/relocwrapper.c: Update.
21526         * build-aux/install-reloc: Update.
21527         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
21528
21529 2007-06-08  Bruno Haible  <bruno@clisp.org>
21530
21531         Port to uClibc.
21532         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
21533         * lib/fpurge.c (fpurge): Likewise.
21534         * lib/freading.c (freading): Likewise.
21535         * lib/fseeko.c (rpl_fseeko): Likewise.
21536         * lib/fseterr.c (fseterr): Likewise.
21537         * lib/fwriting.c (fwriting): Likewise.
21538         * tests/test-fflush.c (main): Avoid a failure on uClibc.
21539
21540 2007-06-08  Bruno Haible  <bruno@clisp.org>
21541
21542         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
21543         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
21544         * modules/gettext (Files): Add m4/intlmacosx.m4.
21545
21546 2007-06-07  Bruno Haible  <bruno@clisp.org>
21547
21548         * modules/localename-tests: New file.
21549         * tests/test-localename.c: New file.
21550
21551         New module 'localename'.
21552         * lib/localename.h: New file.
21553         * lib/localename.c: New file, from GNU gettext.
21554         * m4/localename.m4: New file.
21555         * modules/localename: New file.
21556
21557 2007-06-07  Bruno Haible  <bruno@clisp.org>
21558
21559         Work around the lack of <wchar.h> on some builds of uClibc.
21560         * doc/headers/wchar.texi: Update.
21561         * lib/wchar_.h: Include <wchar.h> only if it exists.
21562         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
21563         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
21564         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
21565         doesn't exist.
21566         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
21567         * modules/mbfile (Depends-on): Add wchar.
21568         * modules/mbiter (Depends-on): Likewise.
21569         * modules/mbuiter (Depends-on): Likewise.
21570         Reported by Simon Josefsson.
21571
21572 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21573
21574         Work around problem reported by Steven M. Schweda in
21575         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
21576         Tru64 5.1B with the Compaq compiler environment installed declares
21577         an 'isblank' function but does not define it in the C library.
21578         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
21579         * lib/regex_internal.h (isblank): Likewise.
21580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
21581         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21582
21583 2007-06-05  Bruno Haible  <bruno@clisp.org>
21584
21585         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
21586         ia64.
21587         * modules/printf-safe: New file.
21588         * modules/fprintf-posix (Depends-on): Add printf-safe.
21589         * modules/printf-posix (Depends-on): Likewise.
21590         * modules/snprintf-posix (Depends-on): Likewise.
21591         * modules/sprintf-posix (Depends-on): Likewise.
21592         * modules/vasnprintf-posix (Depends-on): Likewise.
21593         * modules/vasprintf-posix (Depends-on): Likewise.
21594         * modules/vfprintf-posix (Depends-on): Likewise.
21595         * modules/vprintf-posix (Depends-on): Likewise.
21596         * modules/vsnprintf-posix (Depends-on): Likewise.
21597         * modules/vsprintf-posix (Depends-on): Likewise.
21598         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
21599         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
21600         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
21601         "no" on i386, x86_64, ia64.
21602         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
21603         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21604         on i386, x86_64, ia64.
21605         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
21606         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21607         on i386, x86_64, ia64.
21608         * tests/test-vasnprintf-posix.c: Include float.h.
21609         (LDBL80_WORDS): New macro.
21610         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21611         on i386, x86_64, ia64.
21612         * tests/test-vasprintf-posix.c: Include float.h.
21613         (LDBL80_WORDS): New macro.
21614         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21615         on i386, x86_64, ia64.
21616         * tests/test-snprintf-posix.c: Include float.h.
21617         * tests/test-sprintf-posix.c: Likewise.
21618         * tests/test-vsnprintf-posix.c: Likewise.
21619         * tests/test-vsprintf-posix.c: Likewise.
21620
21621 2007-06-05  Bruno Haible  <bruno@clisp.org>
21622
21623         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
21624         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
21625         non-IEEE numbers on i386, x86_64, ia64.
21626         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
21627         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
21628         * tests/test-isnanl.h: Include float.h.
21629         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
21630
21631 2007-06-05  Bruno Haible  <bruno@clisp.org>
21632
21633         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
21634         also the %a / %A. Handle the %a / %A code before this extra handling.
21635
21636 2007-06-05  Bruno Haible  <bruno@clisp.org>
21637
21638         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
21639         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
21640
21641 2007-06-05  Bruno Haible  <bruno@clisp.org>
21642
21643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
21644         typo in variable name.
21645
21646 2007-06-05  Eric Blake  <ebb9@byu.net>
21647
21648         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
21649         Reported by Simon Josefsson.
21650
21651 2007-06-04  Bruno Haible  <bruno@clisp.org>
21652
21653         Avoid test failures on some PowerPC platforms.
21654         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
21655         Define differently for PowerPC.
21656         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
21657         Reported by Gary V. Vaughan <gary@gnu.org>.
21658
21659 2007-06-02  Bruno Haible  <bruno@clisp.org>
21660
21661         Fix test-stdint failure on FreeBSD/ia64.
21662         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
21663         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
21664         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
21665         * doc/headers/stdint.texi: Update.
21666
21667 2007-06-01  Bruno Haible  <bruno@clisp.org>
21668
21669         * tests/test-binary-io.c (main): Pass a third argument to open().
21670         Reported by Gary V. Vaughan <gary@gnu.org>.
21671
21672 2007-06-01  Bruno Haible  <bruno@clisp.org>
21673
21674         * doc/functions/frexpl.texi: Update for mingw.
21675
21676 2007-06-01  Bruno Haible  <bruno@clisp.org>
21677
21678         * tests/test-lseek.c (main): Disable test of errno for invalid third
21679         argument.
21680         * doc/functions/lseek.texi: Update.
21681         Reported by Gary V. Vaughan <gary@gnu.org>.
21682
21683 2007-05-28  Bruno Haible  <bruno@clisp.org>
21684
21685         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
21686
21687 2007-05-31  Eric Blake  <ebb9@byu.net>
21688
21689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
21690         cross compiling.
21691
21692 2007-05-30  Eric Blake  <ebb9@byu.net>
21693         and Bruno Haible  <bruno@clisp.org>
21694
21695         Work around mingw test failures exposed by m4-1.4.9b.
21696         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
21697         * tests/test-unistd.c: Disable uid_t and git_t tests for the
21698         moment.
21699
21700 2007-05-30  Bruno Haible  <bruno@clisp.org>
21701
21702         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
21703         assuming that they are closed. Needed on HP-UX 11.
21704
21705 2007-05-29  Bruno Haible  <bruno@clisp.org>
21706
21707         Fix a problem with #include_next.
21708         * lib/dirent_.h: Split the double-inclusion guard.
21709         * lib/fcntl_.h: Likewise.
21710         * lib/float_.h: Likewise.
21711         * lib/iconv_.h: Likewise.
21712         * lib/inttypes_.h: Likewise.
21713         * lib/locale_.h: Likewise.
21714         * lib/math_.h: Likewise.
21715         * lib/netinet_in_.h: Likewise.
21716         * lib/search_.h: Likewise.
21717         * lib/signal_.h: Likewise.
21718         * lib/stdint_.h: Likewise.
21719         * lib/stdio_.h: Likewise.
21720         * lib/stdlib_.h: Likewise.
21721         * lib/string_.h: Likewise.
21722         * lib/sys_select_.h: Likewise.
21723         * lib/sys_socket_.h: Likewise.
21724         * lib/sys_stat_.h: Likewise.
21725         * lib/sys_time_.h: Likewise.
21726         * lib/sysexits_.h: Likewise.
21727         * lib/time_.h: Likewise.
21728         * lib/unistd_.h: Likewise.
21729         * lib/wchar_.h: Likewise.
21730         * lib/wctype_.h: Likewise.
21731
21732 2007-05-29  Bruno Haible  <bruno@clisp.org>
21733
21734         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
21735         for the moment.
21736
21737 2007-05-29  Bruno Haible  <bruno@clisp.org>
21738
21739         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
21740         invocation.
21741         Reported by Eric Blake.
21742
21743 2007-05-29  Bruno Haible  <bruno@clisp.org>
21744
21745         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
21746         compiling case.
21747
21748 2007-05-29  Eric Blake  <ebb9@byu.net>
21749             Bruno Haible  <bruno@clisp.org>
21750
21751         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
21752         cross compiles.
21753
21754 2007-05-28  Eric Blake  <ebb9@byu.net>
21755
21756         * modules/closein-tests (test_closein_LDADD): Support test on
21757         cygwin with libtool.
21758
21759 2007-05-28  Bruno Haible  <bruno@clisp.org>
21760
21761         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
21762         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21763         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21764         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21765         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21766         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21767         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21768         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21769         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21770
21771 2007-05-28  Eric Blake  <ebb9@byu.net>
21772
21773         Unconditionally include <config.h> in unit tests.
21774         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
21775         * tests/test-allocsa.c, tests/test-arcfour.c,
21776         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
21777         tests/test-array_list.c, tests/test-array_oset.c,
21778         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
21779         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
21780         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
21781         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
21782         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
21783         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
21784         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
21785         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
21786         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
21787         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
21788         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
21789         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
21790         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
21791         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
21792         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
21793         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
21794         test-md5.c, test-memmem.c, test-printf-posix.c,
21795         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
21796         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
21797         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
21798         test-strcasestr.c, test-striconv.c, test-striconveh.c,
21799         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
21800         test-vasnprintf-posix2.c, test-vasnprintf.c,
21801         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
21802         test-vfprintf-posix.c, test-vprintf-posix.c,
21803         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
21804         test-xvasprintf.c: Likewise.
21805
21806 2007-05-28  Bruno Haible  <bruno@clisp.org>
21807
21808         * gnulib-tool (func_import): Remember the --with-tests command-line
21809         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
21810         Reported by Eric Blake.
21811
21812 2007-05-28  Bruno Haible  <bruno@clisp.org>
21813
21814         * modules/ftell-tests: New file.
21815         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
21816         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
21817
21818         * lib/ftell.c: New file.
21819         * modules/ftell: New file.
21820         * m4/ftell.m4: New file.
21821         * doc/functions/ftell.texi: Update.
21822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
21823         REPLACE_FTELL.
21824         * lib/stdio_.h (rpl_ftell): New declaration.
21825         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
21826         REPLACE_FTELL.
21827
21828 2007-05-28  Eric Blake  <ebb9@byu.net>
21829
21830         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
21831
21832 2007-05-28  Bruno Haible  <bruno@clisp.org>
21833
21834         * modules/fseek-tests: New file.
21835         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
21836         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
21837
21838         * lib/fseek.c: New file.
21839         * modules/fseek: New file.
21840         * m4/fseek.m4: New file.
21841         * doc/functions/fseek.texi: Update.
21842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
21843         REPLACE_FSEEK.
21844         * lib/stdio_.h (rpl_fseek): New declaration.
21845         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
21846         REPLACE_FSEEK.
21847
21848 2007-05-28  Bruno Haible  <bruno@clisp.org>
21849
21850         * lib/stdio_.h (fflush): More comments.
21851
21852 2007-05-28  Bruno Haible  <bruno@clisp.org>
21853
21854         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
21855         runtime test.
21856
21857 2007-05-28  Eric Blake  <ebb9@byu.net>
21858
21859         Improve lseek module.
21860         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
21861         * lib/unistd_.h (lseek): Scale back link warning message.
21862         * tests/test-lseek.c: Beef up test.
21863         * tests/test-lseek.sh: Exercise more facets of lseek.
21864         Reported by Bruno Haible.
21865
21866 2007-05-28  Bruno Haible  <bruno@clisp.org>
21867
21868         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
21869         to define.
21870
21871 2007-05-27  Bruno Haible  <bruno@clisp.org>
21872
21873         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
21874
21875 2007-05-27  Bruno Haible  <bruno@clisp.org>
21876
21877         * modules/openmp: New file.
21878         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
21879         Noah Misch.
21880
21881 2007-05-26  Bruno Haible  <bruno@clisp.org>
21882
21883         * modules/chdir-long (Depends-on): Add fchdir.
21884         * modules/chdir-safer (Depends-on): Likewise.
21885         * modules/fts (Depends-on): Likewise.
21886         * modules/fts-lgpl (Depends-on): Likewise.
21887         * modules/openat (Depends-on): Likewise.
21888         * modules/savewd (Depends-on): Likewise.
21889
21890 2007-05-24  Eric Blake  <ebb9@byu.net>
21891
21892         Fix lseek on mingw.
21893         * modules/lseek: New module.
21894         * m4/lseek.m4: New file.
21895         * lib/lseek.c: New file.
21896         * modules/lseek-tests: New file.
21897         * tests/test-lseek.c: New file.
21898         * tests/test-lseek.sh: New file.
21899         * MODULES.html.sh: Document lseek module.
21900         * modules/fflush (Depends-on): Add lseek, fseeko.
21901         * modules/fseeko (Depends-on): Likewise.
21902         * modules/ftello (Depends-on): Likewise.
21903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
21904         broken.
21905         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
21906         broken.
21907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
21908         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
21909         * lib/ftello.c (rpl_ftello): Likewise.
21910         * tests/test-fseeko.c (main): Test this.
21911         * tests/test-fseeko.sh: Likewise.
21912         * tests/test-ftello.c (main): Likewise.
21913         * tests/test-ftello.sh: Likewise.
21914         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
21915         implies replacing fseek.
21916         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
21917         HAVE_FTELLO.
21918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
21919         * modules/unistd (Makefile.am): Likewise.
21920         * lib/unistd_.h (lseek): Declare a replacement.
21921         * doc/functions/lseek.texi (lseek): Document this fix.
21922         * doc/functions/fseek.texi (fseek): Likewise.
21923         * doc/functions/ftell.texi (ftell): Likewise.
21924
21925 2007-05-24  Bruno Haible  <bruno@clisp.org>
21926
21927         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
21928         in the printed representation of a NaN.
21929         * tests/test-vasprintf-posix.c (test_function): Likewise.
21930         * tests/test-snprintf-posix.h (test_function): Likewise.
21931         * tests/test-sprintf-posix.h (test_function): Likewise.
21932         Reported by Eric Blake.
21933
21934 2007-05-23  Eric Blake  <ebb9@byu.net>
21935
21936         Fix fseeko/ftello on cygwin 1.5.24.
21937         * doc/functions/fseeko.texi (fseeko): Document the fix.
21938         * doc/functions/ftello.texi (ftello): Document the fix.
21939         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
21940         * doc/functions/stdout.text (stdout): New file.
21941         * doc/functions/stderr.text (stderr): New file.
21942         * doc/gnulib.texi (Function Substitutes): Use new files.
21943         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
21944         prior to 1.7.0.
21945         * tests/test-ftello.c (main): Likewise for ftello.
21946         * tests/test-fseeko.sh: New file.
21947         * tests/test-ftello.sh: New file.
21948         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
21949         with seekable stdin.
21950         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
21951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
21952         (gl_REPLACE_FSEEKO): New macro.
21953         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
21954         * modules/fseeko (Files): Distribute fseeko.c.
21955         * modules/ftello (Files): Distribute ftello.c.
21956         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
21957         mode.
21958         * lib/ftello.c (rpl_ftello): New file.
21959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
21960         fseeko, ftello.
21961         (gl_STDIN_LARGE_OFFSET): New macro.
21962         * modules/stdio (Makefile.am): Perform the replacement.
21963         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
21964
21965 2007-05-23  Bruno Haible  <bruno@clisp.org>
21966
21967         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
21968         GNULIB_POSIXCHECK is defined.
21969
21970 2007-05-21  Bruno Haible  <bruno@clisp.org>
21971
21972         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
21973         Check also the output for NaN arguments. When cross-compiling, guess
21974         no on IRIX.
21975         * lib/vasnprintf.c: Update comments.
21976         * tests/test-vasnprintf-posix.c (strisnan): New function.
21977         (test_function): Use it.
21978         * tests/test-vasprintf-posix.c (strisnan): New function.
21979         (test_function): Use it.
21980         * tests/test-snprintf-posix.h (strisnan): New function.
21981         (test_function): Use it.
21982         * tests/test-sprintf-posix.h (strisnan): New function.
21983         (test_function): Use it.
21984         Reported by Eric Blake.
21985
21986 2007-05-20  Bruno Haible  <bruno@clisp.org>
21987
21988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
21989         numbers that fails on BeOS.
21990         * doc/functions/frexpl.texi: Update.
21991
21992 2007-05-20  Jim Meyering  <jim@meyering.net>
21993
21994         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
21995         forced upon us by glibc-2.6.
21996
21997 2007-05-20  Bruno Haible  <bruno@clisp.org>
21998
21999         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
22000         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
22001         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
22002         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
22003         NEED_PRINTF_INFINITE.
22004         (is_infinitel): New function.
22005         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
22006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
22007         gl_PREREQ_VASNPRINTF_INFINITE.
22008         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
22009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22010         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
22011         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
22012         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
22013         gl_PREREQ_VASNPRINTF_INFINITE.
22014         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22015         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22016         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22021         * doc/functions/fprintf.texi: Update.
22022         * doc/functions/printf.texi: Update.
22023         * doc/functions/snprintf.texi: Update.
22024         * doc/functions/sprintf.texi: Update.
22025         * doc/functions/vfprintf.texi: Update.
22026         * doc/functions/vprintf.texi: Update.
22027         * doc/functions/vsnprintf.texi: Update.
22028         * doc/functions/vsprintf.texi: Update.
22029
22030 2007-05-20  Bruno Haible  <bruno@clisp.org>
22031
22032         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
22033         was not found in libc.
22034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22035
22036 2007-05-20  Bruno Haible  <bruno@clisp.org>
22037
22038         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22039         printed as "-nan" instead of "nan".
22040         * tests/test-vasprintf-posix.c (test_function): Likewise.
22041         * tests/test-snprintf-posix.h (test_function): Likewise.
22042         * tests/test-sprintf-posix.h (test_function): Likewise.
22043         Needed for HP-UX 11.
22044
22045 2007-05-20  Jim Meyering  <jim@meyering.net>
22046
22047         Fix buggy test for the fchownat-deref bug.
22048         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
22049         symlink required for the run-test.  Without it, this test would
22050         always declare that fchownat doesn't work, and client code would
22051         unnecessarily use the replacement function with fixed libc.
22052         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
22053         Reported by Greg Schafer.
22054
22055 2007-05-19  Bruno Haible  <bruno@clisp.org>
22056
22057         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
22058         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
22059         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
22060         Needed for IRIX 6.5 and Solaris 2.5.1.
22061
22062 2007-05-19  Bruno Haible  <bruno@clisp.org>
22063
22064         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
22065         (test_function): Skip tests involving -0.0 on platforms where
22066         -0.0 = 0.0.
22067         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
22068         (test_function): Skip tests involving -0.0 on platforms where
22069         -0.0 = 0.0.
22070         * tests/test-snprintf-posix.h (have_minus_zero): New function.
22071         (test_function): Skip tests involving -0.0 on platforms where
22072         -0.0 = 0.0.
22073         * tests/test-sprintf-posix.h (have_minus_zero): New function.
22074         (test_function): Skip tests involving -0.0 on platforms where
22075         -0.0 = 0.0.
22076         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
22077         tests.
22078         * tests/test-printf-posix.h (test_function): Likewise.
22079         * tests/test-printf-posix.output: Remove all -0.0 related results.
22080         Needed for IRIX 6.5.
22081
22082 2007-05-19  Bruno Haible  <bruno@clisp.org>
22083
22084         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22085         printed as "nan0x7fffffff" instead of "nan".
22086         * tests/test-vasprintf-posix.c (test_function): Likewise.
22087         * tests/test-snprintf-posix.h (test_function): Likewise.
22088         * tests/test-sprintf-posix.h (test_function): Likewise.
22089         * tests/test-fprintf-posix.h (NaN): Remove macro.
22090         (test_function): Remove all NaN related tests.
22091         * tests/test-printf-posix.h (NaN): Remove macro.
22092         (test_function): Remove all NaN related tests.
22093         * tests/test-printf-posix.output: Remove all NaN related results.
22094         Needed for IRIX 6.5.
22095
22096 2007-05-19  Bruno Haible  <bruno@clisp.org>
22097
22098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
22099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22100
22101 2007-05-19  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/float_.h: New file.
22104         * m4/float_h.m4: New file.
22105         * modules/float: New file.
22106         * modules/isnanl (Dependencies): Add float.
22107         * modules/isnanl-nolibm (Dependencies): Likewise.
22108         * modules/mathl (Dependencies): Likewise.
22109         * modules/printf-frexpl (Dependencies): Likewise.
22110         * modules/signbit (Dependencies): Likewise.
22111         * modules/vasnprintf (Dependencies): Likewise.
22112         * doc/headers/float.texi: Update.
22113
22114 2007-05-19  Jim Meyering  <jim@meyering.net>
22115
22116         * lib/utimens.c (gl_futimens): Rename from futimens,
22117         now that glibc-2.6 declares futimens.
22118         * lib/utimens.h: Likewise.
22119
22120 2007-05-19  Bruno Haible  <bruno@clisp.org>
22121
22122         Avoid test failures on mingw.
22123         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
22124         * tests/test-printf-posix.sh: Likewise.
22125         * tests/test-vfprintf-posix.sh: Likewise.
22126         * tests/test-vprintf-posix.sh: Likewise.
22127
22128 2007-05-19  Bruno Haible  <bruno@clisp.org>
22129
22130         Fix *printf result for NaN, Inf, -0.0 on mingw.
22131         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
22132         * lib/vasnprintf.c: Include math.h and isnan.h.
22133         (is_infinite_or_zero): New function.
22134         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
22135         values in the %f, %F, %e, %E, %g, %G directives.
22136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
22137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22138         gl_PRINTF_INFINITE and test its result. Invoke
22139         gl_PREREQ_VASNPRINTF_INFINITE.
22140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22147         * doc/functions/fprintf.texi: Update.
22148         * doc/functions/printf.texi: Update.
22149         * doc/functions/snprintf.texi: Update.
22150         * doc/functions/sprintf.texi: Update.
22151         * doc/functions/vfprintf.texi: Update.
22152         * doc/functions/vprintf.texi: Update.
22153         * doc/functions/vsnprintf.texi: Update.
22154         * doc/functions/vsprintf.texi: Update.
22155
22156 2007-05-19  Bruno Haible  <bruno@clisp.org>
22157
22158         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
22159         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
22160         Instead of multiplying with 10^k, set extra_zeroes to k.
22161         (scale10_round_long_double): Remove function.
22162
22163 2007-05-18  Bruno Haible  <bruno@clisp.org>
22164
22165         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
22166         introduced on 2007-05-06.
22167
22168 2007-05-18  Bruno Haible  <bruno@clisp.org>
22169
22170         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
22171         %g directives.
22172         * tests/test-vasprintf-posix.c (test_function): Likewise.
22173         * tests/test-snprintf-posix.h (test_function): Likewise.
22174         * tests/test-sprintf-posix.h (test_function): Likewise.
22175
22176 2007-05-18  Bruno Haible  <bruno@clisp.org>
22177
22178         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
22179         (strmatch): New function.
22180         (test_function): Test the %f directive on numbers of various exponents.
22181         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
22182         (strmatch): New function.
22183         (test_function): Test the %f directive on numbers of various exponents.
22184         * tests/test-snprintf-posix.h (strmatch): New function.
22185         (test_function): Test the %f directive on numbers of various exponents.
22186         * tests/test-sprintf-posix.h (strmatch): New function.
22187         (test_function): Test the %f directive on numbers of various exponents.
22188         * tests/test-snprintf-posix.c (SIZEOF): New macro.
22189         * tests/test-sprintf-posix.c (SIZEOF): New macro.
22190         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
22191         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
22192
22193 2007-05-18  Bruno Haible  <bruno@clisp.org>
22194
22195         Add support for 'long double' number output.
22196         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
22197         * lib/vasnprintf.c: Include math.h and float+.h.
22198         (mp_limb_t): New type.
22199         (GMP_LIMB_BITS): New macro.
22200         (mp_twolimb_t): New type.
22201         (GMP_TWOLIMB_BITS): New macro.
22202         (mpn_t): New type.
22203         (multiply, divide, convert_to_decimal, decode_long_double,
22204         scale10_round_long_double, scale10_round_decimal_long_double,
22205         floorlog10l): New functions.
22206         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
22207         for the %f, %F, %e, %E, %g, %G directives.
22208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
22209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22210         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
22211         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
22212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22219         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
22220         * modules/snprintf-posix (Depends-on): Likewise.
22221         * modules/sprintf-posix (Depends-on): Likewise.
22222         * modules/vasnprintf-posix (Depends-on): Likewise.
22223         * modules/vasprintf-posix (Depends-on): Likewise.
22224         * modules/vfprintf-posix (Depends-on): Likewise.
22225         * modules/vsnprintf-posix (Depends-on): Likewise.
22226         * modules/vsprintf-posix (Depends-on): Likewise.
22227         * modules/vasnprintf (Files): Add lib/float+.h.
22228         * doc/functions/fprintf.texi: Update.
22229         * doc/functions/printf.texi: Update.
22230         * doc/functions/snprintf.texi: Update.
22231         * doc/functions/sprintf.texi: Update.
22232         * doc/functions/vfprintf.texi: Update.
22233         * doc/functions/vprintf.texi: Update.
22234         * doc/functions/vsnprintf.texi: Update.
22235         * doc/functions/vsprintf.texi: Update.
22236
22237 2007-05-18  Bruno Haible  <bruno@clisp.org>
22238
22239         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
22240
22241 2007-05-18  Bruno Haible  <bruno@clisp.org>
22242
22243         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
22244         for printing 64-bit integers. Needed for mingw.
22245
22246 2007-05-18  Bruno Haible  <bruno@clisp.org>
22247
22248         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22249         gl_FUNC_FREXPL_WORKS.
22250         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
22251
22252 2007-05-18  Bruno Haible  <bruno@clisp.org>
22253
22254         * modules/frexpl-nolibm-tests: New file.
22255
22256         * modules/frexpl-nolibm: New file.
22257         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
22258
22259 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22260
22261         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
22262         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22263         GCC 4.2, which otherwise issues a lot of warnings.
22264         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
22265         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
22266         Likewise.
22267         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
22268         * modules/iconv_open (iconv.h): Likewise.
22269         * modules/locale (locale.h): Likewise.
22270         * modules/netinet_in (netinet/in.h): Likewise.
22271         * modules/sys_select (sys_select.h): Likewise.
22272         * modules/sys_socket (sys/socket.h): Likewise.
22273         * modules/sys_stat (sys/stat.h): Likewise.
22274         * modules/sysexits (sysexits.h): Likewise.
22275         * modules/unistd (unistd.h): Likewise.
22276
22277 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22278
22279         * modules/closein-tests (Makefile.am): Distribute
22280         `test-closein.sh'.
22281
22282 2007-05-17  Bruno Haible  <bruno@clisp.org>
22283
22284         * tests/test-printf-posix.output: Renamed from
22285         tests/test-fprintf-posix.out.
22286         * modules/fprintf-posix-tests: Update.
22287         * modules/printf-posix-tests: Update.
22288         * modules/vfprintf-posix-tests: Update.
22289         * modules/vprintf-posix-tests: Update.
22290         * tests/test-fprintf-posix.sh: Update.
22291         * tests/test-printf-posix.sh: Update.
22292         * tests/test-vfprintf-posix.sh: Update.
22293         * tests/test-vprintf-posix.sh: Update.
22294         Reported by Ralf Wildenhues.
22295
22296 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22297
22298         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
22299         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22300         GCC 4.2, which otherwise issues a lot of warnings.
22301         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
22302         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
22303         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
22304         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
22305         it should no longer be needed.
22306         * lib/string_.h: Likewise.
22307         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
22308         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
22309         * modules/inttypes (inttypes.h): Likewise.
22310         * modules/math (math.h): Likewise.
22311         * modules/search (search.h): Likewise.
22312         * modules/signal (signal.h): Likewise.
22313         * modules/stdint (stdint.h): Likewise.
22314         * modules/stdio (stdio.h): Likewise.
22315         * modules/stdlib (stdlib.h): Likewise.
22316         * modules/string (string.h): Likewise.
22317         * modules/sys_time (sys/time.h): Likewise.
22318         * modules/time (time.h): Likewise.
22319         * modules/wchar (wchar.h): Likewise.
22320         * modules/wctype (wtype.h): Likewise.
22321
22322 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22323
22324         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
22325
22326 2007-05-13  Bruno Haible  <bruno@clisp.org>
22327
22328         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
22329         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22330         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
22331         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22332         (gl_PREREQ_STRTOK_R): Don't require it here.
22333
22334 2007-05-13  Bruno Haible  <bruno@clisp.org>
22335
22336         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
22337         when used in C++ mode.
22338
22339 2007-05-12  Bruno Haible  <bruno@clisp.org>
22340
22341         * lib/linebuffer.h: Tweak doc.
22342         * lib/linebuffer.c: Likewise.
22343
22344 2007-05-12  James Youngman  <jay@gnu.org>
22345
22346         * lib/linebuffer.c (readlinebuffer_delim): New function,
22347         like readlinebuffer, but use a caller-specified delimiter.
22348         (readlinebuffer): Just call readlinebuffer_delim with '\n'
22349         as the delimiter.
22350         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
22351
22352 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22353
22354         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
22355         * modules/openat (Files): Remove openat-die.c.
22356         (Depends-on): Add openat-die.
22357         * modules/openat-die: New module.
22358
22359 2007-05-06  Bruno Haible  <bruno@clisp.org>
22360
22361         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
22362         Update with info about Cygwin.
22363         * doc/functions/fprintf.texi: Update.
22364         * doc/functions/printf.texi: Update.
22365         * doc/functions/snprintf.texi: Update.
22366         * doc/functions/sprintf.texi: Update.
22367         * doc/functions/vfprintf.texi: Update.
22368         * doc/functions/vprintf.texi: Update.
22369         * doc/functions/vsnprintf.texi: Update.
22370         * doc/functions/vsprintf.texi: Update.
22371         Reported by Eric Blake.
22372
22373 2007-05-06  Bruno Haible  <bruno@clisp.org>
22374
22375         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
22376         padding ourselves for the floating-point directives.
22377         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
22378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
22379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22380         gl_PRINTF_FLAG_ZERO and test its result. Invoke
22381         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
22382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22389         * tests/test-snprintf-posix.h (test_function): Also check the width
22390         and some flags in the %f directive.
22391         * tests/test-sprintf-posix.h (test_function): Likewise.
22392         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22393         * tests/test-vasprintf-posix.c (test_function): Likewise.
22394         * doc/functions/fprintf.texi: Update.
22395         * doc/functions/printf.texi: Update.
22396         * doc/functions/snprintf.texi: Update.
22397         * doc/functions/sprintf.texi: Update.
22398         * doc/functions/vfprintf.texi: Update.
22399         * doc/functions/vprintf.texi: Update.
22400         * doc/functions/vsnprintf.texi: Update.
22401         * doc/functions/vsprintf.texi: Update.
22402
22403 2007-05-06  Bruno Haible  <bruno@clisp.org>
22404
22405         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
22406         pass the ' flag character to sprintf or snprintf.
22407         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
22408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
22409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22410         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
22411         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
22412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22419         * tests/test-snprintf-posix.h (test_function): Also check the grouping
22420         flag.
22421         * tests/test-sprintf-posix.h (test_function): Likewise.
22422         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22423         * tests/test-vasprintf-posix.c (test_function): Likewise.
22424         * doc/functions/fprintf.texi: Update.
22425         * doc/functions/printf.texi: Update.
22426         * doc/functions/snprintf.texi: Update.
22427         * doc/functions/sprintf.texi: Update.
22428         * doc/functions/vfprintf.texi: Update.
22429         * doc/functions/vprintf.texi: Update.
22430         * doc/functions/vsnprintf.texi: Update.
22431         * doc/functions/vsprintf.texi: Update.
22432
22433 2007-05-01  Bruno Haible  <bruno@clisp.org>
22434
22435         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
22436
22437 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
22438
22439         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
22440         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
22441
22442 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22443
22444         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
22445         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
22446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
22447
22448 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
22449
22450         * lib/argp-help.c (struct hol_entry): New member `ord'.
22451         (HOL_ENTRY_PTRCMP): Use ord for comparison
22452         (hol_sort): Initialize ord.
22453
22454 2007-05-01  Bruno Haible  <bruno@clisp.org>
22455
22456         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
22457         Reported by Eric Blake.
22458         * doc/gnulib.texi (Function Substitutes): Update.
22459
22460 2007-05-01  Bruno Haible  <bruno@clisp.org>
22461
22462         * doc/functions.texi: Remove file, now redundant through
22463         doc/functions/*.texi.
22464
22465 2007-05-01  Bruno Haible  <bruno@clisp.org>
22466
22467         * modules/argp (Depends-on): Add sleep.
22468
22469 2007-05-01  Bruno Haible  <bruno@clisp.org>
22470
22471         * modules/sleep-tests: New file.
22472         * tests/test-sleep.c: New file.
22473
22474         * modules/sleep: New file.
22475         * lib/sleep.c: New file.
22476         * m4/sleep.m4: New file.
22477         * lib/unistd_.h (sleep): New declaration.
22478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
22479         HAVE_SLEEP.
22480         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
22481         * doc/functions/sleep.texi: Document the sleep module.
22482
22483 2007-05-01  Bruno Haible  <bruno@clisp.org>
22484
22485         * lib/sigprocmask.h: Remove file.
22486         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
22487         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
22488         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
22489         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
22490         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
22491         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
22492         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
22493         HAVE_SIGSET_T as a shell variable.
22494         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
22495         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
22496         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
22497         (Depends-on): Add signal. Remove verify.
22498         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
22499         (Include): Mention <signal.h> instead of sigprocmask.h.
22500         * NEWS: Mention the change.
22501         * lib/fatal-signal.c: Don't include sigprocmask.h.
22502
22503 2007-05-01  Bruno Haible  <bruno@clisp.org>
22504
22505         * modules/signal: New file.
22506         * lib/signal_.h: New file.
22507         * m4/signal_h.m4: New file.
22508
22509 2007-05-01  Bruno Haible  <bruno@clisp.org>
22510
22511         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
22512         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
22513         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
22514         HAVE_WCTYPE_CTMP_BUG into wctype.h.
22515
22516 2007-05-01  Bruno Haible  <bruno@clisp.org>
22517
22518         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
22519         configure time.
22520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
22521         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
22522         * modules/sys_stat (Makefile.am): Substitute their values into
22523         sys/stat.h.
22524
22525 2007-05-01  Bruno Haible  <bruno@clisp.org>
22526
22527         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
22528         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
22529         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
22530
22531 2007-05-01  Bruno Haible  <bruno@clisp.org>
22532
22533         * doc/header/assert.texi: Undo last change: don't mention the gnulib
22534         'assert' module here.
22535
22536 2007-05-01  Bruno Haible  <bruno@clisp.org>
22537
22538         * doc/functions/*.texi: New files.
22539         * doc/functions/google-ranking.txt: New file.
22540         * doc/gnulib.texi (Function Substitutes): New chapter.
22541         (ctime, inet_ntoa): Remove sections.
22542         * doc/ctime.texi: Remove file.
22543         * doc/inet_ntoa.texi: Remove file.
22544         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
22545         dependencies.
22546         (%.info): New rule, specifying a --reference-limit.
22547
22548 2007-05-01  Bruno Haible  <bruno@clisp.org>
22549
22550         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
22551
22552 2007-05-01  Bruno Haible  <bruno@clisp.org>
22553
22554         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
22555         the portability of 'mkdir' to mingw systems.
22556
22557 2007-05-01  Bruno Haible  <bruno@clisp.org>
22558
22559         * doc/headers/google-ranking.txt: New file.
22560
22561 2007-04-30  Eric Blake  <ebb9@byu.net>
22562
22563         Prefer fseeko to fseek.
22564         * modules/getpass (Depends-on): Add fseeko.
22565         * lib/getpass.c (getpass): Use fseeko, not fseek.
22566
22567 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
22568
22569         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
22570         assumes the sorting is stable, while most qsort implementations
22571         are not.  Use argument addresses to ensure they never compare as
22572         equal.
22573
22574         * tests/test-argp-2.sh (usage-indent test): Fix output
22575         (func_compare): Restore diff options
22576         * tests/test-argp.c: Restore #include "progname.h"
22577
22578 2007-04-29  Bruno Haible  <bruno@clisp.org>
22579
22580         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
22581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22582         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
22583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22584         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
22585         (configure.ac): Define CHECK_SNPRINTF_POSIX.
22586         (TESTS, check_PROGRAMS): Add test-snprintf.
22587         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
22588         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
22589         (TESTS, check_PROGRAMS): Add test-vsnprintf.
22590         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
22591         assertions that fail on HP-UX, OSF/1, or IRIX.
22592         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
22593
22594 2007-04-29  Bruno Haible  <bruno@clisp.org>
22595
22596         * MODULES.html.sh (posix_functions): Remove 'contents'.
22597
22598 2007-04-29  Karl Berry  <karl@gnu.org>
22599
22600         * config/srclist.txt (gendocs_template_min): new entry.
22601
22602 2007-04-29  Bruno Haible  <bruno@clisp.org>
22603
22604         Work around fpurge bug on BSD systems.
22605         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
22606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
22607         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
22608         fpurge to rpl_fpurge if the system already has this function.
22609         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
22610         the case where the system already has this function. Correct invariants
22611         on BSD systems.
22612         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
22613         BSD systems.
22614
22615 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
22616
22617         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
22618         proposed by Sven Verdoolaege.
22619
22620         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
22621         options.
22622         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
22623         (usage and help tests): Update
22624
22625 2007-04-29  Bruno Haible  <bruno@clisp.org>
22626
22627         * tests/test-fflush.c (main): Use a file of size 17, not 10.
22628         Print more information in case of failure. Disable a test on BeOS.
22629
22630 2007-04-29  Bruno Haible  <bruno@clisp.org>
22631
22632         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
22633         This helps debugging on systems on which no gdb is available.
22634
22635 2007-04-29  Bruno Haible  <bruno@clisp.org>
22636
22637         * lib/freading.h: Improve comments.
22638         * lib/fwriting.h: Likewise.
22639         * tests/test-freading.c (main): Don't check freading immediately after
22640         repositioning. Needed for glibc.
22641
22642 2007-04-29  Bruno Haible  <bruno@clisp.org>
22643
22644         * lib/freading.c (freading): Trivial simplification.
22645
22646 2007-04-28  Bruno Haible  <bruno@clisp.org>
22647
22648         * tests/test-fwriting.c (main): Also test the interaction between
22649         fflush and fwriting.
22650         * modules/fwriting-tests (Depends-on): Add fflush.
22651
22652         * tests/test-freading.c (main): Also test the interaction between
22653         fflush and freading.
22654         * modules/freading-tests (Depends-on): Add fflush.
22655
22656 2007-04-28  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
22659         fseeko and ftello.
22660         Suggested by Eric Blake.
22661
22662 2007-04-28  Jim Meyering  <jim@meyering.net>
22663
22664         Avoid false-negative in gl_STDINT_H's C99 conformance test.
22665         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
22666         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
22667
22668 2007-04-27  Eric Blake  <ebb9@byu.net>
22669
22670         * doc/headers/assert.texi (assert.h): Document assert module use.
22671
22672 2007-04-27  Bruno Haible  <bruno@clisp.org>
22673
22674         * doc/headers/*.texi: New files.
22675         * doc/gnulib.texi (Header File Substitutes): New chapter.
22676         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
22677         dependencies.
22678         (standards.info ,standards.html, standards.dvi): Update dependencies.
22679         (mostlyclean, clean): New targets.
22680
22681 2007-04-27  Bruno Haible  <bruno@clisp.org>
22682
22683         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
22684         * modules/sysexits (Files, Makefile.am): Update.
22685
22686         * lib/sys_socket_.h: Renamed from lib/socket_.h.
22687         * modules/sys_socket (Files, Makefile.am): Update.
22688
22689         * lib/sys_stat_.h: Renamed from lib/stat_.h.
22690         * modules/sys_stat (Files, Makefile.am): Update.
22691
22692 2007-04-27  Eric Blake  <ebb9@byu.net>
22693
22694         * lib/freading.h: Improve comments.
22695         * lib/fwriting.h: Likewise.
22696         * lib/fflush.c: Likewise.
22697
22698         Fix closein for mingw.
22699         * modules/closein-tests: Add tests for closein.
22700         * tests/test-closein.c: New file.
22701         * tests/test-closein.sh: Likewise.
22702         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
22703         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
22704
22705 2007-04-27  Bruno Haible  <bruno@clisp.org>
22706
22707         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
22708         version is < 6.
22709         * lib/math_.h [__DECC]: Likewise.
22710         * lib/stdio_.h [__DECC]: Likewise.
22711         * lib/stdlib_.h [__DECC]: Likewise.
22712         * lib/string_.h [__DECC]: Likewise.
22713         * lib/time_.h [__DECC]: Likewise.
22714         * lib/wchar_.h [__DECC]: Likewise.
22715         * lib/wctype_.h [__DECC]: Likewise.
22716
22717 2007-04-27  Bruno Haible  <bruno@clisp.org>
22718
22719         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
22720
22721 2007-04-27  Bruno Haible  <bruno@clisp.org>
22722
22723         * lib/fflush.c: Add comments.
22724         * modules/fpurge-tests (Depends-on): Add fflush.
22725         * modules/freadable-tests (Depends-on): Likewise.
22726         * modules/fwritable-tests (Depends-on): Likewise.
22727
22728 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
22729
22730         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
22731         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
22732         Report by Bruno Haible <bruno@clisp.org>.
22733
22734 2007-04-26  Eric Blake  <ebb9@byu.net>
22735
22736         Fix fflush on mingw.
22737         * modules/fflush (Depends-on): Add freading.
22738         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
22739         but unread data.
22740
22741 2007-04-26  Eric Blake  <ebb9@byu.net>
22742         and Bruno Haible  <bruno@clisp.org>
22743
22744         Implement freading and fwriting.
22745         * lib/freading.c: New file.
22746         * lib/freading.h: Likewise.
22747         * m4/freading.m4: Likewise.
22748         * modules/freading: Likewise.
22749         * modules/freading-tests: Likewise.
22750         * tests/test-freading.c: Likewise.
22751         * lib/fwriting.c: New file.
22752         * lib/fwriting.h: Likewise.
22753         * m4/fwriting.m4: Likewise.
22754         * modules/fwriting: Likewise.
22755         * modules/fwriting-tests: Likewise.
22756         * tests/test-fwriting.c: Likewise.
22757         * MODULES.html.sh (File stream based Input/Output): Mention them.
22758
22759 2007-04-26  Bruno Haible  <bruno@clisp.org>
22760
22761         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
22762         'long' when we assume it.
22763         Suggested by Eric Blake.
22764
22765 2007-04-26  Bruno Haible  <bruno@clisp.org>
22766
22767         Ensure fseeko, ftello are declared on glibc systems.
22768         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
22769         * modules/fseeko (configure.ac-early): Likewise.
22770         * modules/ftello (configure.ac-early): Likewise.
22771         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
22772         AC_FUNC_FSEEKO for this.
22773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
22774         (gl_CHECK_FSEEKO): Remove macro.
22775
22776 2007-04-26  Bruno Haible  <bruno@clisp.org>
22777
22778         * tests/test-fflush.c (main): Also check the ftell result after
22779         fflush and fseek/fseeko.
22780         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
22781         file descriptor position cache in the stream.
22782         * lib/fseeko.c (rpl_fseeko): Likewise.
22783
22784 2007-04-26  Bruno Haible  <bruno@clisp.org>
22785
22786         * modules/fflush-tests (Depends-on): Add fseeko.
22787
22788 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
22789             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22790
22791         * lib/argz_.h: ensure error_t definition is obtained in same
22792         mechanism system argz.h would have.
22793         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
22794         argz facilities are known bad.  Err on the side of caution if
22795         cross-compiling.
22796
22797 2007-04-25  Eric Blake  <ebb9@byu.net>
22798
22799         * lib/fpurge.c (includes): Use stdlib.h for free.
22800         * tests/test-fflush.c (main): Also test fflush-fseeko.
22801
22802 2007-04-25  Bruno Haible  <bruno@clisp.org>
22803
22804         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
22805         * lib/fseeko.c: New file.
22806         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
22807         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
22808         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
22809         gl_FUNC_FSEEKO.
22810         (gl_FUNC_FSEEKO): Invoke it.
22811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
22812         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
22813         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
22814
22815 2007-04-25  Bruno Haible  <bruno@clisp.org>
22816
22817         * modules/fflush (Depends-on): Add ftello.
22818
22819 2007-04-25  Bruno Haible  <bruno@clisp.org>
22820
22821         * modules/ftello-tests: New file.
22822         * tests/test-ftello.c: New file.
22823
22824         * modules/ftello: New file.
22825         * m4/ftello.m4: New file.
22826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
22827         HAVE_FTELLO.
22828         * lib/stdio_.h (ftello): New declaration.
22829         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
22830         HAVE_FTELLO.
22831
22832 2007-04-25  Bruno Haible  <bruno@clisp.org>
22833
22834         * modules/fseeko-tests: New file.
22835         * tests/test-fseeko.c: New file.
22836
22837         * modules/fseeko: New file.
22838         * m4/fseeko.m4: New file.
22839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
22840         HAVE_FSEEKO.
22841         * lib/stdio_.h (fseeko): New declaration.
22842         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
22843         HAVE_FSEEKO.
22844
22845 2007-04-25  Bruno Haible  <bruno@clisp.org>
22846
22847         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
22848
22849 2007-04-25  Bruno Haible  <bruno@clisp.org>
22850
22851         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
22852         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
22853         * tests/test-unistd.c: Likewise.
22854         * tests/test-fcntl.c: Likewise.
22855
22856 2007-04-23  Eric Blake  <ebb9@byu.net>
22857
22858         * lib/fflush.c: Fix missing include.
22859         Reported by Bruno Haible.
22860
22861 2007-04-23  Bruno Haible  <bruno@clisp.org>
22862
22863         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
22864         Reported by Eric Blake.
22865
22866 2007-04-23  Bruno Haible  <bruno@clisp.org>
22867
22868         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
22869
22870 2007-04-23  Bruno Haible  <bruno@clisp.org>
22871
22872         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
22873
22874 2007-04-23  Bruno Haible  <bruno@clisp.org>
22875
22876         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
22877         Needed on HP-UX 11.
22878
22879 2007-04-16  Eric Blake  <ebb9@byu.net>
22880
22881         Make fflush rely on fpurge.
22882         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
22883         open coding all variants.
22884         * modules/fflush (Depends-on): Add fpurge and unistd.
22885         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
22886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
22887
22888         Fix --with-tests compilation on cygwin.
22889         * modules/argmatch-tests (Makefile.am): List gnulib library first
22890         in LDADD.
22891         * modules/argp-tests (Makefile.am): Likewise.
22892         * modules/array-list-tests (Makefile.am): Likewise.
22893         * modules/array-oset-tests (Makefile.am): Likewise.
22894         * modules/avltree-list-tests (Makefile.am): Likewise.
22895         * modules/avltree-oset-tests (Makefile.am): Likewise.
22896         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22897         * modules/carray-list-tests (Makefile.am): Likewise.
22898         * modules/dirname-tests (Makefile.am): Likewise.
22899         * modules/frexp-tests (Makefile.am): Likewise.
22900         * modules/isnanl-tests (Makefile.am): Likewise.
22901         * modules/linked-list-tests (Makefile.am): Likewise.
22902         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22903         * modules/lock-tests (Makefile.am): Likewise.
22904         * modules/rbtree-list-tests (Makefile.am): Likewise.
22905         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22906         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22907         * modules/tls-tests (Makefile.am): Likewise.
22908         * modules/tsearch-tests (Makefile.am): Likewise.
22909         * modules/xvasprintf-tests (Makefile.am): Likewise.
22910
22911         Fix fpurge for cygwin.
22912         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
22913         value.
22914         * modules/fpurge-tests (Depends-on): Clean up trash.
22915
22916 2007-04-16  Simon Josefsson  <simon@josefsson.org>
22917
22918         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
22919
22920         * m4/autobuild.m4: Re-indent.
22921
22922 2007-04-13  Bruno Haible  <bruno@clisp.org>
22923
22924         * modules/fpurge-tests: New file.
22925         * tests/test-fpurge.c: New file.
22926
22927         * modules/fpurge: New file.
22928         * lib/fpurge.h: New file.
22929         * lib/fpurge.c: New file.
22930         * m4/fpurge.m4: New file.
22931
22932 2007-04-13  Bruno Haible  <bruno@clisp.org>
22933
22934         * modules/fbufmode-tests: New file.
22935         * tests/test-fbufmode.c: New file.
22936
22937         * modules/fbufmode: New file.
22938         * lib/fbufmode.h: New file.
22939         * lib/fbufmode.c: New file.
22940         * m4/fbufmode.m4: New file.
22941
22942 2007-04-13  Bruno Haible  <bruno@clisp.org>
22943
22944         * modules/fwritable-tests: New file.
22945         * tests/test-fwritable.c: New file.
22946
22947         * modules/fwritable: New file.
22948         * lib/fwritable.h: New file.
22949         * lib/fwritable.c: New file.
22950         * m4/fwritable.m4: New file.
22951
22952 2007-04-13  Bruno Haible  <bruno@clisp.org>
22953
22954         * modules/freadable-tests: New file.
22955         * tests/test-freadable.c: New file.
22956
22957         * modules/freadable: New file.
22958         * lib/freadable.h: New file.
22959         * lib/freadable.c: New file.
22960         * m4/freadable.m4: New file.
22961
22962 2007-04-13  Bruno Haible  <bruno@clisp.org>
22963
22964         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
22965         MOSTLYCLEANFILES.
22966
22967 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22968
22969         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
22970         gzip bootstrap.conf to avoid dragging in i18n machinery.
22971         (gnulib_tool_option): Use it.
22972
22973 2007-04-13  Bruno Haible  <bruno@clisp.org>
22974
22975         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
22976         %F directives.
22977         * tests/test-vasprintf-posix.c (test_function): Likewise.
22978         * tests/test-snprintf-posix.h (test_function): Likewise.
22979         * tests/test-sprintf-posix.h (test_function): Likewise.
22980         * tests/test-fprintf-posix.h (test_function): Likewise.
22981         * tests/test-printf-posix.h (test_function): Likewise.
22982         * tests/test-fprintf-posix.out: Likewise.
22983
22984 2007-04-13  Bruno Haible  <bruno@clisp.org>
22985
22986         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
22987         * modules/tls-tests (configure.ac): Likewise.
22988         Reported by Arto C. Nirkko <anirkko@insel.ch>.
22989
22990 2007-04-13  Bruno Haible  <bruno@clisp.org>
22991
22992         * lib/tls.c (glthread_tls_get): Fix return type.
22993         Patch by Arto C. Nirkko <anirkko@insel.ch>.
22994
22995 2007-04-12  Eric Blake  <ebb9@byu.net>
22996
22997         * modules/gettime (Depends-on): Remove gettime.
22998         Reported by Dmitry V. Levin.
22999
23000 2007-04-12  Bruno Haible  <bruno@clisp.org>
23001
23002         * modules/fflush (Include): Mention <stdio.h>.
23003         * modules/strtoimax (Include): Mention <inttypes.h>.
23004         * modules/strtoumax (Include): Likewise.
23005
23006 2007-04-12  Eric Blake  <ebb9@byu.net>
23007
23008         * .cvsignore: New file.
23009         * .gitignore: Likewise.
23010
23011 2007-04-12  Bruno Haible  <bruno@clisp.org>
23012
23013         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
23014         not before, since $(LDADD) often contains libgnu.a.
23015         * modules/striconv-tests (test_striconv_LDADD): Likewise.
23016         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
23017         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
23018         Needed on Cygwin.
23019
23020 2007-04-12  Eric Blake  <ebb9@byu.net>
23021
23022         Work around glibc's failure to flush stdin on fclose.
23023         * lib/closein.c (close_stdin): Flush stdin before closing.
23024
23025         Work around glibc's failure to reset seekable stdin on exit.
23026         * modules/closein: New module.
23027         * lib/closein.c: New file.
23028         * lib/closein.h: Likewise.
23029         * m4/closein.m4: Likewise.
23030         * MODULES.html.sh (File stream based Input/Output): Document it.
23031
23032 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23033
23034         * gnulib-tool: Rename generated 'autobuild' script to
23035         'do-autobuild' in --create-megatestdir output.
23036
23037         * doc/gnulib.texi (Build robot for gnulib): Fix.
23038
23039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23040
23041         * modules/sysexits (Depends-on): Add absolute-header.
23042
23043 2007-04-12  Eric Blake  <ebb9@byu.net>
23044
23045         No need to preserve errno on success.
23046         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
23047         Reported by Bruno Haible.
23048
23049 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23050
23051         * MODULES.html.sh (Support for maintaining and releasing
23052         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
23053
23054 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23055
23056         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
23057
23058 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23059
23060         * modules/autobuild: New module.
23061
23062         * m4/autobuild.m4: New file.
23063
23064 2007-04-11  Bruno Haible  <bruno@clisp.org>
23065
23066         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
23067         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
23068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
23069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
23070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23071         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23072         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23074         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23075         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
23077         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23078         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
23080         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23081         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
23083         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23084         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
23086         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23087         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
23089         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23090         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
23092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23094         Reported by Eric Blake.
23095
23096 2007-04-11  Bruno Haible  <bruno@clisp.org>
23097
23098         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
23099
23100 2007-04-10  Bruno Haible  <bruno@clisp.org>
23101
23102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
23103         for NaN and Infinity. Needed on FreeBSD 6.1.
23104         * tests/test-vasnprintf-posix.c (test_function): Undo last change
23105         regarding results for "%010a" of Infinity and NaN.
23106         * tests/test-vasprintf-posix.c (test_function): Likewise.
23107         * tests/test-snprintf-posix.h (test_function): Likewise.
23108         * tests/test-sprintf-posix.h (test_function): Likewise.
23109         * tests/test-fprintf-posix.h (test_function): Likewise.
23110         * tests/test-printf-posix.h (test_function): Likewise.
23111         * tests/test-fprintf-posix.out: Likewise.
23112
23113 2007-04-10  Bruno Haible  <bruno@clisp.org>
23114
23115         * modules/locale-tests: New file.
23116         * tests/test-locale.c: New file.
23117
23118         * modules/locale: New file.
23119         * lib/locale_.h: New file.
23120         * m4/locale_h.m4: New file.
23121
23122 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23123             Bruno Haible  <bruno@clisp.org>
23124
23125         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
23126         be determined, test for availability of the copysignf, copysign,
23127         copysignl functions.
23128         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
23129         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
23130         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
23131
23132 2007-04-09  Eric Blake  <ebb9@byu.net>
23133
23134         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
23135         * modules/stdio (Makefile.am): Support fflush.
23136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23137         * modules/fflush: New file.
23138         * lib/fflush.c: Likewise.
23139         * m4/fflush.m4: Likewise.
23140         * modules/fflush-tests: New test.
23141         * tests/test-fflush.c: Likewise.
23142         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
23143
23144 2007-04-06  Bruno Haible  <bruno@clisp.org>
23145
23146         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
23147         (VASNPRINTF): Use signbit for faster determination whether to print a
23148         minus sign.
23149         * modules/vasnprintf (Files): Remove lib/float+.h.
23150         * modules/fprintf-posix (Depends-on): Add signbit.
23151         * modules/snprintf-posix (Depends-on): Likewise.
23152         * modules/sprintf-posix (Depends-on): Likewise.
23153         * modules/vasnprintf-posix (Depends-on): Likewise.
23154         * modules/vasprintf-posix (Depends-on): Likewise.
23155         * modules/vfprintf-posix (Depends-on): Likewise.
23156         * modules/vsnprintf-posix (Depends-on): Likewise.
23157         * modules/vsprintf-posix (Depends-on): Likewise.
23158
23159 2007-04-06  Bruno Haible  <bruno@clisp.org>
23160
23161         * tests/test-frexp.c (main): Test also the sign bit of zero results.
23162         * tests/test-frexpl.c (main): Likewise.
23163         * tests/test-ldexpl.c (main): Likewise.
23164         * modules/frexp-tests (Depends-on): Add signbit.
23165         * modules/frexpl-tests (Depdends-on): Likewise.
23166         * modules/ldexpl-tests (Depdends-on): Likewise.
23167
23168 2007-04-06  Bruno Haible  <bruno@clisp.org>
23169
23170         * modules/signbit-tests: New file.
23171         * tests/test-signbit.c: New file.
23172
23173         * modules/signbit: New file.
23174         * lib/signbitf.c: New file.
23175         * lib/signbitd.c: New file.
23176         * lib/signbitl.c: New file.
23177         * m4/signbit.m4: New file.
23178         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
23179         (signbit): New macro.
23180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
23181         REPLACE_SIGNBIT.
23182         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
23183         REPLACE_FREXPL into math.h.
23184
23185 2007-04-06  Bruno Haible  <bruno@clisp.org>
23186
23187         * modules/isnanf-nolibm-tests: New file.
23188         * tests/test-isnanf.c: New file.
23189
23190         * modules/isnanf-nolibm: New file.
23191         * lib/isnanf.h: New file.
23192         * lib/isnanf.c: New file.
23193         * lib/isnan.c: Consider the USE_FLOAT macro.
23194         * m4/isnanf.m4: New file.
23195
23196 2007-04-06  Bruno Haible  <bruno@clisp.org>
23197
23198         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
23199         (Link): New section.
23200
23201         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
23202
23203 2007-04-06  Bruno Haible  <bruno@clisp.org>
23204
23205         Assume the 'long double' type.
23206         * m4/longdouble.m4: Remove file.
23207         * config/srclist.txt: Don't mention longdouble.m4.
23208         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
23209         * lib/float+.h: Likewise.
23210         * lib/frexp.c: Likewise.
23211         * lib/printf-args.h: Likewise.
23212         * lib/printf-args.c: Likewise.
23213         * lib/printf-frexp.c: Likewise.
23214         * lib/printf-parse.c: Likewise.
23215         * lib/vasnprintf.c: Likewise.
23216         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
23217         * m4/intl.m4: Likewise.
23218         * m4/isnanl.m4: Likewise.
23219         * m4/printf.m4: Likewise.
23220         * m4/printf-frexpl.m4: Likewise.
23221         * m4/vasnprintf.m4: Likewise.
23222         * modules/allocsa (Files): Remove m4/longdouble.m4.
23223         * modules/gettext (Files): Likewise.
23224         * modules/relocatable-prog-wrapper (Files): Likewise.
23225         * modules/vasnprintf (Files): Likewise.
23226         * modules/isnanl (Files): Likewise.
23227         (Include): Simplify.
23228         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
23229         (Include): Simplify.
23230         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
23231         (Include): Simplify.
23232         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
23233         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23234         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
23235         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23236         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23237         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23238         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
23239         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23240         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23241         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23242         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
23243         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23244         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
23245         * tests/test-isnanl.c: Likewise.
23246         * tests/test-snprintf-posix.h: Likewise.
23247         * tests/test-sprintf-posix.h: Likewise.
23248         * tests/test-vasnprintf-posix.c: Likewise.
23249         * tests/test-vasnprintf-posix2.c: Likewise.
23250         * tests/test-vasprintf-posix.c: Likewise.
23251
23252 2007-04-06  Bruno Haible  <bruno@clisp.org>
23253
23254         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
23255         * lib/math_.h [__DECC]: Include the overridden include file through
23256         #include_next, outside the double-inclusion guard.
23257         * lib/stdio_.h [__DECC]: Likewise.
23258         * lib/stdlib_.h [__DECC]: Likewise.
23259         * lib/string_.h [__DECC]: Likewise.
23260         * lib/time_.h [__DECC]: Likewise.
23261         * lib/wchar_.h [__DECC]: Likewise.
23262         * lib/wctype_.h [__DECC]: Likewise.
23263         * lib/inttypes_.h [__DECC]: Likewise.
23264         Reported by Albert Chin <china@thewrittenword.com> in
23265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
23266
23267 2007-04-04  Eric Blake  <ebb9@byu.net>
23268
23269         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
23270         1.5.x.
23271
23272 2007-04-04  Bruno Haible  <bruno@clisp.org>
23273
23274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
23275         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
23276
23277 2007-04-04  Bruno Haible  <bruno@clisp.org>
23278
23279         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
23280         results for "%010a" of Infinity and NaN.
23281         * tests/test-vasprintf-posix.c (test_function): Likewise.
23282         * tests/test-snprintf-posix.h (test_function): Likewise.
23283         * tests/test-sprintf-posix.h (test_function): Likewise.
23284         * tests/test-fprintf-posix.h (test_function): Remove these tests.
23285         * tests/test-printf-posix.h (test_function): Likewise.
23286         * tests/test-fprintf-posix.out: Update.
23287         Needed for FreeBSD 6.1.
23288
23289 2007-04-04  Bruno Haible  <bruno@clisp.org>
23290
23291         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
23292         directly used by the gnulib modules nor by gnulib-tool.
23293
23294 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23295
23296         * DEPENDENCIES: Give overall description of version dependency
23297         desirability.  Use more-typical names for apps.
23298         Add shell, coreutils, diffutils, grep, tar, gzip.
23299
23300 2007-04-04  Simon Josefsson  <simon@josefsson.org>
23301
23302         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
23303
23304 2007-04-04  Karl Berry  <karl@gnu.org>
23305
23306         * MODULES.html.sh (func_module): missing '.
23307
23308 2007-04-03  Bruno Haible  <bruno@clisp.org>
23309
23310         * modules/argmatch-tests (Makefile.am): New variable
23311         test_argmatch_LDADD.
23312         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
23313         * modules/array-list-tests (Makefile.am): New variable
23314         test_array_list_LDADD.
23315         * modules/array-oset-tests (Makefile.am): New variable
23316         test_array_oset_LDADD.
23317         * modules/avltree-list-tests (Makefile.am): New variable
23318         test_avltree_list_LDADD.
23319         * modules/avltree-oset-tests (Makefile.am): New variable
23320         test_avltree_oset_LDADD.
23321         * modules/avltreehash-list-tests (Makefile.am): New variable
23322         test_avltreehash_list_LDADD.
23323         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
23324         test_canonicalize_lgpl_LDADD.
23325         * modules/carray-list-tests (Makefile.am): New variable
23326         test_carray_list_LDADD.
23327         * modules/dirname-tests (Makefile.am): New variable
23328         test_dirname_LDADD.
23329         * modules/linked-list-tests (Makefile.am): New variable
23330         test_linked_list_LDADD.
23331         * modules/linkedhash-list-tests (Makefile.am): New variable
23332         test_linkedhash_list_LDADD.
23333         * modules/rbtree-list-tests (Makefile.am): New variable
23334         test_rbtree_list_LDADD.
23335         * modules/rbtree-oset-tests (Makefile.am): New variable
23336         test_rbtree_oset_LDADD.
23337         * modules/rbtreehash-list-tests (Makefile.am): New variable
23338         test_rbtreehash_list_LDADD.
23339         * modules/xvasprintf-tests (Makefile.am): New variable
23340         test_xvasprintf_LDADD.
23341         Reported by Eric Blake.
23342
23343 2007-04-03  Eric Blake  <ebb9@byu.net>
23344
23345         * DEPENDENCIES: Weaken m4 requirements.
23346
23347 2007-04-03  Bruno Haible  <bruno@clisp.org>
23348
23349         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
23350         * modules/isnanl-tests (configure.ac): Likewise.
23351
23352 2007-04-03  Ben Pfaff  <blp@gnu.org>
23353
23354         * modules/iconv_open: Add $(srcdir)/ to source directory
23355         references in Makefile fragments that call gperf, to fix VPATH
23356         builds.
23357
23358 2007-04-03  Bruno Haible  <bruno@clisp.org>
23359
23360         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
23361         * lib/ldexpl.c: Undo last change.
23362
23363 2007-04-03  Bruno Haible  <bruno@clisp.org>
23364
23365         * modules/printf-frexpl (Depends-on): Undo last change.
23366         (Files): Add m4/ldexpl.m4.
23367
23368 2007-04-03  Bruno Haible  <bruno@clisp.org>
23369
23370         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
23371         * modules/isnanl (Link): New section.
23372
23373         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
23374         * modules/frexp (Link): New section.
23375
23376         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
23377         * modules/frexpl (Link): New section.
23378
23379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
23380         * modules/ldexpl (Link): New section.
23381
23382 2007-04-03  Bruno Haible  <bruno@clisp.org>
23383
23384         * modules/TEMPLATE-EXTENDED: New file.
23385         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
23386
23387 2007-04-03  Bruno Haible  <bruno@clisp.org>
23388
23389         * DEPENDENCIES: New file.
23390         Suggested by Simon Josefsson.
23391
23392 2007-04-03  Bruno Haible  <bruno@clisp.org>
23393
23394         * doc/gnulib.texi: Escape @.
23395
23396 2007-04-03  James Youngman  <jay@gnu.org>
23397         and Paul Eggert  <eggert@cs.ucla.edu>
23398
23399         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
23400         birthtime on all systems that have birthtime, not just those which
23401         use st_birthtimensec rather than st_birthtim.  Putting zero in
23402         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
23403         that the birth time is not available for files on an NFS mount.
23404
23405 2007-04-03  Simon Josefsson  <simon@josefsson.org>
23406
23407         * modules/memxor: Move back from crypto/, suggested by Bruno.
23408         * modules/crypto/hmac-sha1: Fix memxor dependency.
23409
23410         * modules/crypto/gc: Moved from ../.
23411
23412 2007-04-02  Eric Blake  <ebb9@byu.net>
23413
23414         * lib/ldexpl.c (includes): Avoid libm.
23415
23416         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
23417
23418 2007-04-02  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
23421         on IRIX.
23422
23423 2007-04-02  Bruno Haible  <bruno@clisp.org>
23424
23425         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
23426         x86 or x86_64 platforms running MacOS X.
23427         Reported by Ryan Schmidt <@ryandesign.com>.
23428
23429 2007-04-02  Bruno Haible  <bruno@clisp.org>
23430
23431         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
23432         i386.
23433
23434 2007-04-01  Simon Josefsson  <simon@josefsson.org>
23435
23436         * modules/crypto/arcfour: Moved from ../.
23437         * modules/crypto/arcfour-tests: Moved from ../.
23438         * modules/crypto/arctwo: Moved from ../.
23439         * modules/crypto/arctwo-tests: Moved from ../.
23440         * modules/crypto/des: Moved from ../.
23441         * modules/crypto/des-tests: Moved from ../.
23442         * modules/crypto/gc-arcfour: Moved from ../.
23443         * modules/crypto/gc-arcfour-tests: Moved from ../.
23444         * modules/crypto/gc-arctwo: Moved from ../.
23445         * modules/crypto/gc-arctwo-tests: Moved from ../.
23446         * modules/crypto/gc-des: Moved from ../.
23447         * modules/crypto/gc-des-tests: Moved from ../.
23448         * modules/crypto/gc-hmac-md5: Moved from ../.
23449         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
23450         * modules/crypto/gc-hmac-sha1: Moved from ../.
23451         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
23452         * modules/crypto/gc-md2: Moved from ../.
23453         * modules/crypto/gc-md2-tests: Moved from ../.
23454         * modules/crypto/gc-md4: Moved from ../.
23455         * modules/crypto/gc-md4-tests: Moved from ../.
23456         * modules/crypto/gc-md5: Moved from ../.
23457         * modules/crypto/gc-md5-tests: Moved from ../.
23458         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
23459         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
23460         * modules/crypto/gc-random: Moved from ../.
23461         * modules/crypto/gc-rijndael: Moved from ../.
23462         * modules/crypto/gc-rijndael-tests: Moved from ../.
23463         * modules/crypto/gc-sha1: Moved from ../.
23464         * modules/crypto/gc-sha1-tests: Moved from ../.
23465         * modules/crypto/gc-tests: Moved from ../.
23466         * modules/crypto/hmac-md5: Moved from ../.
23467         * modules/crypto/hmac-md5-tests: Moved from ../.
23468         * modules/crypto/hmac-sha1: Moved from ../.
23469         * modules/crypto/hmac-sha1-tests: Moved from ../.
23470         * modules/crypto/md2: Moved from ../.
23471         * modules/crypto/md2-tests: Moved from ../.
23472         * modules/crypto/md4: Moved from ../.
23473         * modules/crypto/md4-tests: Moved from ../.
23474         * modules/crypto/md5: Moved from ../.
23475         * modules/crypto/md5-tests: Moved from ../.
23476         * modules/crypto/memxor: Moved from ../.
23477         * modules/crypto/rijndael: Moved from ../.
23478         * modules/crypto/rijndael-tests: Moved from ../.
23479         * modules/crypto/sha1: Moved from ../.
23480
23481 2007-03-30  James Youngman  <jay@gnu.org>
23482
23483         * tests/test-stat-time.c (prepare_test): use chmod() rather than
23484         rename() to change the ctime of a file (because ctime is unaffected
23485         by rename on jfs2 on AIX 5.1).
23486         (main): Start by doing cleanup, in case a previous run failed leaving
23487         test files behind.
23488
23489 2007-03-31  Bruno Haible  <bruno@clisp.org>
23490
23491         Support old proprietary implementations of iconv.
23492         * modules/iconv_open: New file.
23493         * lib/iconv_.h: New file.
23494         * m4/iconv_h.m4: New file.
23495         * lib/iconv_open.c: New file.
23496         * lib/iconv_open-aix.gperf: New file.
23497         * lib/iconv_open-hpux.gperf: New file.
23498         * lib/iconv_open-irix.gperf: New file.
23499         * lib/iconv_open-osf.gperf: New file.
23500         * m4/iconv_open.m4: New file.
23501         * modules/linebreak (Depends-on): Add iconv_open.
23502         * modules/striconv (Depends-on): Likewise.
23503         * modules/striconveh (Depends-on): Likewise.
23504         * modules/unicodeio (Depends-on): Likewise.
23505         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
23506         (iconv_t)(-1).
23507         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
23508         conversion if cd is (iconv_t)(-1).
23509         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
23510         is not possible.
23511
23512 2007-03-31  Bruno Haible  <bruno@clisp.org>
23513
23514         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23515         work on Solaris either. Protect also second use of "autodetect_jp".
23516
23517 2007-03-31  Bruno Haible  <bruno@clisp.org>
23518
23519         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
23520         the function is not present.
23521
23522 2007-03-31  Bruno Haible  <bruno@clisp.org>
23523
23524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
23525         the function is not present.
23526
23527 2007-03-31  Bruno Haible  <bruno@clisp.org>
23528
23529         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
23530         a bug in HP-UX iconv_open().
23531
23532 2007-03-31  Bruno Haible  <bruno@clisp.org>
23533
23534         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
23535         (Mathematics <math.h>): New section, add fpieee.
23536         (Input/output <stdio.h>): Add fseterr.
23537         (Mathematics <math.h>): New section, add printf-frexp.
23538         (Container data structures): Add sublist.
23539         (Core language properties): Add fpucw, inline.
23540         (Functions for greatest-width integer types <inttypes.h>): Add
23541         imaxabs, imaxdiv, inttypes.
23542         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
23543         isnanl-nolibm, ldexp.
23544         (Mathematics <math.h>): New section, add printf-frexpl.
23545         (Support for systems lacking POSIX:2001): Add fprintf-posix,
23546         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
23547         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
23548         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
23549         (Unicode string functions): Add unistr/u*-mbtoucr.
23550         (Java): Add javacomp-script, javaexec-script.
23551         (C#): Add csharpcomp-script, csharpexec-script.
23552         (Support for building libraries and executables): Add havelib,
23553         relocatable-*.
23554         (Support for maintaining and releasing projects): Renamed from
23555         'Support for maintaining and release projects'. Add announce-gen.
23556
23557 2007-03-31  Bruno Haible  <bruno@clisp.org>
23558
23559         * README: Talk primarily about git.
23560         (git and CVS): Renamed from CVS.
23561         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
23562         gnulib is available through git.
23563         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
23564
23565 2007-03-30  Bruno Haible  <bruno@clisp.org>
23566
23567         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
23568         * lib/poll_.h: Likewise.
23569         * lib/stat_.h: Likewise.
23570         * lib/sys_time_.h: Likewise.
23571         * lib/sysexit_.h: Likewise.
23572         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
23573         * lib/stdbool_.h: Likewise.
23574         * lib/byteswap_.h: Add double-inclusion guard.
23575
23576 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
23577
23578         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
23579
23580 2007-03-30  Karl Berry  <karl@gnu.org>
23581
23582         * config/srclist-update: double space after USA in the license
23583         substitution, since that's how it's usually (?) written.
23584
23585 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23586
23587         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
23588         reported by Bruno Haible.
23589
23590 2007-03-29  Bruno Haible  <bruno@clisp.org>
23591
23592         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
23593         a bug in AIX iconv().
23594
23595 2007-03-29  Bruno Haible  <bruno@clisp.org>
23596
23597         * modules/ldexpl-tests: New file.
23598         * tests/test-ldexpl.c: New file.
23599
23600 2007-03-29  Bruno Haible  <bruno@clisp.org>
23601
23602         * lib/ldexpl.c: Include fpucw.h.
23603         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
23604         multiplication.
23605         * modules/ldexpl (Depends-on): Add fpucw.
23606
23607 2007-03-29  Bruno Haible  <bruno@clisp.org>
23608
23609         * modules/ldexpl: New file.
23610         * m4/ldexpl.m4: New file.
23611         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
23612         set.
23613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
23614         REPLACE_LDEXPL.
23615         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
23616         REPLACE_LDEXPL.
23617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23618         gl_FUNC_LDEXPL_WORKS.
23619         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
23620         * modules/mathl (Files): Remove lib/ldexpl.c.
23621         (Depends-on): Add ldexpl.
23622
23623 2007-03-29  Bruno Haible  <bruno@clisp.org>
23624
23625         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
23626
23627 2007-03-29  Bruno Haible  <bruno@clisp.org>
23628
23629         * tests/test-striconveh.c (main): Don't assume that a direct conversion
23630         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
23631         and possibly also HP-UX.
23632         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23633         work on AIX, IRIX, HP-UX, OSF/1.
23634         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23635         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23636         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23637         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23638         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
23639         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23640
23641 2007-03-29  Bruno Haible  <bruno@clisp.org>
23642
23643         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
23644
23645 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23646
23647         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
23648         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
23649
23650 2007-03-29  Eric Blake  <ebb9@byu.net>
23651
23652         * lib/acl-internal.h: Remove redundant include.
23653         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
23654         Cygwin when a file is locked.
23655
23656 2007-03-29  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
23659         file.
23660         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
23661
23662 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
23665         try to remove a parent directory if the child couldn't be removed
23666         (except for the first rmdir, which could fail because the child
23667         doesn't exist).  Problem reported by Jeff Blaine in
23668         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
23669
23670 2007-03-28  Bruno Haible  <bruno@clisp.org>
23671
23672         * lib/striconveh.c (utf8conv_carefully): New function.
23673         (mem_cd_iconveh_internal): Invoke it.
23674
23675 2007-03-28  Bruno Haible  <bruno@clisp.org>
23676
23677         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
23678         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
23679         input.
23680         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
23681         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
23682         unistr/u8-uctomb.
23683
23684 2007-03-28  Bruno Haible  <bruno@clisp.org>
23685
23686         * modules/unistr/u8-mbtoucr: New file.
23687         * lib/unistr/u8-mbtoucr.c: New file.
23688         * modules/unistr/u16-mbtoucr: New file.
23689         * lib/unistr/u16-mbtoucr.c: New file.
23690         * modules/unistr/u16-mbtoucr: New file.
23691         * lib/unistr/u16-mbtoucr.c: New file.
23692         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
23693
23694 2007-03-27  Simon Josefsson  <simon@josefsson.org>
23695             Bruno Haible  <bruno@clisp.org>
23696
23697         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
23698         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
23699         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
23700
23701         * m4/stdio_h.m4: Add stubs for vasprintf too.
23702
23703         * modules/stdio: Support vasprintf in sed command.
23704
23705         * modules/vasprintf: Depend on stdio for prototypes.  Remove
23706         vasprintf.h.  Add stdio module indicator.
23707
23708         * lib/stdio_.h: Declare asprintf and vasprintf, based on
23709         vasprintf.h.
23710
23711         * lib/vasprintf.h: File removed.
23712
23713         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
23714         * lib/vasprintf.c: Ditto.
23715         * lib/xvasprintf.c: Ditto.
23716         * tests/test-vasprintf-posix.c: Ditto.
23717         * tests/test-vasprintf.c: Ditto.
23718
23719 2007-03-27  Bruno Haible  <bruno@clisp.org>
23720
23721         Make vasnprintf multithread-safe.
23722         * lib/vasnprintf.c (decimal_point_char): New function.
23723         (VASNPRINTF): Use it.
23724         Suggested by Simon Josefsson.
23725
23726 2007-03-27  Eric Blake  <ebb9@byu.net>
23727
23728         Support sub-second birthtime on cygwin.
23729         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
23730         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
23731         (get_stat_birthtime): Also work with st_birthtim.
23732
23733 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23734
23735         * lib/stat-time.h (USE_BIRTHTIME): Remove.
23736         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
23737         (get_stat_birthtime_ns): Do not try to use "spare" fields.
23738         (get_stat_birthtime_ns): Simplify compile-time tests.
23739         (get_stat_birthtime): Change the API to look like
23740         get_stat_mtime etc., except return a negative tv_nsec on error.
23741         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
23742         Don't check for "spare" fields.
23743         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
23744         or for struct stat.st_birthtime, as these tests aren't used.
23745         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
23746
23747 2007-03-27  Bruno Haible  <bruno@clisp.org>
23748
23749         * lib/stat-time.h: Include <sys/stat.h>.
23750
23751 2007-03-27  James Youngman  <jay@gnu.org>
23752
23753         * lib/stat-time.h (get_stat_birthtime): New function for
23754           retrieving st_birthtime as provided by UFS2 (hence *BSD).
23755         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
23756           and its variants.
23757         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
23758         * modules/stat-time-test: New file.
23759         * tests/test-stat-time.c: New test, devised by Bruno Haible.
23760
23761 2007-03-26  Bruno Haible  <bruno@clisp.org>
23762
23763         Better support of signalling NaNs.
23764         * lib/atanl.c: Include isnanl.h.
23765         (atanl): Perform test for NaN at the beginning of the function and
23766         through a call to isnanl.
23767         * lib/cosl.c: Include isnanl.h.
23768         (cosl): Perform test for NaN at the beginning of the function and
23769         through a call to isnanl.
23770         * lib/ldexpl.c: Include isnanl.h.
23771         (ldexpl): Perform test for NaN through a call to isnanl.
23772         * lib/logl.c: Include isnanl.h.
23773         (logl): Perform test for NaN at the beginning of the function and
23774         through a call to isnanl.
23775         * lib/sinl.c: Include isnanl.h.
23776         (sinl): Perform test for NaN at the beginning of the function and
23777         through a call to isnanl.
23778         * lib/sqrtl.c: Include isnanl.h.
23779         (sqrtl): Perform test for NaN at the beginning of the function and
23780         through a call to isnanl.
23781         * lib/tanl.c: Include isnanl.h.
23782         (tanl): Perform test for NaN at the beginning of the function and
23783         through a call to isnanl.
23784         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
23785         * modules/mathl (Depends-on): Add isnanl.
23786
23787 2007-03-26  Eric Blake  <ebb9@byu.net>
23788
23789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
23790         regression in logic sense of previous patch.
23791
23792 2007-03-26  Bruno Haible  <bruno@clisp.org>
23793
23794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
23795         unportable shell command "if ! ...".
23796         Reported by Ralf Wildenhues.
23797
23798 2007-03-25  Bruno Haible  <bruno@clisp.org>
23799
23800         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
23801         <sysexits.h> file, and only add EX_CONFIG.
23802         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
23803         absolute file name and whether it is sufficient. Substitute also
23804         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
23805         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
23806         ABSOLUTE_SYSEXITS_H into sysexits.h.
23807
23808 2007-03-25  Bruno Haible  <bruno@clisp.org>
23809
23810         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
23811         hints is NULL.
23812
23813 2007-03-25  Bruno Haible  <bruno@clisp.org>
23814
23815         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
23816         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23817
23818 2007-03-25  Bruno Haible  <bruno@clisp.org>
23819
23820         * lib/vasnprintf.c: Include langinfo.h.
23821         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
23822         multithread-safe.
23823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
23824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
23825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23827         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23828         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23829         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
23831         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23832         Reported by Simon Josefsson.
23833
23834 2007-03-25  Bruno Haible  <bruno@clisp.org>
23835
23836         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
23837         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
23838         * modules/vasnprintf (Depends-on): Add stdint.
23839
23840 2007-03-25  Bruno Haible  <bruno@clisp.org>
23841
23842         * modules/fpieee: New file.
23843         * m4/fpieee.m4: New file.
23844         * modules/isnan-nolibm (Depends-on): Add fpieee.
23845         * modules/isnanl-nolibm (Depends-on): Add fpieee.
23846         * modules/isnanl (Depends-on): Add fpieee.
23847
23848 2007-03-25  Bruno Haible  <bruno@clisp.org>
23849
23850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
23851
23852 2007-03-25  Bruno Haible  <bruno@clisp.org>
23853
23854         Avoid test failures on IRIX 6.5.
23855         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
23856         (main): Use it.
23857         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
23858         macros.
23859         (main): Use them.
23860
23861 2007-03-25  Bruno Haible  <bruno@clisp.org>
23862
23863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
23864         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
23865         exists but doesn't work.
23866         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
23867         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
23868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
23869         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
23870
23871 2007-03-25  Bruno Haible  <bruno@clisp.org>
23872
23873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
23874         returns inf. Needed on IRIX 6.5.
23875
23876 2007-03-25  Bruno Haible  <bruno@clisp.org>
23877
23878         * tests/test-frexpl.c: Include isnanl-nolibm.h.
23879         (main): Use isnanl instead of x != x idiom.
23880         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
23881
23882         * tests/test-frexp.c: Include isnan.h.
23883         (main): Use isnan instead of x != x idiom.
23884         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
23885
23886 2007-03-25  Bruno Haible  <bruno@clisp.org>
23887
23888         * tests/test-frexp.c (NaN): New function/macro.
23889         (main): Use it instead of 0.0 / 0.0.
23890         * tests/test-isnan.c (NaN): New function/macro.
23891         (main): Use it instead of 0.0 / 0.0.
23892         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
23893         (test_function): Use it instead of 0.0 / 0.0.
23894         * tests/test-vasprintf-posix.c (NaN): New function/macro.
23895         (test_function): Use it instead of 0.0 / 0.0.
23896         * tests/test-snprintf-posix.h (NaN): New function/macro.
23897         (test_function): Use it instead of 0.0 / 0.0.
23898         * tests/test-sprintf-posix.h (NaN): New function/macro.
23899         (test_function): Use it instead of 0.0 / 0.0.
23900         * tests/test-fprintf-posix.h (NaN): New function/macro.
23901         (test_function): Use it instead of 0.0 / 0.0.
23902         * tests/test-printf-posix.h (NaN): New function/macro.
23903         (test_function): Use it instead of 0.0 / 0.0.
23904
23905         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
23906
23907 2007-03-25  Bruno Haible  <bruno@clisp.org>
23908
23909         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
23910
23911 2007-03-25  Bruno Haible  <bruno@clisp.org>
23912
23913         * lib/regexec.c (merge_state_with_log): Make static.
23914
23915 2007-03-25  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/trigl.c (kernel_rem_pio2): Make static.
23918
23919 2007-03-25  Bruno Haible  <bruno@clisp.org>
23920
23921         * lib/sincosl.c (sincosl_table): Make static.
23922
23923 2007-03-25  Bruno Haible  <bruno@clisp.org>
23924
23925         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
23926         if the compiler does not support C99.
23927
23928 2007-03-25  Bruno Haible  <bruno@clisp.org>
23929
23930         * modules/time (Makefile.am): Ensure all rule action lines start with a
23931         tab.
23932
23933 2007-03-24  Bruno Haible  <bruno@clisp.org>
23934
23935         * modules/tsearch-tests: New file.
23936         * tests/test-tsearch.sh: New file.
23937         * tests/test-tsearch.c: New file, mostly copied from glibc.
23938
23939         * modules/search-tests: New file.
23940         * tests/test-search.c: New file.
23941
23942         * modules/search: New file.
23943         * lib/search_.h: New file, incorporating lib/tsearch.h.
23944         * m4/search_h.m4: New file.
23945         * lib/tsearch.h: Remove file.
23946         * lib/tsearch.c: Include search.h instead of tsearch.h.
23947         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
23948         HAVE_TSEARCH.
23949         * modules/tsearch (Files): Remove lib/tsearch.h.
23950         (Depends-on): Add search.
23951         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
23952         (Include): Change tsearch.h into search.h.
23953
23954 2007-03-24  Bruno Haible  <bruno@clisp.org>
23955
23956         * modules/fpucw: New file.
23957         * lib/fpucw.h: New file.
23958         * lib/frexp.c: Include fpucw.h.
23959         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
23960         (FUNC): Use them.
23961         * lib/printf-frexp.c: Include fpucw.h.
23962         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
23963         (FUNC): Use them.
23964         * lib/vasnprintf.c: Include fpucw.h.
23965         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
23966         'long double' calculations.
23967         * tests/test-frexpl.c: Include fpucw.h.
23968         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
23969         * tests/test-printf-frexpl.c: Include fpucw.h.
23970         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
23971         * modules/frexpl (Depends-on): Add fpucw.
23972         * modules/printf-frexpl (Depends-on): Likewise.
23973         * modules/fprintf-posix (Depends-on): Likewise.
23974         * modules/snprintf-posix (Depends-on): Likewise.
23975         * modules/sprintf-posix (Depends-on): Likewise.
23976         * modules/vasnprintf-posix (Depends-on): Likewise.
23977         * modules/vasprintf-posix (Depends-on): Likewise.
23978         * modules/vfprintf-posix (Depends-on): Likewise.
23979         * modules/vsnprintf-posix (Depends-on): Likewise.
23980         * modules/vsprintf-posix (Depends-on): Likewise.
23981         * modules/frexpl-tests (Depends-on): Likewise.
23982         * modules/printf-frexpl-tests (Depends-on): Likewise.
23983
23984 2007-03-24  Bruno Haible  <bruno@clisp.org>
23985
23986         * lib/float+.h: New file.
23987         * lib/isnan.c: Include float+.h.
23988         (SIZE): New macro.
23989         (FUNC): Compare only SIZE bytes of the value.
23990         * lib/vasnprintf.c: Include float+.h.
23991         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
23992         SIZEOF_LDBL or SIZEOF_DBL bytes.
23993         * modules/isnan-nolibm (Files): Add lib/float+.h.
23994         * modules/isnanl-nolibm (Files): Add lib/float+.h.
23995         * modules/isnanl (Files): Add lib/float+.h.
23996         * modules/vasnprintf (Files): Add lib/float+.h.
23997
23998 2007-03-24  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
24001         include isnanl-nolibm.h.
24002
24003 2007-03-24  Bruno Haible  <bruno@clisp.org>
24004
24005         * tests/test-read-file.c (main): Don't produce spurious output for
24006         expected situations. Make the test fail if it encountered unexpected
24007         results.
24008
24009 2007-03-24  Bruno Haible  <bruno@clisp.org>
24010
24011         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
24012         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
24013
24014 2007-03-24  Bruno Haible  <bruno@clisp.org>
24015
24016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
24017
24018 2007-03-24  Bruno Haible  <bruno@clisp.org>
24019
24020         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
24021         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
24022
24023         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
24024         * modules/utf8-ucs4: Turn into a symbolic link to module
24025         unistr/u8-mbtouc.
24026
24027         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
24028         utf8-ucs4-unsafe.
24029         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
24030         unistr/u8-mbtouc-unsafe.
24031
24032         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
24033         * modules/utf16-ucs4: Turn into a symbolic link to module
24034         unistr/u16-mbtouc.
24035
24036         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
24037         utf16-ucs4-unsafe.
24038         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
24039         unistr/u16-mbtouc-unsafe.
24040
24041         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
24042         * modules/ucs4-utf8: Turn into a symbolic link to module
24043         unistr/u8-ubtomb.
24044
24045         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
24046         * modules/ucs4-utf16: Turn into a symbolic link to module
24047         unistr/u16-ubtomb.
24048
24049 2007-03-24  Bruno Haible  <bruno@clisp.org>
24050
24051         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
24052         Enable the function only if HAVE_INLINE.
24053         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
24054         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24055         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
24056         Enable the function only if HAVE_INLINE.
24057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
24058         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24059         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
24060         Enable the function only if HAVE_INLINE.
24061         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
24062         Enable the function only if HAVE_INLINE.
24063         * modules/utf8-ucs4: Update.
24064         * modules/utf8-ucs4-unsafe: Update.
24065         * modules/utf16-ucs4: Update.
24066         * modules/utf16-ucs4-unsafe: Update.
24067         * modules/ucs4-utf8: Update.
24068         * modules/ucs4-utf16: Update.
24069
24070 2007-03-24  Bruno Haible  <bruno@clisp.org>
24071
24072         * lib/utf8-ucs4.h: Remove file.
24073         * lib/utf8-ucs4-unsafe.h: Remove file.
24074         * lib/utf16-ucs4.h: Remove file.
24075         * lib/utf16-ucs4-unsafe.h: Remove file.
24076         * lib/ucs4-utf8.h: Remove file.
24077         * lib/ucs4-utf16.h: Remove file.
24078         * lib/unistr.h: Include their previous contents.
24079         * m4/utf-ucs4.m4: Remove file.
24080         * m4/ucs4-utf.m4: Remove file.
24081         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
24082         (Depends-on): Add unistr/base.
24083         (configure.ac): Remove gl_UTF_UCS4.
24084         (Makefile.am): Update.
24085         (Include): Change to unistr.h.
24086         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
24087         (Depends-on): Add unistr/base.
24088         (configure.ac): Remove gl_UTF_UCS4.
24089         (Makefile.am): Update.
24090         (Include): Change to unistr.h.
24091         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
24092         (Depends-on): Add unistr/base.
24093         (configure.ac): Remove gl_UTF_UCS4.
24094         (Makefile.am): Update.
24095         (Include): Change to unistr.h.
24096         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
24097         (Depends-on): Add unistr/base.
24098         (configure.ac): Remove gl_UTF_UCS4.
24099         (Makefile.am): Update.
24100         (Include): Change to unistr.h.
24101         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
24102         (Depends-on): Add unistr/base.
24103         (configure.ac): Remove gl_UCS4_UTF.
24104         (Makefile.am): Update.
24105         (Include): Change to unistr.h.
24106         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
24107         (Depends-on): Add unistr/base.
24108         (configure.ac): Remove gl_UCS4_UTF.
24109         (Makefile.am): Update.
24110         (Include): Change to unistr.h.
24111         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
24112         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
24113         utf8-ucs4-unsafe.h.
24114         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
24115         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
24116         utf16-ucs4-unsafe.h.
24117         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
24118         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
24119         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
24120         * lib/unistr/u8-strchr.c: Likewise.
24121         * lib/unistr/u8-strrchr.c: Likewise.
24122         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
24123         * lib/unistr/u16-strchr.c: Likewise.
24124         * lib/unistr/u16-strrchr.c: Likewise.
24125         * lib/striconveh.c: Update.
24126         * lib/linebreak.c: Update.
24127
24128 2007-03-24  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
24131         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
24132
24133 2007-03-22  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
24136
24137 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24138
24139         * MODULES.html.sh (File system functions): New module write-any-file.
24140         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
24141         * m4/write-any-file.m4: New files.
24142
24143 2007-03-23  Eric Blake  <ebb9@byu.net>
24144
24145         * gnulib-tool: Rearrange space-tab sequences, since some editors
24146         like to eat them.
24147
24148 2007-03-23  Eric Blake  <ebb9@byu.net>
24149
24150         * lib/version-etc.c (version_etc_va): Update license wording to
24151         be more concise.  Recommended by Richard Stallman.
24152
24153 2007-03-22  Bruno Haible  <bruno@clisp.org>
24154
24155         * lib/poll.c (MSG_PEEK): New fallback definition.
24156
24157 2007-03-22  Bruno Haible  <bruno@clisp.org>
24158
24159         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
24160         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
24161         (main): Update.
24162         Fixes a compilation error on BeOS.
24163
24164 2007-03-22  Bruno Haible  <bruno@clisp.org>
24165
24166         * modules/frexpl-tests: New file.
24167         * tests/test-frexpl.c: New file.
24168
24169         * modules/frexpl: New file.
24170         * m4/frexpl.m4: New file.
24171         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
24172         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
24173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
24174         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
24175         (Depends-on): Add frexpl. Remove isnanl-nolibm.
24176         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
24177
24178 2007-03-22  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/frexpl.c: Share code with lib/frexp.c.
24181         * modules/mathl (Files): Add lib/frexp.c.
24182         (Depends-on): Add isnanl-nolibm.
24183
24184 2007-03-22  Bruno Haible  <bruno@clisp.org>
24185
24186         * modules/printf-frexp (Files): Add m4/frexp.m4.
24187         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
24188         only if the found frexp function actually works.
24189
24190 2007-03-22  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/frexp.c: Remove older implementation that uses divisions.
24193
24194 2007-03-21  Bruno Haible  <bruno@clisp.org>
24195
24196         * modules/frexp-tests: New file.
24197         * tests/test-frexp.c: New file.
24198
24199         * modules/frexp: New file.
24200         * lib/frexp.c: New file.
24201         * m4/frexp.m4: New file.
24202         * lib/math_.h (frexp): New declaration.
24203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
24204         REPLACE_FREXP.
24205         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
24206
24207 2007-03-21  Bruno Haible  <bruno@clisp.org>
24208
24209         * modules/isnanl-tests: New file.
24210         * tests/test-isnanl.c: New file.
24211
24212         * modules/isnanl: New file.
24213         * lib/isnanl.h: New file.
24214         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
24215         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
24216         gl_FUNC_ISNANL_WORKS.
24217         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
24218         New macros.
24219
24220 2007-03-21  Bruno Haible  <bruno@clisp.org>
24221
24222         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
24223         lib/isnanl.h.
24224         (Include): Update.
24225         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
24226         * lib/vasnprintf.c: Update.
24227         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
24228         tests/test-isnanl.h, remove tests/test-isnanl.c.
24229         (Makefile.am): Update.
24230         * tests/test-isnanl-nolibm.c: New file.
24231         * tests/test-isnanl.h: New file.
24232         * tests/test-isnanl.c: Remove file.
24233
24234 2007-03-21  Jim Meyering  <jim@meyering.net>
24235
24236         When trying to open ".", treat ESTALE like EACCES.
24237         * lib/savewd.c (savewd_save): Resort to forking not just upon
24238         failure with EACCES, but also when errno is ESTALE.
24239
24240 2007-03-20  Bruno Haible  <bruno@clisp.org>
24241
24242         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
24243         Needed on AIX 5.1. Reported by Matthew Woehlke.
24244
24245 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24246
24247         Suggestions by Bruno Haible:
24248         * lib/acl-internal.h: Include "gettext.h" rather than rolling
24249         our own.
24250         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
24251         * modules/acl (Depends-on): Add gettext.
24252
24253 2007-03-19  Bruno Haible  <bruno@clisp.org>
24254
24255         * modules/iconvme: Remove file.
24256         * lib/iconvme.h: Remove file.
24257         * lib/iconvme.c: Remove file.
24258         * m4/iconvme.m4: Remove file.
24259
24260 2007-03-19  Bruno Haible  <bruno@clisp.org>
24261
24262         * doc/relocatable-maint.texi: Break long shell script line.
24263         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24264
24265 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24266
24267         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
24268         handle file_has_acl.
24269         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
24270         * lib/acl.c: Move header inclusions and related macro defns into
24271         lib/acl-internal.h.
24272         (S_ISLNK): Remove defn, since that's now done for us.
24273         (file_has_acl): Move to lib/file-has-acl.c.
24274         Call acl_trivial if available.  This is the crucial part of the fix.
24275         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
24276         shared within the library.  Rewrite a bit, partly to make it compatible
24277         with the GNU coding style.
24278         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
24279         Remove unnecessary double-quotes.
24280         Don't test for acl_to_text; the build will catch that.
24281         Replace acl_entries if it doesn't exist and it is needed.
24282         Check for -lsec and acl_trivial (as used on Solaris 10).
24283         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
24284         lib/file-has-acl.c.
24285         (Depends-on): Add sys_stat, for S_ISLNK.
24286
24287 2007-03-19  Ben Pfaff  <blp@gnu.org>
24288
24289         * doc/gnulib.texi: Fix typos.
24290         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24291
24292 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24293
24294         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
24295         If size is zero here, buf must be zero.
24296
24297 2007-03-19  Simon Josefsson  <simon@josefsson.org>
24298
24299         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
24300         <bruno@clisp.org>.
24301
24302 2007-03-18  Bruno Haible  <bruno@clisp.org>
24303
24304         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
24305         Suggested by Eric Blake.
24306
24307 2007-03-18  Ben Pfaff  <blp@gnu.org>
24308
24309         * doc/relocatable.texi: Recommend using as prefix a directory
24310         that does not exist and will never be created.  Based on
24311         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
24312         and others.
24313
24314 2007-03-17  Bruno Haible  <bruno@clisp.org>
24315
24316         * lib/fchownat.c: Include lchown.h.
24317
24318 2007-03-17  Bruno Haible  <bruno@clisp.org>
24319
24320         Fix endless loop when the given allocated size was > INT_MAX.
24321         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
24322         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
24323         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
24324         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
24325         * lib/sprintf.c (sprintf): Likewise.
24326
24327 2007-03-17  Bruno Haible  <bruno@clisp.org>
24328
24329         * tests/test-argp-2.sh (func_compare): Output a context diff.
24330
24331 2007-03-17  Bruno Haible  <bruno@clisp.org>
24332
24333         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
24334         locale's decimal-point character.
24335
24336 2007-03-17  Bruno Haible  <bruno@clisp.org>
24337
24338         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
24339         before comparing it. Needed because on some platforms (e.g. x86) a
24340         'long double' occupies less bytes than sizeof (long double).
24341
24342 2007-03-17  Bruno Haible  <bruno@clisp.org>
24343
24344         * tests/test-crc.c (main): Make printf statements 64-bit clean.
24345         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
24346         * tests/test-getaddrinfo.c (simple): Likewise.
24347         * tests/test-read-file.c (main): Likewise.
24348
24349 2007-03-17  Bruno Haible  <bruno@clisp.org>
24350
24351         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
24352
24353 2007-03-17  Bruno Haible  <bruno@clisp.org>
24354
24355         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
24356         unused variable.
24357
24358 2007-03-17  Bruno Haible  <bruno@clisp.org>
24359
24360         * tests/test-c-strcasecmp.c: Include c-strcase.h.
24361         * tests/test-c-strncasecmp.c: Likewise.
24362
24363 2007-03-17  Bruno Haible  <bruno@clisp.org>
24364
24365         * modules/stdlib (Depends-on): Add unistd.
24366         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
24367         Needed for MacOS X 10.3.
24368
24369 2007-03-17  Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/unistr/u-strdup.h: Include <stdlib.h>.
24372
24373 2007-03-17  Bruno Haible  <bruno@clisp.org>
24374
24375         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
24376
24377 2007-03-17  Bruno Haible  <bruno@clisp.org>
24378
24379         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
24380         to reflect files copied from gnulib (with or without modifications).
24381         Suggested by Jim Meyering.
24382
24383 2007-03-17  Eric Blake  <ebb9@byu.net>
24384
24385         * NEWS: Document stdlib change from 2007-02-18.
24386
24387 2007-03-17  Jim Meyering  <jim@meyering.net>
24388
24389         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
24390         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
24391         someone uses a name containing shell meta-characters.
24392         Reported by Alfred M. Szmidt.
24393
24394         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
24395
24396 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24397
24398         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
24399         and copy gettext configuration files only if configure.ac contains
24400         a use of AM_GNU_GETTEXT_VERSION.
24401
24402 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24403
24404         * build-aux/bootstrap (gnulib_name): New variable.
24405         (gnulib_tool_options): Use it.
24406
24407 2007-03-13  Simon Josefsson  <simon@josefsson.org>
24408
24409         * tests/test-des.c: Use new namespace.
24410
24411 2007-03-15  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
24414         Reported by James Youngman <jay@gnu.org>.
24415
24416 2007-03-15  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
24419         declared prototype. Needed with cc on OSF/1 5.1.
24420
24421 2007-03-15  Bruno Haible  <bruno@clisp.org>
24422
24423         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
24424         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
24425         (struct gl_list_implementation): Add dispose_fn argument to the
24426         'create_empty', 'create' methods.
24427         (struct gl_list_impl_base): Add field 'dispose_fn'.
24428         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
24429         argument.
24430         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
24431         dispose_fn argument.
24432         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
24433         dispose_fn on the dropped values.
24434         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
24435         dispose_fn argument.
24436         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
24437         dropped values.
24438         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
24439         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24440         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
24441         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24442         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
24443         argument.
24444         (gl_tree_list_free): Call dispose_fn on the dropped values.
24445         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
24446         the dropped values.
24447         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
24448         Add dispose_fn argument.
24449         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
24450         Call dispose_fn on the dropped values.
24451         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
24452         Add dispose_fn argument.
24453         (gl_sublist_create): Initialize the 'dispose_fn' field.
24454         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
24455         * tests/test-array_list.c (main): Update.
24456         * tests/test-carray_list.c (main): Update.
24457         * tests/test-avltree_list.c (main): Update.
24458         * tests/test-rbtree_list.c (main): Update.
24459         * tests/test-avltreehash_list.c (main): Update.
24460         * tests/test-rbtreehash_list.c (main): Update.
24461         * tests/test-linked_list.c (main): Update.
24462         * tests/test-linkedhash_list.c (main): Update.
24463         * tests/test-array_oset.c (main): Update.
24464
24465 2007-03-15  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
24468         (gl_oset_create_empty): Add dispose_fn argument.
24469         (struct gl_oset_implementation): Add dispose_fn argument to
24470         'create_empty' method.
24471         (struct gl_oset_impl_base): Add dispose_fn field.
24472         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
24473         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
24474         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
24475         values.
24476         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
24477         (gl_tree_oset_free): Call dispose_fn on the dropped values.
24478         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24479         dropped value.
24480         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24481         dropped value.
24482         * tests/test-array_oset.c (main): Update.
24483         * tests/test-avltree_oset.c (main): Update.
24484         * tests/test-rbtree_oset.c (main): Update.
24485         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
24486
24487 2007-03-13  Bruno Haible  <bruno@clisp.org>
24488
24489         * tests/test-stdbool.c (i): Update after last patch.
24490
24491 2007-03-12  Bruno Haible  <bruno@clisp.org>
24492
24493         * lib/quotearg.c: Include <wctype.h> early, before the definition of
24494         the iswprint macro. Needed on Solaris 2.5.1.
24495
24496 2007-03-12  Bruno Haible  <bruno@clisp.org>
24497
24498         * tests/test-printf-frexp.c (main): Declare x as volatile.
24499
24500 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24501
24502         * doc/gnulib.texi (Build robot for gnulib): New section.
24503
24504 2007-03-12  Jim Meyering  <jim@meyering.net>
24505
24506         * build-aux/bootstrap: New file.
24507         * build-aux/bootstrap.conf: New file, from coreutils.
24508
24509 2007-03-11  Bruno Haible  <bruno@clisp.org>
24510
24511         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
24512
24513 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24514
24515         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
24516         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
24517         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
24518
24519 2007-03-11  Bruno Haible  <bruno@clisp.org>
24520
24521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
24522         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
24523
24524 2007-03-11  Bruno Haible  <bruno@clisp.org>
24525
24526         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
24527         formula. Needed for SunPRO C 5.0.
24528
24529 2007-03-11  Bruno Haible  <bruno@clisp.org>
24530
24531         * modules/long-options (Depends-on): Add getopt.
24532
24533 2007-03-11  Bruno Haible  <bruno@clisp.org>
24534
24535         * modules/modechange (Depends-on): Add stdbool.
24536
24537 2007-03-11  Bruno Haible  <bruno@clisp.org>
24538
24539         * modules/i-ring (Depends-on): Add stdbool.
24540
24541 2007-03-11  Bruno Haible  <bruno@clisp.org>
24542
24543         * modules/gc-des (Depends-on): Add stdbool.
24544
24545 2007-03-11  Bruno Haible  <bruno@clisp.org>
24546
24547         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
24548
24549 2007-03-11  Bruno Haible  <bruno@clisp.org>
24550
24551         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
24552
24553 2007-03-11  Bruno Haible  <bruno@clisp.org>
24554
24555         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
24556
24557 2007-03-11  Bruno Haible  <bruno@clisp.org>
24558
24559         * lib/vasnprintf.c (sprintf): Undefine.
24560
24561 2007-03-11  Bruno Haible  <bruno@clisp.org>
24562
24563         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
24564         initializers in SunPRO C and Compaq C compilers.
24565
24566 2007-03-11  Bruno Haible  <bruno@clisp.org>
24567
24568         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
24569         decrementing code ANSI C compliant.
24570
24571 2007-03-11  Bruno Haible  <bruno@clisp.org>
24572
24573         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
24574         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
24575
24576 2007-03-11  Bruno Haible  <bruno@clisp.org>
24577
24578         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
24579         <stdbool.h> substitute doesn't pass.
24580
24581 2007-03-11  Bruno Haible  <bruno@clisp.org>
24582
24583         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
24584
24585 2007-03-11  Bruno Haible  <bruno@clisp.org>
24586
24587         * gnulib-tool (func_create_megatestdir): Create also an autobuild
24588         script, for submission to autobuild.josefsson.org.
24589
24590 2007-03-10  Bruno Haible  <bruno@clisp.org>
24591
24592         * modules/canonicalize-lgpl-tests: New file.
24593         * tests/test-canonicalize-lgpl.sh: New file.
24594         * tests/test-canonicalize-lgpl.c: New file.
24595
24596         * modules/c-strcase-tests: New file.
24597         * tests/test-c-strcase.sh: New file.
24598         * tests/test-c-strcasecmp.c: New file.
24599         * tests/test-c-strncasecmp.c: New file.
24600
24601         * modules/atexit-tests: New file.
24602         * tests/test-atexit.sh: New file.
24603         * tests/test-atexit.c: New file.
24604
24605 2007-03-10  Bruno Haible  <bruno@clisp.org>
24606
24607         * tests/test-binary-io.sh: Use temporary filenames that are not so
24608         likely to clash with those of other tests (in a parallel make).
24609         * tests/test-binary-io.c: Likewise.
24610
24611 2007-03-10  Bruno Haible  <bruno@clisp.org>
24612
24613         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
24614         fallback; use #error instead.
24615         Suggested by Simon Josefsson.
24616
24617 2007-03-10  Bruno Haible  <bruno@clisp.org>
24618
24619         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
24620         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
24621         first and the last.
24622
24623 2007-03-10  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
24626
24627 2007-03-10  Bruno Haible  <bruno@clisp.org>
24628
24629         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
24630         "make distcheck".
24631         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
24632         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
24633         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
24634
24635 2007-03-10  Bruno Haible  <bruno@clisp.org>
24636
24637         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
24638         variable.
24639         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
24640         variable.
24641
24642 2007-03-09  Eric Blake  <ebb9@byu.net>
24643         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
24644
24645         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
24646         types are not being provided by gnulib.
24647         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
24648         types are supported.
24649
24650 2007-03-10  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/stdio_.h (__attribute__): New macro.
24653         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
24654         vsprintf): Specify __attribute__ __format__ for GCC.
24655         Suggested by Eric Blake.
24656
24657 2007-03-09  Bruno Haible  <bruno@clisp.org>
24658
24659         * modules/printf-posix-tests: New file.
24660         * tests/test-printf-posix.sh: New file.
24661         * tests/test-printf-posix.c: New file.
24662
24663         * modules/printf-posix: New file.
24664         * lib/printf.c: New file.
24665         * m4/printf-posix-rpl.m4: New file.
24666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
24667         REPLACE_PRINTF.
24668         * lib/stdio_.h (printf): New declaration.
24669         (format, __format__, ____printf____, ____scanf____, ____strftime____,
24670         ____strfmon____): New macros.
24671         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
24672         REPLACE_PRINTF.
24673
24674 2007-03-09  Bruno Haible  <bruno@clisp.org>
24675
24676         * tests/test-vasnprintf-posix2.sh: New file.
24677         * tests/test-vasnprintf-posix2.c: New file.
24678         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
24679         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24680         (Makefile.am): Activate test-vasnprintf-posix2.sh.
24681
24682         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
24683         a locale dependent decimal point, rather than always '.'.
24684
24685 2007-03-09  Eric Blake  <ebb9@byu.net>
24686
24687         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
24688         spite of platforms like Tandem/NSK that define it to -1.
24689
24690 2007-03-08  Bruno Haible  <bruno@clisp.org>
24691
24692         * modules/vprintf-posix-tests: New file.
24693         * tests/test-vprintf-posix.sh: New file.
24694         * tests/test-vprintf-posix.c: New file.
24695         * tests/test-printf-posix.h: New file.
24696
24697         * modules/vprintf-posix: New file.
24698         * lib/vprintf.c: New file.
24699         * m4/vprintf-posix.m4: New file.
24700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
24701         REPLACE_VPRINTF.
24702         * lib/stdio_.h (vprintf): New declaration.
24703         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
24704         REPLACE_VPRINTF.
24705
24706 2007-03-08  Bruno Haible  <bruno@clisp.org>
24707
24708         * modules/fprintf-posix-tests: New file.
24709         * tests/test-fprintf-posix.sh: New file.
24710         * tests/test-fprintf-posix.c: New file.
24711
24712         * modules/fprintf-posix: New file.
24713         * lib/fprintf.c: New file.
24714         * m4/fprintf-posix.m4: New file.
24715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
24716         REPLACE_FPRINTF.
24717         * lib/stdio_.h (fprintf): New declaration.
24718         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
24719         REPLACE_FPRINTF.
24720
24721 2007-03-08  Bruno Haible  <bruno@clisp.org>
24722
24723         * modules/vfprintf-posix-tests: New file.
24724         * tests/test-vfprintf-posix.sh: New file.
24725         * tests/test-vfprintf-posix.c: New file.
24726         * tests/test-fprintf-posix.h: New file.
24727         * tests/test-fprintf-posix.out: New file.
24728
24729         * modules/vfprintf-posix: New file.
24730         * lib/vfprintf.c: New file.
24731         * m4/vfprintf-posix.m4: New file.
24732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
24733         REPLACE_VFPRINTF.
24734         * lib/stdio_.h (vfprintf): New declaration.
24735         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
24736         REPLACE_VFPRINTF.
24737
24738 2007-03-08  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
24741
24742 2007-03-08  Bruno Haible  <bruno@clisp.org>
24743
24744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
24745         instead of 'expr' invocations.
24746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24751         Suggested by Paul Eggert.
24752
24753 2007-03-08  Bruno Haible  <bruno@clisp.org>
24754
24755         * modules/fseterr-tests: New file.
24756         * tests/test-fseterr.c: New file.
24757
24758         * modules/fseterr: New file.
24759         * lib/fseterr.h: New file.
24760         * lib/fseterr.c: New file.
24761
24762 2007-03-08  Bruno Haible  <bruno@clisp.org>
24763
24764         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
24765         * lib/getopt_.h: Likewise.
24766         * lib/mbswidth.h: Likewise.
24767         * lib/setenv.h: Likewise.
24768         * lib/vasnprintf.h: Likewise.
24769         * lib/vasprintf.h: Likewise.
24770         * lib/verror.h: Likewise.
24771         * lib/xsetenv.h: Likewise.
24772         * lib/xvasprintf.h: Likewise.
24773
24774 2007-03-08  Jim Meyering  <jim@meyering.net>
24775
24776         * users.txt: Add parted.
24777
24778         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
24779
24780 2007-03-07  Bruno Haible  <bruno@clisp.org>
24781
24782         * m4/printf.m4: Make the shell script snippets copy&pastable.
24783
24784 2007-03-02  Bruno Haible  <bruno@clisp.org>
24785
24786         * lib/netinet_in_.h: New file.
24787         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
24788         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
24789         * modules/netinet_in (Files): Add lib/netinet_in_.h.
24790         (Depends-on): Add absolute-header.
24791         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
24792         into netinet/in.h.
24793
24794 2007-03-03  Bruno Haible  <bruno@clisp.org>
24795
24796         * lib/sys_select_.h: New file.
24797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
24798         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
24799         * modules/sys_select (Files): Add lib/sys_select_.h.
24800         (Depends-on): Add absolute-header.
24801         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
24802         into sys/select.h.
24803
24804 2007-03-02  Bruno Haible  <bruno@clisp.org>
24805
24806         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
24807         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
24808         values.
24809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
24810         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
24811         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
24812         * modules/sys_socket (Depends-on): Add absolute-header.
24813         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
24814         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
24815         (Include): Remove requirement of inclusion of <sys/types.h>.
24816
24817 2007-03-02  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/byteswap_.h (bswap_32): Fix formula.
24820
24821 2007-03-06  Bruno Haible  <bruno@clisp.org>
24822
24823         * modules/sprintf-posix-tests: New file.
24824         * tests/test-sprintf-posix.c: New file.
24825
24826         * modules/sprintf-posix: New file.
24827         * lib/sprintf.c: New file.
24828         * m4/sprintf-posix.m4: New file.
24829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
24830         REPLACE_SPRINTF.
24831         * lib/stdio_.h (sprintf): New declaration.
24832         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
24833         REPLACE_SPRINTF.
24834
24835 2007-03-06  Bruno Haible  <bruno@clisp.org>
24836
24837         * modules/vsprintf-posix-tests: New file.
24838         * tests/test-vsprintf-posix.c: New file.
24839         * tests/test-sprintf-posix.h: New file.
24840
24841         * modules/vsprintf-posix: New file.
24842         * lib/vsprintf.c: New file.
24843         * m4/vsprintf-posix.m4: New file.
24844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
24845         REPLACE_VSPRINTF.
24846         * lib/stdio_.h (vsprintf): New declaration.
24847         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
24848         REPLACE_VSPRINTF.
24849
24850 2007-03-06  Bruno Haible  <bruno@clisp.org>
24851
24852         * modules/vsnprintf (Depend-on): Remove minmax.
24853
24854 2007-03-06  Bruno Haible  <bruno@clisp.org>
24855
24856         * modules/snprintf-posix-tests: New file.
24857         * tests/test-snprintf-posix.c: New file.
24858
24859         * modules/snprintf-posix: New file.
24860         * m4/snprintf-posix.m4: New file.
24861         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
24862         gl_FUNC_SNPRINTF.
24863         (gl_FUNC_SNPRINTF): Invoke it.
24864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
24865         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
24866         is set.
24867         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
24868
24869 2007-03-06  Bruno Haible  <bruno@clisp.org>
24870
24871         * modules/vsnprintf-posix-tests: New file.
24872         * tests/test-vsnprintf-posix.c: New file.
24873         * tests/test-snprintf-posix.h: New file.
24874
24875         * modules/vsnprintf-posix: New file.
24876         * m4/vsnprintf-posix.m4: New file.
24877         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
24878         gl_FUNC_VSNPRINTF.
24879         (gl_FUNC_VSNPRINTF): Invoke it.
24880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
24881         * lib/stdio_.h (vsnprintf): Define as a replacement if
24882         REPLACE_VSNPRINTF is set.
24883         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
24884
24885 2007-03-06  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
24888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
24889
24890 2007-03-06  Bruno Haible  <bruno@clisp.org>
24891
24892         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
24893         (asinl): Declare also if HAVE_DECL_ASINL is set.
24894         (atanl): Declare also if HAVE_DECL_ATANL is set.
24895         (ceill): Declare also if HAVE_DECL_CEILL is set.
24896         (cosl): Declare also if HAVE_DECL_COSL is set.
24897         (expl): Declare also if HAVE_DECL_EXPL is set.
24898         (floorl): Declare also if HAVE_DECL_FLOORL is set.
24899         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
24900         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
24901         (logl): Declare also if HAVE_DECL_LOGL is set.
24902         (sinl): Declare also if HAVE_DECL_SINL is set.
24903         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
24904         (tanl): Declare also if HAVE_DECL_TANL is set.
24905         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
24906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
24907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
24908         declaration of frexpl, ldexpl.
24909         * modules/printf-frexpl (Depends-on): Add math.
24910         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
24911
24912 2007-03-05  Bruno Haible  <bruno@clisp.org>
24913
24914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
24915         frexpl and ldexpl are declared.
24916         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
24917
24918 2007-03-05  Bruno Haible  <bruno@clisp.org>
24919
24920         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
24921         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
24922
24923 2007-03-05  Bruno Haible  <bruno@clisp.org>
24924
24925         * lib/stdio_.h: Include <stddef.h>.
24926
24927 2007-03-05  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
24930
24931 2007-03-05  Bruno Haible  <bruno@clisp.org>
24932
24933         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
24934         NetBSD 4, from Ralf Wildenhues.
24935
24936 2007-03-04  Bruno Haible  <bruno@clisp.org>
24937
24938         * lib/vasprintf.h: Update #if logic for the case when the functions
24939         exist but are overridden.
24940
24941 2007-03-04  Bruno Haible  <bruno@clisp.org>
24942
24943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
24944         implementations: glibc-2.4 and MacOS X 10.3.
24945         * tests/test-vasnprintf-posix.c (test_function): Test also the case
24946         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
24947         * tests/test-vasprintf-posix.c (test_function): Likewise.
24948
24949 2007-03-04  Bruno Haible  <bruno@clisp.org>
24950
24951         * modules/vasprintf-posix-tests: New file.
24952         * tests/test-vasprintf-posix.c: New file.
24953
24954         * modules/vasprintf-posix: New file.
24955         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
24956         defined.
24957         * m4/vasprintf-posix.m4: New file.
24958         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
24959         gl_FUNC_VASPRINTF.
24960         (gl_FUNC_VASPRINTF): Invoke it.
24961         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
24962         here.
24963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
24964
24965 2007-03-04  Bruno Haible  <bruno@clisp.org>
24966
24967         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
24968         REPLACE_GETTIMEOFDAY.
24969         * modules/sys_time (Makefile.am): Likewise.
24970         * m4/sys_time_h.m4: Likewise.
24971         * m4/gettimeofday.m4: Likewise.
24972
24973 2007-03-04  Bruno Haible  <bruno@clisp.org>
24974
24975         * modules/vasnprintf-posix-tests: New file.
24976         * tests/test-vasnprintf-posix.c: New file.
24977
24978         * modules/vasnprintf-posix: New file.
24979         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
24980         printf-frexpl.h.
24981         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
24982         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
24983         REPLACE_VASNPRINTF is defined.
24984         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
24985         gl_FUNC_VASNPRINTF.
24986         (gl_FUNC_VASNPRINTF): Invoke it.
24987         * m4/vasnprintf-posix.m4: New file.
24988         * m4/printf.m4: New file.
24989
24990 2007-03-04  Bruno Haible  <bruno@clisp.org>
24991
24992         Compile progreloc.c only if --enable-relocatable is specified.
24993         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
24994         if --enable-relocatable was specified.
24995         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
24996         lib_SOURCES.
24997
24998 2007-03-04  Jim Meyering  <jim@meyering.net>
24999
25000         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
25001         Use it consistently, rather than enumerating errno constants.
25002
25003 2007-03-04  Bruno Haible  <bruno@clisp.org>
25004
25005         * modules/xvasprintf-tests: New file.
25006         * tests/test-xvasprintf.c: New file.
25007
25008         * modules/vasprintf-tests: New file.
25009         * tests/test-vasprintf.c: New file.
25010
25011         * modules/vasnprintf-tests: New file.
25012         * tests/test-vasnprintf.c: New file.
25013
25014         * modules/vsnprintf-tests: New file.
25015         * tests/test-vsnprintf.c: New file.
25016
25017         * modules/snprintf-tests: New file.
25018         * tests/test-snprintf.c: New file.
25019
25020 2007-03-04  Bruno Haible  <bruno@clisp.org>
25021
25022         Compile relocatable.c only if --enable-relocatable is specified.
25023         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
25024         gl_RELOCATABLE_LIBRARY.
25025         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
25026         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
25027         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
25028         gl_RELOCATABLE_LIBRARY.
25029         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
25030         (Makefile.am): Remove lib_SOURCES.
25031         * modules/relocatable-lib-lgpl (configure.ac): Invoke
25032         gl_RELOCATABLE_LIBRARY.
25033         (Makefile.am): Remove lib_SOURCES.
25034         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
25035         always.
25036         * modules/relocatable-prog-wrapper (configure.ac): Invoke
25037         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
25038
25039 2007-03-04  Bruno Haible  <bruno@clisp.org>
25040
25041         * modules/argmatch-tests: New file.
25042         * tests/test-argmatch.c: New file.
25043
25044         * tests/test-allocsa.c (main): Halve the number of loop runs.
25045
25046         * modules/alloca-opt-tests: New file.
25047         * tests/test-alloca-opt.c: New file.
25048
25049 2007-03-04  Jim Meyering  <jim@meyering.net>
25050
25051         Work around difference between Linux ACLs and Solaris 10 ZFS.
25052         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
25053         for EINVAL.
25054
25055 2007-03-03  Bruno Haible  <bruno@clisp.org>
25056
25057         * modules/relocatable-prog (Depends-on): Add back progreloc's
25058         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
25059
25060 2007-03-03  Bruno Haible  <bruno@clisp.org>
25061
25062         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
25063         * modules/relocatable-lib: New file.
25064
25065 2007-03-03  Bruno Haible  <bruno@clisp.org>
25066
25067         * modules/relocatable-prog: Renamed from modules/relocatable.
25068         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
25069
25070 2007-03-03  Bruno Haible  <bruno@clisp.org>
25071
25072         * modules/relocatable-script (Files): Add doc/relocatable.texi,
25073         m4/relocatable-lib.m4.
25074         (Depends-on): Remove 'relocatable'.
25075         (configure.ac): Add gl_RELOCATABLE_NOP.
25076
25077 2007-03-03  Bruno Haible  <bruno@clisp.org>
25078
25079         * modules/relocatable-prog-wrapper: New file.
25080         * modules/relocatable (Depends-on): Add it. Remove all other
25081         dependencies except progname.
25082         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
25083
25084         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
25085         (gl_FUNC_STRERROR): Nop.
25086         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
25087
25088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
25089         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
25090
25091         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
25092         (gl_FUNC_READLINK): Update.
25093
25094         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
25095
25096 2007-03-03  Bruno Haible  <bruno@clisp.org>
25097
25098         * lib/xreadlink.c: Include <unistd.h> unconditionally.
25099         * modules/xreadlink (Depends-on): Add unistd.
25100         * modules/xreadlink-with-size (Depends-on): Likewise.
25101
25102 2007-03-03  Bruno Haible  <bruno@clisp.org>
25103
25104         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
25105         extracted from gt_FUNC_SETENV.
25106         (gt_FUNC_SETENV): Remove macro.
25107         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
25108         remove gt_FUNC_SETENV.
25109
25110 2007-03-03  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
25113         ENABLE_RELOCATABLE here.
25114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
25115
25116 2007-03-03  Bruno Haible  <bruno@clisp.org>
25117
25118         * modules/rbtreehash-list-tests (Depends-on): Add progname.
25119         * tests/test-rbtreehash_list.c: Include progname.h.
25120         (main): Call set_program_name.
25121
25122         * modules/rbtree-oset-tests (Depends-on): Add progname.
25123         * tests/test-rbtree_oset.c: Include progname.h.
25124         (main): Call set_program_name.
25125
25126         * modules/rbtree-list-tests (Depends-on): Add progname.
25127         * tests/test-rbtree_list.c: Include progname.h.
25128         (main): Call set_program_name.
25129
25130         * modules/linked-list-tests (Depends-on): Add progname.
25131         * tests/test-linked_list.c: Include progname.h.
25132         (main): Call set_program_name.
25133
25134 2007-03-03  Bruno Haible  <bruno@clisp.org>
25135
25136         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
25137         All uses of __restrict changed to _Restrict_.
25138         * lib/glob_.h (__restrict): Remove macro.
25139
25140 2007-03-02  Bruno Haible  <bruno@clisp.org>
25141
25142         * modules/gettext (configure.ac): Require gettext infrastructure
25143         from version 0.16.1.
25144
25145 2007-03-02  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/linkedhash-list-tests (Depends-on): Add progname.
25148         * tests/test-linkedhash_list.c: Include progname.h.
25149         (main): Call set_program_name.
25150
25151         * modules/carray-list-tests (Depends-on): Add progname.
25152         * tests/test-carray_list.c: Include progname.h.
25153         (main): Call set_program_name.
25154
25155         * modules/avltreehash-list-tests (Depends-on): Add progname.
25156         * tests/test-avltreehash_list.c: Include progname.h.
25157         (main): Call set_program_name.
25158
25159         * modules/avltree-oset-tests (Depends-on): Add progname.
25160         * tests/test-avltree_oset.c: Include progname.h.
25161         (main): Call set_program_name.
25162
25163         * modules/avltree-list-tests (Depends-on): Add progname.
25164         * tests/test-avltree_list.c: Include progname.h.
25165         (main): Call set_program_name.
25166
25167         * modules/array-oset-tests (Depends-on): Add progname.
25168         * tests/test-array_oset.c: Include progname.h.
25169         (main): Call set_program_name.
25170
25171         * modules/array-list-tests (Depends-on): Add progname.
25172         * tests/test-array_list.c: Include progname.h.
25173         (main): Call set_program_name.
25174
25175         * modules/argp-tests (Depends-on): Add progname.
25176         * tests/test-argp.c: Include argp.h first. Include progname.h.
25177         (main): Call set_program_name.
25178
25179 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         * doc/gnulib-tool.texi (Initial import): Reword description of
25182         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
25183         limited effect even if defined after the first system include.
25184
25185 2007-03-01  Bruno Haible  <bruno@clisp.org>
25186
25187         * build-aux/config.libpath: Update to libtool-1.5.22.
25188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25189
25190 2007-03-01  Bruno Haible  <bruno@clisp.org>
25191
25192         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
25193         foo_CFLAGS.
25194         Reported by Ralf Wildenhues.
25195
25196 2007-03-01  Bruno Haible  <bruno@clisp.org>
25197
25198         * build-aux/install-reloc: Remove object files left over by some
25199         compilers.
25200         Reported by Ralf Wildenhues.
25201
25202 2007-03-01  Bruno Haible  <bruno@clisp.org>
25203
25204         * build-aux/install-reloc: Break long lines.
25205
25206 2007-03-01  Bruno Haible  <bruno@clisp.org>
25207
25208         * doc/relocatable.texi: Document that it may not work on OpenBSD.
25209         Reported by Ralf Wildenhues.
25210
25211 2007-03-01  Bruno Haible  <bruno@clisp.org>
25212
25213         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
25214         include ordering constraints.
25215
25216 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25217
25218         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
25219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
25220         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
25221         as another example.
25222         * lib/time_.h: Fix misspelling.
25223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25224         Require gl_HEADER_TIME_H_DEFAULTS.
25225         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
25226         * m4/time_r.m4 (gl_TIME_R): Likewise.
25227         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
25228
25229 2007-03-01  Bruno Haible  <bruno@clisp.org>
25230
25231         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
25232         * m4/utimens.m4 (gl_UTIMENS): Likewise.
25233
25234 2007-03-01  Jim Meyering  <jim@meyering.net>
25235
25236         * modules/xreadlink (Maintainer): Add my name.
25237         * modules/xreadlink-with-size (Depends-on): Alphabetize.
25238
25239 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
25240             Bruno Haible  <bruno@clisp.org>
25241
25242         * build-aux/install-reloc: Compile also c-ctype.c.
25243         * build-aux/relocatable.sh.in: New file.
25244         * doc/relocatable.texi: New file.
25245         * doc/relocatable-maint.texi: New file.
25246         * doc/gnulib.texi: Include relocatable-maint.texi.
25247         * lib/progreloc.c: Include unistd.h unconditionally.
25248         * lib/relocwrapper.c: Include unistd.h unconditionally.
25249         Include c-ctype.h.
25250         (add_dotbin): Use c_tolower.
25251         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
25252         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
25253         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
25254         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
25255         to m4/relocatable-lib.m4.
25256         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
25257         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
25258         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
25259         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
25260         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
25261         * modules/relocatable: New file.
25262         * modules/relocatable-lib: New file.
25263         * modules/relocatable-script: New file.
25264
25265 2007-02-28  Bruno Haible  <bruno@clisp.org>
25266
25267         Import --enable-relocatable infrastructure.
25268         * build-aux/config.libpath: New file, from GNU gettext.
25269         * build-aux/install-reloc: New file, from GNU gettext.
25270         * build-aux/reloc-ldflags: New file, from GNU gettext.
25271         * lib/relocatable.h: New file, from GNU gettext.
25272         * lib/relocatable.c: New file, from GNU gettext.
25273         * lib/relocwrapper.c: New file, from GNU gettext.
25274         * m4/relocatable.m4: New file, from GNU gettext.
25275
25276 2007-02-28  Bruno Haible  <bruno@clisp.org>
25277
25278         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
25279
25280         * modules/xreadlink: New file, from GNU gettext with modifications.
25281         * lib/xreadlink.c: New file, from GNU gettext.
25282         * lib/xreadlink.h: Add comments.
25283         (xreadlink): New declaration.
25284
25285         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
25286         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
25287         lib/xreadlink-with-size.c.
25288         (configure.ac): Remove gl_XREADLINK invocation.
25289         (Makefile.am): Augment lib_SOURCES.
25290         * m4/xreadlink.m4: Remove file.
25291         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
25292         (xreadlink_with_size): Renamed from xreadink.
25293         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
25294         * modules/canonicalize (Depends-on): Replace xreadlink with
25295         xreadlink-with-size.
25296         * lib/canonicalize.c (canonicalize_filename_mode): Update.
25297
25298 2007-02-25  Jim Meyering  <jim@meyering.net>
25299
25300         * build-aux/announce-gen: When complaining about excess arguments,
25301         list them.
25302
25303 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25304
25305         * README: Document signed integer overflow situation more
25306         accurately.
25307
25308 2007-02-25  Bruno Haible  <bruno@clisp.org>
25309
25310         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
25311         'a' or 'A' conversion.
25312
25313 2007-02-25  Bruno Haible  <bruno@clisp.org>
25314
25315         * modules/filename: Renamed from modules/pathname.
25316         (Files): Replace lib/pathname.h with lib/filename.h. Replace
25317         lib/concatpath.c with lib/concat-filename.c.
25318         (Makefile.am): Update.
25319         (Include): Replace pathname.h with filename.h.
25320         * lib/filename.h: Renamed from lib/pathname.h.
25321         (concatenated_filename): Renamed from concatenated_pathname.
25322         * lib/concat-filename.c: Renamed from lib/concatpath.c.
25323         (concatenated_filename): Renamed from concatenated_pathname.
25324         * lib/findprog.c: Include filename.h instead of pathname.h.
25325         (find_in_path): Update.
25326         * lib/javacomp.c: Include filename.h instead of pathname.h.
25327         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25328         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25329         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25330         is_oldgcj_14_13_usable, is_javac_usable): Update.
25331         * lib/javaexec.c: Include filename.h instead of pathname.h.
25332         (execute_java_class): Update.
25333         * modules/findprog: Update.
25334         * modules/javacomp: Update.
25335         * modules/javaexec: Update.
25336         * MODULES.html.sh (File system functions): Add 'filename', remove
25337         'pathname'.
25338
25339 2007-02-25  Bruno Haible  <bruno@clisp.org>
25340
25341         * modules/printf-frexpl-tests: New file.
25342         * tests/test-printf-frexpl.c: New file.
25343
25344         * modules/printf-frexpl: New file.
25345         * lib/printf-frexpl.h: New file.
25346         * lib/printf-frexpl.c: New file.
25347         * m4/printf-frexpl.m4: New file.
25348
25349 2007-02-25  Bruno Haible  <bruno@clisp.org>
25350
25351         * modules/printf-frexp-tests: New file.
25352         * tests/test-printf-frexp.c: New file.
25353
25354         * modules/printf-frexp: New file.
25355         * lib/printf-frexp.h: New file.
25356         * lib/printf-frexp.c: New file.
25357         * m4/printf-frexp.m4: New file.
25358
25359 2007-02-25  Bruno Haible  <bruno@clisp.org>
25360
25361         Assume automake >= 1.10 for the tests.
25362         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
25363         * modules/arctwo-tests: Likewise.
25364         * modules/argp-tests: Likewise.
25365         * modules/avltree-list-tests: Likewise.
25366         * modules/avltree-oset-tests: Likewise.
25367         * modules/avltreehash-list-tests: Likewise.
25368         * modules/carray-list-tests: Likewise.
25369         * modules/crc-tests: Likewise.
25370         * modules/des-tests: Likewise.
25371         * modules/gc-arcfour-tests: Likewise.
25372         * modules/gc-arctwo-tests: Likewise.
25373         * modules/gc-des-tests: Likewise.
25374         * modules/gc-hmac-md5-tests: Likewise.
25375         * modules/gc-hmac-sha1-tests: Likewise.
25376         * modules/gc-md2-tests: Likewise.
25377         * modules/gc-md4-tests: Likewise.
25378         * modules/gc-md5-tests: Likewise.
25379         * modules/gc-pbkdf2-sha1-tests: Likewise.
25380         * modules/gc-rijndael-tests: Likewise.
25381         * modules/gc-sha1-tests: Likewise.
25382         * modules/gc-tests: Likewise.
25383         * modules/getaddrinfo-tests: Likewise.
25384         * modules/hmac-md5-tests: Likewise.
25385         * modules/hmac-sha1-tests: Likewise.
25386         * modules/linked-list-tests: Likewise.
25387         * modules/linkedhash-list-tests: Likewise.
25388         * modules/lock-tests: Likewise.
25389         * modules/md2-tests: Likewise.
25390         * modules/md4-tests: Likewise.
25391         * modules/md5-tests: Likewise.
25392         * modules/rbtree-list-tests: Likewise.
25393         * modules/rbtree-oset-tests: Likewise.
25394         * modules/rbtreehash-list-tests: Likewise.
25395         * modules/read-file-tests: Likewise.
25396         * modules/rijndael-tests: Likewise.
25397         * modules/stdint-tests: Likewise.
25398         * modules/tls-tests: Likewise.
25399
25400 2007-02-24  Bruno Haible  <bruno@clisp.org>
25401
25402         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
25403         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
25404         function; instead check whether isnan with a double argument links.
25405         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
25406         function; instead check whether isnan with a 'long double' argument
25407         links.
25408         Reported by Eric Blake <ebb9@byu.net>.
25409
25410 2007-02-24  Bruno Haible  <bruno@clisp.org>
25411
25412         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
25413         defined.
25414         * lib/isnanl.c: Remove all code. Just include isnan.c.
25415         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
25416
25417 2007-02-25  Jim Meyering  <jim@meyering.net>
25418
25419         Avoid conflicting types for 'unsetenv' on FreeBSD.
25420         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
25421         conflicting with FreeBSD's (5.0 and 6.1) function declaration
25422         in stdlib.h.
25423
25424 2007-02-24  Bruno Haible  <bruno@clisp.org>
25425
25426         * modules/isnanl-nolibm-tests: New file.
25427         * tests/test-isnanl.c: New file.
25428
25429         * modules/isnanl-nolibm: New file.
25430         * lib/isnanl.h: New file.
25431         * lib/isnanl.c: New file.
25432         * m4/isnanl.m4: New file.
25433
25434 2007-02-24  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/isnan-nolibm-tests: New file.
25437         * tests/test-isnan.c: New file.
25438
25439         * modules/isnan-nolibm: New file.
25440         * lib/isnan.h: New file.
25441         * lib/isnan.c: New file.
25442         * m4/isnan.m4: New file.
25443
25444 2007-02-24  Bruno Haible  <bruno@clisp.org>
25445
25446         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
25447         assume that an exponent fits in 20 bits.
25448
25449 2007-02-24  Jim Meyering  <jim@meyering.net>
25450
25451         * m4/regex.m4: Update the description of the configure-time option,
25452         --without-included-regex, to state accurately what the defaults are,
25453         and perhaps to give people an idea why using this option is risky.
25454
25455 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25456
25457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
25458         loops on small arguments.  This attempts to avoid the problem
25459         Bruno Haible reported for AIX 4.3.2 in
25460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
25461
25462 2007-02-23  Bruno Haible  <bruno@clisp.org>
25463
25464         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
25465         Needed for help2man.
25466
25467 2007-02-23  Karl Berry  <karl@gnu.org>
25468
25469         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
25470         exists, foo.h should be cvs-ignored, not committed.
25471
25472 2007-02-23  Eric Blake  <ebb9@byu.net>
25473
25474         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
25475         * lib/stat-time.h (includes): Likewise.
25476         * lib/utimecmp.c (includes): Likewise.
25477         * lib/utimens.h (includes): Likewise.
25478         * lib/getdate.y (includes): Also include "timespec.h" for use
25479         internal to the module.
25480         * modules/utimens (Depends-on): Revert yesterday's patch.
25481         * modules/nanosleep (Depends-on): Add missing dependency.
25482
25483 2007-02-22  Bruno Haible  <bruno@clisp.org>
25484
25485         * lib/glob.c: Don't include getlogin_r.h.
25486
25487 2007-02-22  Jim Meyering  <jim@meyering.net>
25488
25489         * modules/utimens (Depends-on): Add timespec, required for
25490         utimens.h's inclusion of timespec.h.
25491
25492 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25493
25494         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
25495         long unreadable paths in GNU/Linux.  Problem reported by Andreas
25496         Schwab in
25497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
25498         I'll try to think of a better way to fix the Solaris problem.
25499
25500         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
25501         like glibc; on Solaris 10, it fails with errno == EINVAL.
25502         POSIX says the behavior is unspecified if the first argument is NULL,
25503         so play it safe and never pass NULL to the system getcwd.
25504
25505 2007-02-21  Jim Meyering  <jim@meyering.net>
25506
25507         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
25508         of gettimeofday.  It would conflict with the one now always
25509         provided via sys_time_.h.  Reported by Matthew Woehlke, as
25510         an IRIX 6.5 build failure.
25511
25512 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25513
25514         Minor fixups to port to Solaris 10 with Sun C 5.8.
25515         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
25516         * modules/getcwd (Depends-on): Add dirfd.
25517         * lib/putenv.c (putenv): #undef it.
25518         (rpl_putenv): New decl.
25519         (malloc, free): Include <stdlib.h> rather than prototyping separately.
25520
25521 2007-02-20  Bruno Haible  <bruno@clisp.org>
25522
25523         * modules/stdio-tests: New file.
25524         * tests/test-stdio.c: New file.
25525
25526         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
25527         (Depends-on): Add stdio.
25528         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25529         (Include): Use <stdio.h> instead of vsnprintf.h.
25530         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25531         HAVE_DECL_VSNPRINTF.
25532         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
25533
25534         * modules/snprintf (Files): Remove lib/snprintf.h.
25535         (Depends-on): Add stdio.
25536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25537         (Include): Use <stdio.h> instead of snprintf.h.
25538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25539         HAVE_DECL_SNPRINTF.
25540         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
25541         * lib/getaddrinfo.c: Likewise.
25542
25543         * modules/stdio: New file.
25544         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
25545         * lib/snprintf.h: Remove file.
25546         * lib/vsnprintf.h: Remove file.
25547         * lib/.cppi-disable: Remove snprintf.h.
25548         * m4/stdio_h.m4: New file.
25549         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
25550
25551 2007-02-20  Jim Meyering  <jim@meyering.net>
25552
25553         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
25554         used by e.g., mingw.  From Bruno Haible.
25555
25556 2007-02-19  Bruno Haible  <bruno@clisp.org>
25557
25558         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
25559         warnings.
25560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25561
25562 2007-02-19  Bruno Haible  <bruno@clisp.org>
25563
25564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
25565         from mingw users.
25566
25567 2007-02-19  Bruno Haible  <bruno@clisp.org>
25568
25569         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
25570         warnings.
25571         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
25572
25573 2007-02-19  Jim Meyering  <jim@meyering.net>
25574
25575         Don't use FD after a successful "fdopendir (fd)".
25576         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
25577         Reset it by calling dirfd on the just-obtained DIR*.
25578
25579         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
25580         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
25581
25582 2007-02-18  Bruno Haible  <bruno@clisp.org>
25583
25584         * lib/readlink.c: Include <unistd.h>.
25585         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
25586         HAVE_READLINK.
25587         * modules/readlink (Depends-on): Add unistd.
25588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25589         (Include): Add <unistd.h>.
25590
25591         * lib/getlogin_r.h: Remove file.
25592         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
25593         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
25594         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
25595         HAVE_DECL_GETLOGIN_R.
25596         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
25597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25598         (Include): Use <unistd.h> instead of getlogin_r.h.
25599
25600         * lib/getcwd.h: Remove file.
25601         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
25602         * lib/xgetcwd.c: Likewise.
25603         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
25604         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
25605         * modules/getcwd (Files): Remove lib/getcwd.h.
25606         (Depends-on): Add unistd.
25607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25608         (Include): Use <unistd.h> instad of getcwd.h.
25609
25610         * lib/ftruncate.c: Include <unistd.h> first.
25611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
25612         Set HAVE_FTRUNCATE.
25613         * modules/ftruncate (Depends-on): Add unistd.
25614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25615
25616         * lib/fchdir.c: Include <unistd.h> first.
25617         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
25618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
25619         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
25620         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25621         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
25622
25623         * lib/dup2.c: Include <unistd.h> first.
25624         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
25625         HAVE_DUP2.
25626         * modules/dup2 (Depends-on): Add unistd.
25627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25628
25629         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
25630         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
25631         REPLACE_CHOWN. Don't define chown as a macro here.
25632         * modules/chown (Depends-on): Add unistd.
25633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25634
25635         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
25636         Add definition for GL_LINK_WARNING.
25637         (chown, dup2): New declarations.
25638         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
25639         link warning.
25640         (ftruncate): New declaration.
25641         (getcwd): New declaration, taken from old getcwd.h.
25642         (getlogin_r): New declaration, taken from old getlogin_r.h.
25643         (readlink): New declaration.
25644         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
25645         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
25646         (gl_PREREQ_UNISTD): Remove macro.
25647         (gl_UNISTD_MODULE_INDICATOR): New macro.
25648         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
25649         many new variables. Don't set UNISTD_H.
25650         * modules/unistd (Description): Change.
25651         (Depends-on): Add link-warning.
25652         (configure.ac): Update.
25653         (Makefile.am): Create unistd.h always. Substitute many new variables
25654         into it.
25655
25656 2007-02-18  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
25659         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
25660         HAVE_GETSUBOPT.
25661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
25662         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
25663         * lib/getsubopt.h: Remove file.
25664         * modules/getsubopt (Files): Remove lib/getsubopt.h.
25665         (Depends-on): Add stdlib.
25666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25667         (Includes): Use <stdlib.h> instead of getsubopt.h.
25668         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
25669         Set HAVE_GETSUBOPT.
25670         * lib/getsubopt.c: Don't include getsubopt.h.
25671
25672 2007-02-18  Bruno Haible  <bruno@clisp.org>
25673
25674         * modules/fchdir (Depends-on): Add dup2.
25675
25676 2007-02-18  Bruno Haible  <bruno@clisp.org>
25677
25678         * lib/stdlib_.h: Handle glibc's special invocation convention
25679         specially.
25680
25681 2007-02-18  Bruno Haible  <bruno@clisp.org>
25682
25683         * modules/stdlib-tests: New file.
25684         * tests/test-stdlib.c: New file.
25685
25686         * modules/mkstemp (Files): Remove lib/mkstemp.h.
25687         (Depends-on): Add stdlib.
25688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25689         (Includes): Use <stdlib.h> instead of mkstemp.h.
25690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25691         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
25692         * lib/mkstemp.c: Don't include mkstemp.h.
25693         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
25694         * lib/stdlib--.h: Don't include mkstemp.h.
25695
25696         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
25697         (Depends-on): Add stdlib.
25698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25699         (Includes): Use <stdlib.h> instead of mkdtemp.h.
25700         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25701         HAVE_MKDTEMP.
25702         * lib/mkdtemp.c: Don't include mkdtemp.h.
25703         * lib/clean-temp.c: Don't include mkdtemp.h.
25704
25705         * modules/exit (Files): Remove lib/exit.h.
25706         (Depends-on): Add stdlib.
25707         (Makefile.am): Remove lib_SOURCES.
25708         (Include): Use <stdlib.h> instead of exit.h.
25709         * lib/argmatch.c: Don't include exit.h.
25710         * lib/execute.c: Likewise.
25711         * lib/pagealign_alloc.c: Likewise.
25712         * lib/pipe.c: Likewise.
25713         * lib/wait-process.c: Likewise.
25714         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
25715         * lib/exitfail.c: Likewise.
25716         * lib/savewd.c: Likewise.
25717         * lib/xsetenv.c: Likewise.
25718
25719         * modules/stdlib: New file.
25720         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
25721         and extra comments about mkstemp().
25722         * lib/exit.h: Remove file.
25723         * lib/mkdtemp.h: Remove file.
25724         * lib/mkstemp.h: Remove file.
25725         * m4/stdlib_h.m4: New file.
25726         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
25727
25728 2007-02-18  Bruno Haible  <bruno@clisp.org>
25729
25730         * modules/math-tests: New file.
25731         * tests/test-math.c: New file.
25732
25733         * modules/math: New file.
25734         * modules/mathl (Files): Remove lib/mathl.h.
25735         (Depends-on): Add math.
25736         (Makefile.am): Don't mention mathl.h.
25737         (Include): Use <math.h> instead of mathl.h.
25738         * lib/math_.h: New file.
25739         * lib/mathl.h: Remove file.
25740         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
25741         mathl.h.
25742         * lib/asinl.c: Likewise.
25743         * lib/atanl.c: Likewise.
25744         * lib/ceill.c: Likewise.
25745         * lib/cosl.c: Likewise.
25746         * lib/expl.c: Likewise.
25747         * lib/floorl.c: Likewise.
25748         * lib/frexpl.c: Likewise.
25749         * lib/ldexpl.c: Likewise.
25750         * lib/logl.c: Likewise.
25751         * lib/sincosl.c: Likewise.
25752         * lib/sinl.c: Likewise.
25753         * lib/sqrtl.c: Likewise.
25754         * lib/tanl.c: Likewise.
25755         * lib/trigl.c: Likewise.
25756         * m4/math_h.m4: New file.
25757         * MODULES.html.sh (Mathematics): Add math.
25758
25759 2007-02-17  Bruno Haible  <bruno@clisp.org>
25760
25761         * modules/wctype-tests: New file.
25762         * tests/test-wctype.c: New file.
25763
25764         * modules/wchar-tests: New file.
25765         * tests/test-wchar.c: New file.
25766
25767         * modules/unistd-tests: New file.
25768         * tests/test-unistd.c: New file.
25769
25770         * modules/time-tests: New file.
25771         * tests/test-time.c: New file.
25772
25773         * modules/sysexits-tests: New file.
25774         * tests/test-sysexits.c: New file.
25775
25776         * modules/sys_time-tests: New file.
25777         * tests/test-sys_time.c: New file.
25778
25779         * modules/sys_stat-tests: New file.
25780         * tests/test-sys_stat.c: New file.
25781
25782         * modules/sys_socket-tests: New file.
25783         * tests/test-sys_socket.c: New file.
25784
25785         * modules/sys_select-tests: New file.
25786         * tests/test-sys_select.c: New file.
25787
25788         * modules/string-tests: New file.
25789         * tests/test-string.c: New file.
25790
25791         * modules/stdbool-tests: New file.
25792         * tests/test-stdbool.c: New file.
25793
25794         * modules/netinet_in-tests: New file.
25795         * tests/test-netinet_in.c: New file.
25796
25797         * modules/inttypes-tests: New file.
25798         * tests/test-inttypes.c: New file.
25799
25800         * modules/fcntl-tests: New file.
25801         * tests/test-fcntl.c: New file.
25802
25803         * modules/byteswap-tests: New file.
25804         * tests/test-byteswap.c: New file.
25805
25806         * modules/arpa_inet-tests: New file.
25807         * tests/test-arpa_inet.c: New file.
25808
25809 2007-02-17  Bruno Haible  <bruno@clisp.org>
25810
25811         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
25812         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
25813         if the corresponding module is not enabled. Emit link warnings if
25814         the function is used nevertheless.
25815         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
25816         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
25817         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
25818         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
25819         * modules/inttypes (Depends-on): Add link-warning.
25820         (Makefile.am): Copy the contents of build-aux/link-warning.h into
25821         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
25822         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
25823         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
25824         * modules/imaxdiv (configure.ac): Likewise.
25825         * modules/strtoimax (configure.ac): Likewise.
25826         * modules/strtoumax (configure.ac): Likewise.
25827
25828 2007-02-17  Bruno Haible  <bruno@clisp.org>
25829
25830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
25831         gl_STRING_MODULE_INDICATOR_DEFAULTS.
25832         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
25833         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
25834
25835 2007-02-17  Bruno Haible  <bruno@clisp.org>
25836
25837         * modules/link-warning: New file.
25838         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
25839         * lib/string_.h (GL_LINK_WARNING): Remove definition.
25840         * modules/string (Depends-on): Add link-warning.
25841         (Makefile.am): Copy the contents of build-aux/link-warning.h into
25842         string.h.
25843         * MODULES.html.sh (Support for building libraries and executables): Add
25844         link-warning.
25845
25846 2007-02-17  Bruno Haible  <bruno@clisp.org>
25847
25848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
25849         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
25850         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
25851         long lines.
25852
25853 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
25854             Bruno Haible  <bruno@clisp.org>
25855
25856         * modules/tmpfile: New file.
25857         * lib/tmpfile.c: New file.
25858         * m4/tmpfile.m4: New file.
25859         * MODULES.html.sh (func_all_modules): New section "Input/output".
25860
25861 2007-02-15  Bruno Haible  <bruno@clisp.org>
25862
25863         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
25864         (supports_delete_on_close): New function.
25865         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
25866
25867 2007-02-14  Bruno Haible  <bruno@clisp.org>
25868
25869         * modules/mbspcasecmp-tests: New file.
25870         * tests/test-mbspcasecmp.sh: New file.
25871         * tests/test-mbspcasecmp.c: New file.
25872
25873         New module mbspcasecmp.
25874         * modules/mbspcasecmp: New file.
25875         * lib/mbspcasecmp.c: New file.
25876         * lib/string_.h (strncasecmp): Change warning message.
25877         (mbspcasecmp): New declaration.
25878         * m4/mbspcasecmp.m4: New file.
25879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25880         GNULIB_MBSPCASECMP.
25881         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
25882         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
25883
25884 2007-02-14  Bruno Haible  <bruno@clisp.org>
25885
25886         * modules/mbsncasecmp-tests: New file.
25887         * tests/test-mbsncasecmp.sh: New file.
25888         * tests/test-mbsncasecmp.c: New file.
25889
25890         New module mbsncasecmp.
25891         * modules/mbsncasecmp: New file.
25892         * lib/mbsncasecmp.c: New file.
25893         * lib/string_.h (mbsncasecmp): New declaration.
25894         * m4/mbsncasecmp.m4: New file.
25895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25896         GNULIB_MBSNCASECMP.
25897         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
25898         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
25899
25900 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25901
25902         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
25903         Verify that it doesn't overlap with our flags.
25904         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
25905         do not have the desired effect in multibyte locales; instead, use
25906         mbscasecmp.
25907         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
25908         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
25909         we don't require GNU fnmatch ourselves (if our users require it, they
25910         should do so explicitly).
25911
25912         Fix regex code so it doesn't rely on strcasecmp.
25913         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
25914         Otherwise, include gnulib's langinfo.h.
25915         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
25916         undesirable behavior in non-C locales.  Instead, rely on localecharset.
25917         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
25918         * modules/regex (FILES): Remove m4/codeset.m4.
25919         (Depends-on): Add localcharset.  Remove strcase.
25920
25921 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25922
25923         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
25924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25925
25926 2007-02-13  Bruno Haible  <bruno@clisp.org>
25927
25928         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
25929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25930
25931 2007-02-12  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
25934         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
25935         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
25936         time warning rather than a link error.
25937
25938 2007-02-12  Bruno Haible  <bruno@clisp.org>
25939
25940         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
25941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25943
25944 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25945
25946         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
25947         args, not 2.
25948
25949 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25950
25951         New module 'time', so that apps can include <time.h> as per
25952         POSIX and GNU instead of separate include files like time_r.h
25953         and timegm.h.  This implementation tries out a simpler approach
25954         for replacing decls in standard include files (as compared to
25955         the string module), somewhat as an experiment.
25956
25957         * config/srclist.txt: Comment out mktime.c for now.
25958         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
25959         since it doesn't apply any more.  Use generic wording instead.
25960         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
25961         'time'.
25962         * lib/time_.h, m4/time_h.m4, modules/time: New files.
25963         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
25964         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
25965         Don't include <sys/types.h>; no longer needed since we assume C89.
25966         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
25967         * lib/strftime.c: Likewise.
25968         * lib/time_r.c: Likewise.
25969         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
25970         * lib/nanosleep.c: Include <time.h> first, to check interface.
25971         * lib/strptime.c: Likewise.
25972         * lib/time_r.c: Likewise.
25973         * lib/timegm.c: Likewise.
25974         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
25975         needed.
25976         * lib/timegm.c: Don't include timegm.h; no longer needed.
25977         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
25978         time.h now handles any problems in that area.
25979         (struct timespec, nanosleep): Remove; time.h now arranges for these.
25980         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
25981         that time.h defines struct timespec.
25982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
25983         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
25984         handles that.
25985         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
25986         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
25987         needed.  Set REPLACE_LOCALTIME.
25988         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
25989         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
25990         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
25991         nanosleep; time_h.m4 now does that.  Don't require
25992         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
25993         module handles this now.
25994         * modules/getdate (Depends-on): Remove timespec.  Add time.
25995         * modules/nanosleep (Depends-on): Likewise.
25996         * modules/stat-time (Depends-on): Likewise.
25997         * modules/nanosleep (Include): Include time.h, not timespec.h.
25998         * modules/strptime (Files): Remove lib/strptime.h.
25999         (Depends-on): Add extensions, time.
26000         (Include): Include time.h, not strptime.h.
26001         * modules/time_r (Files): Remove lib/time_r.h.
26002         (Depends-on): Add time.
26003         (Include): Include time.h, not time_r.h.
26004         * modules/timegm: Likewise.
26005         * modules/timespec (Description): Now does timespec-related decls
26006         of our own, instead of struct timespec itself.
26007         (Depends-on): Add time; remove extensions.
26008         (Maintainer): Add self.
26009         * modules/utimecmp (Depends-on): Add time; remove timespec.
26010         * modules/utimens (Depends-on): Likewise.
26011         * modules/xnanosleep (Depends-on): Likewise.
26012
26013 2007-02-11  Bruno Haible  <bruno@clisp.org>
26014
26015         * lib/c-strstr.c: Include allocsa.h.
26016         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26017         * lib/c-strcasestr.c: Include allocsa.h.
26018         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26019         * lib/strcasestr.c: Include allocsa.h.
26020         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26021         * lib/mbsstr.c: Include allocsa.h.
26022         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26023         allocsa/freesa instead of malloc/free.
26024         * lib/mbscasestr.c: Include allocsa.h.
26025         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26026         allocsa/freesa instead of malloc/free.
26027         * modules/c-strstr (Depends-on): Add allocsa.
26028         * modules/c-strcasestr (Depends-on): Likewise.
26029         * modules/strcasestr (Depends-on): Likewise.
26030         * modules/mbsstr (Depends-on): Likewise.
26031         * modules/mbscasestr (Depends-on): Likewise.
26032
26033 2007-02-11  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
26036
26037         * modules/mbsspn-tests: New file.
26038         * tests/test-mbsspn.sh: New file.
26039         * tests/test-mbsspn.c: New file.
26040
26041 2007-02-11  Bruno Haible  <bruno@clisp.org>
26042
26043         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
26044
26045         * modules/mbspbrk-tests: New file.
26046         * tests/test-mbspbrk.sh: New file.
26047         * tests/test-mbspbrk.c: New file.
26048
26049 2007-02-11  Bruno Haible  <bruno@clisp.org>
26050
26051         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
26052         unneeded cast.
26053
26054         * modules/mbscspn-tests: New file.
26055         * tests/test-mbscspn.sh: New file.
26056         * tests/test-mbscspn.c: New file.
26057
26058 2007-02-11  Bruno Haible  <bruno@clisp.org>
26059
26060         * modules/mbscasecmp-tests: New file.
26061         * tests/test-mbscasecmp.sh: New file.
26062         * tests/test-mbscasecmp.c: New file.
26063
26064 2007-02-11  Bruno Haible  <bruno@clisp.org>
26065
26066         Ensure O(n) worst-case complexity of mbscasestr.
26067         * lib/mbscasestr.c: Include stdbool.h.
26068         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26069         functions.
26070         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
26071         the bookkeeping indicates that it's worth it.
26072         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
26073
26074         * modules/mbscasestr-tests: New file.
26075         * tests/test-mbscasestr1.c: New file.
26076         * tests/test-mbscasestr2.sh: New file.
26077         * tests/test-mbscasestr2.c: New file.
26078         * tests/test-mbscasestr3.sh: New file.
26079         * tests/test-mbscasestr3.c: New file.
26080         * tests/test-mbscasestr4.sh: New file.
26081         * tests/test-mbscasestr4.c: New file.
26082         * m4/locale-tr.m4: New file.
26083
26084 2007-02-11  Bruno Haible  <bruno@clisp.org>
26085
26086         Ensure O(n) worst-case complexity of mbsstr.
26087         * lib/mbsstr.c: Include stdbool.h.
26088         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26089         functions.
26090         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
26091         bookkeeping indicates that it's worth it.
26092         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
26093
26094         * modules/mbsstr-tests: New file.
26095         * tests/test-mbsstr1.c: New file.
26096         * tests/test-mbsstr2.sh: New file.
26097         * tests/test-mbsstr2.c: New file.
26098         * tests/test-mbsstr3.sh: New file.
26099         * tests/test-mbsstr3.c: New file.
26100         * m4/locale-fr.m4: New file.
26101
26102 2007-02-11  Bruno Haible  <bruno@clisp.org>
26103
26104         * lib/mbsrchr.c (mbsrchr): Fix bug.
26105
26106         * modules/mbsrchr-tests: New file.
26107         * tests/test-mbsrchr.sh: New file.
26108         * tests/test-mbsrchr.c: New file.
26109
26110 2007-02-11  Bruno Haible  <bruno@clisp.org>
26111
26112         * lib/mbschr.c (mbschr): Fix bug.
26113
26114         * modules/mbschr-tests: New file.
26115         * tests/test-mbschr.sh: New file.
26116         * tests/test-mbschr.c: New file.
26117         * m4/locale-zh.m4: New file.
26118
26119 2007-02-11  Bruno Haible  <bruno@clisp.org>
26120
26121         Support for copying multibyte string iterators.
26122         * lib/mbiter.h: Include <string.h>.
26123         (mbiter_multi_copy): New function.
26124         (mbi_copy): New macro.
26125         * lib/mbuiter.h: Include <string.h>.
26126         (mbuiter_multi_copy): New function.
26127         (mbui_copy): New macro.
26128
26129 2007-02-11  Bruno Haible  <bruno@clisp.org>
26130
26131         New module mbslen.
26132         * modules/mbslen: New file.
26133         * lib/mbslen.c: New file.
26134         * lib/string_.h (mbslen): New declaration.
26135         * m4/mbslen.m4: New file.
26136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26137         GNULIB_MBSLEN.
26138         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
26139         * MODULES.html.sh (Internationalization functions): Add mbslen.
26140
26141 2007-02-11  Bruno Haible  <bruno@clisp.org>
26142
26143         Ensure O(n) worst-case complexity of strcasestr substitute.
26144         * lib/strcasestr.c: Include stdbool.h.
26145         (knuth_morris_pratt): New function.
26146         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26147         bookkeeping indicates that it's worth it.
26148         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
26149
26150         * modules/strcasestr-tests: New file.
26151         * tests/test-strcasestr.c: New file.
26152
26153 2007-02-11  Bruno Haible  <bruno@clisp.org>
26154
26155         Ensure O(n) worst-case complexity of c_strcasestr.
26156         * lib/c-strcasestr.c: Include stdbool.h, string.h.
26157         (knuth_morris_pratt): New function.
26158         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
26159         the bookkeeping indicates that it's worth it.
26160         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
26161
26162         * modules/c-strcasestr-tests: New file.
26163         * tests/test-c-strcasestr.c: New file.
26164
26165 2007-02-11  Bruno Haible  <bruno@clisp.org>
26166
26167         Ensure O(n) worst-case complexity of c_strstr.
26168         * lib/c-strstr.c: Include stdbool.h, string.h.
26169         (knuth_morris_pratt): New function.
26170         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26171         bookkeeping indicates that it's worth it.
26172         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
26173
26174         * lib/c-strstr.c: Complete rewrite for maintainability.
26175
26176         * modules/c-strstr-tests: New file.
26177         * tests/test-c-strstr.c: New file.
26178
26179 2007-02-11  Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
26182         5.2.1 and earlier, whereby \055 was treated just like the range
26183         delimiter '-'.
26184         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26185
26186 2007-02-08  Bruno Haible  <bruno@clisp.org>
26187
26188         * modules/regex (Depends-on): Add stdbool.
26189         Reported by Dalibor Topic <robilad@kaffe.org>.
26190
26191 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26192
26193         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
26194         Prefer returning from main to exiting from it.
26195         Remove unnecessary parens after sizeof.
26196
26197 2007-02-05  Bruno Haible  <bruno@clisp.org>
26198
26199         New module mbssep.
26200         * modules/mbssep: New file.
26201         * lib/mbssep.c: New file.
26202         * lib/string_.h (strsep): Add a conditional link warning.
26203         (mbssep): New declaration.
26204         * m4/mbssep.m4: New file.
26205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26206         GNULIB_MBSSEP.
26207         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
26208         * MODULES.html.sh (Internationalization functions): Add mbssep.
26209
26210 2007-02-05  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
26213         Optimize search in case of 1 delimiter.
26214
26215 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26216
26217         * lib/acl.h: Include sys/types.h before sys/acl.h.
26218
26219 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26220
26221         Merge upstream fix for glibc bugzilla #3957:
26222
26223         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
26224
26225         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
26226         bit for RE_HAT_LISTS_NOT_NEWLINE.
26227         (build_charclass_op): Remove bogus comment.
26228
26229 2007-02-05  Simon Josefsson  <simon@josefsson.org>
26230
26231         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
26232
26233 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26234
26235         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
26236         * lib/memmem.c [!defined _LIBC]: Include config.h.
26237
26238 2007-02-04  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
26241         warning message.
26242
26243 2007-02-04  Bruno Haible  <bruno@clisp.org>
26244
26245         New module mbstok_r.
26246         * modules/mbstok_r: New file.
26247         * lib/mbstok_r.c: New file.
26248         * lib/string_.h (strtok_r): Change argument names to match the
26249         comments. Add a conditional link warning.
26250         (mbstok_r): New declaration.
26251         * m4/mbstok_r.m4: New file.
26252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26253         GNULIB_MBSTOK_R.
26254         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
26255         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
26256
26257 2007-02-04  Bruno Haible  <bruno@clisp.org>
26258
26259         New module mbsspn.
26260         * modules/mbsspn: New file.
26261         * lib/mbsspn.c: New file.
26262         * lib/string_.h (strspn): Add a conditional link warning.
26263         (mbsspn): New declaration.
26264         * m4/mbsspn.m4: New file.
26265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26266         GNULIB_MBSSPN.
26267         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
26268         * MODULES.html.sh (Internationalization functions): Add mbsspn.
26269
26270 2007-02-04  Bruno Haible  <bruno@clisp.org>
26271
26272         New module mbspbrk.
26273         * modules/mbspbrk: New file.
26274         * lib/mbspbrk.c: New file.
26275         * lib/string_.h (strpbrk): Add a conditional link warning.
26276         (mbspbrk): New declaration.
26277         * m4/mbspbrk.m4: New file.
26278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26279         GNULIB_MBSPBRK.
26280         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
26281         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
26282
26283 2007-02-04  Bruno Haible  <bruno@clisp.org>
26284
26285         New module mbscspn.
26286         * modules/mbscspn: New file.
26287         * lib/mbscspn.c: New file.
26288         * lib/string_.h (strcspn): Add a conditional link warning.
26289         (mbscspn): New declaration.
26290         * m4/mbscspn.m4: New file.
26291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26292         GNULIB_MBSCSPN.
26293         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
26294         * MODULES.html.sh (Internationalization functions): Add mbscspn.
26295
26296 2007-02-04  Bruno Haible  <bruno@clisp.org>
26297
26298         New module mbscasestr, reduced goal of strcasestr.
26299         * modules/mbscasestr: New file.
26300         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
26301         (mbscasestr): Renamed from strcasestr.
26302         * lib/strcasestr.c: Don't include mbuiter.h.
26303         (strcasestr): Remove support for multibyte locales.
26304         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
26305         Change the conditional link warning.
26306         (mbscasestr): New declaration.
26307         * m4/mbscasestr.m4: New file.
26308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
26309         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
26310         REPLACE_STRCASESTR.
26311         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
26312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26313         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
26315         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
26316         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26317         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
26318         (Depends-on): Remove mbuiter.
26319         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
26320
26321 2007-02-04  Bruno Haible  <bruno@clisp.org>
26322
26323         Simplify handling of strncasecmp.
26324         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
26325         the conditional link warning.
26326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26327         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
26328         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
26329         * modules/strcase (configure.ac): Don't invoke
26330         gl_STRING_MODULE_INDICATOR.
26331         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
26332
26333 2007-02-04  Bruno Haible  <bruno@clisp.org>
26334
26335         New module mbscasecmp, reduced goal of strcasecmp.
26336         * modules/mbscasecmp: New file.
26337         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
26338         (mbscasecmp): Renamed from strcasecmp.
26339         * lib/strcasecmp.c: Don't include mbuiter.h.
26340         (strcasecmp): Remove support for multibyte locales.
26341         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
26342         Change the conditional link warning.
26343         (mbscasecmp): New declaration.
26344         * m4/mbscasecmp.m4: New file.
26345         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
26346         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
26347         REPLACE_STRCASECMP.
26348         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
26349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26350         GNULIB_MBSCASECMP.
26351         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
26352         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
26353         * modules/strcase (Files): Remove m4/mbrtowc.m4.
26354         (Depends-on): Remove mbuiter.
26355         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
26356
26357 2007-02-04  Bruno Haible  <bruno@clisp.org>
26358
26359         New module mbsstr. Remove module strstr.
26360         * modules/mbsstr: New file.
26361         * modules/strstr: Remove file.
26362         * lib/mbsstr.c: Renamed from lib/strstr.c.
26363         (mbsstr): Renamed from strstr.
26364         * lib/string_.h (strstr): Remove declaration. Change the conditional
26365         link warning.
26366         (mbsstr): New declaration.
26367         * m4/mbsstr.m4: New file.
26368         * m4/strstr.m4: Remove file.
26369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26370         REPLACE_STRSTR.
26371         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
26372         Don't initialize GNULIB_STRSTR.
26373         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
26374         substitute GNULIB_STRSTR and REPLACE_STRSTR.
26375         * MODULES.html.sh (Internationalization functions): Add mbsstr.
26376         (Support for systems lacking ANSI C 89): Remove strstr.
26377
26378 2007-02-04  Bruno Haible  <bruno@clisp.org>
26379
26380         New module mbsrchr.
26381         * modules/mbsrchr: New file.
26382         * lib/mbsrchr.c: New file.
26383         * lib/string_.h (strrchr): Add a conditional link warning.
26384         (mbsrchr): New declaration.
26385         * m4/mbsrchr.m4: New file.
26386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26387         GNULIB_MBSRCHR.
26388         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
26389         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
26390
26391 2007-02-04  Bruno Haible  <bruno@clisp.org>
26392
26393         New module mbschr.
26394         * modules/mbschr: New file.
26395         * lib/mbschr.c: New file.
26396         * lib/string_.h (strchr): Add a conditional link warning.
26397         (mbschr): New declaration.
26398         * m4/mbschr.m4: New file.
26399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26400         GNULIB_MBSCHR.
26401         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
26402         * MODULES.html.sh (Internationalization functions): Add mbschr.
26403
26404 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26405
26406         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
26407
26408         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
26409
26410 2007-02-04  Bruno Haible  <bruno@clisp.org>
26411
26412         New module description section 'configure.ac-early'.
26413         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
26414         (func_get_autoconf_early_snippet): New function.
26415         (func_import, func_create_testdir): Use it. Remove special cases for
26416         modules 'extensions' and 'lock'.
26417         * modules/extensions (configure.ac-early): Require
26418         gl_USE_SYSTEM_EXTENSIONS.
26419         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
26420
26421 2007-02-04  Bruno Haible  <bruno@clisp.org>
26422
26423         Make use of gcj-4.3's -fsource and -ftarget option.
26424         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
26425         and if so try the options -fsource and -ftarget.
26426         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
26427         source_version, ftarget_option, target_version arguments.
26428         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
26429         (is_envjavac_oldgcj_14_14_usable): Renamed from
26430         is_envjavac_gcj_14_14_usable.
26431         (is_envjavac_oldgcj_14_13_usable): Renamed from
26432         is_envjavac_gcj_14_13_usable.
26433         (is_gcj_present): Update.
26434         (is_gcj_43, is_gcj43_usable): New functions.
26435         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
26436         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
26437         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
26438         try the options -fsource and -ftarget.
26439
26440 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26441
26442         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
26443         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
26444         larger value.
26445
26446 2007-02-03  Jim Meyering  <jim@meyering.net>
26447
26448         Give tools a better chance to allocate space for very large buffers.
26449         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
26450
26451         Make pwd and readlink work also when run with an unreadable parent dir
26452         on systems with openat support.
26453         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
26454         provided getcwd function, even when we have openat support.
26455         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
26456
26457 2007-02-02  Bruno Haible  <bruno@clisp.org>
26458
26459         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26460         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
26461         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
26462         portability problems if one of these functions is only used on specific
26463         platforms.
26464         Reported by Paul Eggert.
26465
26466 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
26467
26468         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
26469         is causing more trouble than it's curing.
26470         * lib/regex_internal.h (__mempcpy): Remove.
26471         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
26472         (and make the code a tad smaller to boot).
26473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
26474
26475 2007-02-02  Jim Meyering  <jim@meyering.net>
26476
26477         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
26478         section, not in the Makefile.am: one.
26479
26480 2007-02-02  Eric Blake  <ebb9@byu.net>
26481
26482         * lib/strchrnul.c: Always include config.h first.
26483
26484         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
26485         gnulib strstr is not necessary here.
26486
26487 2007-02-02  Simon Josefsson  <simon@josefsson.org>
26488
26489         * m4/socklen.m4: Fix typo.
26490
26491 2007-02-02  Eric Blake  <ebb9@byu.net>
26492
26493         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
26494         * modules/netinet_in (Makefile.am): Likewise.
26495
26496 2007-02-01  Bruno Haible  <bruno@clisp.org>
26497
26498         * lib/string_.h (GL_LINK_WARNING): New macro.
26499         (strcasecmp, strstr, strcasestr): If provided by the system,
26500         conditionally define as a macro that leads to a warning instead of to
26501         an error.
26502         (strncasecmp): Conditionally define as a macro that leads to a warning.
26503
26504 2007-02-01  Karl Berry  <karl@gnu.org>
26505
26506         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
26507
26508 2007-02-01  Bruno Haible  <bruno@clisp.org>
26509
26510         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
26511         renamings.
26512
26513 2007-02-01  Eric Blake  <ebb9@byu.net>
26514
26515         * modules/regex (Depends-on): Revert dependence on mempcpy.
26516         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
26517         module's definition of mempcpy.
26518         Reported by Paul Eggert.
26519
26520 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26521
26522         * lib/string_.h: If the gnulib module XYZ is not present, undefine
26523         the symbol XYZ before redefining it.  This fixes a problem with
26524         programs that don't use XYZ, when compiled on systems that define
26525         XYZ to something else.
26526
26527 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
26528
26529         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
26530         occurs when "mkdir -m foo" creates a setgid directory that is (1)
26531         writeable to group or other and (2) is intended to have a special
26532         mode bit that is set or cleared.  In such a case, the directory
26533         should be neither group- nor other-writeable until the special
26534         mode bits are right.
26535
26536 2007-01-31  Eric Blake  <ebb9@byu.net>
26537
26538         * modules/mountlist (Depends-on): Add strstr.
26539
26540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
26541         bug.
26542         * modules/string (Makefile.am): Remove redundant replacement.
26543         * modules/regex (Depends-on): Add mempcpy.
26544
26545 2007-01-31  Bruno Haible  <bruno@clisp.org>
26546
26547         New module description field 'Link'.
26548         * gnulib-tool (func_usage): Document --extract-link-directive.
26549         (sed_extract_prog): Recognize 'Link' directive.
26550         (func_get_link_directive): New function.
26551         (func_import): Show summary of link directives.
26552         Handle --extract-link-directive option.
26553         * modules/acl (Link): New section.
26554         * modules/clock-time (Link): New section.
26555         * modules/euidaccess (Link): New section.
26556         * modules/gettext (Link): New section.
26557         * modules/iconv (Link): New section.
26558         * modules/lock (Link): New section.
26559         * modules/nanosleep (Link): New section.
26560         * modules/readline (Link): New section.
26561
26562 2007-01-27  Bruno Haible  <bruno@clisp.org>
26563
26564         Enforce the use of gnulib modules for unportable <string.h> functions.
26565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
26566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
26567         (gl_HEADER_STRING_H_BODY): Require it.
26568         * lib/string_.h: If the gnulib module XYZ is not present, redefine
26569         the symbol XYZ to one that gives a link error.
26570         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
26571         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
26572         * modules/mempcpy (configure.ac): Likewise.
26573         * modules/memrchr (configure.ac): Likewise.
26574         * modules/stpcpy (configure.ac): Likewise.
26575         * modules/stpncpy (configure.ac): Likewise.
26576         * modules/strcase (configure.ac): Likewise.
26577         * modules/strcasestr (configure.ac): Likewise.
26578         * modules/strchrnul (configure.ac): Likewise.
26579         * modules/strdup (configure.ac): Likewise.
26580         * modules/strndup (configure.ac): Likewise.
26581         * modules/strnlen (configure.ac): Likewise.
26582         * modules/strpbrk (configure.ac): Likewise.
26583         * modules/strsep (configure.ac): Likewise.
26584         * modules/strstr (configure.ac): Likewise.
26585         * modules/strtok_r (configure.ac): Likewise.
26586
26587 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
26588
26589         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
26590
26591 2007-01-30  Jim Meyering  <jim@meyering.net>
26592
26593         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
26594
26595 2007-01-29  Bruno Haible  <bruno@clisp.org>
26596
26597         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
26598         * lib/execute.c: Likewise.
26599         * lib/pipe.c: Likewise.
26600         * lib/printf-args.h: Likewise.
26601         * lib/printf-args.c: Likewise.
26602         * lib/printf-parse.c: Likewise.
26603         * lib/vasnprintf.c: Likewise.
26604
26605 2007-01-29  Eric Blake  <ebb9@byu.net>
26606
26607         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
26608         declaration.
26609
26610 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26611
26612         * lib/strptime.h (strptime): Use 'restrict' for args where
26613         POSIX requires this.
26614         * lib/strptime.c (strptime): Likewise.
26615         Change license notice from LGPL to GPL, since gnulib-tool will
26616         change this as needed.
26617         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
26618         defined.
26619         Include "strptime.h" first, to check interface.
26620         Do not #undef _LIBC and _NL_CURRENT.
26621         Do not include <stdlib.h>; no longer needed.
26622         Include "time_r.h" and declare ptime_locale_status
26623         only if _LIBC is not defined.
26624         (__P): Remove unused macro.
26625         (match_string): Bring back glibc version, but use it only if _LIBC
26626         is defined.
26627         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
26628         Remove unnecessary assertion and abort() call.
26629         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
26630         * m4/strptime.m4: Fix serial number comment.
26631         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
26632         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
26633         (Depends-on): Add time_r.
26634
26635 2007-01-29  Bruno Haible  <bruno@clisp.org>
26636
26637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26638         strptime.
26639         * modules/strptime (Depends-on): Add stdbool.
26640         * lib/strptime.h: Include <time.h> always. Add comments.
26641
26642 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26643
26644         * modules/strptime: New file.
26645         * lib/strptime.h: New file.
26646         * lib/strptime.c: New file.
26647         * m4/strptime.m4: New file.
26648
26649 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26650
26651         * MODULES.html.sh: New module mpsort.
26652         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
26653
26654         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
26655         a circularity problem with HP-UX ia64 reported by Bob Proulx in
26656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
26657         All uses changed.
26658         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
26659         All uses changed.
26660         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
26661         to _Restrict_.
26662         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
26663         the parameter matches the prototype.
26664
26665 2007-01-28  Jim Meyering  <jim@meyering.net>
26666
26667         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
26668         sys/time.h here, reverting that part of the previous patch:
26669         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
26670
26671 2007-01-28  Bruno Haible  <bruno@clisp.org>
26672
26673         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
26674         value of $(SYS_TIME_H).
26675         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
26676         remove it conditionally, too. [added by Jim Meyering]
26677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
26678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
26679         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
26680         GETTIMEOFDAY_REPLACEMENT to 1.
26681
26682 2007-01-28  Bruno Haible  <bruno@clisp.org>
26683
26684         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
26685         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
26686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
26687         Set UNISTD_H instead of UNISTD_H2.
26688         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
26689
26690 2007-01-28  Bruno Haible  <bruno@clisp.org>
26691
26692         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
26693         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
26694
26695 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26696
26697         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
26698         (func_create_testdir): Ensure C locale for `grep' and `tr'
26699         character ranges.
26700         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
26701         ACLOCAL_AMFLAGS parsing state machine.
26702
26703 2007-01-27  Bruno Haible  <bruno@clisp.org>
26704
26705         * modules/unistr/base: Update.
26706
26707 2007-01-27  Bruno Haible  <bruno@clisp.org>
26708
26709         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
26710         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
26711         * modules/unistr/u32-mbtouc-unsafe: Renamed from
26712         modules/unistr/u32-mbtouc.
26713         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
26714         * lib/unistr.h: Update.
26715         * lib/linebreak.c: Update.
26716         * modules/unistr/u32-mbtouc: Renamed from
26717         modules/unistr/u32-mbtouc-safe.
26718         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
26719         * lib/unistr.h: Update.
26720         * lib/unistr/u32-to-u8.c: Update.
26721         * lib/unistr/u32-to-u16.c: Update.
26722
26723 2007-01-27  Bruno Haible  <bruno@clisp.org>
26724
26725         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
26726         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
26727         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
26728         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
26729         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
26730         * modules/unistr/u16-mbtouc-unsafe: Renamed from
26731         modules/unistr/u16-mbtouc.
26732         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
26733         * lib/unistr.h: Update.
26734         * lib/linebreak.c: Update.
26735         * modules/linebreak: Update.
26736         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
26737         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
26738         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
26739         * modules/unistr/u16-mbtouc: Renamed from
26740         modules/unistr/u16-mbtouc-safe.
26741         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
26742         * lib/unistr.h: Update.
26743         * lib/unistr/u16-to-u8.c: Update.
26744         * modules/unistr/u16-to-u8: Update.
26745         * lib/unistr/u16-to-u32.c: Update.
26746         * modules/unistr/u16-to-u32: Update.
26747
26748 2007-01-27  Bruno Haible  <bruno@clisp.org>
26749
26750         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
26751         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
26752         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
26753         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
26754         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
26755         * modules/unistr/u8-mbtouc-unsafe: Renamed from
26756         modules/unistr/u8-mbtouc.
26757         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
26758         * lib/unistr.h: Update.
26759         * lib/striconveh.c: Update.
26760         * modules/striconveh: Update.
26761         * lib/linebreak.c: Update.
26762         * modules/linebreak: Update.
26763         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
26764         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
26765         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
26766         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
26767         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
26768         * lib/unistr.h: Update.
26769         * lib/striconveh.c: Update.
26770         * modules/striconveh: Update.
26771         * lib/unistr/u8-to-u16.c: Update.
26772         * modules/unistr/u8-to-u16: Update.
26773         * lib/unistr/u8-to-u32.c: Update.
26774         * modules/unistr/u8-to-u32: Update.
26775
26776 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26777
26778         Sync from Libtool.
26779         * lib/argz.c: Do not include strings.h nor memory.h, include
26780         string.h unconditionally.  Patch by Simon Josefsson.
26781
26782 2007-01-27  Bruno Haible  <bruno@clisp.org>
26783
26784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
26785         from gl_HEADER_STRING_H_BODY.
26786         (gl_HEADER_STRING_H_BODY): Require it.
26787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
26788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
26789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
26790         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
26791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26792         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
26793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26794         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
26795         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
26796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26797         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
26798         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
26799         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
26800         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26801         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
26802
26803 2007-01-27  Bruno Haible  <bruno@clisp.org>
26804
26805         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
26806         check_PROGRAMS into noinst_PROGRAMS.
26807         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
26808         check_PROGRAMS in this case.
26809         (func_import): Set for_test to false.
26810         (func_create_testdir): Set for_test to true.
26811
26812 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26813             Bruno Haible  <bruno@clisp.org>
26814
26815         * modules/strcasestr (Files): Remove lib/strcasestr.h.
26816         (Depends-on): Add string.
26817         (Includes): Use <string.h> instead of strcasestr.h.
26818         * modules/string (Makefile.am): Also substitute the value of
26819         REPLACE_STRCASESTR.
26820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
26821         assume strcasestr is declared in <string.h> not <strings.h>. Also
26822         set REPLACE_STRCASESTR.
26823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
26824         REPLACE_STRCASESTR.
26825         * lib/strcasestr.h: Remove file.
26826         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
26827         * lib/string_.h (strcasestr): New declaration.
26828
26829 2007-01-27  Bruno Haible  <bruno@clisp.org>
26830
26831         * lib/string_.h: Use 'extern'.
26832
26833 2007-01-27  Jim Meyering  <jim@meyering.net>
26834
26835         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
26836         of set-but-not-used local, "q".
26837
26838         * lib/mempcpy.c: Include <config.h> before <string.h>.
26839         This fixes a compilation error on HP-UX, due to the system's
26840         "restrict"-using mempcpy prototype.
26841
26842 2007-01-26  Bruno Haible  <bruno@clisp.org>
26843
26844         Small optimization.
26845         * lib/javacomp.c: Include c-strstr.h.
26846          (is_envjavac_gcj): Use c_strstr instead of strstr.
26847         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
26848
26849 2007-01-26  Bruno Haible  <bruno@clisp.org>
26850
26851         * MODULES.html.sh (Unicode string functions): Add the new modules.
26852
26853         * modules/uniconv/u32-strconv-to-locale: New file.
26854         * lib/uniconv/u32-strconv-to-locale.c: New file.
26855
26856         * modules/uniconv/u16-strconv-to-locale: New file.
26857         * lib/uniconv/u16-strconv-to-locale.c: New file.
26858
26859         * modules/uniconv/u8-strconv-to-locale: New file.
26860         * lib/uniconv/u8-strconv-to-locale.c: New file.
26861
26862         * modules/uniconv/u32-strconv-from-locale: New file.
26863         * lib/uniconv/u32-strconv-from-locale.c: New file.
26864
26865         * modules/uniconv/u16-strconv-from-locale: New file.
26866         * lib/uniconv/u16-strconv-from-locale.c: New file.
26867
26868         * modules/uniconv/u8-strconv-from-locale: New file.
26869         * lib/uniconv/u8-strconv-from-locale.c: New file.
26870
26871         * modules/uniconv/u32-strconv-to-enc: New file.
26872         * lib/uniconv/u32-strconv-to-enc.c: New file.
26873         * modules/uniconv/u32-strconv-to-enc-tests: New file.
26874         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
26875
26876         * modules/uniconv/u16-strconv-to-enc: New file.
26877         * lib/uniconv/u16-strconv-to-enc.c: New file.
26878         * lib/uniconv/u-strconv-to-enc.h: New file.
26879         * modules/uniconv/u16-strconv-to-enc-tests: New file.
26880         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
26881
26882         * modules/uniconv/u8-strconv-to-enc: New file.
26883         * lib/uniconv/u8-strconv-to-enc.c: New file.
26884         * modules/uniconv/u8-strconv-to-enc-tests: New file.
26885         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
26886
26887         * modules/uniconv/u32-strconv-from-enc: New file.
26888         * lib/uniconv/u32-strconv-from-enc.c: New file.
26889         * modules/uniconv/u32-strconv-from-enc-tests: New file.
26890         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
26891
26892         * modules/uniconv/u16-strconv-from-enc: New file.
26893         * lib/uniconv/u16-strconv-from-enc.c: New file.
26894         * modules/uniconv/u16-strconv-from-enc-tests: New file.
26895         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
26896
26897         * modules/uniconv/u8-strconv-from-enc: New file.
26898         * lib/uniconv/u8-strconv-from-enc.c: New file.
26899         * lib/uniconv/u-strconv-from-enc.h: New file.
26900         * modules/uniconv/u8-strconv-from-enc-tests: New file.
26901         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
26902
26903         * modules/uniconv/u32-conv-from-enc: New file.
26904         * lib/uniconv/u32-conv-from-enc.c: New file.
26905         * modules/uniconv/u32-conv-from-enc-tests: New file.
26906         * tests/uniconv/test-u32-conv-from-enc.c: New file.
26907
26908         * modules/uniconv/u16-conv-from-enc: New file.
26909         * lib/uniconv/u16-conv-from-enc.c: New file.
26910         * lib/uniconv/u-conv-from-enc.h: New file.
26911         * modules/uniconv/u16-conv-from-enc-tests: New file.
26912         * tests/uniconv/test-u16-conv-from-enc.c: New file.
26913
26914         * modules/uniconv/u8-conv-from-enc: New file.
26915         * lib/uniconv/u8-conv-from-enc.c: New file.
26916         * modules/uniconv/u8-conv-from-enc-tests: New file.
26917         * tests/uniconv/test-u8-conv-from-enc.c: New file.
26918
26919         * modules/uniconv/base: New file.
26920         * lib/uniconv.h: New file.
26921
26922 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26923
26924         * doc/gnulib-tool.texi (Initial import): Update to match current
26925         behavior with strdup module.
26926         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
26927         * lib/memmem.h: Remove; all uses removed.  This is now done
26928         by <string.h>.
26929         * lib/mempcpy.h: Likewise.
26930         * lib/memrchr.h: Likewise.
26931         * lib/stpcpy.h: Likewise.
26932         * lib/stpncpy.h: Likewise.
26933         * lib/strcase.h: Likewise.
26934         * lib/strchrnul.h: Likewise.
26935         * lib/strdup.h: Likewise.
26936         * lib/strndup.h: Likewise.
26937         * lib/strnlen.h: Likewise.
26938         * lib/strpbrk.h: Likewise.
26939         * lib/strsep.h: Likewise.
26940         * lib/strstr.h: Likewise.
26941         * lib/strtok_r.h: Likewise.
26942         * lib/string_.h: New file.
26943         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
26944         Rely on <string.h> instead.
26945         * lib/canon-host.c: Likewise.
26946         * lib/chdir-long.c: Likewise.
26947         * lib/concatpath.c: Likewise.
26948         * lib/exclude.c: Likewise.
26949         * lib/fchdir.c: Likewise.
26950         * lib/getaddrinfo.c: Likewise.
26951         * lib/getcwd.c: Likewise.
26952         * lib/getsubopt.c: Likewise.
26953         * lib/glob.c: Likewise.
26954         * lib/hard-locale.c: Likewise.
26955         * lib/iconvme.c: Likewise.
26956         * lib/javacomp.c: Likewise.
26957         * lib/mempcpy.c: Likewise.
26958         * lib/memrchr.c: Likewise.
26959         * lib/regex_internal.h: Likewise.
26960         * lib/stpncpy.c: Likewise.
26961         * lib/strcasecmp.c: Likewise.
26962         * lib/strchrnul.c: Likewise.
26963         * lib/strdup.c: Likewise.
26964         * lib/striconv.c: Likewise.
26965         * lib/striconveh.c: Likewise.
26966         * lib/striconveha.c: Likewise.
26967         * lib/strncasecmp.c: Likewise.
26968         * lib/strndup.c: Likewise.
26969         * lib/strnlen.c: Likewise.
26970         * lib/strsep.c: Likewise.
26971         * lib/strstr.c: Likewise.
26972         * lib/strtok_r.c: Likewise.
26973         * lib/userspec.c: Likewise.
26974         * lib/w32spawn.h: Likewise.
26975         * lib/xstrndup.c: Likewise.
26976         * lib/mountlist.c (strstr): Remove decl.
26977         * m4/string_h.m4: New file.
26978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
26979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
26980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
26981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
26982         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
26983         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
26984         Set REPLACE_STRCASECMP if necessary.
26985         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
26986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
26987         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
26988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
26989         HAVE_DECL_STRDUP if necessary.
26990         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
26991         since gl_FUNC_STRNDUP does that now.
26992         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
26993         Check for decl here...
26994         (gl_PREREQ_STRNLEN): ... not here.
26995         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
26996         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
26997         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
26998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
26999         necessary.
27000         * modules/string: New file.
27001         * modules/memmem (Files): Remove special-purpose include file.
27002         (Depends-on): Add string.
27003         (Include): Include <string.h>, not the removed file.
27004         * modules/mempcpy: Likewise.
27005         * modules/memrchr: Likewise.
27006         * modules/stpcpy: Likewise.
27007         * modules/stpncpy: Likewise.
27008         * modules/strcase: Likewise.
27009         * modules/strchrnul: Likewise.
27010         * modules/strdup: Likewise.
27011         * modules/strndup: Likewise.
27012         * modules/strnlen: Likewise.
27013         * modules/strpbrk: Likewise.
27014         * modules/strsep: Likewise.
27015         * modules/strstr: Likewise.
27016         * modules/strtok_r: Likewise.
27017         * tests/test-dirname.c: Don't include "strdup.h", since
27018         <string.h> now suffices.
27019         * tests/test-memmem.c: Don't include "memmem.h", since
27020         <string.h> now suffices.
27021
27022 2007-01-25  Bruno Haible  <bruno@clisp.org>
27023
27024         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
27025         *resultp is 0.
27026
27027         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
27028         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
27029         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
27030         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
27031
27032         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
27033         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
27034         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
27035         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
27036         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
27037         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
27038
27039 2007-01-24  Bruno Haible  <bruno@clisp.org>
27040
27041         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
27042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
27043         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
27044         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
27045         gl_FUNC_FTS_CORE.
27046         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
27047         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
27048         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27049         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
27050         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
27051         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
27052         gl_FUNC_FCHOWNAT.
27053         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
27054         gl_FUNC_STRFTIME.
27055         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
27056         Reported by Ralf Wildenhues.
27057
27058 2007-01-24  Bruno Haible  <bruno@clisp.org>
27059
27060         Drop AC_REQUIRE calls that are redundant with the module dependencies.
27061         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
27062         gl_GETADDRINFO.
27063         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
27064         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
27065         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
27066
27067 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27068
27069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
27070         Don't use 'exit'; just return from 'main'.
27071         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
27072
27073         * lib/fnmatch_.h: Readjust white space and comments to match
27074         glibc, to avoid spurious diffs.
27075
27076 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27077
27078         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
27079         2004-12-01 change by Jakub Jelinek, since this code won't compile
27080         if !LIBC.  Problem reported by Bob Proulx.
27081
27082 2007-01-23  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/striconveh.c: Include c-strcaseeq.h.
27085         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
27086         * modules/striconveh (Depends-on): Add c-strcaseeq.
27087
27088 2007-01-23  Bruno Haible  <bruno@clisp.org>
27089
27090         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
27091
27092         * modules/c-strcaseeq: New file.
27093         * lib/c-strcaseeq.h: New file.
27094
27095         * modules/streq: New file.
27096         * lib/streq.h: New file.
27097
27098 2007-01-23  Bruno Haible  <bruno@clisp.org>
27099
27100         * modules/striconveha-tests: New file.
27101         * tests/test-striconveha.c: New file.
27102
27103         * lib/striconveha.h: Include <stdbool.h>.
27104         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
27105         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
27106         (mem_iconveha_notranslit): Renamed from mem_iconveha.
27107         (mem_iconveha): New function.
27108         (str_iconveha_notranslit): Renamed from str_iconveha.
27109         (str_iconveha): New function.
27110         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
27111         c-strcase.
27112
27113 2007-01-23  Bruno Haible  <bruno@clisp.org>
27114
27115         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
27116         encodings without forgiving before trying any encoding with handler.
27117         (str_iconveha): Try all encodings without forgiving before trying any
27118         encoding with handler.
27119
27120 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27121
27122         Import the following changes from libc.
27123
27124         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27125
27126         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
27127
27128         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27129
27130         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
27131         normal_bracket label.
27132
27133         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
27134
27135         [BZ #361]
27136         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
27137         to normal_bracket after fetching the next character.
27138
27139 2007-01-22  Bruno Haible  <bruno@clisp.org>
27140
27141         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
27142         argument.
27143         * lib/striconveh.c (iconv_carefully_1): New function.
27144         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
27145         argument.
27146         (str_cd_iconveh): Update.
27147         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
27148         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
27149         * tests/test-striconveh.c (MAGIC): New macro.
27150         (new_offsets): New function.
27151         (main): Test call with and without offsets.
27152
27153 2007-01-22  Bruno Haible  <bruno@clisp.org>
27154
27155         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
27156         * modules/sys_select (Makefile.am): Likewise.
27157         * modules/sys_socket (Makefile.am): Likewise.
27158         * modules/sys_time (Makefile.am): Likewise.
27159
27160 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27161
27162         * modules/gettimeofday (License): Change from GPL to LGPL, since
27163         gettimeofday is a library function.
27164
27165 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27166
27167         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
27168
27169 2007-01-21  Bruno Haible  <bruno@clisp.org>
27170
27171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
27172
27173 2007-01-21  Bruno Haible  <bruno@clisp.org>
27174
27175         * modules/striconveha: New file.
27176         * lib/striconveha.h: New file.
27177         * lib/striconveha.c: New file.
27178         * MODULES.html.sh (Internationalization functions): Add striconveha.
27179         * lib/striconv.c (str_iconv): Optimize the case of an empty input
27180         string.
27181         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
27182
27183 2007-01-21  Bruno Haible  <bruno@clisp.org>
27184
27185         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
27186         * lib/striconveh.c (str_iconveh): Likewise.
27187
27188 2007-01-21  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/striconveh.h (mem_iconveh): New declaration.
27191         * lib/striconveh.c (mem_iconveh): New function.
27192         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
27193
27194 2007-01-21  Bruno Haible  <bruno@clisp.org>
27195
27196         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
27197
27198         * lib/striconveh.h (mem_cd_iconveh): Change specification.
27199         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
27200         original result buffer.
27201         (str_cd_iconveh): Update.
27202         * tests/test-striconveh.c (main): Update.
27203
27204         * lib/striconv.h (mem_cd_iconv): Change specification.
27205         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
27206         result buffer.
27207         (str_cd_iconv): Update.
27208         * tests/test-striconv.c (main): Update.
27209
27210 2007-01-21  Bruno Haible  <bruno@clisp.org>
27211
27212         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
27213
27214 2007-01-20  Jim Meyering  <jim@meyering.net>
27215
27216         * lib/userspec.c (parse_with_separator): If a user or group string
27217         starts with "+", skip the corresponding name-to-ID look-up, since
27218         such a look-up must fail: user and group names may not include "+".
27219
27220 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * lib/poll.c: Include sys/time.h and time.h unconditionally,
27223         since we now assume the sys_time module.
27224         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
27225         check for sys/time.h; no longer needed.
27226         * modules/poll (Depends-on): Depend on sys_time.
27227
27228 2007-01-18  Bruno Haible  <bruno@clisp.org>
27229
27230         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
27231         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27232
27233         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
27234         gettimeofday.
27235
27236         * tests/test-gettimeofday.c: Include <time.h>.
27237         (dummy): Remove variable.
27238
27239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
27240         gl_HEADER_SYS_TIME_H.
27241         (gl_HEADER_SYS_TIME_H): New macro.
27242
27243         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
27244         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
27246         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
27247         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27248         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
27249         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
27250         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27251         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
27252         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
27253         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27254
27255         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
27256         last change; it caused a compilation error when cross-compiling to
27257         Cygwin.
27258
27259 2007-01-18  Jim Meyering  <jim@meyering.net>
27260
27261         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
27262         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
27263         than the race-prone "test -d sys || mkdir sys".
27264         (configure.ac): Use AC_PROG_MKDIR_P.
27265         * modules/sys_select: Likewise.
27266         * modules/sys_socket: Likewise.
27267         * modules/sys_time: Likewise.
27268
27269 2007-01-18  Eric Blake  <ebb9@byu.net>
27270
27271         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
27272         replace gettimeofday.
27273         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
27274         name, to avoid infinite recursion.
27275
27276 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
27277
27278         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
27279         module sys_time.
27280         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
27281         assume timespec.h defines struct timeval.
27282         * lib/settime.c: Likewise.
27283         * lib/utimens.c: Likewise.
27284         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
27285         since we now assume the gettimeofday module.
27286         * lib/tempname.c (__gen_tempname): Likewise.
27287         * lib/gettimeofday.h: Remove.
27288         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
27289         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
27290         Include <time.h>, for 'time()'.
27291         (localtime_buffer_addr): Also use this workaround if
27292         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
27293         to simplify the uses.  All uses changed.
27294         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
27295         that #undef is inside {}, and 'const' follows type name consistently.
27296         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
27297         (gettimeofday): Do not use the maximum possible value for
27298         tv->tv_usec, since that might break usages other than ls.c.
27299         Instead, we'll leave ls.c alone.  This undoes today's patch
27300         by Bruno.  Add a compile-time warning for 1s-clock resolution;
27301         we've never observed the problem but might as well keep the
27302         canary.
27303         * lib/nanosleep.c: Include timespec.h first, for interface check.
27304         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
27305         now assume the sys_time module.
27306         * lib/tempname.c: Likewise.
27307         * lib/timespec.h: Likewise.
27308         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
27309         needed.
27310         * lib/strftime.c: Likewise.
27311         * lib/timespec.h: Likewise.
27312         * lib/posixtm.c: Include posixtm.h first, for interface check.
27313         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
27314         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
27315         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
27316         * lib/sys_time_.h: New file.
27317         * lib/timespec.h (struct timespec): Use long int, not long.
27318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27319         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
27320         Remove obsolescent call to AC_HEADER_TIME.
27321         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27323         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27324         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
27325         Likewise.
27326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
27327         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
27328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
27329         into the sys_time module.  Check for gettimeofday just once.
27330         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
27331         for gettimeofday signature to just check the signature.  Merely
27332         compile it, since linking doesn't test signature.  Improve test for
27333         whether gettimeofday.o is actually needed.
27334         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
27335         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
27336         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
27337         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27338         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
27339         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
27340         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
27341         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
27342         than worrying about sys/time.h.
27343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27344         Don't bother worrying about TIME_WITH_SYS_TIME.
27345         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27346         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
27347         * m4/sys_time_h.m4: New file.
27348         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
27349         Don't include sys/time.h.  Return from main rather than exiting.
27350         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
27351         all uses changed.
27352         * modules/gethrxtime (Depends-on): Add sys_time.
27353         * modules/gettime (Depends-on): Likewise.
27354         * modules/gettimeofday (Depends-on): Likewise.
27355         * modules/nanosleep (Depends-on): Likewise.
27356         * modules/settime (Depends-on): Likewise.
27357         * modules/tempname (Depends-on): Likewise.
27358         * modules/utimens (Depends-on): Likewise.
27359         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
27360         (Include:) Change back to <sys/time.h>.
27361         (Maintainer:) Add self.
27362         * modules/sys_time: New file.
27363         * modules/tempname (Depends-on): Add gettimeofday.
27364         * tests/test-gettimeofday.c: Include <sys/time.h>
27365         rather than gettimeofday.h.
27366
27367 2007-01-17  Bruno Haible  <bruno@clisp.org>
27368
27369         * gnulib-tool (func_get_license): Revert last patch. Instead, let
27370         the license default to GPL.
27371         (func_create_testdir): Don't complain if a module is LGPL and its
27372         tests module depends on GPLed modules.
27373
27374 2007-01-17  Bruno Haible  <bruno@clisp.org>
27375
27376         * lib/gettimeofday.c (gettimeofday): Add code for the case
27377         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
27378         maximum possible value for tv->tv_usec, rather than the minimum one.
27379
27380 2005-10-08  Martin Lambers  <marlam@marlam.de>
27381 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27382 2007-01-16  Bruno Haible  <bruno@clisp.org>
27383
27384         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
27385         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
27386         gl_FUNC_GETTIMEOFDAY.
27387         (Include): Add gettimeofday.h.
27388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
27389         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
27390         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
27391         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
27392         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
27393         * lib/gettimeofday.h: New file.
27394         * lib/gettimeofday.c: Include <sys/timeb.h>.
27395         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
27396         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27397         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
27398         fall back on time().
27399
27400         * tests/test-gettimeofday.c: New file.
27401         * modules/gettimeofday-tests: New file.
27402
27403 2007-01-16  Eric Blake  <ebb9@byu.net>
27404
27405         * modules/fnmatch (Depends-on): Depend on wchar.
27406         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
27407         * m4/fnmatch.m4: Likewise.
27408         * modules/mbchar (Makefile.am): Assume <wchar.h>.
27409         * m4/mbchar.m4: Likewise.
27410         * modules/mbswidth (Depends-on): Depend on wchar.
27411         * lib/mbswidth.c: Assume <wchar.h>.
27412         * m4/mbswidth.m4: Likewise.
27413         * modules/quotearg (Depends-on): Depend on wchar.
27414         * lib/quotearg.c: Assume <wchar.h>.
27415         * m4/quotearg.m4: Likewise.
27416         * modules/regex (Depends-on): Depend on wchar.
27417         * lib/regex_internal.h: Assume <wchar.h>.
27418         * m4/regex.m4: Likewise.
27419         * modules/stdint (Depends-on): Depend on wchar.
27420         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
27421         * m4/stdint.m4: Likewise.
27422         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
27423         * modules/strftime (Depends-on): Depend on wchar.
27424         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
27425         * modules/strtol (Depends-on): Depend on wchar.
27426         * lib/strtol.c: Assume <wchar.h>.
27427         * modules/wcwidth (Depends-on): Depend on wchar.
27428         * lib/wcwidth.h: Assume <wchar.h>.
27429         * m4/wcwidth.m4: Likewise.
27430
27431 2007-01-16  Bruno Haible  <bruno@clisp.org>
27432
27433         * modules/csharpexec-script: New, created from...
27434         * modules/csharpexec: ... this.
27435
27436 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27437
27438         * modules/javaexec-script: New, created from...
27439         * modules/javaexec: ... this.
27440
27441 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27442
27443         * modules/poll (Dependencies): Add sys_select.
27444
27445 2007-01-15  Jim Meyering  <jim@meyering.net>
27446
27447         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
27448         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
27449         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
27450         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
27451
27452 2007-01-15  Bruno Haible  <bruno@clisp.org>
27453
27454         * modules/striconveh: New file.
27455         * lib/striconveh.h: New file.
27456         * lib/striconveh.c: New file.
27457         * MODULES.html.sh (Internationalization functions): Add striconveh.
27458
27459         * modules/striconveh-tests: New file.
27460         * tests/test-striconveh.c: New file.
27461
27462 2007-01-15  Bruno Haible  <bruno@clisp.org>
27463
27464         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
27465         not from GNU libiconv or GNU libc.
27466
27467 2007-01-15  Bruno Haible  <bruno@clisp.org>
27468
27469         * doc/gnulib-intro.texi (Copyright): Explain the different license
27470         terms for module descriptions, autoconf macros, tests, documentation.
27471
27472 2007-01-14  Bruno Haible  <bruno@clisp.org>
27473
27474         * modules/striconv-tests: New file.
27475         * tests/test-striconv.c: New file.
27476
27477 2007-01-14  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/iconv-tests: New file.
27480         * tests/test-iconv.c: New file.
27481
27482 2007-01-14  Bruno Haible  <bruno@clisp.org>
27483
27484         * gnulib-tool (func_get_license): For test modules, use the license of
27485         the main module.
27486
27487 2007-01-14  Bruno Haible  <bruno@clisp.org>
27488
27489         * modules/iconv (Include): Clarify that <iconv.h> can only be included
27490         if iconv is found to exist.
27491
27492 2007-01-14  Bruno Haible  <bruno@clisp.org>
27493
27494         * modules/c-ctype-tests: New file.
27495         * tests/test-c-ctype.c: New file.
27496
27497 2007-01-14  Bruno Haible  <bruno@clisp.org>
27498
27499         * modules/binary-io-tests: New file.
27500         * tests/test-binary-io.sh: New file.
27501         * tests/test-binary-io.c: New file.
27502
27503 2007-01-14  Bruno Haible  <bruno@clisp.org>
27504
27505         * modules/array-oset-tests: New file.
27506         * tests/test-array_oset.c: New file.
27507
27508 2007-01-14  Bruno Haible  <bruno@clisp.org>
27509
27510         * modules/array-list-tests: New file.
27511         * tests/test-array_list.c: New file.
27512
27513 2007-01-14  Bruno Haible  <bruno@clisp.org>
27514
27515         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
27516         and make.
27517         Reported by Simon Josefsson in
27518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
27519
27520 2007-01-14  Bruno Haible  <bruno@clisp.org>
27521
27522         * modules/allocsa-tests: New file.
27523         * tests/test-allocsa.c: New file.
27524
27525 2007-01-14  Bruno Haible  <bruno@clisp.org>
27526
27527         * modules/fchdir (Depends-on): Add absolute-header.
27528         * modules/unistd (Depends-on): Likewise.
27529
27530 2006-12-30  Bruno Haible  <bruno@clisp.org>
27531
27532         * modules/fchdir: New file.
27533         * modules/unistd (Files): Add lib/unistd_.h.
27534         (Makefile.am): Generate unistd.h from unistd_.h.
27535         * lib/fchdir.c: New file.
27536         * lib/dirent_.h: New file.
27537         * lib/unistd_.h: New file.
27538         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
27539         * m4/fchdir.m4: New file.
27540         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
27541         (gl_HEADER_UNISTD): Invoke it.
27542         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
27543         function.
27544         * lib/backupfile.c (opendir, closedir): Undefine.
27545         * lib/chown.c (open, close): Undefine.
27546         * lib/clean-temp.c (open, close): Undefine.
27547         * lib/copy-file.c (open, close): Undefine.
27548         * lib/execute.c (open, close): Undefine.
27549         * lib/fsusage.c (open, close): Undefine.
27550         * lib/gc-gnulib.c (open, close): Undefine.
27551         * lib/getcwd.c (opendir, closedir): Undefine.
27552         * lib/glob.c (opendir, closedir): Undefine.
27553         * lib/javacomp.c (open, close): Undefine.
27554         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
27555         * lib/openat-proc.c (open, close): Undefine.
27556         * lib/pagealign_alloc.c (open, close): Undefine.
27557         * lib/pipe.c (open, close): Undefine.
27558         * lib/progreloc.c (open, close): Undefine.
27559         * lib/savedir.c (opendir, closedir): Undefine.
27560         * lib/utime.c (open, close): Undefine.
27561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
27562
27563 2007-01-10  Bruno Haible  <bruno@clisp.org>
27564
27565         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
27566
27567 2007-01-12  Eric Blake  <ebb9@byu.net>
27568
27569         Provide a robust <wchar.h>.  Further simplifications are now
27570         possible in other modules, but not included here.
27571         * modules/wchar: New module.
27572         * m4/wchar.m4: New file.
27573         * lib/wchar_.h: Likewise.
27574         * modules/mbchar (Depends-on): Depend on wchar, as the first use
27575         of the new module.
27576         * MODULES.html.sh (Extended multibyte and wide character utilities):
27577         New section.
27578
27579 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27580
27581         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
27582         to a reasonable default for memory allocation.
27583         (xreadlink): Don't allocate a huge buffer, to work around a buggy
27584         file system that reports garbage st_size values for symlinks.
27585         Problem reported by Liyang Hu.
27586
27587 2007-01-11  Simon Josefsson  <simon@josefsson.org>
27588
27589         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
27590         Emacs .#* auto-save files).
27591
27592 2007-01-11  Bruno Haible  <bruno@clisp.org>
27593
27594         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
27595         directory.
27596
27597 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27598
27599         Use @...@ consistently in lib/wctype_.h.
27600         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
27601         on it being set to 1 or 0.
27602         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
27603         go back to AC_SUBSTing it.
27604         * modules/wctype (Makefile.am): Undo previous change.
27605
27606 2007-01-10  Eric Blake  <ebb9@byu.net>
27607
27608         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
27609         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
27610         * modules/wctype (Makefile.am): Likewise.
27611         Reported by Chris McGuire.
27612
27613 2007-01-10  Jim Meyering  <jim@meyering.net>
27614
27615         fts.c: a small readability/maintainability improvement
27616         * lib/fts.c (fts_read): Make this code slightly more readable and
27617         maintainable by hoisting the "sp->fts_cur = p" assignments to
27618         immediately follow the statements that set P.  Derived from
27619         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
27620
27621 2007-01-10  Eric Blake  <ebb9@byu.net>
27622
27623         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
27624         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
27625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27626         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27627         Reported by Chris McGuire.
27628
27629 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27630
27631         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
27632         in sed script.
27633
27634 2007-01-09  Bruno Haible  <bruno@clisp.org>
27635
27636         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
27637         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
27638         variables.
27639         (func_module): Use them.
27640
27641 2007-01-09  Bruno Haible  <bruno@clisp.org>
27642
27643         * modules/unistr/base: New file.
27644         * lib/unistr.h: New file.
27645
27646         * modules/unistr/u8-to-u16: New file.
27647         * lib/unistr/u8-to-u16.c: New file.
27648
27649         * modules/unistr/u8-to-u32: New file.
27650         * lib/unistr/u8-to-u32.c: New file.
27651
27652         * modules/unistr/u16-to-u8: New file.
27653         * lib/unistr/u16-to-u8.c: New file.
27654
27655         * modules/unistr/u16-to-u32: New file.
27656         * lib/unistr/u16-to-u32.c: New file.
27657
27658         * modules/unistr/u32-to-u8: New file.
27659         * lib/unistr/u32-to-u8.c: New file.
27660
27661         * modules/unistr/u32-to-u16: New file.
27662         * lib/unistr/u32-to-u16.c: New file.
27663
27664         * modules/unistr/u8-check: New file.
27665         * modules/unistr/u16-check: New file.
27666         * modules/unistr/u32-check: New file.
27667         * lib/unistr/u8-check.c: New file.
27668         * lib/unistr/u16-check.c: New file.
27669         * lib/unistr/u32-check.c: New file.
27670
27671         * modules/unistr/u8-chr: New file.
27672         * modules/unistr/u16-chr: New file.
27673         * modules/unistr/u32-chr: New file.
27674         * lib/unistr/u8-chr.c: New file.
27675         * lib/unistr/u16-chr.c: New file.
27676         * lib/unistr/u32-chr.c: New file.
27677
27678         * modules/unistr/u8-cmp: New file.
27679         * modules/unistr/u16-cmp: New file.
27680         * modules/unistr/u32-cmp: New file.
27681         * lib/unistr/u8-cmp.c: New file.
27682         * lib/unistr/u16-cmp.c: New file.
27683         * lib/unistr/u32-cmp.c: New file.
27684
27685         * modules/unistr/u8-cpy: New file.
27686         * modules/unistr/u16-cpy: New file.
27687         * modules/unistr/u32-cpy: New file.
27688         * lib/unistr/u8-cpy.c: New file.
27689         * lib/unistr/u16-cpy.c: New file.
27690         * lib/unistr/u32-cpy.c: New file.
27691         * lib/unistr/u-cpy.h: New file.
27692
27693         * modules/unistr/u8-cpy-alloc: New file.
27694         * modules/unistr/u16-cpy-alloc: New file.
27695         * modules/unistr/u32-cpy-alloc: New file.
27696         * lib/unistr/u8-cpy-alloc.c: New file.
27697         * lib/unistr/u16-cpy-alloc.c: New file.
27698         * lib/unistr/u32-cpy-alloc.c: New file.
27699         * lib/unistr/u-cpy-alloc.h: New file.
27700
27701         * modules/unistr/u8-endswith: New file.
27702         * modules/unistr/u16-endswith: New file.
27703         * modules/unistr/u32-endswith: New file.
27704         * lib/unistr/u8-endswith.c: New file.
27705         * lib/unistr/u16-endswith.c: New file.
27706         * lib/unistr/u32-endswith.c: New file.
27707         * lib/unistr/u-endswith.h: New file.
27708
27709         * modules/unistr/u8-mblen: New file.
27710         * modules/unistr/u16-mblen: New file.
27711         * modules/unistr/u32-mblen: New file.
27712         * lib/unistr/u8-mblen.c: New file.
27713         * lib/unistr/u16-mblen.c: New file.
27714         * lib/unistr/u32-mblen.c: New file.
27715
27716         * modules/unistr/u8-mbtouc: New file.
27717         * modules/unistr/u16-mbtouc: New file.
27718         * modules/unistr/u32-mbtouc: New file.
27719         * lib/unistr/u8-mbtouc.c: New file.
27720         * lib/unistr/u16-mbtouc.c: New file.
27721         * lib/unistr/u32-mbtouc.c: New file.
27722
27723         * modules/unistr/u8-mbtouc-safe: New file.
27724         * modules/unistr/u16-mbtouc-safe: New file.
27725         * modules/unistr/u32-mbtouc-safe: New file.
27726         * lib/unistr/u8-mbtouc-safe.c: New file.
27727         * lib/unistr/u16-mbtouc-safe.c: New file.
27728         * lib/unistr/u32-mbtouc-safe.c: New file.
27729
27730         * modules/unistr/u8-move: New file.
27731         * modules/unistr/u16-move: New file.
27732         * modules/unistr/u32-move: New file.
27733         * lib/unistr/u8-move.c: New file.
27734         * lib/unistr/u16-move.c: New file.
27735         * lib/unistr/u32-move.c: New file.
27736         * lib/unistr/u-move.h: New file.
27737
27738         * modules/unistr/u8-next: New file.
27739         * modules/unistr/u16-next: New file.
27740         * modules/unistr/u32-next: New file.
27741         * lib/unistr/u8-next.c: New file.
27742         * lib/unistr/u16-next.c: New file.
27743         * lib/unistr/u32-next.c: New file.
27744
27745         * modules/unistr/u8-prev: New file.
27746         * modules/unistr/u16-prev: New file.
27747         * modules/unistr/u32-prev: New file.
27748         * lib/unistr/u8-prev.c: New file.
27749         * lib/unistr/u16-prev.c: New file.
27750         * lib/unistr/u32-prev.c: New file.
27751
27752         * modules/unistr/u8-set: New file.
27753         * modules/unistr/u16-set: New file.
27754         * modules/unistr/u32-set: New file.
27755         * lib/unistr/u8-set.c: New file.
27756         * lib/unistr/u16-set.c: New file.
27757         * lib/unistr/u32-set.c: New file.
27758         * lib/unistr/u-set.h: New file.
27759
27760         * modules/unistr/u8-startswith: New file.
27761         * modules/unistr/u16-startswith: New file.
27762         * modules/unistr/u32-startswith: New file.
27763         * lib/unistr/u8-startswith.c: New file.
27764         * lib/unistr/u16-startswith.c: New file.
27765         * lib/unistr/u32-startswith.c: New file.
27766         * lib/unistr/u-startswith.h: New file.
27767
27768         * modules/unistr/u8-stpcpy: New file.
27769         * modules/unistr/u16-stpcpy: New file.
27770         * modules/unistr/u32-stpcpy: New file.
27771         * lib/unistr/u8-stpcpy.c: New file.
27772         * lib/unistr/u16-stpcpy.c: New file.
27773         * lib/unistr/u32-stpcpy.c: New file.
27774         * lib/unistr/u-stpcpy.h: New file.
27775
27776         * modules/unistr/u8-stpncpy: New file.
27777         * modules/unistr/u16-stpncpy: New file.
27778         * modules/unistr/u32-stpncpy: New file.
27779         * lib/unistr/u8-stpncpy.c: New file.
27780         * lib/unistr/u16-stpncpy.c: New file.
27781         * lib/unistr/u32-stpncpy.c: New file.
27782         * lib/unistr/u-stpncpy.h: New file.
27783
27784         * modules/unistr/u8-strcat: New file.
27785         * modules/unistr/u16-strcat: New file.
27786         * modules/unistr/u32-strcat: New file.
27787         * lib/unistr/u8-strcat.c: New file.
27788         * lib/unistr/u16-strcat.c: New file.
27789         * lib/unistr/u32-strcat.c: New file.
27790         * lib/unistr/u-strcat.h: New file.
27791
27792         * modules/unistr/u8-strchr: New file.
27793         * modules/unistr/u16-strchr: New file.
27794         * modules/unistr/u32-strchr: New file.
27795         * lib/unistr/u8-strchr.c: New file.
27796         * lib/unistr/u16-strchr.c: New file.
27797         * lib/unistr/u32-strchr.c: New file.
27798
27799         * modules/unistr/u8-strcmp: New file.
27800         * modules/unistr/u16-strcmp: New file.
27801         * modules/unistr/u32-strcmp: New file.
27802         * lib/unistr/u8-strcmp.c: New file.
27803         * lib/unistr/u16-strcmp.c: New file.
27804         * lib/unistr/u32-strcmp.c: New file.
27805
27806         * modules/unistr/u8-strcpy: New file.
27807         * modules/unistr/u16-strcpy: New file.
27808         * modules/unistr/u32-strcpy: New file.
27809         * lib/unistr/u8-strcpy.c: New file.
27810         * lib/unistr/u16-strcpy.c: New file.
27811         * lib/unistr/u32-strcpy.c: New file.
27812         * lib/unistr/u-strcpy.h: New file.
27813
27814         * modules/unistr/u8-strcspn: New file.
27815         * modules/unistr/u16-strcspn: New file.
27816         * modules/unistr/u32-strcspn: New file.
27817         * lib/unistr/u8-strcspn.c: New file.
27818         * lib/unistr/u16-strcspn.c: New file.
27819         * lib/unistr/u32-strcspn.c: New file.
27820         * lib/unistr/u-strcspn.h: New file.
27821
27822         * modules/unistr/u8-strdup: New file.
27823         * modules/unistr/u16-strdup: New file.
27824         * modules/unistr/u32-strdup: New file.
27825         * lib/unistr/u8-strdup.c: New file.
27826         * lib/unistr/u16-strdup.c: New file.
27827         * lib/unistr/u32-strdup.c: New file.
27828         * lib/unistr/u-strdup.h: New file.
27829
27830         * modules/unistr/u8-strlen: New file.
27831         * modules/unistr/u16-strlen: New file.
27832         * modules/unistr/u32-strlen: New file.
27833         * lib/unistr/u8-strlen.c: New file.
27834         * lib/unistr/u16-strlen.c: New file.
27835         * lib/unistr/u32-strlen.c: New file.
27836         * lib/unistr/u-strlen.h: New file.
27837
27838         * modules/unistr/u8-strmblen: New file.
27839         * modules/unistr/u16-strmblen: New file.
27840         * modules/unistr/u32-strmblen: New file.
27841         * lib/unistr/u8-strmblen.c: New file.
27842         * lib/unistr/u16-strmblen.c: New file.
27843         * lib/unistr/u32-strmblen.c: New file.
27844
27845         * modules/unistr/u8-strmbtouc: New file.
27846         * modules/unistr/u16-strmbtouc: New file.
27847         * modules/unistr/u32-strmbtouc: New file.
27848         * lib/unistr/u8-strmbtouc.c: New file.
27849         * lib/unistr/u16-strmbtouc.c: New file.
27850         * lib/unistr/u32-strmbtouc.c: New file.
27851
27852         * modules/unistr/u8-strncat: New file.
27853         * modules/unistr/u16-strncat: New file.
27854         * modules/unistr/u32-strncat: New file.
27855         * lib/unistr/u8-strncat.c: New file.
27856         * lib/unistr/u16-strncat.c: New file.
27857         * lib/unistr/u32-strncat.c: New file.
27858         * lib/unistr/u-strncat.h: New file.
27859
27860         * modules/unistr/u8-strncmp: New file.
27861         * modules/unistr/u16-strncmp: New file.
27862         * modules/unistr/u32-strncmp: New file.
27863         * lib/unistr/u8-strncmp.c: New file.
27864         * lib/unistr/u16-strncmp.c: New file.
27865         * lib/unistr/u32-strncmp.c: New file.
27866
27867         * modules/unistr/u8-strncpy: New file.
27868         * modules/unistr/u16-strncpy: New file.
27869         * modules/unistr/u32-strncpy: New file.
27870         * lib/unistr/u8-strncpy.c: New file.
27871         * lib/unistr/u16-strncpy.c: New file.
27872         * lib/unistr/u32-strncpy.c: New file.
27873         * lib/unistr/u-strncpy.h: New file.
27874
27875         * modules/unistr/u8-strnlen: New file.
27876         * modules/unistr/u16-strnlen: New file.
27877         * modules/unistr/u32-strnlen: New file.
27878         * lib/unistr/u8-strnlen.c: New file.
27879         * lib/unistr/u16-strnlen.c: New file.
27880         * lib/unistr/u32-strnlen.c: New file.
27881         * lib/unistr/u-strnlen.h: New file.
27882
27883         * modules/unistr/u8-strpbrk: New file.
27884         * modules/unistr/u16-strpbrk: New file.
27885         * modules/unistr/u32-strpbrk: New file.
27886         * lib/unistr/u8-strpbrk.c: New file.
27887         * lib/unistr/u16-strpbrk.c: New file.
27888         * lib/unistr/u32-strpbrk.c: New file.
27889         * lib/unistr/u-strpbrk.h: New file.
27890
27891         * modules/unistr/u8-strrchr: New file.
27892         * modules/unistr/u16-strrchr: New file.
27893         * modules/unistr/u32-strrchr: New file.
27894         * lib/unistr/u8-strrchr.c: New file.
27895         * lib/unistr/u16-strrchr.c: New file.
27896         * lib/unistr/u32-strrchr.c: New file.
27897
27898         * modules/unistr/u8-strspn: New file.
27899         * modules/unistr/u16-strspn: New file.
27900         * modules/unistr/u32-strspn: New file.
27901         * lib/unistr/u8-strspn.c: New file.
27902         * lib/unistr/u16-strspn.c: New file.
27903         * lib/unistr/u32-strspn.c: New file.
27904         * lib/unistr/u-strspn.h: New file.
27905
27906         * modules/unistr/u8-strstr: New file.
27907         * modules/unistr/u16-strstr: New file.
27908         * modules/unistr/u32-strstr: New file.
27909         * lib/unistr/u8-strstr.c: New file.
27910         * lib/unistr/u16-strstr.c: New file.
27911         * lib/unistr/u32-strstr.c: New file.
27912         * lib/unistr/u-strstr.h: New file.
27913
27914         * modules/unistr/u8-strtok: New file.
27915         * modules/unistr/u16-strtok: New file.
27916         * modules/unistr/u32-strtok: New file.
27917         * lib/unistr/u8-strtok.c: New file.
27918         * lib/unistr/u16-strtok.c: New file.
27919         * lib/unistr/u32-strtok.c: New file.
27920         * lib/unistr/u-strtok.h: New file.
27921
27922         * modules/unistr/u8-uctomb: New file.
27923         * modules/unistr/u16-uctomb: New file.
27924         * modules/unistr/u32-uctomb: New file.
27925         * lib/unistr/u8-uctomb.c: New file.
27926         * lib/unistr/u16-uctomb.c: New file.
27927         * lib/unistr/u32-uctomb.c: New file.
27928
27929         * MODULES.html.sh (Unicode string functions): Add the new modules.
27930
27931 2007-01-08  Bruno Haible  <bruno@clisp.org>
27932
27933         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
27934         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
27935         subdirectories.
27936
27937 2007-01-08  Karl Berry  <karl@gnu.org>
27938
27939         * doc/error.texi: mention that main() fns must set program_name
27940         when progname is used.
27941
27942 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
27943
27944         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
27945         WCTYPE_H is empty, for the benefit of builds from non-distclean
27946         directories.  Problem reported by Eric Blake in
27947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
27948
27949 2007-01-08  Bruno Haible  <bruno@clisp.org>
27950
27951         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
27952         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
27953         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
27954         PROVIDE_CANONICALIZE_FILENAME_MODE.
27955         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
27956
27957 2007-01-08  Bruno Haible  <bruno@clisp.org>
27958
27959         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
27960         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
27961         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
27962         * lib/fts.c: Likewise.
27963         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
27964
27965 2006-12-25  Bruno Haible  <bruno@clisp.org>
27966
27967         * modules/utf8-ucs4-safe: New file.
27968         * lib/utf8-ucs4-safe.h: New file.
27969         * lib/unistr/utf8-ucs4-safe.c: New file.
27970
27971         * modules/utf16-ucs4-safe: New file.
27972         * lib/utf16-ucs4-safe.h: New file.
27973         * lib/unistr/utf16-ucs4-safe.c: New file.
27974
27975         * MODULES.html.sh (Unicode string functions): Add the new modules.
27976
27977 2007-01-08  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
27980         (Depends-on): Add unitypes.
27981         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
27982         (u8_mbtouc_aux): Move out to separate file.
27983         (u8_mbtouc): Use ucs4_t, uint8_t types.
27984         * lib/unistr/utf8-ucs4.c: New file.
27985
27986         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
27987         (Depends-on): Add unitypes.
27988         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
27989         (u16_mbtouc_aux): Move out to separate file.
27990         (u16_mbtouc): Use ucs4_t, uint16_t types.
27991         * lib/unistr/utf16-ucs4.c: New file.
27992
27993         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
27994         (Depends-on): Add unitypes.
27995         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
27996         (u8_uctomb_aux): Move out to separate file.
27997         (u8_uctomb): Use ucs4_t, uint8_t types.
27998         * lib/unistr/ucs4-utf8.c: New file.
27999
28000         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
28001         (Depends-on): Add unitypes.
28002         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
28003         (u16_uctomb_aux): Move out to separate file.
28004         (u16_uctomb): Use ucs4_t, uint16_t types.
28005         * lib/unistr/ucs4-utf16.c: New file.
28006
28007 2006-12-25  Bruno Haible  <bruno@clisp.org>
28008
28009         * modules/unitypes: New file.
28010         * lib/unitypes.h: New file.
28011         * MODULES.html.sh (func_all_modules): New section "Unicode string
28012         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
28013         this section. Add unitypes.
28014
28015 2007-01-08  Bruno Haible  <bruno@clisp.org>
28016
28017         Avoid variable names that conflict with those from libtool.
28018         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
28019         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
28020         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
28021         library_names_spec to acl_library_names_spec, hardcode_* to
28022         acl_hardcode_*.
28023         Reported by Ralf Wildenhues.
28024
28025 2007-01-08  Bruno Haible  <bruno@clisp.org>
28026
28027         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
28028         definition.
28029         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
28030         definition.
28031         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
28032         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
28033         definition.
28034         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
28035         definition.
28036         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
28037         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
28038         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
28039         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
28040         definition.
28041         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
28042         definition.
28043         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
28044         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
28045         GC_USE_<algorithm>.
28046         * lib/gc-libgcrypt.c: Likewise.
28047         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
28048         * modules/gc-arctwo (configure.ac): Likewise.
28049         * modules/gc-des (configure.ac): Likewise.
28050         * modules/gc-hmac-md5 (configure.ac): Likewise.
28051         * modules/gc-hmac-sha1 (configure.ac): Likewise.
28052         * modules/gc-md2 (configure.ac): Likewise.
28053         * modules/gc-md4 (configure.ac): Likewise.
28054         * modules/gc-md5 (configure.ac): Likewise.
28055         * modules/gc-random (configure.ac): Likewise.
28056         * modules/gc-rijndael (configure.ac): Likewise.
28057         * modules/gc-sha1 (configure.ac): Likewise.
28058
28059 2007-01-08  Bruno Haible  <bruno@clisp.org>
28060
28061         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
28062         macro definition.
28063         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
28064         definition.
28065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
28066         definition.
28067         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
28068         * modules/fcntl-safer (configure.ac): Likewise.
28069         * modules/fopen-safer (configure.ac): Likewise.
28070         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
28071         GNULIB_FWRITEERROR macro definition.
28072
28073 2007-01-08  Bruno Haible  <bruno@clisp.org>
28074
28075         * m4/gnulib-common.m4: New file.
28076         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
28077         (func_get_filelist): Add m4/gnulib-common.m4.
28078
28079 2007-01-08  Bruno Haible  <bruno@clisp.org>
28080
28081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
28082         command.
28083
28084 2007-01-08  Jim Meyering  <jim@meyering.net>
28085
28086         Use a more robust test for a "can't happen" condition.
28087         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
28088         narrowed the st_size value.  Presuming the "can't happen" condition
28089         is true, that narrowing could conceivably convert an invalid st_size
28090         value into a valid one.  Instead, use a change based on Matthew
28091         Woehlke's original patch.
28092
28093         Slight readability improvement: use an assert-like macro
28094         in place of literal "abort ()" uses.
28095         * lib/fts.c (fts_assert): Define.
28096         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
28097         Use this macro instead of a bare 'abort'.
28098
28099 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28100
28101         Don't worry about using IRIX 5.3's wctype.h broken definitions;
28102         simply work around them.
28103         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
28104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
28105         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
28106         declaring.
28107         Don't bother to define as macros, since the standard doesn't require it.
28108         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
28109         longer worry about IRIX 5.3.
28110         (HAVE_WCTYPE_CTMP_BUG): Remove.
28111
28112 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28113
28114         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
28115         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
28116         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28117         Problems reported by Georg Schwarz for IRIX 5.3.
28118
28119         * gnulib-tool (autoconf_minversion): Take the maximum version number
28120         found, not the minimum.  Problem reported by James Youngman.
28121
28122 2007-01-03  Karl Berry  <karl@gnu.org>
28123
28124         * doc/error.texi: new file, explaining interaction with progname.
28125         * doc/gnulib.texi: include it.  Update copyright.
28126
28127 2007-01-03  Simon Josefsson  <simon@josefsson.org>
28128
28129         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
28130         AC_CANONICAL_HOST, to improve autobuild outputs.
28131
28132 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
28133             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28134
28135         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
28136         sockets, server sockets, and other file descriptors.  Count errors
28137         to compute the return value.  Reorder the code a bit to be easier
28138         to follow.  Don't set event bits that were not requested (except
28139         POLLERR and POLLHUP).
28140
28141 2007-01-01  Bruno Haible  <bruno@clisp.org>
28142
28143         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
28144
28145 2007-01-03  Jim Meyering  <jim@meyering.net>
28146
28147         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
28148
28149 2007-01-02  Bruno Haible  <bruno@clisp.org>
28150
28151         * modules/settime (Include): Require timespec.h.
28152         * modules/nanosleep (Include): Likewise.
28153
28154 2007-01-01  Bruno Haible  <bruno@clisp.org>
28155
28156         * gnulib-tool (func_emit_copyright_notice): Bump year.
28157         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
28158
28159 2007-01-01  Bruno Haible  <bruno@clisp.org>
28160
28161         Improve support for OpenBSD.
28162         * build-aux/config.rpath (libname_spec): Export.
28163         (library_names_spec): New variable. Export.
28164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
28165         library_names_spec from the config.rpath output. Locate shared library
28166         through the name pattern in library_names_spec.
28167
28168 2007-01-01  Eric Blake  <ebb9@byu.net>
28169
28170         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
28171
28172 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28173
28174         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
28175         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
28176         assume the C locale, and avoid an "eval" that could cause trouble.
28177         Problem with SORT reported by Bob Proulx.
28178
28179         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
28180         Define.  Trivial patch from Henning Nielsen Lund, originally
28181         sent to bug-grep@gnu.org today.
28182
28183 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28184
28185         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
28186         struct stat.  Problem reported by Henning Nielsen Lund.
28187         * lib/acl.c: Include acl.h first, to check interface.  Don't
28188         bother to include sys/types.h and sys/stat.h again.
28189
28190 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28191
28192         Import the following change from libc; problem reported by
28193         Sven Verdoolaege.
28194
28195         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
28196
28197         [BZ #1373]
28198         * lib/argp.h: Remove __NTH for __argp_usage inline function.
28199
28200 2006-12-28  Jim Meyering  <jim@meyering.net>
28201
28202         * build-aux/announce-gen: Do not assume that the package
28203         builds any of tar.gz, tar.bz2, and .xdelta files.
28204         Suggestion from Simon Josefsson.
28205
28206 2006-12-28  Simon Josefsson  <simon@josefsson.org>
28207
28208         * modules/announce-gen: New file.
28209
28210 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28211
28212         * lib/mbchar.h: Just include <wctype.h>; the wctype module
28213         handles its gotchas now.
28214         * lib/mbswidth.c: Likewise.
28215         * lib/wcwidth.h: Likewise.
28216         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
28217         and iswcntrl; the wctype module does this stuff now.
28218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28220         * modules/mbchar (Depends-on): Add wctype.
28221         * modules/mbswidth (Depends-on): Likewise.
28222         * modules/wcwidth (Depends-on): Likewise.
28223
28224 2006-12-27  Eric Blake  <ebb9@byu.net>
28225
28226         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
28227         module uses more than what <wctype.h> is required to provide.
28228
28229 2006-12-26  Eric Blake  <ebb9@byu.net>
28230
28231         * gnulib-tool (sed_extract_prog): Avoid space-tab.
28232
28233 2006-12-26  Eric Blake  <ebb9@byu.net>
28234
28235         * modules/absolute-header: New module.
28236         * modules/fcntl (Depends-on): Depend on it.
28237         * modules/inttypes (Depends-on): Likewise.
28238         * modules/stdint (Depends-on): Likewise.
28239         * modules/sys_stat (Depends-on): Likewise.
28240         * modules/wctype (Depends-on): Likewise.
28241         * MODULES.html.sh (Support for building libraries and
28242         executables): Document it.
28243
28244 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28245
28246         * gnulib-tool (SED): Remove, undoing previous change.
28247         The problem was that it broke coreutils on Solaris, because
28248         "sed --posix" leaked into a makefile.
28249         (sed): New alias, if 'alias' and GNU sed.
28250
28251 2006-12-24  Jim Meyering  <jim@meyering.net>
28252
28253         Work around an fchownat bug in glibc-2.4:
28254         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
28255         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
28256         in spite of the -P option.
28257         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
28258         New macros.
28259         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
28260         * modules/openat (Files): Add lib/fchownat.c.
28261         * lib/openat.c (fchownat): Don't define here.  Move to...
28262         * lib/fchownat.c: ...this new file.
28263
28264 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28265
28266         Fix bug reported by Bruno Haible in
28267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
28268         where quotearg.c didn't compile on Mac OS X 10.2 because it
28269         lacks <wchar.h> and wint_t.
28270         * lib/wctype_.h (__wctype_wint_t): New type.
28271         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
28272         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
28273         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
28274         Arg is now of type __wctype_wint_t, not wint_t.
28275         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
28276         substitute HAVE_WINT_T.
28277         * modules/wctype (Files): Add m4/wint_t.m4.
28278         (wctype.h): Substitute HAVE_WINT_T.
28279
28280 2006-12-23  Bruno Haible  <bruno@clisp.org>
28281
28282         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
28283
28284 2006-12-23  Bruno Haible  <bruno@clisp.org>
28285
28286         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
28287         S_ISLNK.
28288         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
28289         mingw.
28290
28291 2006-12-22  Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/copy-file.c: Include acl.h.
28294         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
28295         Close the file descriptors only after being done with copy_acl.
28296         * modules/copy-file (Depends-on): Add acl.
28297
28298 2006-12-22  Bruno Haible  <bruno@clisp.org>
28299
28300         * gnulib-tool (SED): New variable.
28301         Use $SED instead of sed everywhere.
28302
28303 2006-12-22  Bruno Haible  <bruno@clisp.org>
28304
28305         * modules/no-c++: New file.
28306         * m4/no-c++.m4: New file.
28307         * MODULES.html.sh (Support for building libraries and executables):
28308         Add no-c++.
28309
28310 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28311
28312         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28313         Include <limits.h>, and use its INT_MAX to rewrite the
28314         j loop so that it does not overflow 'int'.  Problem reported by
28315         Ralf Wildenhues in
28316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
28317         Play it safe by shifting left by 1 rather than multiplying by 2,
28318         as GCC is less likely to optimize this away when the value
28319         is signed (when it assumes overflow leads to undefined behavior).
28320         Also, don't assume time_t uses two's complement.
28321
28322 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         * MODULES.html.sh: New module wctype.
28325         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
28326         * lib/fnmatch.c: Don't bother to include <wchar.h> before
28327         <wctype.h>, since the new wctype module should fix this.
28328         * lib/quotearg.c: Include <wctype.h> unconditionally, since
28329         the wctype module should arrange for it.
28330         * lib/regex_internal.h: Likewise.
28331         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
28332         since the wctype module should handle this now.
28333         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
28334         * modules/fnmatch (Depends-on): Add wctype.
28335         * modules/quotearg (Depends-on): Likewise.
28336         * modules/regex (Depends-on): Likewise.
28337
28338 2006-12-19  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/strdup.h [C++]: Wrap definitions in extern "C".
28341         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
28342
28343 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28344
28345         * modules/savewd (Depends-on): Fix dependency on fcntl.
28346
28347 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
28350         conforms to C99, rather than relying on the user's environment
28351         setting of STDINT_H.
28352
28353 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28354         and Eric Blake  <ebb9@byu.net>
28355
28356         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
28357         This is more consistent with the other defines here.
28358         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
28359         Port to z/OS.  Problem reported by Paul Gilmartin.
28360         Change local vars to use gl_ prefix rather than ac_.
28361         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
28362         with other defines.
28363         * modules/double-slash-root: New module.
28364         * modules/dirname (Files): Remove m4/double-slash-root.m4.
28365         (Depends-on): Add double-slash-root.
28366         * MODULES.html.sh (File system functions): Mention new module.
28367
28368 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
28369
28370         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
28371         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
28372         This is for the benefit of gzip, which doesn't do i18n.
28373
28374 2006-12-12  Jim Meyering  <jim@meyering.net>
28375
28376         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
28377         Reported by Andreas Schwab <schwab@suse.de>.
28378
28379 2006-12-12  Bruno Haible  <bruno@clisp.org>
28380
28381         Merge these changes.
28382         2006-09-05  Bruno Haible  <bruno@clisp.org>
28383         * lib/iconvme.c (iconv_string): No need to save and restore errno when
28384         iconv_alloc succeeded.
28385         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
28386         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
28387         test for " && dest " at the end - dest is always != NULL there. Call
28388         iconv with 4xNULL arguments initially, to reset the state. Call iconv
28389         with 2xNULL arguments, also to flush the state storage. Handle the
28390         IRIX iconv behaviour. Realloc the final result, to throw away unused
28391         memory.
28392
28393 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
28394
28395         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
28396         and fchmodat unconditionally, since glibc 2.4 has them.
28397         Problem reported by Arkadiusz Miskiewicz.
28398
28399 2006-12-10  Bruno Haible  <bruno@clisp.org>
28400
28401         * gnulib-tool (func_import): Show the include files only for those
28402         modules that are copied and specified.
28403         Reported by Karl Berry.
28404
28405 2006-12-08  Jim Meyering  <jim@meyering.net>
28406
28407         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
28408         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
28409
28410         * build-aux/announce-gen: Add two new options, both optional:
28411         --bootstrap-tools=TOOL_LIST
28412               a comma-separated list of tools, e.g.,
28413               autoconf,automake,bison,gnulib
28414         --gnulib-snapshot-date=DATE
28415               if gnulib is in the bootstrap tool list,
28416               then report this as the snapshot date.
28417               If not specified, use the current date/time.
28418               If you specify a date here, be sure it's UTC.
28419
28420 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28421
28422         * tests/test-argp-2.sh: Fix test to match actual output.
28423         (func_compare): Fix sed script to be portable.
28424
28425 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28426
28427         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
28428         workaround for this case.  It is not autoconfigured now; offhand
28429         it's hard to see how to autoconfigure it.
28430
28431 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28432
28433         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
28434         a directory that is about to be chowned.  Such a directory's
28435         initial file permissions should permit the owner only and this
28436         should not be changed until after the chown, since the group and
28437         other bits would be incorrect if they granted permission before
28438         the chown.
28439
28440         Fix porting problem for iswctype reported by Georg Schwarz in:
28441         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
28442         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
28443         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
28444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
28445         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28446
28447 2006-12-03  Jim Meyering  <jim@meyering.net>
28448
28449         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
28450         p->fts_statp may not yet be defined.
28451         (fts_read): Instead, set it in the caller, once p->fts_statp is
28452         sure to be defined, and corresponds to a top-level directory.
28453         This bug made du -x fail.  Here's the coreutils test case:
28454         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
28455         Reported by Mike Frysinger.
28456
28457 2006-12-01  Jim Meyering  <jim@meyering.net>
28458
28459         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
28460         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
28461         Reported by Simon Josefsson.
28462
28463 2006-11-30  Jim Meyering  <jim@meyering.net>
28464
28465         * m4/warning.m4: Use the all-permissive copyright notice
28466         recommended by RMS (rather than LGPL).
28467         * m4/vararrays.m4: Likewise.
28468         * m4/flexmember.m4: Likewise.
28469
28470 2006-11-29  Bruno Haible  <bruno@clisp.org>
28471
28472         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28473         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
28474         using +=.
28475         Reported by Simon Josefsson <simon@josefsson.org>.
28476
28477 2006-11-28  James Youngman <jay@gnu.org>
28478
28479         * README: Advise users that they might find the bug-gnulib@gnu.org
28480         and autotools-announce@gnu.org mailing lists useful.
28481
28482 2006-11-28  Bruno Haible  <bruno@clisp.org>
28483
28484         * m4/ptrdiff_max.m4: Remove file.
28485
28486 2006-11-21  Bruno Haible  <bruno@clisp.org>
28487
28488         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
28489         _AC_COMPUTE_INT.
28490         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28491         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
28492         _AC_COMPUTE_INT.
28493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28494         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
28495         _AC_COMPUTE_INT.
28496         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28497
28498 2006-11-28  Jim Meyering  <jim@meyering.net>
28499
28500         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
28501         warning from "gcc -Wshadow" about shadowing the builtin.
28502
28503 2006-11-27  Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
28506         _AC_COMPUTE_INT.
28507         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28508
28509 2006-11-27  Bruno Haible  <bruno@clisp.org>
28510             Paul Eggert  <eggert@cs.ucla.edu>
28511
28512         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
28513
28514 2006-11-26  Bruno Haible  <bruno@clisp.org>
28515
28516         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28517         noinst_LTLIBRARIES.
28518
28519 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28520             Bruno Haible  <bruno@clisp.org>
28521
28522         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
28523         if compiling with "gcc -ansi".
28524
28525 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         Fix some incompatibilities with gcc -ansi -pedantic.
28528         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
28529         if compiling pedantically with GCC, unless it's C99 or later.
28530         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
28531         it mishandles gcc -ansi -pedantic as well.
28532         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
28533         if gcc -pedantic.
28534         * lib/regexec.c (check_node_accept_bytes): Don't use auto
28535         initializers for struct if -pedantic, unless it's C99 or later.
28536
28537 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
28538
28539         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
28540         Don't close an fd more than once. Identical atimes indicate
28541         success, not failure.
28542
28543 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
28544
28545         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
28546
28547 2006-11-23  Jim Meyering  <jim@meyering.net>
28548
28549         * build-aux/announce-gen: New file.  From coreutils.
28550
28551 2006-11-22  Jim Meyering  <jim@meyering.net>
28552
28553         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
28554         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
28555         (fts_read): Use a temporary to narrow the overused st_size member
28556         before using it in a switch statement.  Reported by Matthew Woehlke.
28557
28558         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
28559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28560
28561 2006-11-20  Bruno Haible  <bruno@clisp.org>
28562
28563         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
28564         changequote instead of pairs of brackets.
28565         Reported by Andreas Schwab <schwab@suse.de>.
28566
28567 2006-11-21  Jim Meyering  <jim@meyering.net>
28568
28569         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
28570         so as to remain compatible with older compilers.
28571         Patch from Michael Deutschmann.
28572
28573 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28574
28575         * MODULES.html.sh (File system functions): Add openat.
28576
28577         * lib/openat.h (rpl_fstatat): New macro, if
28578         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
28579         (fstatat): Define to rpl_fstatat under the same conditions,
28580         unless COMPILING_FSTATAT.
28581         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
28582         seems to have the bug.
28583         * lib/fstatat.c: New file.
28584         * modules/openat (Files): Add it.
28585
28586 2006-11-20  Bruno Haible  <bruno@clisp.org>
28587
28588         * Makefile: New file.
28589
28590 2006-11-20  Jim Meyering  <jim@meyering.net>
28591
28592         The beginnings of syntax-related checks for gnulib.
28593         * lib/Makefile: New file.
28594         * lib/t-idcache: New script.  Ensure that the two halves of
28595         idcache.c stay in sync.
28596
28597         * lib/idcache.c: Adjust comments in user- and group- portions to
28598         be more accurate, and to be consistent with one another.
28599
28600 2006-11-20  Jim Meyering  <jim@meyering.net>
28601
28602         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
28603         continue using the flexible array member (thus, this module performs
28604         half as many malloc calls), with the addition that...
28605         (getgroup, getuser): Consistently record a non-match via an empty
28606         "name" string, and map an empty string match to a NULL return value.
28607         * modules/idcache (Depends-on): Re-add flexmember.
28608
28609         * lib/idcache.c (getuser): Remove all uses of the register keyword.
28610         (getuidbyname, getgroup, getgidbyname): Likewise.
28611
28612         Use cleaner syntax: NULL rather than 0.
28613         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
28614
28615 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28616
28617         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
28618         It mishandled the case where the group was missing.
28619         Problem reported by Greg Schafer.
28620         * modules/idcache: Likewise.
28621
28622 2006-11-18  Jim Meyering  <jim@meyering.net>
28623
28624         * check-module (%exempt_header): Add exception for some
28625         conditionally-included headers.
28626
28627         * modules/i-ring (Depends-on): Add verify.
28628         (License): Change to LGPL.
28629
28630 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28631
28632         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
28633         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
28634         and inttostr.h.  Use snprintf rather than uinttostr, so that
28635         LGPLed code doesn't depend on GPLed.
28636
28637 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         * modules/inline (License): Change from GPL to LGPL.
28640
28641 2006-11-17  Jim Meyering  <jim@meyering.net>
28642
28643         * modules/d-type (License): Switch to LGPL.
28644
28645 2006-11-15  Bruno Haible  <bruno@clisp.org>
28646
28647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
28648
28649 2006-11-15  Eric Blake  <ebb9@byu.net>
28650
28651         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
28652         the module dependency.
28653
28654 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28655             Bruno Haible  <bruno@clisp.org>
28656
28657         * gnulib-tool (func_create_testdir): Add license consistency check.
28658
28659 2006-11-15  Eric Blake  <ebb9@byu.net>
28660
28661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
28662         random "(cached)" in configure output.
28663
28664 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28665
28666         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
28667         test for conforming inttypes.h is both announced and cached.
28668
28669         * MODULES.html.sh (seen_modules, seen_files): New variables.
28670         (func_module): Rewrite to use a few less gnulib-tool and sed
28671         invocations.  Avoid a couple of quadratic algorithms for ...
28672         (missed_modules, missed_files): ... these, with ...
28673         (func_append, func_tmpdir): ... these new functions, from
28674         gnulib-tool.  Analogously, install traps for cleanup.
28675
28676         * tests/test-gc.c (main): Remove unused variables.
28677         * tests/test-read-file.c: Include stdlib.h, for 'free'.
28678
28679 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28680
28681         * modules/inttostr (License): Change to LGPL.
28682
28683 2006-11-14  Eric Blake  <ebb9@byu.net>
28684
28685         * modules/tempname (License): Change to LGPL.
28686
28687 2006-11-14  Eric Blake  <ebb9@byu.net>
28688
28689         * doc/functions.texi (Function Portability): *printf functions on
28690         Cygwin now understand all POSIX size specifiers.
28691
28692 2006-11-14  Bruno Haible  <bruno@clisp.org>
28693
28694         * modules/c-ctype (License): Change to LGPL.
28695
28696 2006-11-12  Bruno Haible  <bruno@clisp.org>
28697
28698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28699         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
28700         for GNOME libraries, for which the include files are installed in
28701         subdirectories of $prefix/include.
28702
28703 2006-11-12  Bruno Haible  <bruno@clisp.org>
28704
28705         * m4/lib-link.m4: Require at least autoconf-2.54.
28706         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
28707         name to underscores for the --with option.
28708
28709 2006-11-13  Bruno Haible  <bruno@clisp.org>
28710
28711         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
28712         the tests directory.
28713         Reported by Ralf Wildenhues.
28714
28715 2006-11-13  Bruno Haible  <bruno@clisp.org>
28716
28717         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
28718         (func_emit_initmacro_end): Undo the override here.
28719         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
28720         Works around the famous automake error in coreutils.
28721
28722 2006-11-13  Eric Blake  <ebb9@byu.net>
28723
28724         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
28725         element, not its node.
28726
28727 2006-11-12  Bruno Haible  <bruno@clisp.org>
28728
28729         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
28730         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
28731
28732 2006-11-12  Bruno Haible  <bruno@clisp.org>
28733
28734         * gnulib-tool: New option --local-symlink.
28735         (func_usage): Document it.
28736         (lsymbolic): New variable.
28737         (func_import, func_create_testdir): If --symlink was not specified,
28738         test whether --local-symlink was specified and the file comes from
28739         the local_gnulib_dir.
28740
28741 2006-11-12  Bruno Haible  <bruno@clisp.org>
28742
28743         * gnulib-tool (func_ln): New function.
28744         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
28745
28746 2006-11-12  Bruno Haible  <bruno@clisp.org>
28747
28748         Finish support for source files in subdirectories.
28749         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
28750         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
28751         AUTOMAKE_OPTIONS.
28752         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
28753
28754 2006-11-12  Bruno Haible  <bruno@clisp.org>
28755
28756         * gnulib-tool (func_get_automake_snippet): Synthesize also an
28757         EXTRA_lib_SOURCES augmentation.
28758         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
28759
28760 2006-11-12  Jim Meyering  <jim@meyering.net>
28761
28762         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
28763         file descriptors.  This also averts a failure on systems with
28764         native openat support when a traversed directory lacks "x" access.
28765         * lib/fts_.h: Include "i-ring.h"
28766         (struct FTS) [fts_fd_ring]: New member.
28767         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
28768         (FCHDIR): Add parentheses.
28769         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
28770         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
28771         When descending, rather than simply closing the previous
28772         fts_cwd_fd value, push that file descriptor onto the ring.
28773         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
28774         (fts_open): Initialize the new fd_ring member.
28775         (fts_close): Clear the ring.
28776         (fts_safe_changedir): When possible, use our new fd_ring to skip
28777         the diropen and fstat and dev/ino comparison that would normally
28778         accompany a virtual `chdir ("..")'.
28779
28780         * modules/fts (Depends-on): Add i-ring.
28781         * modules/i-ring: New module.
28782         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
28783         * m4/i-ring.m4: New file.
28784
28785 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28786
28787         * gnulib-tool (func_create_testdir): Fix replacement of
28788         `build-aux' in configure.ac.  Run autotools in gltests
28789         subdirectory.
28790         (func_create_testdir, func_create_megatestdir, test): There is
28791         no need for '--force' in most autotool invocations in a new
28792         tree.  Actually fail the whole test if any of the tools, or the
28793         configure or make stages fail.
28794
28795         Sync from Automake.
28796         * build-aux/gnupload: Revert last change.  Add pointer to upload
28797         instructions of the GNU Maintenance Instructions.
28798         Suggestion by Karl Berry.
28799
28800 2006-11-10  Jim Meyering  <jim@meyering.net>
28801
28802         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
28803
28804 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28805
28806         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
28807         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
28808         (bind_textdomain_codeset) [! ENABLE_NLS]:
28809         Evaluate all the arguments.  That way, callers get compatible behavior
28810         if the arguments have side effects.  Also, it avoids some GCC
28811         diagnostics in some cases; Joel E. Denny reported problems when Bison
28812         was configured with --enable-gcc-warnigs.
28813
28814 2006-11-10  Jim Meyering  <jim@meyering.net>
28815
28816         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
28817         relevant options in CFLAGS (like -O, -fno-inline) are taken into
28818         account.
28819
28820 2006-11-10  Jim Meyering  <jim@meyering.net>
28821
28822         * modules/inline: New file/module.
28823         * modules/xalloc (Files): Remove m4/inline.m4.
28824         (Depends-on): Add inline, instead.
28825         * modules/oset: Likewise.
28826         * modules/list: Likewise.
28827
28828 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
28831         Problem reported by Matthew Woehlke.
28832
28833 2006-11-09  Bruno Haible  <bruno@clisp.org>
28834
28835         * lib/tempname.c (gen_tempname): Remove variant that invokes
28836         __gen_tempname.
28837         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
28838         __gen_tempname.
28839
28840 2006-11-08  Bruno Haible  <bruno@clisp.org>
28841
28842         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
28843         to 'yes' instead of 'cross-compiling'.
28844
28845 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28846
28847         * lib/quotearg.h (quotearg_free): New decl.
28848         * lib/quotearg.c (quotearg_free): New function.
28849         (slot0, nslots, slotvec0, slotvec):
28850         Now file-scope so that quotearg_free can get at them.
28851
28852 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28853
28854         Sync from Automake.
28855         * build-aux/gnupload: Add missing 'gnu' to example URL.
28856         Report by Karl Berry.
28857
28858 2006-11-08  Bruno Haible  <bruno@clisp.org>
28859
28860         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
28861         Suggested by Paul Eggert.
28862
28863 2006-11-08  Jim Meyering  <jim@meyering.net>
28864
28865         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
28866         It's already included if !_LIBC.
28867         (fts_safe_changedir): Add a comment.
28868
28869 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28870
28871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
28872         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
28873         Matthew Woehlke.
28874
28875         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
28876         definitions up, to avoid colliding with change below.
28877         (static_inline) [HAVE_INLINE]: New macro.
28878         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
28879         Provide extern decls when !HAVE_INLINE.  Do not define unless
28880         static_inline is defined, either by us or by xmalloc.c.  Use
28881         static_inline rather than static inline.
28882         (XCALLOC): Optimize sizeof(T) = 1 case.
28883         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
28884
28885 2006-11-07  Bruno Haible  <bruno@clisp.org>
28886
28887         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
28888         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
28889         AC_C_INLINE.
28890         * modules/xalloc (Files): Add m4/inline.m4.
28891
28892 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28893
28894         * README: Fix typo.
28895         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
28896         (Miscellanous Notes): ...from this.
28897
28898 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28899
28900         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28901         Mention that offsetof should be used instead of sizeof.
28902         From Bruno Haible.
28903
28904 2006-11-07  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
28907
28908 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28909
28910         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
28911         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
28912         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
28913         (gl_tree_add_before, gl_tree_add_after):
28914         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
28915         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
28916         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
28917         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
28918         (gl_linked_add_after, gl_linked_add_at): Likewise.
28919         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
28920         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
28921         (gl_tree_add_before, gl_tree_add_after): Likewise.
28922         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
28923         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
28924         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28925
28926 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28927
28928         * lib/gl_oset.h: Use C comment style, not C++ comment style.
28929
28930 2006-11-06  Bruno Haible  <bruno@clisp.org>
28931
28932         * m4/inline.m4: New file.
28933         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
28934         * modules/list (Files): Add m4/inline.m4.
28935         * modules/oset (Files): Likewise.
28936
28937 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28938
28939         * lib/idcache.c: Include <stddef.h>, for offsetof.
28940         (struct userid.name): Change from char * to a flexible array member.
28941         All uses changed.
28942         * modules/idcache (Depends-on): Add flexmember.
28943
28944         * MODULES.html.sh (Core language properties): New module flexmember.
28945         * modules/flexmember, m4/flexmember.m4: New files.
28946
28947         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
28948         inline functions that are identical with the old xnmalloc_inline,
28949         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
28950         that we can avoid some unnecessary integer multiplications and
28951         divisions in the common case where the element size is known at
28952         compile time.
28953         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
28954         needed.
28955         (xnboundedmalloc): Remove.
28956         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
28957         arguments, for consistency with rest of this header.
28958         (xcharalloc): Rewrite using XNMALLOC.
28959         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
28960         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
28961         versions have been moved to lib/xalloc.h and renamed to be the
28962         non-*_inline versions.
28963         (xmalloc, xrealloc): Implement without reference to the xnmalloc
28964         and xnrealloc functions, since those functions are now inline and
28965         now call us.
28966         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
28967         renaming described above.
28968         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
28969         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
28970         captures the dependency in AC_C_INLINE.
28971
28972         New module canonicalize-lgpl, proposed by Charles Wilson in
28973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
28974         with a few small changes afterwards.
28975         * MODULES.html.sh (File system functions): New module
28976         canonicalize-lgpl.
28977         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
28978         and canonicalize_file_name.
28979         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
28980         * modules/canonicalize-lgpl: New files.
28981
28982 2006-11-05  Bruno Haible  <bruno@clisp.org>
28983
28984         * gnulib-tool (func_import, func_create_testdir): Create directories
28985         also for files in subdirectories of lib/.
28986
28987 2006-11-05  Bruno Haible  <bruno@clisp.org>
28988
28989         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
28990         ANSI C compliant.
28991
28992 2006-11-03  Bruno Haible  <bruno@clisp.org>
28993
28994         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
28995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
28996         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
28997         (xnboundedmalloc): New inline function.
28998         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
28999         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
29000         xmalloc.
29001         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
29002         xmalloc.
29003         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
29004         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
29005         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
29006         xmalloc.
29007         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29008         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
29009         xmalloc.
29010         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
29011         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29012         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
29013         xmalloc.
29014         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29015         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
29016         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29017         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
29018         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
29019         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
29020         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
29021
29022 2006-11-03  Bruno Haible  <bruno@clisp.org>
29023
29024         * lib/c-ctype.h [C++]: Define functions without name mangling.
29025         * lib/fwriteerror.h [C++]: Likewise.
29026         * lib/gcd.h [C++]: Likewise.
29027         * lib/linebreak.h [C++]: Likewise.
29028
29029 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29030
29031         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
29032         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
29033         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
29034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29035         Check for functions and headers just once.
29036         Check for declaration of canonicalize_file_name.
29037         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
29038
29039 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29040
29041         * gnulib-tool (func_import): Fix typo in actioncmd.
29042
29043 2006-11-02  Bruno Haible  <bruno@clisp.org>
29044
29045         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
29046         newline sequence in the Makefile.am snippet as a space, like "make"
29047         does.
29048         Reported by Roger Persson <perrog@gmail.com>.
29049
29050 2006-11-01  Bruno Haible  <bruno@clisp.org>
29051
29052         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
29053         already declared in <string.h>.
29054         * lib/strcase.h (strncasecmp): Don't declare it if yes.
29055
29056 2006-11-01  Bruno Haible  <bruno@clisp.org>
29057
29058         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
29059         * lib/strcase.h: Include <string.h>.
29060         (strcasecmp): Define to rpl_strcasecmp here.
29061
29062 2006-11-01  Bruno Haible  <bruno@clisp.org>
29063
29064         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
29065
29066 2006-11-01  Eric Blake  <ebb9@byu.net>
29067
29068         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
29069
29070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
29071
29072 2006-10-29  Bruno Haible  <bruno@clisp.org>
29073
29074         Make it compile in C++ mode.
29075         * lib/full-write.c (full_rw): Add a cast.
29076
29077 2006-11-01  Bruno Haible  <bruno@clisp.org>
29078
29079         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
29080         be POSIX compliant.
29081         Reported by Roger Persson <perrog@gmail.com>.
29082
29083 2006-11-01  Eric Blake  <ebb9@byu.net>
29084
29085         * lib/getopt_.h: Fix comments.
29086
29087 2006-10-31  Eric Blake  <ebb9@byu.net>
29088
29089         * modules/tmpdir (Depends-on): Add sys_stat.
29090         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
29091         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
29092         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
29093         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29094         tempname.
29095
29096 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29097
29098         Avoid some C++ diagnostics reported by Bruno Haible.
29099         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
29100         xmalloc.
29101         (quotearg_alloc): Use xcharalloc rather than xmalloc.
29102         (struct slotvec): Move to top level.
29103         (quotearg_n_options): Rewrite to avoid xmalloc.
29104         * lib/xalloc.h (xcharalloc): New function.
29105         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
29106         [defined __cplusplus]: Add function template that provides result
29107         type propagation.  This part of the change is from Bruno Haible.
29108
29109 2006-10-29  Bruno Haible  <bruno@clisp.org>
29110
29111         Make it compile in C++ mode.
29112         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
29113         * lib/strnlen1.c (strnlen1): Cast memchr result.
29114         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
29115         * lib/clean-temp.c (string_equals, string_hash): Add casts.
29116         (create_temp_dir): Rename local variable 'template'.
29117         (compile_csharp_using_sscli): Add cast.
29118         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
29119         * lib/findprog.c (find_in_path): Likewise.
29120         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
29121         * lib/wait-process.c (register_slave_subprocess): Likewise.
29122
29123 2006-10-22  Bruno Haible  <bruno@clisp.org>
29124
29125         * modules/tsearch: New file.
29126         * lib/tsearch.h: New file.
29127         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
29128         * m4/tsearch.m4: New file.
29129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
29130
29131 2006-10-29  Eric Blake  <ebb9@byu.net>
29132
29133         * lib/arcfour.c: Assume config.h.
29134         * lib/arctwo.c: Likewise.
29135         * lib/base64.c: Likewise.
29136         * lib/check-version.c: Likewise.
29137         * lib/crc.c: Likewise.
29138         * lib/des.c: Likewise.
29139         * lib/gc-gnulib.c: Likewise.
29140         * lib/gc-libgcrypt.c: Likewise.
29141         * lib/gc-pbkdf2-sha1.c: Likewise.
29142         * lib/getaddrinfo.c: Likewise.
29143         * lib/getdelim.c: Likewise.
29144         * lib/getline.c: Likewise.
29145         * lib/hmac-md5.c: Likewise.
29146         * lib/hmac-sha1.c: Likewise.
29147         * lib/iconvme.c: Likewise.
29148         * lib/md2.c: Likewise.
29149         * lib/md4.c: Likewise.
29150         * lib/memxor.c: Likewise.
29151         * lib/read-file.c: Likewise.
29152         * lib/readline.c: Likewise.
29153         * lib/rijndael-alg-fst.c: Likewise.
29154         * lib/rijndael-api-fst.c: Likewise.
29155         * lib/xgetdomainname.c: Likewise.
29156
29157 2006-10-28  Eric Blake  <ebb9@byu.net>
29158
29159         * lib/xstrndup.c: Assume config.h.
29160
29161 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29162
29163         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
29164         stat-macros.h is now for our own macros, whereas stat_h is for
29165         macros in the <sys/stat.h> name space.
29166         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
29167         (STAT_MACROS_H): Remove.
29168         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
29169         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
29170         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
29171         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
29172         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
29173         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
29174         Move these macros to ...
29175         * lib/stat_.h: here.  Don't include stat-macros.h.
29176         * lib/canonicalize.c: Don't include stat-macros.h.
29177         * lib/chown.c: Likewise.
29178         * lib/euidaccess.c: Likewise.
29179         * lib/file-type.c: Likewise.
29180         * lib/filemode.c: Likewise.
29181         * lib/glob.c: Likewise.
29182         * lib/isapipe.c: Likewise.
29183         * lib/lchown.c: Likewise.
29184         * lib/lstat.c: Likewise.
29185         * lib/mkdir-p.c: Likewise.
29186         * lib/rmdir.c: Likewise.
29187         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
29188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29189         unless mkdir isn't declared, to speed up 'configure'.
29190         Always create sys/stat.h, since it's unlikely any real sys/stat.h
29191         would define all the S_* symbols.
29192         * modules/canonicalize (Depends-on):
29193         Depend on sys_stat, not stat-macros.
29194         * modules/chown: Likewise.
29195         * modules/euidaccess: Likewise.
29196         * modules/filemode: Likewise.
29197         * modules/file-type: Likewise.
29198         * modules/glob: Likewise.
29199         * modules/isapipe: Likewise.
29200         * modules/lchown: Likewise.
29201         * modules/lstat: Likewise.
29202         * modules/mkancesdirs: Likewise.
29203         * modules/rmdir: Likewise.
29204         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
29205         * modules/modechange: Likewise.
29206         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
29207         (configure.ac): Remove gl_STAT_MACROS.
29208         * modules/sys_stat (Depends-on): Remove stat-macros.
29209
29210 2006-10-27  Bruno Haible  <bruno@clisp.org>
29211
29212         * m4/signed.m4: Remove file.
29213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
29214         invocation.
29215         * modules/vasnprintf (Files): Remove m4/signed.m4.
29216
29217 2006-10-27  Bruno Haible  <bruno@clisp.org>
29218
29219         Update to GNU gettext 0.16.
29220         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
29221         m4/inttypes-h.m4, m4/signed.m4.
29222         * m4/gettext.m4: Update to GNU gettext 0.16.
29223         * m4/intl.m4: New file, from GNU gettext.
29224         * m4/intldir.m4: New file, from GNU gettext.
29225         * config/srclist.txt: Update
29226
29227 2006-10-27  Eric Blake  <ebb9@byu.net>
29228
29229         * MODULES.html.sh: Document tempname.
29230         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
29231         dependencies.
29232         (Files): Move lib/tempname.c...
29233         * modules/tempname: ...to this new module.
29234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
29235         (gl_PREREQ_TEMPNAME): Move...
29236         * m4/tempname.m4: ...to this new file.
29237         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
29238         * modules/sys_stat (Depends-on): Add stat-macros.
29239         * lib/stat_.h (includes): Pick up stat macros.
29240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
29241         if stat macros are broken.
29242         * lib/tempname.c (includes): No need to include "stat-macros.h".
29243         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
29244         (direxists, __path_search) [!_LIBC]: Don't compile these in
29245         gnulib; the tmpdir module covers that.
29246         * lib/tempname.h: New file.
29247
29248 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29249
29250         * COPYING: Explain how gnulib-tool converts licence headers.
29251         Almost all wording by Eric Blake.
29252
29253 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29254
29255         * lib/mbchar.h (is_basic_table): Make read-only.
29256         * lib/mbchar.c (is_basic_table): Likewise.
29257         Reported by John Darrington.
29258
29259 2006-10-25  Bruno Haible  <bruno@clisp.org>
29260
29261         * lib/progname.h (set_program_name): Undefine before defining.
29262
29263 2006-10-25  Bruno Haible  <bruno@clisp.org>
29264
29265         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
29266         false for non-gcc C++ compilers.
29267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29268
29269 2006-10-24  Bruno Haible  <bruno@clisp.org>
29270
29271         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
29272         iconv implementations like Irix iconv.
29273
29274 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29275
29276         * modules/vararrays: New file.
29277         * m4/vararrays.m4: New file, taken from diffutils.
29278         * MODULES.html.sh: New module vararrays.
29279
29280 2006-10-24  Karl Berry  <karl@gnu.org>
29281
29282         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
29283         Don't call GNU Unix.
29284
29285 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29286
29287         * users.txt: Add Libtool.
29288
29289         Sync from Libtool:
29290
29291         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29292
29293         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
29294         to gnulib's policy of including config.h unconditionally.
29295
29296 2006-10-24  Bruno Haible  <bruno@clisp.org>
29297
29298         * modules/wcwidth (Files): Add m4/wint_t.m4.
29299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
29300         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
29301
29302 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29303
29304         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
29305         to pacify GCC with some -W flags enabled.  Problem reported by
29306         Bruno Haible.
29307
29308 2006-10-24  Jim Meyering  <jim@meyering.net>
29309
29310         * MODULES.html.sh: Remove uinttostr.  It's not a module.
29311         Reported by Karl Berry.
29312
29313 2006-10-23  Bruno Haible  <bruno@clisp.org>
29314
29315         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
29316
29317 2006-10-24  Bruno Haible  <bruno@clisp.org>
29318
29319         * lib/gl_list.h: Use C comment style, not C++ comment style.
29320
29321 2006-10-23  Eric Blake  <ebb9@byu.net>
29322
29323         * lib/getaddrinfo.c (includes): Add missing include.
29324
29325 2006-10-23  Bruno Haible  <bruno@clisp.org>
29326             Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         Ability to rename obstack_free.
29329         * lib/obstack.h (__obstack_free): New macro. Declare instead of
29330         obstack_free.
29331         (obstack_free): Invoke the __obstack_free macro.
29332         * lib/obstack.c (obstack_free): Use __obstack_free macro.
29333
29334 2006-10-23  Bruno Haible  <bruno@clisp.org>
29335             Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
29338         __argc, __argv from the declaration. (They are defined as macros on
29339         mingw.)
29340
29341 2006-10-22  Bruno Haible  <bruno@clisp.org>
29342
29343         * doc/gnulib-intro.texi: New file.
29344         * doc/gnulib.texi: Include it.
29345
29346 2006-10-21  Bruno Haible  <bruno@clisp.org>
29347
29348         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
29349         "Introduction", "Miscellanous Notes", "Particular Modules".
29350
29351 2006-10-21  Bruno Haible  <bruno@clisp.org>
29352
29353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29354         Change mostlyclean-local rule to avoid sh syntax error from bash
29355         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
29356
29357 2006-10-23  Jim Meyering  <jim@meyering.net>
29358
29359         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
29360         in place of snprintf.
29361
29362         * modules/inttostr (Files): Add lib/uinttostr.c.
29363         * lib/uinttostr.c (inttostr): New file/function.
29364         * lib/inttostr.h (uinttostr): Declare.
29365         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
29366         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
29367         Add uinttostr.
29368         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
29369
29370 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         * lib/canonicalize.c (ELOOP): Define if not already defined.
29373         Problem reported by Bruno Haible in
29374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
29375
29376 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29377
29378         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
29379         Problem reported by Perry Smith and Ville Laurikari.
29380
29381         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
29382         uses.
29383
29384 2006-10-19  Bruno Haible  <bruno@clisp.org>
29385
29386         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
29387         for mingw.
29388
29389 2006-10-19  Bruno Haible  <bruno@clisp.org>
29390
29391         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
29392         Needed for mingw.
29393
29394 2006-10-19  Bruno Haible  <bruno@clisp.org>
29395
29396         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
29397
29398 2006-10-19  Bruno Haible  <bruno@clisp.org>
29399
29400         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
29401         it.
29402
29403 2006-10-19  Bruno Haible  <bruno@clisp.org>
29404
29405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
29406         invocation.
29407
29408 2006-10-19  Bruno Haible  <bruno@clisp.org>
29409
29410         * gnulib-tool (func_create_testdir): Don't include ftruncate and
29411         mountlist by default.
29412
29413 2006-10-16  Bruno Haible  <bruno@clisp.org>
29414
29415         * lib/c-strstr.c: Include c-strstr.h.
29416
29417 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29418
29419         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
29420         in a slash.
29421
29422 2006-10-18  Bruno Haible  <bruno@clisp.org>
29423
29424         * lib/lock.h [C++]: Wrap definitions in extern "C".
29425
29426 2006-10-18  Bruno Haible  <bruno@clisp.org>
29427
29428         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
29429         gl_LIBOBJS list.
29430
29431 2006-10-18  Bruno Haible  <bruno@clisp.org>
29432
29433         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
29434
29435 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
29436
29437         * lib/xstrtol.h: Include gettext.h.
29438         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
29439         Problem reported by Eric Blake.
29440         * modules/xstrtol (Depends-on): Add gettext-h.
29441
29442 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
29443
29444         * lib/strftime.c (advance): New macro.
29445         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
29446         incomplete type, so you can't add 0 to it.  Problem and patch
29447         reported by Eelco Dolstra for dietlibc.
29448
29449 2006-10-18  Jim Meyering  <jim@meyering.net>
29450
29451         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
29452         type for a local, and rename it: s/up/user_proc/.
29453
29454 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29455
29456         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
29457         READ_UTMP_USER_PROCESS.
29458         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
29459
29460 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29461
29462         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
29463         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
29464
29465 2006-10-17  Eric Blake  <ebb9@byu.net>
29466
29467         * lib/sigprocmask.c (sigprocmask): Fix typo.
29468
29469         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
29470
29471         * modules/clean-temp (Makefile.am): Don't add to make output...
29472         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
29473         config.h.
29474
29475 2006-10-17  Bruno Haible  <bruno@clisp.org>
29476
29477         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
29478         differently if DEFAULT_TEXT_DOMAIN is set.
29479
29480 2006-10-16  Bruno Haible  <bruno@clisp.org>
29481
29482         * lib/clean-temp.c: Include fwriteerror.h.
29483
29484 2006-10-16  Bruno Haible  <bruno@clisp.org>
29485
29486         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
29487
29488 2006-10-16  Bruno Haible  <bruno@clisp.org>
29489
29490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
29491         * lib/sigprocmask.h: Include <sys/types.h>.
29492         (sigset_t): Use the system's definition if present.
29493
29494 2006-10-17  Eric Blake  <ebb9@byu.net>
29495
29496         * lib/xvasprintf.c (includes): Assume config.h.
29497         * lib/xasprintf.c (includes): Likewise.
29498
29499 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29500
29501         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
29502         at least as wide as intmax_t.
29503
29504 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
29505
29506         (Imported from Automake.)
29507         * build-aux/gnupload: Update to version 1.1 of directive file.
29508
29509 2006-10-16  Eric Blake  <ebb9@byu.net>
29510
29511         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
29512         match Automake 1.10a.
29513
29514 2006-10-14  Bruno Haible  <bruno@clisp.org>
29515
29516         * modules/sigprocmask: New file.
29517         * lib/sigprocmask.h: New file.
29518         * lib/sigprocmask.c: New file.
29519         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
29520         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
29521         request sigprocmask.o.
29522         (gl_PREREQ_SIGPROCMASK): New macro.
29523         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
29524         (Depends-on): Add sigprocmask.
29525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
29526         gt_SIGNALBLOCKING. Test for 'raise' only once.
29527         * lib/fatal-signal.c: Include sigprocmask.h.
29528         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
29529         unblock_fatal_signals): Define always.
29530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29531         sigprocmask.
29532
29533 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29534
29535         Sync from Automake.
29536         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
29537         which incorrectly sets the mode of an existing destination
29538         directory.  In some cases the unpatched install-sh could do the
29539         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
29540         system.  We hope this is rare in practice, but it's clearly worth
29541         fixing.  Problem reported by Alex Unleashed in
29542         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
29543         Also, don't bother to check for -m bugs unless we're using -m;
29544         suggested by Stepan Kasal.
29545
29546 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29547
29548         Sync from Automake.
29549         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
29550         `-c' flag, so they appear at the same position as in %FASTDEP%
29551         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
29552         which ignores unknown options only after the first non-option.
29553         Bug report against M4 by Nelson H. F. Beebe.
29554
29555 2006-10-13  Jim Meyering  <jim@meyering.net>
29556
29557         Fix a bug in yesterday's change.
29558         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
29559         p->fts_statp->st_dev would be used uninitialized.
29560         Ensures that we always call fts_stat on the very first entry.
29561         Miklos Szeredi reported that find -xdev stopped working.
29562
29563 2006-10-12  Bruno Haible  <bruno@clisp.org>
29564
29565         * gnulib-tool (func_get_automake_snippet): Append an automatically
29566         computed EXTRA_DIST augmentation.
29567         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
29568         * modules/alloca-opt (Makefile.am): Likewise.
29569         * modules/allocsa (Makefile.am): Likewise.
29570         * modules/arcfour (Makefile.am): Likewise.
29571         * modules/arctwo (Makefile.am): Likewise.
29572         * modules/argmatch (Makefile.am): Likewise.
29573         * modules/argz (Makefile.am): Likewise.
29574         * modules/atexit (Makefile.am): Likewise.
29575         * modules/backupfile (Makefile.am): Likewise.
29576         * modules/byteswap (Makefile.am): Likewise.
29577         * modules/c-strtod (Makefile.am): Likewise.
29578         * modules/c-strtold (Makefile.am): Likewise.
29579         * modules/calloc (Makefile.am): Likewise.
29580         * modules/canon-host (Makefile.am): Likewise.
29581         * modules/canonicalize (Makefile.am): Likewise.
29582         * modules/chdir-long (Makefile.am): Likewise.
29583         * modules/chdir-safer (Makefile.am): Likewise.
29584         * modules/check-version (Makefile.am): Likewise.
29585         * modules/chown (Makefile.am): Likewise.
29586         * modules/cloexec (Makefile.am): Likewise.
29587         * modules/close-stream (Makefile.am): Likewise.
29588         * modules/closeout (Makefile.am): Likewise.
29589         * modules/crc (Makefile.am): Likewise.
29590         * modules/csharpexec (Makefile.am): Likewise.
29591         * modules/cycle-check (Makefile.am): Likewise.
29592         * modules/des (Makefile.am): Likewise.
29593         * modules/dev-ino (Makefile.am): Likewise.
29594         * modules/dirfd (Makefile.am): Likewise.
29595         * modules/dirname (Makefile.am): Likewise.
29596         * modules/dup2 (Makefile.am): Likewise.
29597         * modules/eealloc (Makefile.am): Likewise.
29598         * modules/error (Makefile.am): Likewise.
29599         * modules/euidaccess (Makefile.am): Likewise.
29600         * modules/exclude (Makefile.am): Likewise.
29601         * modules/exitfail (Makefile.am): Likewise.
29602         * modules/fcntl-safer (Makefile.am): Likewise.
29603         * modules/fcntl (Makefile.am): Likewise.
29604         * modules/file-type (Makefile.am): Likewise.
29605         * modules/fileblocks (Makefile.am): Likewise.
29606         * modules/filemode (Makefile.am): Likewise.
29607         * modules/filenamecat (Makefile.am): Likewise.
29608         * modules/fnmatch (Makefile.am): Likewise.
29609         * modules/fopen-safer (Makefile.am): Likewise.
29610         * modules/fpending (Makefile.am): Likewise.
29611         * modules/fprintftime (Makefile.am): Likewise.
29612         * modules/free (Makefile.am): Likewise.
29613         * modules/fsusage (Makefile.am): Likewise.
29614         * modules/ftruncate (Makefile.am): Likewise.
29615         * modules/fts (Makefile.am): Likewise.
29616         * modules/gc-arcfour (Makefile.am): Likewise.
29617         * modules/gc-des (Makefile.am): Likewise.
29618         * modules/gc-hmac-md5 (Makefile.am): Likewise.
29619         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
29620         * modules/gc-md4 (Makefile.am): Likewise.
29621         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
29622         * modules/gc-sha1 (Makefile.am): Likewise.
29623         * modules/gc (Makefile.am): Likewise.
29624         * modules/getaddrinfo (Makefile.am): Likewise.
29625         * modules/getcwd (Makefile.am): Likewise.
29626         * modules/getdelim (Makefile.am): Likewise.
29627         * modules/getdomainname (Makefile.am): Likewise.
29628         * modules/getgroups (Makefile.am): Likewise.
29629         * modules/gethostname (Makefile.am): Likewise.
29630         * modules/gethrxtime (Makefile.am): Likewise.
29631         * modules/getline (Makefile.am): Likewise.
29632         * modules/getloadavg (Makefile.am): Likewise.
29633         * modules/getlogin_r (Makefile.am): Likewise.
29634         * modules/getndelim2 (Makefile.am): Likewise.
29635         * modules/getopt (Makefile.am): Likewise.
29636         * modules/getpagesize (Makefile.am): Likewise.
29637         * modules/getpass-gnu (Makefile.am): Likewise.
29638         * modules/getpass (Makefile.am): Likewise.
29639         * modules/getsubopt (Makefile.am): Likewise.
29640         * modules/gettime (Makefile.am): Likewise.
29641         * modules/gettimeofday (Makefile.am): Likewise.
29642         * modules/getugroups (Makefile.am): Likewise.
29643         * modules/getusershell (Makefile.am): Likewise.
29644         * modules/glob (Makefile.am): Likewise.
29645         * modules/group-member (Makefile.am): Likewise.
29646         * modules/hard-locale (Makefile.am): Likewise.
29647         * modules/hash (Makefile.am): Likewise.
29648         * modules/hmac-md5 (Makefile.am): Likewise.
29649         * modules/hmac-sha1 (Makefile.am): Likewise.
29650         * modules/human (Makefile.am): Likewise.
29651         * modules/idcache (Makefile.am): Likewise.
29652         * modules/imaxabs (Makefile.am): Likewise.
29653         * modules/imaxdiv (Makefile.am): Likewise.
29654         * modules/inet_ntop (Makefile.am): Likewise.
29655         * modules/inet_pton (Makefile.am): Likewise.
29656         * modules/intprops (Makefile.am): Likewise.
29657         * modules/inttostr (Makefile.am): Likewise.
29658         * modules/inttypes (Makefile.am): Likewise.
29659         * modules/isapipe (Makefile.am): Likewise.
29660         * modules/javaversion (Makefile.am): Likewise.
29661         * modules/lchmod (Makefile.am): Likewise.
29662         * modules/lchown (Makefile.am): Likewise.
29663         * modules/localcharset (Makefile.am): Likewise.
29664         * modules/long-options (Makefile.am): Likewise.
29665         * modules/lstat (Makefile.am): Likewise.
29666         * modules/malloc (Makefile.am): Likewise.
29667         * modules/mathl (Makefile.am): Likewise.
29668         * modules/mbchar (Makefile.am): Likewise.
29669         * modules/md2 (Makefile.am): Likewise.
29670         * modules/md4 (Makefile.am): Likewise.
29671         * modules/md5 (Makefile.am): Likewise.
29672         * modules/memcasecmp (Makefile.am): Likewise.
29673         * modules/memchr (Makefile.am): Likewise.
29674         * modules/memcmp (Makefile.am): Likewise.
29675         * modules/memcoll (Makefile.am): Likewise.
29676         * modules/memcpy (Makefile.am): Likewise.
29677         * modules/memmem (Makefile.am): Likewise.
29678         * modules/memmove (Makefile.am): Likewise.
29679         * modules/mempcpy (Makefile.am): Likewise.
29680         * modules/memrchr (Makefile.am): Likewise.
29681         * modules/memset (Makefile.am): Likewise.
29682         * modules/memxor (Makefile.am): Likewise.
29683         * modules/mkancesdirs (Makefile.am): Likewise.
29684         * modules/mkdir-p (Makefile.am): Likewise.
29685         * modules/mkdir (Makefile.am): Likewise.
29686         * modules/mkdtemp (Makefile.am): Likewise.
29687         * modules/mkstemp (Makefile.am): Likewise.
29688         * modules/mktime (Makefile.am): Likewise.
29689         * modules/modechange (Makefile.am): Likewise.
29690         * modules/mountlist (Makefile.am): Likewise.
29691         * modules/nanosleep (Makefile.am): Likewise.
29692         * modules/obstack (Makefile.am): Likewise.
29693         * modules/openat (Makefile.am): Likewise.
29694         * modules/pagealign_alloc (Makefile.am): Likewise.
29695         * modules/pathmax (Makefile.am): Likewise.
29696         * modules/physmem (Makefile.am): Likewise.
29697         * modules/poll (Makefile.am): Likewise.
29698         * modules/posixtm (Makefile.am): Likewise.
29699         * modules/posixver (Makefile.am): Likewise.
29700         * modules/putenv (Makefile.am): Likewise.
29701         * modules/quote (Makefile.am): Likewise.
29702         * modules/quotearg (Makefile.am): Likewise.
29703         * modules/raise (Makefile.am): Likewise.
29704         * modules/read-file (Makefile.am): Likewise.
29705         * modules/readline (Makefile.am): Likewise.
29706         * modules/readlink (Makefile.am): Likewise.
29707         * modules/readtokens (Makefile.am): Likewise.
29708         * modules/readutmp (Makefile.am): Likewise.
29709         * modules/realloc (Makefile.am): Likewise.
29710         * modules/regex (Makefile.am): Likewise.
29711         * modules/rename-dest-slash (Makefile.am): Likewise.
29712         * modules/rename (Makefile.am): Likewise.
29713         * modules/rijndael (Makefile.am): Likewise.
29714         * modules/rmdir (Makefile.am): Likewise.
29715         * modules/rpmatch (Makefile.am): Likewise.
29716         * modules/safe-read (Makefile.am): Likewise.
29717         * modules/safe-write (Makefile.am): Likewise.
29718         * modules/same-inode (Makefile.am): Likewise.
29719         * modules/same (Makefile.am): Likewise.
29720         * modules/save-cwd (Makefile.am): Likewise.
29721         * modules/savedir (Makefile.am): Likewise.
29722         * modules/setenv (Makefile.am): Likewise.
29723         * modules/settime (Makefile.am): Likewise.
29724         * modules/sha1 (Makefile.am): Likewise.
29725         * modules/sig2str (Makefile.am): Likewise.
29726         * modules/snprintf (Makefile.am): Likewise.
29727         * modules/stat-macros (Makefile.am): Likewise.
29728         * modules/stat-time (Makefile.am): Likewise.
29729         * modules/stdbool (Makefile.am): Likewise.
29730         * modules/stdint (Makefile.am): Likewise.
29731         * modules/stdlib-safer (Makefile.am): Likewise.
29732         * modules/stpcpy (Makefile.am): Likewise.
29733         * modules/stpncpy (Makefile.am): Likewise.
29734         * modules/strcase (Makefile.am): Likewise.
29735         * modules/strcasestr (Makefile.am): Likewise.
29736         * modules/strchrnul (Makefile.am): Likewise.
29737         * modules/strcspn (Makefile.am): Likewise.
29738         * modules/strdup (Makefile.am): Likewise.
29739         * modules/strerror (Makefile.am): Likewise.
29740         * modules/strftime (Makefile.am): Likewise.
29741         * modules/strndup (Makefile.am): Likewise.
29742         * modules/strnlen (Makefile.am): Likewise.
29743         * modules/strpbrk (Makefile.am): Likewise.
29744         * modules/strsep (Makefile.am): Likewise.
29745         * modules/strstr (Makefile.am): Likewise.
29746         * modules/strtod (Makefile.am): Likewise.
29747         * modules/strtoimax (Makefile.am): Likewise.
29748         * modules/strtok_r (Makefile.am): Likewise.
29749         * modules/strtol (Makefile.am): Likewise.
29750         * modules/strtoll (Makefile.am): Likewise.
29751         * modules/strtoul (Makefile.am): Likewise.
29752         * modules/strtoull (Makefile.am): Likewise.
29753         * modules/strtoumax (Makefile.am): Likewise.
29754         * modules/strverscmp (Makefile.am): Likewise.
29755         * modules/sys_socket (Makefile.am): Likewise.
29756         * modules/sys_stat (Makefile.am): Likewise.
29757         * modules/sysexits (Makefile.am): Likewise.
29758         * modules/time_r (Makefile.am): Likewise.
29759         * modules/timegm (Makefile.am): Likewise.
29760         * modules/timespec (Makefile.am): Likewise.
29761         * modules/tmpfile-safer (Makefile.am): Likewise.
29762         * modules/trim (Makefile.am): Likewise.
29763         * modules/unistd-safer (Makefile.am): Likewise.
29764         * modules/unlinkdir (Makefile.am): Likewise.
29765         * modules/unlocked-io (Makefile.am): Likewise.
29766         * modules/userspec (Makefile.am): Likewise.
29767         * modules/utime (Makefile.am): Likewise.
29768         * modules/utimecmp (Makefile.am): Likewise.
29769         * modules/utimens (Makefile.am): Likewise.
29770         * modules/vasnprintf (Makefile.am): Likewise.
29771         * modules/vasprintf (Makefile.am): Likewise.
29772         * modules/vsnprintf (Makefile.am): Likewise.
29773         * modules/xalloc (Makefile.am): Likewise.
29774         * modules/xgetcwd (Makefile.am): Likewise.
29775         * modules/xnanosleep (Makefile.am): Likewise.
29776         * modules/xreadlink (Makefile.am): Likewise.
29777         * modules/xstrtod (Makefile.am): Likewise.
29778         * modules/xstrtol (Makefile.am): Likewise.
29779         * modules/xstrtold (Makefile.am): Likewise.
29780         * modules/yesno (Makefile.am): Likewise.
29781         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
29782
29783 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29784
29785         * modules/error (Makefile.am): Distribute files through
29786         EXTRA_DIST, not lib_SOURCES.
29787
29788 2006-10-12  Eric Blake  <ebb9@byu.net>
29789
29790         * modules/error (Makefile.am): Distribute files in /lib.
29791         * modules/obstack (Makefile.am): Likewise.
29792
29793 2006-10-12  Bruno Haible  <bruno@clisp.org>
29794
29795         * modules/acl (Makefile.am): Distribute all files in lib/ through
29796         EXTRA_DIST.
29797         * modules/arcfour (Makefile.am): Likewise.
29798         * modules/arctwo (Makefile.am): Likewise.
29799         * modules/argmatch (Makefile.am): Likewise.
29800         * modules/argz (Makefile.am): Likewise.
29801         * modules/atexit (Makefile.am): Likewise.
29802         * modules/backupfile (Makefile.am): Likewise.
29803         * modules/c-strtod (Makefile.am): Likewise.
29804         * modules/c-strtold (Makefile.am): Likewise.
29805         * modules/calloc (Makefile.am): Likewise.
29806         * modules/canon-host (Makefile.am): Likewise.
29807         * modules/canonicalize (Makefile.am): Likewise.
29808         * modules/chdir-long (Makefile.am): Likewise.
29809         * modules/chdir-safer (Makefile.am): Likewise.
29810         * modules/check-version (Makefile.am): Likewise.
29811         * modules/chown (Makefile.am): Likewise.
29812         * modules/cloexec (Makefile.am): Likewise.
29813         * modules/close-stream (Makefile.am): Likewise.
29814         * modules/closeout (Makefile.am): Likewise.
29815         * modules/crc (Makefile.am): Likewise.
29816         * modules/cycle-check (Makefile.am): Likewise.
29817         * modules/des (Makefile.am): Likewise.
29818         * modules/dirfd (Makefile.am): Likewise.
29819         * modules/dirname (Makefile.am): Likewise.
29820         * modules/dup2 (Makefile.am): Likewise.
29821         * modules/euidaccess (Makefile.am): Likewise.
29822         * modules/exclude (Makefile.am): Likewise.
29823         * modules/exitfail (Makefile.am): Likewise.
29824         * modules/fcntl-safer (Makefile.am): Likewise.
29825         * modules/file-type (Makefile.am): Likewise.
29826         * modules/fileblocks (Makefile.am): Likewise.
29827         * modules/filemode (Makefile.am): Likewise.
29828         * modules/filenamecat (Makefile.am): Likewise.
29829         * modules/fnmatch (Makefile.am): Likewise.
29830         * modules/fopen-safer (Makefile.am): Likewise.
29831         * modules/fpending (Makefile.am): Likewise.
29832         * modules/fprintftime (Makefile.am): Likewise.
29833         * modules/free (Makefile.am): Likewise.
29834         * modules/fsusage (Makefile.am): Likewise.
29835         * modules/ftruncate (Makefile.am): Likewise.
29836         * modules/fts (Makefile.am): Likewise.
29837         * modules/gc (Makefile.am): Likewise.
29838         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
29839         * modules/getaddrinfo (Makefile.am): Likewise.
29840         * modules/getcwd (Makefile.am): Likewise.
29841         * modules/getdelim (Makefile.am): Likewise.
29842         * modules/getdomainname (Makefile.am): Likewise.
29843         * modules/getgroups (Makefile.am): Likewise.
29844         * modules/gethostname (Makefile.am): Likewise.
29845         * modules/gethrxtime (Makefile.am): Likewise.
29846         * modules/getline (Makefile.am): Likewise.
29847         * modules/getloadavg (Makefile.am): Likewise.
29848         * modules/getlogin_r (Makefile.am): Likewise.
29849         * modules/getopt (Makefile.am): Likewise.
29850         * modules/getpass (Makefile.am): Likewise.
29851         * modules/getpass-gnu (Makefile.am): Likewise.
29852         * modules/getsubopt (Makefile.am): Likewise.
29853         * modules/gettime (Makefile.am): Likewise.
29854         * modules/gettimeofday (Makefile.am): Likewise.
29855         * modules/getugroups (Makefile.am): Likewise.
29856         * modules/getusershell (Makefile.am): Likewise.
29857         * modules/glob (Makefile.am): Likewise.
29858         * modules/group-member (Makefile.am): Likewise.
29859         * modules/hard-locale (Makefile.am): Likewise.
29860         * modules/hash (Makefile.am): Likewise.
29861         * modules/hmac-md5 (Makefile.am): Likewise.
29862         * modules/hmac-sha1 (Makefile.am): Likewise.
29863         * modules/human (Makefile.am): Likewise.
29864         * modules/idcache (Makefile.am): Likewise.
29865         * modules/imaxabs (Makefile.am): Likewise.
29866         * modules/imaxdiv (Makefile.am): Likewise.
29867         * modules/inet_ntop (Makefile.am): Likewise.
29868         * modules/inet_pton (Makefile.am): Likewise.
29869         * modules/inttostr (Makefile.am): Likewise.
29870         * modules/isapipe (Makefile.am): Likewise.
29871         * modules/lchown (Makefile.am): Likewise.
29872         * modules/long-options (Makefile.am): Likewise.
29873         * modules/lstat (Makefile.am): Likewise.
29874         * modules/malloc (Makefile.am): Likewise.
29875         * modules/mathl (Makefile.am): Likewise.
29876         * modules/mbchar (Makefile.am): Likewise.
29877         * modules/md2 (Makefile.am): Likewise.
29878         * modules/md4 (Makefile.am): Likewise.
29879         * modules/md5 (Makefile.am): Likewise.
29880         * modules/memcasecmp (Makefile.am): Likewise.
29881         * modules/memchr (Makefile.am): Likewise.
29882         * modules/memcmp (Makefile.am): Likewise.
29883         * modules/memcoll (Makefile.am): Likewise.
29884         * modules/memcpy (Makefile.am): Likewise.
29885         * modules/memmem (Makefile.am): Likewise.
29886         * modules/memmove (Makefile.am): Likewise.
29887         * modules/mempcpy (Makefile.am): Likewise.
29888         * modules/memrchr (Makefile.am): Likewise.
29889         * modules/memset (Makefile.am): Likewise.
29890         * modules/memxor (Makefile.am): Likewise.
29891         * modules/mkancesdirs (Makefile.am): Likewise.
29892         * modules/mkdir (Makefile.am): Likewise.
29893         * modules/mkdir-p (Makefile.am): Likewise.
29894         * modules/mkdtemp (Makefile.am): Likewise.
29895         * modules/mkstemp (Makefile.am): Likewise.
29896         * modules/mktime (Makefile.am): Likewise.
29897         * modules/modechange (Makefile.am): Likewise.
29898         * modules/mountlist (Makefile.am): Likewise.
29899         * modules/nanosleep (Makefile.am): Likewise.
29900         * modules/openat (Makefile.am): Likewise.
29901         * modules/pagealign_alloc (Makefile.am): Likewise.
29902         * modules/physmem (Makefile.am): Likewise.
29903         * modules/poll (Makefile.am): Likewise.
29904         * modules/posixtm (Makefile.am): Likewise.
29905         * modules/posixver (Makefile.am): Likewise.
29906         * modules/putenv (Makefile.am): Likewise.
29907         * modules/quote (Makefile.am): Likewise.
29908         * modules/quotearg (Makefile.am): Likewise.
29909         * modules/raise (Makefile.am): Likewise.
29910         * modules/read-file (Makefile.am): Likewise.
29911         * modules/readline (Makefile.am): Likewise.
29912         * modules/readlink (Makefile.am): Likewise.
29913         * modules/readtokens (Makefile.am): Likewise.
29914         * modules/readutmp (Makefile.am): Likewise.
29915         * modules/realloc (Makefile.am): Likewise.
29916         * modules/regex (Makefile.am): Likewise.
29917         * modules/rename (Makefile.am): Likewise.
29918         * modules/rename-dest-slash (Makefile.am): Likewise.
29919         * modules/rijndael (Makefile.am): Likewise.
29920         * modules/rmdir (Makefile.am): Likewise.
29921         * modules/rpmatch (Makefile.am): Likewise.
29922         * modules/safe-read (Makefile.am): Likewise.
29923         * modules/safe-write (Makefile.am): Likewise.
29924         * modules/same (Makefile.am): Likewise.
29925         * modules/save-cwd (Makefile.am): Likewise.
29926         * modules/savedir (Makefile.am): Likewise.
29927         * modules/setenv (Makefile.am): Likewise.
29928         * modules/settime (Makefile.am): Likewise.
29929         * modules/sha1 (Makefile.am): Likewise.
29930         * modules/sig2str (Makefile.am): Likewise.
29931         * modules/snprintf (Makefile.am): Likewise.
29932         * modules/stdlib-safer (Makefile.am): Likewise.
29933         * modules/stpcpy (Makefile.am): Likewise.
29934         * modules/stpncpy (Makefile.am): Likewise.
29935         * modules/strcase (Makefile.am): Likewise.
29936         * modules/strcasestr (Makefile.am): Likewise.
29937         * modules/strchrnul (Makefile.am): Likewise.
29938         * modules/strcspn (Makefile.am): Likewise.
29939         * modules/strdup (Makefile.am): Likewise.
29940         * modules/strerror (Makefile.am): Likewise.
29941         * modules/strftime (Makefile.am): Likewise.
29942         * modules/strndup (Makefile.am): Likewise.
29943         * modules/strnlen (Makefile.am): Likewise.
29944         * modules/strpbrk (Makefile.am): Likewise.
29945         * modules/strsep (Makefile.am): Likewise.
29946         * modules/strstr (Makefile.am): Likewise.
29947         * modules/strtod (Makefile.am): Likewise.
29948         * modules/strtoimax (Makefile.am): Likewise.
29949         * modules/strtok_r (Makefile.am): Likewise.
29950         * modules/strtol (Makefile.am): Likewise.
29951         * modules/strtoll (Makefile.am): Likewise.
29952         * modules/strtoul (Makefile.am): Likewise.
29953         * modules/strtoull (Makefile.am): Likewise.
29954         * modules/strtoumax (Makefile.am): Likewise.
29955         * modules/strverscmp (Makefile.am): Likewise.
29956         * modules/time_r (Makefile.am): Likewise.
29957         * modules/timegm (Makefile.am): Likewise.
29958         * modules/tmpfile-safer (Makefile.am): Likewise.
29959         * modules/unistd-safer (Makefile.am): Likewise.
29960         * modules/unlinkdir (Makefile.am): Likewise.
29961         * modules/userspec (Makefile.am): Likewise.
29962         * modules/utime (Makefile.am): Likewise.
29963         * modules/utimecmp (Makefile.am): Likewise.
29964         * modules/utimens (Makefile.am): Likewise.
29965         * modules/vasnprintf (Makefile.am): Likewise.
29966         * modules/vasprintf (Makefile.am): Likewise.
29967         * modules/vsnprintf (Makefile.am): Likewise.
29968         * modules/xalloc (Makefile.am): Likewise.
29969         * modules/xgetcwd (Makefile.am): Likewise.
29970         * modules/xnanosleep (Makefile.am): Likewise.
29971         * modules/xreadlink (Makefile.am): Likewise.
29972         * modules/xstrtod (Makefile.am): Likewise.
29973         * modules/xstrtol (Makefile.am): Likewise.
29974         * modules/xstrtold (Makefile.am): Likewise.
29975         * modules/yesno (Makefile.am): Likewise.
29976
29977 2006-10-12  Jim Meyering  <jim@meyering.net>
29978
29979         * m4/getloadavg.m4: Revert the change below.
29980
29981         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
29982         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
29983         fail with a symlink, which is what coreutils' ./bootstrap now
29984         creates by default.
29985
29986 2006-10-12  Bruno Haible  <bruno@clisp.org>
29987
29988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
29989         mingw.
29990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
29991         MSVC and mingw explicitly.
29992
29993 2006-10-11  Simon Josefsson  <jas@extundo.com>
29994             Bruno Haible  <bruno@clisp.org>
29995
29996         Add support for multiple gnulib-tool invocations in the scope of a
29997         single configure.ac file.
29998         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
29999         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
30000         with the same contents as the _LIBADD variable.
30001         (func_emit_initmacro_start, func_emit_initmacro_end,
30002         func_emit_initmacro_done): New functions.
30003         (func_import, func_create_testdir): Invoke them. Allow the identifiers
30004         gl_LIBOBJS and gl_LTLIBOBJS.
30005
30006 2006-10-11  Bruno Haible  <bruno@clisp.org>
30007
30008         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
30009         (func_create_testdir): Don't create po/Makefile.am, don't invoke
30010         autoreconf. Instead, invoke autopoint explicitly but move back the
30011         *.m4 files from gnulib.
30012
30013 2006-10-11  Bruno Haible  <bruno@clisp.org>
30014
30015         * gnulib-tool (func_usage): Make module names after --create-testdir
30016         optional.
30017         (func_create_testdir): If no module was specified, use nearly all
30018         modules.
30019
30020 2006-10-12  Jim Meyering  <jim@meyering.net>
30021
30022         Big performance improvement for fts-based tools that use FTS_NOSTAT.
30023         Avoid spurious inode-mismatch problems on non-POSIX file systems.
30024         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
30025         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
30026         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
30027         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
30028         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
30029         (fts_set_stat_required): New function.
30030         (fts_open): Defer the calls to fts_stat, if possible or requested.
30031         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
30032         into fts_stat itself.
30033         (fts_read): Perform any required (deferred) fts_stat call.
30034         (fts_build): Likewise, for the directory we're about to open and read.
30035         In the readdir loop, carefully decide whether each entry will require
30036         an eventual call to fts_stat, using dirent.d_type info if available.
30037         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
30038         a command line argument into this function.  Update all callers.
30039         Map a return value of FTS_DOT to FTS_D for a command line argument.
30040         * modules/fts (Depends-on): Add d-type.  Alphabetize.
30041         Thanks to Miklos Szeredi for his tenacity and for the initial
30042         bug report about "find" failing on a FUSE-based file system.
30043
30044         * lib/fts.c (fts_open): Use consistent indentation.
30045
30046 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30047
30048         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
30049         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
30050         reported by Jim Meyering.  All uses of cache variables renamed
30051         to match Autoconf's.
30052         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
30053         the other one.
30054
30055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30056         Fix misspelling in diagnostic.
30057
30058 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30059
30060         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
30061         defined.  Problem reported by Matthew Woehlke.
30062
30063         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
30064         Add support for Tandem NonStop R series.
30065         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
30066         Use new macro.
30067
30068         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
30069         (has_trailing_slash): Omit size arg; all callers changed.
30070         Omit 'inline', since it doesn't help performance and we'd
30071         need to configure it.
30072         Don't count //, ///, etc. as having a trailing slash.
30073         As a side effect, this removes a C99ism reported by Matthew Woehlke.
30074         (rpl_rename_dest_slash): On failure, use rename's errno rather
30075         than (in some cases) an incorrect or junk errno.
30076         Simplify code by removing need to compute length; this does
30077         cause it to make two passes instead of one over the file name,
30078         but it's worth it.
30079
30080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
30081         change, since Autoconf's version may no longer be appropriate now
30082         that we are using CVS Autoconf's version.  Add support for Tandem.
30083
30084 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30085             Bruno Haible  <bruno@clisp.org>
30086
30087         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
30088         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
30089         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
30090         gl_AC_TYPE_LONG_LONG.
30091
30092         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
30093         instead of HAVE_LONG_LONG.
30094         * lib/printf-args.c (printf_fetchargs): Likewise.
30095         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
30096         * lib/vasnprintf.c (VASNPRINTF): Likewise.
30097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
30098         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
30099         gl_AC_TYPE_LONG_LONG.
30100
30101 2006-10-11  Bruno Haible  <bruno@clisp.org>
30102
30103         * m4/longlong.m4: Add comments.
30104         * m4/ulonglong.m4: Likewise.
30105
30106 2006-10-10  Bruno Haible  <bruno@clisp.org>
30107
30108         Make it possible to #define stpcpy, strdup to aliases.
30109         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
30110         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
30111
30112 2006-10-10  Bruno Haible  <bruno@clisp.org>
30113
30114         Make it possible to #define gcd to an alias.
30115         * lib/gcd.c: Include config.h.
30116
30117 2006-10-10  Bruno Haible  <bruno@clisp.org>
30118
30119         Make it possible to #define c_isascii to an alias.
30120         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
30121         defined. Undefine the macros before defining them, to avoid gcc
30122         warnings.
30123         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
30124         define NO_C_CTYPE_MACROS early.
30125
30126 2006-10-10  Bruno Haible  <bruno@clisp.org>
30127
30128         Make it possible to #define set_program_name to an alias.
30129         * lib/progname.c: Don't undefine set_program_name; instead, undefine
30130         ENABLE_RELOCATABLE early.
30131
30132 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30133
30134         Port to Tandem NSK OSS, which has 64-bit signed int but at most
30135         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
30136         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
30137         More generally, don't assume that 64-bit signed int is available
30138         if unsigned int is, and vice versa.
30139         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
30140         unsigned symbols, not on their signed counterparts.
30141         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
30142         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
30143         (UINT64_C, UINTMAX_C):
30144         Likewise.
30145         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30146         unsigned counterparts.
30147         (Have_long_long, Unsigned): New macros.
30148         (Int): Renamed from INT.
30149         (strtoimax): Use the new macros.
30150         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
30151         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
30152         * modules/inttypes (inttypes.h): Substitute
30153         HAVE_UNSIGNED_LONG_LONG_INT.
30154         * modules/stdint (stdint.h): Likewise.
30155         (Files): Add m4/ulonglong.m4.
30156
30157 2006-10-10  Bruno Haible  <bruno@clisp.org>
30158
30159         Fix a gcc -Wshadow warning.
30160         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
30161         to 'bucket'.
30162         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
30163         gl_linked_indexof_from_to): Likewise.
30164         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
30165         Likewise.
30166         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
30167         Likewise.
30168         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
30169         Reported by Eric Blake.
30170
30171 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30172
30173         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
30174         for NetBSD.  Problem reported by Bruno Haible.
30175
30176 2006-10-09  Jim Meyering  <jim@meyering.net>
30177
30178         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
30179         Patch from Bruno Haible.
30180
30181 2006-10-09  Jim Meyering  <jim@meyering.net>
30182
30183         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
30184         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
30185         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
30186
30187 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30188
30189         Don't include <config.h> twice; this doesn't work in some cases,
30190         e.g., when config.h has "#define intmax_t long long int" and
30191         we include <config.h>, <inttypes.h>, <config.h> in that order.
30192         Problem reported by Matthew Woehlke in:
30193         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
30194         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
30195         * lib/fts-cycle.c: Don't include config.h.
30196         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
30197         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
30198         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
30199         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
30200         inttypes.h.
30201         * lib/xstrtoumax.c: Likewise.
30202         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
30203         __strtol and the like, so that this module is more like its siblings.
30204         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
30205         Remove; no longer needed now that we assume gnulib inttypes.h.
30206
30207 2006-10-08  Bruno Haible  <bruno@clisp.org>
30208
30209         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
30210         option.
30211
30212 2006-10-07  Jim Meyering  <jim@meyering.net>
30213
30214         * modules/inttypes (inttypes.h): Revert what seems to have been
30215         an inadvertent part of today's change: use "|", not "/" in the
30216         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
30217
30218 2006-10-07  Bruno Haible  <bruno@clisp.org>
30219
30220         * modules/sublist: New file.
30221
30222 2006-10-07  Bruno Haible  <bruno@clisp.org>
30223
30224         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
30225         * modules/argz (argz.h): Likewise.
30226         * modules/arpa_inet (arpa/inet.h): Likewise.
30227         * modules/byteswap (byteswap.h): Likewise.
30228         * modules/configmake (configmake.h): Likewise.
30229         * modules/fcntl (fcntl.h): Likewise.
30230         * modules/fnmatch (fnmatch.h): Likewise.
30231         * modules/getopt (getopt.h): Likewise.
30232         * modules/glob (glob.h): Likewise.
30233         * modules/inttypes (inttypes.h): Likewise.
30234         * modules/netinet_in (netinet/in.h): Likewise.
30235         * modules/poll (poll.h): Likewise.
30236         * modules/stdbool (stdbool.h): Likewise.
30237         * modules/stdint (stdint.h): Likewise.
30238         * modules/sys_select (sys/select.h): Likewise.
30239         * modules/sys_socket (sys/socket.h): Likewise.
30240         * modules/sys_stat (sys/stat.h): Likewise.
30241         * modules/sysexits (sysexits.h): Likewise.
30242         * modules/unistd (unistd.h): Likewise.
30243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30244         Add a "DO NOT EDIT" comment to the generated file.
30245         (func_import): Likewise for gnulib-comp.m4.
30246
30247 2006-10-07  Bruno Haible  <bruno@clisp.org>
30248
30249         * lib/gl_sublist.h: New file.
30250         * lib/gl_sublist.c: New file.
30251
30252 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
30255         name (relative to the original working directory) and the file
30256         name component (relative to the temporary working directory).  All
30257         callers changed.
30258         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
30259         * lib/mkdir-p.c (make_dir_parents): Likewise.
30260         * lib/mkdir-p.h (make_dir_parents): Likewise.
30261
30262 2006-10-06  Eric Blake  <ebb9@byu.net>
30263
30264         Define several macros for use by the clean-temp module.
30265         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
30266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
30267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
30268
30269         * lib/clean-temp.h (close_stream_temp): New declaration.
30270         * lib/clean-temp.c (includes): Pull in headers according to what
30271         other modules are in use.
30272         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
30273
30274 2006-10-06  Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
30277         instead of fopen, fwriteerror.
30278
30279 2006-10-06  Bruno Haible  <bruno@clisp.org>
30280
30281         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
30282         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
30283         int.
30284         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
30285         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
30286         Return an error indicator.
30287         Suggested by Eric Blake.
30288
30289 2006-10-06  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
30292         Reported by Eric Blake.
30293
30294 2006-10-06  Bruno Haible  <bruno@clisp.org>
30295
30296         * modules/closeout (Description): Mention stderr too.
30297
30298 2006-10-06  Bruno Haible  <bruno@clisp.org>
30299         and Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         * lib/closeout.c (close_stdout): Also close stderr.
30302         * lib/closeout.h: Update comment.
30303
30304 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30305
30306         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
30307         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
30308         * lib/dirchownmod.c: Include lchown.h.
30309         * lib/lchown.c: Don't include files that lchown.h now includes.
30310         Don't declare chown, since lchown.h now does that.
30311         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
30312         (lchown): Define to rpl_chown if lchown is declared but
30313         does not exist.  Declare using a prototype if lchown is not
30314         declared.  Add a copyright notice.
30315         * lib/mkstemp.h: Include <unistd.h>.
30316         * lib/openat.c: Include lchown.h.
30317
30318         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
30319         we now test for that separately.
30320         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
30321         rather than O_NOFOLLOW, when testing whether it's possible to
30322         avoid a race condition reliably.
30323         * lib/savewd.c (savewd_chdir): Likewise.
30324
30325         Remove macros that are no longer needed now that stdint.h is
30326         reliable.
30327         * lib/fsusage.c (UINTMAX_MAX): Remove.
30328         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
30329         * lib/utimecmp.c (SIZE_MAX): Remove.
30330
30331         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
30332
30333         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
30334         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
30335         O_NOATIME works.
30336
30337 2006-10-05  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/gl_list.h (gl_sortedlist_search_from_to,
30340         gl_sortedlist_indexof_from_to): New declarations.
30341         (gl_list_implementation): New fields sortedlist_search_from_to,
30342         sortedlist_indexof_from_to.
30343         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
30344         inline functions.
30345         * lib/gl_list.c (gl_sortedlist_search_from_to,
30346         gl_sortedlist_indexof_from_to): New functions.
30347         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
30348         function.
30349         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
30350         (gl_array_sortedlist_search_from_to): New function.
30351         (gl_array_list_implementation): Update.
30352         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
30353         function.
30354         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
30355         (gl_carray_sortedlist_search_from_to): New function.
30356         (gl_carray_list_implementation): Update.
30357         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
30358         gl_linked_sortedlist_indexof_from_to): New functions.
30359         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30360         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30361         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
30362         gl_tree_sortedlist_indexof_from_to): New functions.
30363         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30364         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30365         Update.
30366         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30367         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
30368         Update.
30369
30370 2006-10-05  Bruno Haible  <bruno@clisp.org>
30371
30372         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
30373         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
30374         (struct gl_list_implementation): Add fields search_from_to,
30375         indexof_from_to. Remove fields search, indexof.
30376         (gl_list_search): Use the search_from_to method.
30377         (gl_list_search_from, gl_list_search_from_to): New functions.
30378         (gl_list_indexof): Use the indexof_from_to method.
30379         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30380         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
30381         (gl_list_search_from, gl_list_search_from_to): New functions.
30382         (gl_list_indexof): Use the indexof_from_to method.
30383         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30384         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
30385         gl_array_indexof. Add start_index, end_index arguments.
30386         (gl_array_search_from_to): Renamed from gl_array_search. Add
30387         start_index, end_index arguments.
30388         (gl_array_remove, gl_array_list_implementation): Update.
30389         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
30390         gl_carray_indexof. Add start_index, end_index arguments.
30391         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
30392         start_index, end_index arguments.
30393         (gl_carray_remove, gl_carray_list_implementation): Update.
30394         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
30395         gl_linked_search. Add start_index, end_index arguments.
30396         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
30397         start_index, end_index arguments.
30398         (gl_linked_remove): Update.
30399         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30400         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30401         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
30402         field to 'size_t'.
30403         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
30404         gl_tree_search. Add start_index, end_index arguments.
30405         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30406         start_index, end_index arguments.
30407         (gl_tree_remove): Update.
30408         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30409         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30410         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
30411         function.
30412         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
30413         gl_tree_search. Add start_index, end_index arguments.
30414         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30415         start_index, end_index arguments.
30416         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30417         Update.
30418         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30419
30420 2006-10-05  Bruno Haible  <bruno@clisp.org>
30421
30422         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
30423
30424         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
30425         fwriteerror_temp): New declarations.
30426         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
30427         (descriptors): New variable.
30428         (cleanup): First, close the descriptors.
30429         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
30430         fclose_temp, fwriteerror_temp): New functions.
30431
30432 2006-10-04  Jim Meyering  <jim@meyering.net>
30433
30434         * lib/fts.c (fts_open): Tiny comment change.
30435
30436 2006-10-04  Bruno Haible  <bruno@clisp.org>
30437
30438         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
30439         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
30440         gl_LOCK_BODY.
30441         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
30442         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
30443         gl_LOCK_EARLY_BODY.
30444         (gl_LOCK): Require gl_LOCK_BODY.
30445
30446 2006-10-04  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
30449         (gl_oset_search_atleast): New declaration.
30450         (struct gl_oset_implementation): Add field 'search_atleast'.
30451         (gl_oset_search_atleast): New inline function.
30452         * lib/gl_oset.c (gl_oset_search_atleast): New function.
30453         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
30454         (gl_array_oset_implementation): Update.
30455         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
30456         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
30457         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
30458
30459 2006-10-04  Bruno Haible  <bruno@clisp.org>
30460
30461         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
30462
30463 2006-10-03  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
30466         from gl_avltreehash_list_implementation.
30467
30468 2006-10-03  Bruno Haible  <bruno@clisp.org>
30469
30470         * lib/gl_oset.c (gl_oset_add): Fix return type.
30471
30472 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
30473
30474         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
30475
30476 2006-10-02  Eric Blake  <ebb9@byu.net>
30477
30478         * modules/strnlen (Depends-on): Add extensions.
30479
30480 2006-10-02  Eric Blake  <ebb9@byu.net>
30481
30482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
30483         definition in 2.60+.
30484
30485 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
30486
30487         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
30488         checks.
30489
30490 2006-10-02  Bruno Haible  <bruno@clisp.org>
30491
30492         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
30493         to the AUTOMAKE_OPTIONS.
30494         Reported by Jim Meyering.
30495
30496 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30497
30498         Work around bug in Solaris 10 /proc file system:
30499         /proc/self/fd/NNN/.. isn't the parent directory of
30500         the directory whose file descriptor is NNN.  This needs to
30501         be worked around at run time, not compile time, since a
30502         program might be built on Solaris 8, where things work, and
30503         run on Solaris 10.
30504         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
30505         to use the following interface instead:
30506         (OPENAT_BUFFER_SIZE): New macro.
30507         (openat_proc_name): New function.
30508         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
30509         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
30510         Likewise.
30511         * lib/openat-proc.c: New file.
30512         * modules/openat (Files): Add lib/openat-proc.c.
30513         (Depends-on): Add same-inode, stdbool.
30514         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
30515
30516 2006-09-29  Bruno Haible  <bruno@clisp.org>
30517
30518         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
30519         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
30520         argument. Set stdout_closed before testing for ferror, not after.
30521         (fwriteerror, fwriteerror_no_ebadf): New functions.
30522
30523 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30524
30525         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
30526
30527 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
30528
30529         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
30530         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
30531
30532 2006-09-28  Jim Meyering  <jim@meyering.net>
30533
30534         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
30535         Include <unistd.h>.
30536
30537 2006-09-28  Bruno Haible  <bruno@clisp.org>
30538
30539         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
30540         * modules/linkedhash-list (Depends-on): Likewise.
30541         * modules/rbtreehash-list (Depends-on): Likewise.
30542
30543 2006-09-28  Bruno Haible  <bruno@clisp.org>
30544
30545         * lib/strndup.h: Simplify the redefinition of strndup.
30546         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
30547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
30548
30549 2006-09-28  Bruno Haible  <bruno@clisp.org>
30550
30551         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
30552         * lib/gl_linkedhash_list.c: Likewise.
30553         * lib/gl_rbtreehash_list.c: Likewise.
30554
30555 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30556
30557         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
30558         getaddrinfo.
30559
30560         * lib/__fpending.h: Don't include <stdio_ext.h> unless
30561         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
30562         it causes <stdio_ext.h> to cause a compile-time error.
30563         Problem reported by Nelson H. F. Beebe.
30564         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
30565         of HAVE_DECL___PENDING.
30566
30567         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
30568         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
30569         declaration.
30570
30571 2006-09-27  Jim Meyering  <jim@meyering.net>
30572
30573         This file could end up with a definition for a function
30574         named __strndup, rather than rpl_strndup on a system with
30575         incomplete weak_alias support.
30576         * lib/strndup.c (strndup): Rename from __strndup.
30577         Remove #defines that used to map __strndup to strndup.
30578         Don't use K&R prototypes.
30579         Remove LIBC-related code, since this file is not sync'd with glibc.
30580         * lib/strndup.h: Revamp, accordingly.
30581         * m4/strndup.m4: Modernize.
30582
30583 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30584
30585         * modules/savewd (Depends-on): Add 'raise'.
30586         * lib/savewd.c: Include <signal.h>, for 'raise'.
30587
30588 2006-09-26  Jim Meyering  <jim@meyering.net>
30589
30590         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
30591         when we detect Darwin 8.7.0's acl_get_file bug.
30592         Rearrange to perform the new (below) run-test while $LIBS
30593         contains any acl-related library.  Set USE_ACL at the end.
30594         (gl_ACL_GET_FILE): New function.
30595
30596 2006-09-26  Eric Blake  <ebb9@byu.net>
30597
30598         * lib/verror.c: Include <config.h> unconditionally.
30599
30600 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30601
30602         * modules/clock-time (Maintainer): Add self.
30603         * modules/getlogin_r (Depends-on): Add extensions.
30604
30605 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30606
30607         * modules/clock-time: New module.
30608         * modules/nanosleep (Depends-on): Add clock-time.
30609         * modules/gethrxtime (Depends-on): Likewise.
30610         * modules/gettime (Depends-on): Likewise.
30611         * modules/settime (Depends-on): Likewise.
30612
30613         * modules/fts-lgpl: Depend on openat.
30614         * modules/mkancesdirs: Depend on savewd.
30615         * modules/mkdir-p: Likewise.
30616
30617 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30618
30619         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
30620
30621         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
30622         `gl_have_arbitrary_file_name_length_limit' to
30623         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
30624         actually works between configure runs.
30625
30626 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30627             Bruno Haible  <bruno@clisp.org>
30628
30629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
30630
30631 2006-09-25  Jim Meyering  <jim@meyering.net>
30632
30633         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
30634         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
30635
30636 2006-09-25  Eric Blake  <ebb9@byu.net>
30637
30638         * gnulib-tool (func_import, func_create_testdir): Fix typos in
30639         exec's in 2006-09-18 patch when shuffling fds.
30640
30641 2006-09-25  Bruno Haible  <bruno@clisp.org>
30642
30643         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
30644         Reported by Jim Meyering.
30645
30646 2006-09-24  Jim Meyering  <jim@meyering.net>
30647
30648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
30649         compare a pointer against a literal "0".  That caused failures with
30650         at least HP-UX's hpcc.
30651
30652 2006-09-22  Simon Josefsson  <jas@extundo.com>
30653
30654         * modules/gc-sha1:
30655         * modules/gc-md4:
30656         * modules/gc-hmac-sha1:
30657         * modules/gc-hmac-md5:
30658         * modules/gc-des:
30659         * modules/gc-arcfour: Distribute more files.
30660
30661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30662
30663         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
30664         (gl_linked_iterator_from_to): Initialize struct completely.
30665         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
30666         (gl_tree_iterator_from_to): Likewise
30667         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
30668         * lib/gl_array_list.c [lint] (gl_array_iterator)
30669         (gl_array_iterator_from_to): Likewise.
30670         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
30671         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
30672         (gl_carray_iterator_from_to): Likewise.
30673
30674         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
30675         * lib/md4.c (md4_process_block): Remove unused variable.
30676         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
30677         parentheses for clarity.
30678
30679 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30680
30681         * modules/bison-i18n (Depends-on): Add gettext.
30682
30683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30684
30685         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
30686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30687         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
30688         also add missing comma that caused broken test.
30689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
30690         stdlib.h, for `abort'.
30691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
30692         variables.
30693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
30694         include unistd.h if present, for `rmdir'.
30695         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
30696         variables.
30697         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
30698         in the process include standard headers for prototypes.
30699         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
30700         gets declared on GNU/Linux.
30701         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
30702         unistd.h, for `rmdir'.
30703         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
30704
30705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
30706         always true.
30707         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
30708
30709         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
30710
30711 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30712
30713         * gnulib-tool (func_version): Create output all at once.  This
30714         may help avoid triggering unnecessary SIGPIPEs, and at any
30715         rate it doesn't hurt.
30716
30717 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30718             Bruno Haible  <bruno@clisp.org>
30719
30720         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
30721         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30722         * m4/signed.m4 (bh_C_SIGNED): Likewise.
30723
30724         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
30725         (gl_FUNC_VASPRINTF): Invoke it.
30726
30727 2006-09-22  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
30730         getloadavg.c as first argument.
30731
30732 2006-09-22  Bruno Haible  <bruno@clisp.org>
30733
30734         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
30735         at the beginning of the gl_INIT macro.
30736         * modules/getloadavg (configure.ac): Pass $gl_source_base to
30737         gl_GETLOADAVG.
30738
30739 2006-09-22  Bruno Haible  <bruno@clisp.org>
30740
30741         * gnulib-tool (func_create_megatestdir): Don't include the config-h
30742         module.
30743         Suggested by Ralf Wildenhues.
30744
30745 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30746
30747         Import this patch from libc:
30748
30749         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
30750
30751         * lib/regex_internal.c (re_string_reconstruct): Handle
30752         offset < pstr->valid_raw_len && pstr->offsets_needed case.
30753         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
30754         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
30755         re_string_context_at.
30756
30757         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
30758         now requires it.
30759         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
30760         gl_REGEX now does it for us.
30761         (gl_REGEX): Add test taken from
30762         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
30763
30764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
30765         Check that large offsets work.  Modernize Autoconf usages.
30766         Prefer "yes" to mean a good thing rather than a bad.
30767         Don't put "#define mkstemp" in config.h, as this might interfere
30768         with standard system headers that "#define mkstemp mkstemp64".
30769
30770         * modules/mkstemp (Depends-on): Add extensions, so that
30771         mkstemp is visible on some platforms.
30772         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
30773         (Include): Change to "mkstemp.h" from <stdlib.h>.
30774         (Files): Add mkstemp.h.
30775
30776         * lib/mkstemp.h: New file, since some standard headers
30777         #define mkstemp.
30778         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
30779         Include "mkstemp.h".
30780         Make the _LIBC code resemble glibc original more,
30781         e.g., use K&R style.
30782         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
30783         (mkstemp): Remove, since mkstemp.h does this for us.
30784         * lib/stdlib--.h: Include mkstemp.h.
30785
30786         Import this patch from libc:
30787
30788         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
30789
30790         * lib/tempname.c (__gen_tempname): Change attempts_min
30791         into a macro.  Use preprocessor to decide how to initialize
30792         attempts [Coverity CID 67].
30793
30794 2006-09-20  Bruno Haible  <bruno@clisp.org>
30795
30796         * lib/mkdtemp.c: Import from libc.
30797         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
30798                 * sysdeps/posix/tempname.c (__gen_tempname): Change
30799                 attempts_min into a macro.  Use preprocessor to decide how to
30800                 initialize attempts [Coverity CID 67].
30801         2001-11-27  Paul Eggert  <eggert@twinsun.com>
30802                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
30803                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
30804
30805 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30806
30807         * gnulib-tool (func_exit): New function, to allow to pass the
30808         exit status portably through the trap.  Use everywhere.
30809         (--help, --version): Signal a write error.
30810         (trap): catch SIGPIPE, for write errors.
30811         Exit at the end of the trap, with the correct exit status.
30812
30813 2006-09-19  Karl Berry  <karl@gnu.org>
30814
30815         * doc/gnulib.texi: note about the license texinfo files.
30816
30817 2006-09-19  Eric Blake  <ebb9@byu.net>
30818
30819         * gnulib-tool: Avoid space-tab.
30820
30821 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30822
30823         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
30824         that prevented coreutils 6.1 from building.  Problem reported
30825         by Petter Reinholdtsen.
30826
30827 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30828
30829         * gnulib-tool (avoidlist): Fix typo that broke options like
30830         --avoid=lock that are used by coreutils bootstrap.
30831
30832 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
30833
30834         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
30835         more systematically.
30836
30837 2006-09-18  Jim Meyering  <jim@meyering.net>
30838
30839         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
30840
30841 2006-09-18  Bruno Haible  <bruno@clisp.org>
30842
30843         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
30844
30845 2006-09-18  Bruno Haible  <bruno@clisp.org>
30846
30847         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
30848         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
30849         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
30850         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
30851         * m4/gettext.m4: Require autoconf >= 2.52.
30852         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
30853         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
30854         of gl_cv_header_inttypes_h.
30855
30856 2006-09-18  Bruno Haible  <bruno@clisp.org>
30857
30858         * lib/javaversion.c: Include configmake.h.
30859
30860 2006-09-18  Bruno Haible  <bruno@clisp.org>
30861
30862         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
30863         avoid that the while loops be executed in a subshell.
30864
30865 2006-09-18  Bruno Haible  <bruno@clisp.org>
30866
30867         * MODULES.html.sh (func_module): Break long lines.
30868         Suggested by Bruce Korb <bkorb@gnu.org>.
30869
30870 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30871
30872         Speed up by a factor of 1.12.
30873         * gnulib-tool (nl): New variable.
30874         (func_import): Rewrite include directive extraction to only read each
30875         directive once.
30876
30877 2006-09-17  Bruno Haible  <bruno@clisp.org>
30878
30879         * modules/javaversion (Makefile.am): Remove DEFS setting.
30880         (Depends-on): Add configmake, for PKGDATADIR definition.
30881
30882 2006-09-17  Bruno Haible  <bruno@clisp.org>
30883
30884         * gnulib-tool (func_create_testdir): Rewrite all files at once.
30885
30886 2006-09-17  Bruno Haible  <bruno@clisp.org>
30887
30888         * gnulib-tool (func_append): New function, stolen from libtool.m4.
30889         (func_modules_transitive_closure, func_modules_add_dummy,
30890         func_modules_to_filelist, func_import, func_create_testdir,
30891         func_create_megatestdir, ...): Use it wherever possible.
30892         Suggested by Ralf Wildenhues.
30893
30894 2006-09-16  Karl Berry  <karl@gnu.org>
30895
30896         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
30897         to avoid sectioning errors.
30898         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
30899         [ifinfo]: blank line after @center-ed titles.
30900         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
30901         Spell FSF address consistently with others.
30902         (These changes approved by rms.)
30903
30904 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30905
30906         Speed up by a factor of 1.61.
30907         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
30908         already checked module names again.
30909
30910 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30911
30912         Speed up by a factor of 1.13.
30913         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
30914         for new_files, and the input to func_add_or_update.
30915
30916 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30917
30918         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
30919         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
30920
30921 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30922
30923         * modules/mkancesdirs (Depends-on): Add fcntl.
30924         * modules/savewd: New file.
30925         * MODULES.html.sh (File system functions): Add savewd.
30926
30927         * modules/configmake (Makefile.am): Add support for the
30928         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
30929
30930 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30931
30932         * m4/savewd.m4: New file.
30933
30934 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30935
30936         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
30937         (dirchownmod): New arg FD.  All callers changed.
30938         Use FD rather than opening the directory ourself, as opening is
30939         now the caller's responsibility.
30940         * lib/dirchownmod.h: Likewise.
30941         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
30942         hosts that require <sys/types.h> before <sys/stat.h>.  Include
30943         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
30944         (test_dir): Remove.
30945         (mkancesdirs): Return length of prefix of FILE that has already
30946         been made, or -2 if there is a child doing the work.  Redo
30947         algorithm so that it is O(N) rather than O(N**2).  Optimize away
30948         ".", and treat ".." specially since it might stray back into
30949         already-created areas.  Use a subprocess if necessary.  New arg
30950         WD; all users changed.  MAKE_DIR function should now return 1
30951         if it creates a directory that is not readable.  Return -2 if
30952         a child process is spun off.
30953         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
30954         Adjust signature to match code.
30955         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
30956         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
30957         all users changed.
30958         * lib/savewd.c, lib/savewd.h: New files.
30959
30960 2006-09-15  Jim Meyering  <jim@meyering.net>
30961
30962         * modules/rename-dest-slash: New module.
30963         * MODULES.html.sh (posix_compat): Add it here.
30964
30965         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
30966
30967 2006-09-15  Jim Meyering  <jim@meyering.net>
30968
30969         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
30970         file.
30971
30972         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
30973
30974 2006-09-15  Jim Meyering  <jim@meyering.net>
30975
30976         * lib/rename-dest-slash.c (has_trailing_slash): Use
30977         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
30978         (rpl_rename_dest_slash): Perform the cheaper trailing slash
30979         test before testing whether SRC is a directory.
30980         Suggestions from Bruno Haible.
30981
30982         Avoid a warning about an unused variable.
30983         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
30984         into the #ifdef block where it's used.
30985
30986         * lib/rename-dest-slash.c: New file.
30987
30988 2006-09-14  Bruno Haible  <bruno@clisp.org>
30989
30990         * lib/allocsa.c: Include <config.h> unconditionally.
30991         * lib/asnprintf.c: Likewise.
30992         * lib/asprintf.c: Likewise.
30993         * lib/c-strcasecmp.c: Likewise.
30994         * lib/c-strcasestr.c: Likewise.
30995         * lib/c-strncasecmp.c: Likewise.
30996         * lib/c-strstr.c: Likewise.
30997         * lib/classpath.c: Likewise.
30998         * lib/clean-temp.c: Likewise.
30999         * lib/concatpath.c: Likewise.
31000         * lib/copy-file.c: Likewise.
31001         * lib/csharpcomp.c: Likewise.
31002         * lib/csharpexec.c: Likewise.
31003         * lib/execute.c: Likewise.
31004         * lib/fatal-signal.c: Likewise.
31005         * lib/findprog.c: Likewise.
31006         * lib/fwriteerror.c: Likewise.
31007         * lib/gl_array_list.c: Likewise.
31008         * lib/gl_array_oset.c: Likewise.
31009         * lib/gl_avltree_list.c: Likewise.
31010         * lib/gl_avltree_oset.c: Likewise.
31011         * lib/gl_avltreehash_list.c: Likewise.
31012         * lib/gl_carray_list.c: Likewise.
31013         * lib/gl_linked_list.c: Likewise.
31014         * lib/gl_linkedhash_list.c: Likewise.
31015         * lib/gl_list.c: Likewise.
31016         * lib/gl_oset.c: Likewise.
31017         * lib/gl_rbtree_list.c: Likewise.
31018         * lib/gl_rbtree_oset.c: Likewise.
31019         * lib/gl_rbtreehash_list.c: Likewise.
31020         * lib/imaxabs.c: Likewise.
31021         * lib/imaxdiv.c: Likewise.
31022         * lib/javacomp.c: Likewise.
31023         * lib/javaexec.c: Likewise.
31024         * lib/javaversion.c: Likewise.
31025         * lib/linebreak.c: Likewise.
31026         * lib/localcharset.c: Likewise.
31027         * lib/lock.c: Likewise.
31028         * lib/mbchar.c: Likewise.
31029         * lib/mbswidth.c: Likewise.
31030         * lib/mkdtemp.c: Likewise.
31031         * lib/pipe.c: Likewise.
31032         * lib/printf-args.c: Likewise.
31033         * lib/printf-parse.c: Likewise.
31034         * lib/progname.c: Likewise.
31035         * lib/progreloc.c: Likewise.
31036         * lib/readlink.c: Likewise.
31037         * lib/sh-quote.c: Likewise.
31038         * lib/stpcpy.c: Likewise.
31039         * lib/stpncpy.c: Likewise.
31040         * lib/strcasecmp.c: Likewise.
31041         * lib/strcasestr.c: Likewise.
31042         * lib/strcspn.c: Likewise.
31043         * lib/striconv.c: Likewise.
31044         * lib/strncasecmp.c: Likewise.
31045         * lib/strnlen1.c: Likewise.
31046         * lib/strstr.c: Likewise.
31047         * lib/strtok_r.c: Likewise.
31048         * lib/tls.c: Likewise.
31049         * lib/tmpdir.c: Likewise.
31050         * lib/unicodeio.c: Likewise.
31051         * lib/unsetenv.c: Likewise.
31052         * lib/vasnprintf.c: Likewise.
31053         * lib/vasprintf.c: Likewise.
31054         * lib/wait-process.c: Likewise.
31055         * lib/xallocsa.c: Likewise.
31056         * lib/xsetenv.c: Likewise.
31057         * lib/xstriconv.c: Likewise.
31058
31059 2006-09-13  Simon Josefsson  <jas@extundo.com>
31060
31061         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
31062         that internally, suggested by Ralf Wildenhues
31063         <Ralf.Wildenhues@gmx.de>.
31064
31065 2006-09-13  Simon Josefsson  <jas@extundo.com>
31066
31067         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
31068         @LIBOBJS@.
31069         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31070
31071 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * lib/_fpending.c: Include <config.h> unconditionally, since we no
31074         longer worry about uses that don't define HAVE_CONFIG_H.
31075         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
31076         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
31077         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
31078         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
31079         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
31080         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
31081         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
31082         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
31083         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
31084         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
31085         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
31086         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
31087         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
31088         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
31089         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
31090         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
31091         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
31092         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
31093         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
31094         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
31095         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
31096         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
31097         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
31098         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
31099         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
31100         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
31101         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
31102         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
31103         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
31104         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
31105         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
31106         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
31107         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
31108         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
31109         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
31110         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
31111         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
31112         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
31113         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
31114         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
31115         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
31116         Likewise.
31117
31118 2006-09-13  Eric Blake  <ebb9@byu.net>
31119
31120         * lib/getopt.c: Fix typo in last commit.
31121
31122 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31123
31124         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
31125         dgettext.
31126
31127 2006-09-12  Jim Meyering  <jim@meyering.net>
31128
31129         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
31130         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
31131         Reported by Nelson H. F. Beebe.
31132
31133 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31134
31135         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
31136         program_invocation_name and program_invocation_short_name are
31137         initialized.
31138         * lib/argp-namefrob.h: Move declarations of program_invocation_name
31139         and program_invocation_short_name to argp.h, so they are visible
31140         to user programs.
31141         * lib/argp.h: Likewise
31142
31143 2006-09-10  Bruno Haible  <bruno@clisp.org>
31144
31145         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
31146         m4/inttypes_h.m4, m4/uintmax_t.m4.
31147
31148 2006-09-10  Bruno Haible  <bruno@clisp.org>
31149
31150         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
31151         gl_AC_TYPE_UINTMAX_T.
31152
31153 2006-09-10  Bruno Haible  <bruno@clisp.org>
31154
31155         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
31156
31157 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31158
31159         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
31160         convention.  Text proposed by Bruno Haible.
31161         (struct argp_option): Document the use of N_() wrappers.
31162
31163         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
31164         '\v', and translate the two parts separately, instead of feeding
31165         the whole string to gettext.  This allows to exclude
31166         '\v' from the strings visible to the translator by writing doc
31167         strings as N_("..") "\v" N_("..").
31168
31169 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
31170
31171         * config/srclist.txt: Undo latest change; the bug was fixed.
31172
31173 2006-09-09  Bruno Haible  <bruno@clisp.org>
31174
31175         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
31176         assignments if building a library without libtool.
31177         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
31178         in func_emit_lib_Makefile_am.
31179         (func_import): When building a static library libfoo.a, arrange to
31180         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
31181         (func_create_testdir): Likewise.
31182         * modules/gc (configure.ac, Makefile.am): If building statically,
31183         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
31184         * modules/iconvme (configure.ac, Makefile.am): Likewise.
31185         * modules/striconv (configure.ac, Makefile.am): Likewise.
31186         Based on a suggestion by Ralf Wildenhues.
31187
31188 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31189
31190         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31191         Check for unistd.h too, since Autoconf doesn't assume POSIX.
31192         Also:
31193
31194         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31195         Add year_2050_test to catch glibc bug 2821
31196         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31197
31198         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31199         Prefer #ifdef to #if.
31200
31201         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31202         Return from 'main' instead of calling 'exit'.
31203
31204 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31205
31206         * lib/mktime.c (guess_time_tm): Fix bug where mktime
31207         returned the maximum time_t value rather than (time_t) -1.
31208         Problem originally reported by William Bardwell
31209         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31210
31211         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31212         Moved to here ...
31213         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31214         ... from here.
31215
31216 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
31219         2821 is fixed.
31220
31221 2006-09-08  Jim Meyering  <jim@meyering.net>
31222
31223         Don't make generated files read-only.  That would bother too many
31224         people.  However, do retain the ability to work when targets are
31225         read-only: remove the destination and temporary files before writing
31226         them (when generated via sed or echo), or by using the -f option for
31227         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
31228         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31229         * modules/byteswap, modules/configmake, modules/fcntl:
31230         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31231         * modules/localcharset, modules/netinet_in, modules/poll:
31232         * modules/stdbool, modules/stdint, modules/sys_select:
31233         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31234
31235 2006-09-08  Jim Meyering  <jim@meyering.net>
31236
31237         Avoid new build failure on FreeBSD 6.0.
31238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
31239         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
31240         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
31241
31242 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31243
31244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
31245
31246 2006-09-07  Jim Meyering  <jim@meyering.net>
31247
31248         Fix global typo in last change: use chmod u-w, not chmod u-x.
31249         Spotted by Paul Eggert and Bruce Korb.
31250         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31251         * modules/byteswap, modules/configmake, modules/fcntl:
31252         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31253         * modules/localcharset, modules/netinet_in, modules/poll:
31254         * modules/stdbool, modules/stdint, modules/sys_select:
31255         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31256
31257 2006-09-06  Jim Meyering  <jim@meyering.net>
31258
31259         Make generated files be read-only.
31260         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
31261         Ensure that each generated file is now read-only.
31262         * modules/argz: Likewise.
31263         * modules/arpa_inet: Likewise.
31264         * modules/byteswap: Likewise.
31265         * modules/configmake: Likewise.
31266         * modules/fcntl: Likewise.
31267         * modules/fnmatch: Likewise.
31268         * modules/getopt: Likewise.
31269         * modules/glob: Likewise.
31270         * modules/inttypes: Likewise.
31271         * modules/netinet_in: Likewise.
31272         * modules/poll: Likewise.
31273         * modules/stdbool: Likewise.
31274         * modules/stdint: Likewise.
31275         * modules/sys_select: Likewise.
31276         * modules/sys_socket: Likewise.
31277         * modules/sys_stat: Likewise.
31278         * modules/sysexits: Likewise.
31279         * modules/localcharset: Same as above, but continue using temporary
31280         file named "t-$@" (why different?) rather than the "$@-t" used
31281         everywhere else.
31282
31283         * modules/sysexits (Makefile.am): Replace literal occurrences
31284         of "sysexit.h" more readable, and more consistent, "$@".
31285
31286 2006-09-06  Bruno Haible  <bruno@clisp.org>
31287
31288         * modules/striconv: New file.
31289         * modules/xstriconv: New file.
31290         * MODULES.html.sh (Internationalization functions): Add striconv,
31291         xstriconv.
31292
31293 2006-09-06  Bruno Haible  <bruno@clisp.org>
31294
31295         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
31296         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
31297         not using libtool correctly.
31298
31299 2006-09-06  Bruno Haible  <bruno@clisp.org>
31300
31301         * lib/striconv.h: New file.
31302         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
31303         iconvstring.c.
31304         * lib/xstriconv.h: New file.
31305         * lib/xstriconv.c: New file.
31306
31307 2006-09-06  Bruno Haible  <bruno@clisp.org>
31308
31309         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31310         lib_..._LDFLAGS.
31311
31312 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31313
31314         * lib/argz_.h: Sync from Libtool.
31315
31316         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
31317                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31318
31319         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
31320
31321 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31322
31323         * modules/trim: New file.
31324
31325 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31326
31327         * lib/trim.h: New file.
31328         * lib/trim.c: New file.
31329
31330 2006-09-05  Bruno Haible  <bruno@clisp.org>
31331
31332         * MODULES.html.sh (String handling): Add trim.
31333
31334 2006-09-04  Karl Berry  <karl@gnu.org>
31335
31336         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
31337         until next release.
31338
31339 2006-09-03  Bruno Haible  <bruno@clisp.org>
31340
31341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
31342         correctly.
31343
31344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31345
31346         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
31347         not gl_GETLOADAVG.  Omit unneeded semicolons.
31348         Problems reported by Ralf Wildenhues in
31349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31350         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
31351         at the end, which is the usual gnulib style.
31352
31353         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
31354         of doing all the work ourselves.
31355         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
31356         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
31357
31358 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31359
31360         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
31361         Problem reported by Ralf Wildenhues in
31362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31363
31364         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
31365         HAVE_STRUCT_STATFS_F_FSTYPENAME.
31366
31367 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31368
31369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
31370         yesterday's patch by changing test -n to test -z.
31371
31372 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * modules/getloadavg (Files): Add m4/getloadavg.m4.
31375         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
31376         the former is now obsolescent.
31377
31378         * modules/chdir-long (Depends-on): Add fcntl.
31379
31380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31381
31382         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
31383         obsolescent, and programs should use gnulib instead.
31384         * m4/getloadavg.m4: New file, with contents taken from Autoconf
31385         but with prefixes changed.
31386
31387 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31388
31389         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
31390         or stdbool.h, because they might not exist while configuring.
31391
31392         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
31393         Don't include unistd.h or limits.h; not needed, since chdir-long.h
31394         does that for us.
31395         (O_DIRECTORY): Remove.
31396
31397 2006-08-31  Eric Blake  <ebb9@byu.net>
31398
31399         * gnulib-tool: Don't let emacs change spaces to TAB.
31400
31401 2006-08-31  Bruno Haible  <bruno@clisp.org>
31402
31403         * gnulib-tool: When calling func_import more than once, do it in a
31404         subshell.
31405         Reported by Eric Blake <ebb9@byu.net>.
31406
31407 2006-08-31  Bruno Haible  <bruno@clisp.org>
31408
31409         * gnulib-tool (nl): Remove variable.
31410         (sed_transform_lib_file): Use more robust test for config-h module.
31411         (func_import): Fix typo in 2006-08-25 patch.
31412
31413 2006-08-31  Bruno Haible  <bruno@clisp.org>
31414
31415         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
31416         specified, augment Makefile.am variables instead of assigning them.
31417
31418 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31419
31420         Work around a bug in both the Linux and SunOS 64-bit kernels:
31421         nanosleep mishandles sleeps for longer than 2**31 seconds.
31422         Problem reported by Frank v Waveren in
31423         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
31425         Check for nanosleep bug.
31426         (LIB_NANOSLEEP): Append clock_gettime library if needed.
31427
31428 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31429
31430         Work around a bug in both the Linux and SunOS 64-bit kernels:
31431         nanosleep mishandles sleeps for longer than 2**31 seconds.
31432         Problem reported by Frank v Waveren in
31433         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31434         * lib/nanosleep.c (BILLION): New constant.
31435         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
31436         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
31437         implementation.
31438
31439 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         * modules/nanosleep (Depends-on): Add gettime.
31442
31443 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31444         and Simon Josefsson  <jas@extundo.com>
31445         and Oskar Liljeblad  <oskar@osk.mine.nu>
31446
31447         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
31448         * gnulib-tool (func_import): New license type 'unmodifiable license
31449         text'.
31450         * modules/fdl: Use it.  Longer description.
31451         * module/gpl, module/lgpl: New files.
31452
31453 2006-08-30  Jim Meyering  <jim@meyering.net>
31454
31455         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
31456         shadowing the parameter.
31457
31458 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31459
31460         Sync from Libtool:
31461
31462         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31463
31464         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
31465         sharing with gnulib.  Report by Eric Blake.
31466
31467 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31468
31469         * modules/isapipe: New file.
31470         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
31471
31472 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31473
31474         * modules/configmake (Makefile.am): Add a comment, and omit
31475         the CONFIGMAKE_ prefix from generated macro names.  Suggested
31476         by Bruno Haible.
31477
31478 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31479
31480         * m4/isapipe.m4: New file.
31481
31482 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * lib/isapipe.c, lib/isapipe.h: New files.
31485
31486 2006-08-29  Jim Meyering  <jim@meyering.net>
31487
31488         * modules/configmake (Makefile.am): Make configmake.h depend on
31489         Makefile.  Otherwise, a stale configmake.h could hang around.
31490
31491 2006-08-29  Eric Blake  <ebb9@byu.net>
31492
31493         * lib/error.c (error_at_line, print_errno_message): Match libc, after
31494         resolution of upstream bug 3044.
31495
31496 2006-08-29  Bruno Haible  <bruno@clisp.org>
31497
31498         * modules/localcharset (Depends-on): Add configmake.
31499         (Makefile.am): Remove setting of LIBDIR through DEFS.
31500
31501 2006-08-29  Bruno Haible  <bruno@clisp.org>
31502
31503         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
31504         defined.
31505
31506 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31507
31508         * modules/fcntl: New file.
31509         * modules/chdir-safer (Depends-on): Add fcntl.
31510         * modules/fts: Likewise.
31511         * modules/mkdir-p: Likewise.
31512
31513         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
31514         This undoes the most recent change, since we're now addressing the
31515         problem in a different way.
31516
31517         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
31518         into output, since the output might be called Makefile.am even
31519         if $makefile_name is something different.
31520         (func_import): Use $makefile_am rather than
31521         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
31522         empty.
31523
31524         * modules/inttypes (Files): Add m4/inttypes-h.m4.
31525
31526 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31527
31528         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
31529         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
31530         recent change to stdint.m4, since we're now addressing the problem in a
31531         different way.
31532
31533 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31534
31535         * m4/fcntl_h.m4: New file.
31536
31537 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31538
31539         * lib/fcntl_.h: New file.
31540         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
31541         the fcntl module.
31542         * lib/dirchownmod.c: Likewise.
31543         * lib/fts.c: Likewise.
31544
31545         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
31546         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
31547         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
31548         just before including <inttypes.h>, to avoid circular inclusion.
31549
31550 2006-08-28  Jim Meyering  <jim@meyering.net>
31551
31552         * doc/visibility.texi: Actually read and correct the grammar of the
31553         sentence affected by yesterday's change.
31554
31555 2006-08-28  Eric Blake  <ebb9@byu.net>
31556
31557         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
31558         needs wrapper.
31559
31560 2006-08-28  Eric Blake  <ebb9@byu.net>
31561
31562         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
31563
31564 2006-08-28  Eric Blake  <ebb9@byu.net>
31565
31566         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
31567
31568 2006-08-28  Bruno Haible  <bruno@clisp.org>
31569
31570         * modules/c-strstr: New file, from GNU gettext.
31571         * MODULES.html.sh (String handling): Add c-strstr.
31572
31573 2006-08-28  Bruno Haible  <bruno@clisp.org>
31574
31575         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
31576         macros.
31577         Reported by Eric Blake.
31578
31579 2006-08-28  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
31582         (VASNPRINTF): Return a string of length > INT_MAX without failing.
31583         * lib/vasprintf.c: Include errno.h, limits.h.
31584         (EOVERFLOW): New fallback definition.
31585         (vasprintf): Test here whether the string length is > INT_MAX.
31586         * lib/vsnprintf.c: Include errno.h, limits.h.
31587         (EOVERFLOW): New fallback definition.
31588         (vsnprintf): Fix bug when generated string was too long for the buffer.
31589         Test here whether the string length is > INT_MAX.
31590
31591 2006-08-28  Bruno Haible  <bruno@clisp.org>
31592
31593         * lib/inttypes_.h (SCNX*): Remove definitions.
31594         Reported by Eric Blake.
31595
31596 2006-08-28  Bruno Haible  <bruno@clisp.org>
31597
31598         * lib/c-strstr.h: New file, from GNU gettext.
31599         * lib/c-strstr.c: New file, from GNU gettext.
31600
31601 2006-08-28  Bruno Haible  <bruno@clisp.org>
31602
31603         * gnulib-tool: Reorder some statements.
31604
31605 2006-08-28  Bruno Haible  <bruno@clisp.org>
31606
31607         * gnulib-tool: New option --makefile-name.
31608         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
31609         $makefile_name.
31610         (func_import): Write $makefile_name to the cache file, and read it from
31611         there unless explicitly specified. Use $makefile_name as file name
31612         instead of Makefile.am. Adjust the recommendations accordingly.
31613
31614 2006-08-28  Bruno Haible  <bruno@clisp.org>
31615
31616         * gnulib-tool (func_verify_module): Check against misapplying patch.
31617
31618 2006-08-28  Bruno Haible  <bruno@clisp.org>
31619
31620         * gnulib-tool (func_relativize, func_relconcat): New functions.
31621         Give an error if --local-dir is given with --update.
31622         Remove trailing slashes from $local_gnulib_dir.
31623         (func_import): Store the relativized $local_gnulib_dir in
31624         gnulib-cache.m4, and read it from there if not specified explicitly.
31625
31626 2006-08-28  Bruno Haible  <bruno@clisp.org>
31627
31628         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
31629         is the current directory. Respect also $local_gnulib_dir.
31630
31631 2006-08-28  Bruno Haible  <bruno@clisp.org>
31632             Simon Josefsson  <jas@extundo.com>
31633
31634         BeOS portability.
31635         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
31636
31637 2006-08-27  Jim Meyering  <jim@meyering.net>
31638
31639         * doc/visibility.texi: Remove duplicate word: "pointer".
31640
31641 2006-08-26  Bruno Haible  <bruno@clisp.org>
31642
31643         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
31644         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
31645         (Makefile.am): Create inttypes.h from inttypes_.h.
31646         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
31647
31648         * modules/imaxabs: New file.
31649
31650         * modules/imaxdiv: New file.
31651
31652 2006-08-26  Bruno Haible  <bruno@clisp.org>
31653
31654         * m4/inttypes.m4: New file.
31655         * m4/_inttypes_h.m4: Remove file.
31656         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
31657         PRI_MACROS_BROKEN.
31658         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
31659
31660         * m4/imaxabs.m4: New file.
31661
31662         * m4/imaxdiv.m4: New file.
31663
31664 2006-08-26  Bruno Haible  <bruno@clisp.org>
31665
31666         * lib/inttypes_.h: New file.
31667         * lib/inttypes.h: Remove file.
31668         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
31669
31670         * lib/imaxabs.c: New file.
31671
31672         * lib/imaxdiv.c: New file.
31673
31674 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31675
31676         New config-h module, so that "make" output needn't be cluttered
31677         by -DHAVE_CONFIG_H.
31678         * MODULES.html.sh (Support for building libraries and executables):
31679         Add config-h.
31680         * modules/config-h: New file.
31681         * gnulib-tool (nl, sed_transform_lib_file): New vars.
31682         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
31683         the config-h module is used.
31684
31685         New configmake module, so that "make" output needn't be cluttered
31686         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
31687         * MODULES.html.sh (Support for building libraries and executables):
31688         Add configmake.
31689         * modules/configmake: New file.
31690
31691 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31692
31693         * m4/config-h.m4: New file.
31694
31695 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31696
31697         * config/srclist.txt: Add elisp-comp.
31698
31699 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31700
31701         * MODULES.html.sh (Support for building libraries and executables):
31702         Add elisp-comp.
31703         * build-aux/elisp-comp: New file.
31704         * modules/elisp-comp: New file.
31705
31706 2006-08-24  Bruno Haible  <bruno@clisp.org>
31707
31708         * gnulib-tool (func_create_testdir): Use non-default values of
31709         sourcebase and m4base.
31710
31711 2006-08-24  Bruno Haible  <bruno@clisp.org>
31712
31713         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
31714         HTML structure.
31715
31716 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31717
31718         * modules/openat (Depends-on): Add lchown.
31719
31720 2006-08-23  Bruno Haible  <bruno@clisp.org>
31721
31722         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
31723         of gl_LOCK_EARLY instead of gl_LOCK.
31724
31725 2006-08-23  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
31728         on OSF/1 to no.
31729         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
31730
31731 2006-08-23  Bruno Haible  <bruno@clisp.org>
31732
31733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
31734         as unusable.
31735
31736         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
31737         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
31738         (gl_LOCK): New macro.
31739
31740 2006-08-22  Simon Josefsson  <jas@extundo.com>
31741
31742         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
31743         to md5 module.
31744
31745 2006-08-22  Simon Josefsson  <jas@extundo.com>
31746
31747         * MODULES.html.sh: Add "Support for maintaining and release
31748         projects".
31749
31750         * build-aux/gnupload: New file, from coreutils.
31751
31752 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31753
31754         Avoid the need for AC_LIBSOURCES in m4 macros.
31755         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
31756         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
31757         * modules/check-version (EXTRA_DIST): Add check-version.h.
31758         * modules/crc (EXTRA_DIST): Add crc.h.
31759         * modules/des (EXTRA_DIST): Add des.h.
31760         * modules/gc (EXTRA_DIST): Add gc.h.
31761         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
31762         * modules/getline (EXTRA_DIST): Add getline.h.
31763         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
31764         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
31765         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
31766         * modules/md2 (EXTRA_DIST): Add md2.h.
31767         * modules/md4 (EXTRA_DIST): Add md4.h.
31768         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
31769         * modules/read-file (EXTRA_DIST): Add read-file.h.
31770         * modules/readline (EXTRA_DIST): Add readline.h.
31771         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
31772         rijndael-api-fst.h.
31773
31774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31775
31776         * m4/rijndael.m4 (gl_ARCFOUR):
31777         * m4/arctwo.m4 (gl_ARCTWO):
31778         * m4/check-version.m4 (gl_CHECK_VERSION):
31779         * m4/crc.m4 (gl_CRC):
31780         * m4/des.m4 (gl_DES):
31781         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
31782         * m4/gc.m4 (gl_GC):
31783         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
31784         * m4/getline.m4 (gl_FUNC_GETLINE):
31785         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
31786         * m4/hmac-md5.m4 (gl_HMAC_MD5):
31787         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
31788         * m4/md2.m4 (gl_MD2):
31789         * m4/md4.m4 (gl_MD4):
31790         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
31791         * m4/read-file.m4 (gl_FUNC_READ_FILE):
31792         * m4/readline.m4 (gl_FUNC_READLINE):
31793         * m4/rijndael.m4 (gl_RIJNDAEL):
31794         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
31795         to get the necessary .h files and whatnot.
31796
31797 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31798
31799         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
31800         gnulib rather than the other way around.
31801         * config/srclistvars.sh (COREUTILS): Remove.
31802
31803 2006-08-22  Jim Meyering  <jim@meyering.net>
31804
31805         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
31806
31807         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
31808
31809 2006-08-22  Eric Blake  <ebb9@byu.net>
31810
31811         * modules/regexprops-generic: New file.
31812         * MODULES.html.sh (Support for building documentation): List it.
31813
31814 2006-08-22  Eric Blake  <ebb9@byu.net>
31815
31816         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
31817         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
31819         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31820
31821 2006-08-22  Bruno Haible  <bruno@clisp.org>
31822
31823         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
31824         and lib_LTLIBRARIES like the other lib_* variables.
31825
31826 2006-08-22  Bruno Haible  <bruno@clisp.org>
31827
31828         * build-aux/x-to-1.in: New file, from GNU gettext.
31829
31830 2006-08-22  Bruno Haible  <bruno@clisp.org>
31831
31832         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
31833         <utmpx.h> exists.
31834
31835 2006-08-22  Bruno Haible  <bruno@clisp.org>
31836
31837         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
31838         <utmpx.h> exists.
31839
31840 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         BeOS portability.
31843         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
31844         exist.
31845         Problem reported by Bruno Haible.
31846
31847 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
31848
31849         Avoid the need for AC_LIBSOURCES in m4 macros.
31850         * modules/acl (EXTRA_DIST): Add acl.h.
31851         * modules/argmatch (Files): Add m4/argmatch.m4.
31852         (configure.ac): Add gl_ARGMATCH.
31853         (EXTRA_DIST): Renamed from lib_SOURCES, for
31854         consistency with the other modules.  Remove argmatch.c.
31855         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
31856         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
31857         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
31858         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
31859         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
31860         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
31861         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
31862         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
31863         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
31864         * modules/closeout (EXTRA_DIST): Add closeout.h.
31865         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
31866         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
31867         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
31868         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
31869         dirname.h; remove basename.c and stripslash.c.
31870         * modules/exclude (EXTRA_DIST): Add exclude.h.
31871         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
31872         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
31873         * modules/file-type (EXTRA_DIST): Add file-type.h.
31874         * modules/filemode (EXTRA_DIST): Add filemode.h.
31875         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
31876         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
31877         * modules/fpending (EXTRA_DIST): Add __fpending.h.
31878         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
31879         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
31880         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
31881         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
31882         * modules/getdate (EXTRA_DIST): Add getdate.c.
31883         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
31884         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
31885         * modules/getpass (EXTRA_DIST): Add getpass.h.
31886         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
31887         * modules/group-member (EXTRA_DIST): Add group-member.h.
31888         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
31889         * modules/hash (EXTRA_DIST): Add hash.h.
31890         * modules/human (EXTRA_DIST): Add human.h.
31891         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
31892         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
31893         * modules/lchown (EXTRA_DIST): Add lchown.h.
31894         * modules/long-options (EXTRA_DIST): Add long-options.h.
31895         * modules/lstat (EXTRA_DIST): Add lstat.h.
31896         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
31897         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
31898         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
31899         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
31900         * modules/memxor (EXTRA_DIST): Add memxor.h.
31901         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
31902         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
31903         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
31904         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
31905         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
31906         * modules/physmem (EXTRA_DIST): Add physmem.h.
31907         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
31908         * modules/posixver (EXTRA_DIST): Add posixver.h.
31909         * modules/quote (EXTRA_DIST): Add quote.h.
31910         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
31911         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
31912         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
31913         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
31914         regex_internal.h regexec.c.
31915         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
31916         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
31917         * modules/same (EXTRA_DIST): Add same.h.
31918         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
31919         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
31920         * modules/savedir (EXTRA_DIST): Add savedir.h.
31921         * modules/sha1 (EXTRA_DIST): Add sha1.h.
31922         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
31923         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
31924         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
31925         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
31926         * modules/strdup (EXTRA_DIST): Add strdup.h.
31927         * modules/strftime (EXTRA_DIST): Add strftime.h.
31928         * modules/strndup (EXTRA_DIST): Add strndup.h.
31929         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
31930         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
31931         * modules/time_r (EXTRA_DIST): Add time_r.h.
31932         * modules/timespec (EXTRA_DIST): Add timespec.h.
31933         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
31934         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
31935         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
31936         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
31937         * modules/userspec (EXTRA_DIST): Add userspec.h.
31938         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
31939         * modules/utimens (EXTRA_DIST): Add utimens.h.
31940         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
31941         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
31942         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
31943         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
31944         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
31945         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
31946         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
31947         * modules/yesno (EXTRA_DIST): Add yesno.h.
31948
31949 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
31950
31951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
31952
31953         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
31954         * m4/dev-ino.m4, same-inode.m4: Remove.
31955
31956         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
31957         * m4/acl.m4 (AC_FUNC_ACL):
31958         * m4/backupfile.m4 (gl_BACKUPFILE):
31959         * m4/c-strtod.m4 (gl_C99_STRTOLD):
31960         * m4/canon-host.m4 (gl_CANON_HOST):
31961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
31962         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
31963         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
31964         * m4/cloexec.m4 (gl_CLOEXEC):
31965         * m4/close-stream.m4 (gl_CLOSE_STREAM):
31966         * m4/closeout.m4 (gl_CLOSEOUT):
31967         * m4/dirfd.m4 (gl_FUNC_DIRFD):
31968         * m4/dirname.m4 (gl_DIRNAME):
31969         * m4/exclude.m4 (gl_EXCLUDE):
31970         * m4/exitfail.m4 (gl_EXITFAIL):
31971         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
31972         * m4/file-type.m4 (gl_FILE_TYPE):
31973         * m4/filemode.m4 (gl_FILEMODE):
31974         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
31975         * m4/fpending.m4 (gl_FUNC_FPENDING):
31976         * m4/fprintftime.m4 (gl_FPRINTFTIME):
31977         * m4/fts.m4 (gl_FUNC_FTS):
31978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
31979         * m4/getdate.m4 (gl_GETDATE):
31980         * m4/gethrxtime.m4 (gl_GETHRXTIME):
31981         * m4/getpagesize.m4 (gl_GETPAGESIZE):
31982         * m4/getpass.m4 (gl_FUNC_GETPASS):
31983         * m4/gettime.m4 (gl_GETTIME):
31984         * m4/getugroups.m4 (gl_GETUGROUPS):
31985         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
31986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
31987         * m4/hard-locale.m4 (gl_HARD_LOCALE):
31988         * m4/hash.m4 (gl_HASH):
31989         * m4/idcache.m4 (gl_IDCACHE):
31990         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
31991         * m4/lchown.m4 (gl_FUNC_LCHOWN):
31992         * m4/long-options.m4 (gl_LONG_OPTIONS):
31993         * m4/lstat.m4 (gl_FUNC_LSTAT):
31994         * m4/md5.m4 (gl_MD5):
31995         * m4/memcasecmp.m4 (gl_MEMCASECMP):
31996         * m4/memcoll.m4 (gl_MEMCOLL):
31997         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
31998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
31999         * m4/memxor.m4 (gl_MEMXOR):
32000         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
32001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
32002         * m4/modechange.m4 (gl_MODECHANGE):
32003         * m4/mountlist.m4 (gl_MOUNTLIST):
32004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32005         * m4/openat.m4 (gl_FUNC_OPENAT):
32006         * m4/pathmax.m4 (gl_PATHMAX):
32007         * m4/physmem.m4 (gl_PHYSMEM):
32008         * m4/posixtm.m4 (gl_POSIXTM):
32009         * m4/posixver.m4 (gl_POSIXVER):
32010         * m4/quote.m4 (gl_QUOTE):
32011         * m4/quotearg.m4 (gl_QUOTEARG):
32012         * m4/readtokens.m4 (gl_READTOKENS):
32013         * m4/readutmp.m4 (gl_READUTMP):
32014         * m4/regex.m4 (gl_REGEX):
32015         * m4/safe-read.m4 (gl_SAFE_READ):
32016         * m4/safe-write.m4 (gl_SAFE_WRITE):
32017         * m4/same.m4 (gl_SAME):
32018         * m4/save-cwd.m4 (gl_SAVE_CWD):
32019         * m4/savedir.m4 (gl_SAVEDIR):
32020         * m4/settime.m4 (gl_SETTIME):
32021         * m4/sha1.m4 (gl_SHA1):
32022         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
32023         * m4/stat-macros.m4 (gl_STAT_MACROS):
32024         * m4/stat-time.m4 (gl_STAT_TIME):
32025         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
32026         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
32027         * m4/strdup.m4 (gl_FUNC_STRDUP):
32028         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
32029         * m4/strndup.m4 (gl_FUNC_STRNDUP):
32030         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
32031         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
32032         * m4/time_r.m4 (gl_TIME_R):
32033         * m4/timespec.m4 (gl_TIMESPEC):
32034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
32035         * m4/unlinkdir.m4 (gl_UNLINKDIR):
32036         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
32037         * m4/userspec.m4 (gl_USERSPEC):
32038         * m4/utimecmp.m4 (gl_UTIMECMP):
32039         * m4/utimens.m4 (gl_UTIMENS):
32040         * m4/xalloc.m4 (gl_XALLOC):
32041         * m4/xgetcwd.m4 (gl_XGETCWD):
32042         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
32043         * m4/xreadlink.m4 (gl_XREADLINK):
32044         * m4/xstrtod.m4 (gl_XSTRTOD):
32045         * m4/yesno.m4 (gl_YESNO):
32046         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32047         to get the necessary .h files and whatnot.
32048
32049 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
32050             Bruno Haible  <bruno@clisp.org>
32051
32052         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
32053         /bin/sh understanding of '!' conditional negation.
32054
32055 2006-08-21  Jim Meyering  <jim@meyering.net>
32056
32057         * modules/openat (Depends-on): Really alphabetize.
32058
32059         * modules/acl (Depends-on): Add error and quote.
32060
32061         * check-module (find_included_lib_files): Add at-func.c to the
32062         ok-to-include-more-than-once white list.
32063
32064         * modules/openat (Depends-on): Add lstat.  Alphabetize.
32065
32066 2006-08-21  Bruno Haible  <bruno@clisp.org>
32067
32068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32069         Emit a pkgdata_DATA variable only if some snippets add contents to it.
32070         Reported by Martin Lambers <marlam@marlam.de>.
32071
32072 2006-08-21  Bruno Haible  <bruno@clisp.org>
32073
32074         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
32075         specify an installation location, don't emit a noinst_LIBRARIES or
32076         noinst_LTLIBRARIES assignment.
32077
32078 2006-08-21  Bruno Haible  <bruno@clisp.org>
32079
32080         BeOS portability.
32081         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
32082         BeOS has mbrtowc() but no <wctype.h>.
32083
32084 2006-08-21  Bruno Haible  <bruno@clisp.org>
32085
32086         BeOS portability.
32087         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
32088         exist.
32089
32090 2006-08-21  Bruno Haible  <bruno@clisp.org>
32091
32092         BeOS portability.
32093         * lib/mbchar.h: Include <wctype.h> only if it exists.
32094
32095 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         Remove files that are no longer needed by their respective modules.
32098         * m4/obstack.m4: Remove.
32099         * m4/strerror_r.m4: Remove.
32100         * m4/uint32_t.m4: Remove.
32101         * m4/uintptr_t.m4: Remove.
32102         * m4/ullong_max.m4: Remove.
32103         * m4/xstrtoimax.m4: Remove.
32104         * m4/xstrtoumax.m4: Remove.
32105
32106         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
32107         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
32108         dependencies now capture this.
32109
32110         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32111         Do not use AC_LIBSOURCES, since gnulib modules now do this.
32112         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
32113         * m4/human.m4 (gl_HUMAN): Likewise.
32114         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
32115         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
32116
32117         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
32118
32119         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
32120         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
32121         stdint.
32122         * m4/human.m4 (gl_HUMAN): Likewise.
32123         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
32124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
32125         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32126         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32127         * m4/xstrtol (gl_XSTRTOL): Likewise.
32128
32129         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
32130         AC_TYPE_LONG_LONG_INT.
32131         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32132         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
32133         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
32134         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32135
32136         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
32137         on stdbool.
32138
32139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
32140         (gl_PREREQ_XSTRTOUL): Remove.
32141
32142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
32143
32144         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
32145         mode.
32146
32147 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32148
32149         Add and change modules to make it easier for coreutils to use
32150         gnulib-tool.
32151         * modules/backupfile (Files): Remove m4/d-ino.m4.
32152         (Depends-on): Add d-ino.
32153         * modules/cycle-check (Depends-on): Add stdint.
32154         (lib_SOURCES): Add cycle-check.h.
32155         * modules/d-ino: New module.
32156         * modules/d-type: New module.
32157         * modules/error (Files): Remove m4/strerror_r.m4.
32158         * modules/filemode (Files): Add m4/st_dm_mode.m4.
32159         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32160         m4/inttypes_h.m4, m4/uintmax_t.m4.
32161         (Depends-on): Add stdint.
32162         (lib_SOURCES): Add fsusage.h.
32163         * modules/getcwd (Files): Remove d-ino.m4.
32164         (Depends-on): Add d-ino.
32165         * modules/getndelim2 (Depends-on): Add stdint.
32166         * modules/glob (Files): Remove m4/d-type.m4.
32167         (Depends-on): Add d-type.
32168         * modules/host-os: New module.
32169         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
32170         m4/inttypes_h.m4, m4/uintmax_t.m4.
32171         * Depends-on: Add stdint.
32172         (lib_SOURCES): Add human.h.
32173         * modules/inttostr (Files): Remove m4/intmax_t.m4,
32174         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
32175         m4/uintmax_t.m4, m4/ulonglong.m4.
32176         (Depends-on): Add stdint.
32177         (EXTRA_DIST): Add inttostr.h.
32178         * modules/lchmod: New module.
32179         * modules/link-follow: New module.
32180         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
32181         (Depends-on): Add lchmod.
32182         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
32183         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
32184         (Depends-on): Add stdint.
32185         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
32186         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
32187         (Depends-on): Add stdint.
32188         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
32189         * modules/perl: New module.
32190         * modules/regex (Depends-on): Add stdint.
32191         * modules/rmdir-errno: New module.
32192         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32193         m4/intmax_t.m4.
32194         (Depends-on): Add stdint.
32195         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32196         m4/uintmax_t.m4.
32197         (Depends-on): Add stdint.
32198         * modules/unlink-busy: New module.
32199         * modules/utimecmp (Depends-on): Add stdint.
32200         * modules/uptime: New module.
32201         * modules/winsz-ioctl: New module.
32202         * modules/winsz-termios: New module.
32203         * modules/xnanosleep (Depends-on): Add nanosleep.
32204         * modules/ullong_max: Remove.
32205         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
32206         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
32207         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
32208         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
32209         (Depends-on): Add inttypes.
32210         (lib_SOURCES): Add xstrtol.h.
32211         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
32212         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
32213         * MODULES.html.sh: Move 'assert' into the assert section.
32214         Move 'dummy' into the linking section.
32215         Remove ullong_max.
32216         Add section for compatibility checks for POSIX:2001 functions,
32217         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
32218         winsz-ioctl, and winsz-termios into it.
32219         Add lchmod.
32220         Add top-level Misc section and put host-os, perl, and uptime
32221         into it.
32222
32223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
32226         now assume the stdint module.  Do not include inttypes.h.
32227         * lib/fsusage.h: Likewise.
32228         * lib/getndelim2.c: Likewise.
32229         * lib/human.h: Likewise.
32230         * lib/inttostr.h: Likewise.
32231         * lib/obstack.c: Likewise.
32232         * lib/regex_internal.h: Likewise.
32233         * lib/tempname.c: Likewise.
32234         * lib/utimecmp.c: Likewise.
32235         * lib/xstrtol.h: Likewise.
32236
32237         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
32238
32239         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
32240         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
32241         * lib/xtime.h: Likewise.
32242
32243 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32244
32245         * modules/openat (Files): Add lib/fchmodat.c.
32246         Fixes problem reported by Jay Youngman.
32247
32248 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
32251         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
32252
32253 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
32254             Bruno Haible  <bruno@clisp.org>
32255
32256         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
32257         and is a script that invokes bison. Tighten the code. Add comments.
32258
32259 2006-08-18  Jim Meyering  <jim@meyering.net>
32260
32261         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
32262         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
32263         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
32264         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
32265
32266 2006-08-18  Bruno Haible  <bruno@clisp.org>
32267
32268         * modules/bison-i18n: New file.
32269         * MODULES.html.sh (Internationalization functions): Add it.
32270
32271 2006-08-18  Bruno Haible  <bruno@clisp.org>
32272
32273         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
32274         sys/statvfs.h. When getmntinfo was found, check its declaration and
32275         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
32276
32277 2006-08-18  Bruno Haible  <bruno@clisp.org>
32278
32279         * m4/bison-i18n.m4: New file, from bison.
32280
32281 2006-08-18  Bruno Haible  <bruno@clisp.org>
32282
32283         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
32284         (ME_DUMMY): Treat "kernfs" as a dummy.
32285         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
32286
32287 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32288
32289         Update from coreutils.
32290
32291         2006-08-15  Jim Meyering  <jim@meyering.net>
32292
32293         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
32294
32295         2006-01-17  Jim Meyering  <jim@meyering.net>
32296
32297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
32298
32299         2006-01-11  Jim Meyering  <jim@meyering.net>
32300
32301         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
32302         Check for the lchmod function.
32303
32304 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32305
32306         Update from coreutils.
32307
32308         * lib/__fpending.h: Add copyright notice.
32309         * lib/fprintftime.h: Likewise.
32310         * lib/savedir.c: Use (C) in copyright notice.
32311         * lib/savedir.h: Likewise.
32312
32313         2006-08-15  Jim Meyering  <jim@meyering.net>
32314
32315         * lib/at-func.c: New file, with the logic of all emulated at-functions.
32316         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
32317         in support of the EXPECTED_ERRNO macro.
32318         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
32319         definitions.  Instead, define the appropriate symbols and include
32320         "at-func.c".
32321         * lib/mkdirat.c (mkdirat): Likewise.
32322         * lib/fchmodat.c (fchmodat): Likewise.
32323         (ENOSYS): Remove definition.
32324         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
32325         it.  Don't include "unistd--.h" -- it wasn't ever used.
32326
32327         2006-01-17  Jim Meyering  <jim@meyering.net>
32328
32329         Rewrite fts.c not to change the current working directory,
32330         by using openat, fstatat, fdopendir, etc..
32331
32332         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
32333         (HAVE_OPENAT_SUPPORT): Define.
32334         [_LIBC] (fchdir): Don't undef or define; no longer used.
32335         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
32336         Now, this `function' always succeeds, and consumes its file descriptor
32337         parameter -- so callers must not close such FDs.  Update callers.
32338         (diropen_fd, opendirat, cwd_advance_fd): New functions.
32339         (diropen): Add parameter, SP.  Adjust all callers.
32340         Implement using diropen_fd, rather than open.
32341         (fts_open): Initialize new member, fts_cwd_fd.
32342         Remove fts_rft-setting code.
32343         (fts_close): Close fts_cwd_fd, if necessary.
32344         (__opendir2): Define in terms of opendir or opendirat,
32345         depending on whether the FST_NOCHDIR flag is set.
32346         (fts_build): Since fts_safe_changedir consumes its FD, and since
32347         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
32348         and close the dup'd file descriptor upon failure.
32349         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
32350         (fts_safe_changedir): Tweak semantics to reflect that this function
32351         now calls cwd_advance_fd and hence consumes its FD argument.
32352         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
32353         [struct FTS] (fts_rft): Remove now-unused member.
32354         [struct FTS] (fts_cycle.state): Improve comment.
32355
32356         * lib/openat.c (openat_needs_fchdir): New function.
32357         * lib/openat.h (openat_needs_fchdir): Declare it.
32358
32359 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
32360
32361         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
32362         Problem and fix reported by Pádraig Brady in
32363         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
32364
32365 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32366
32367         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
32368
32369 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         * lib/memcoll.c (memcoll): Optimize for the common case where the
32372         arguments are bytewise equal.
32373
32374 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32375
32376         * doc/regexprops-generic.texi: Add a copyright notice.
32377
32378 2006-08-15  Bruno Haible  <bruno@clisp.org>
32379
32380         * modules/tmpdir (License): Change to LGPL.
32381
32382 2006-08-15  Bruno Haible  <bruno@clisp.org>
32383
32384         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
32385         module.
32386
32387 2006-08-14  Simon Josefsson  <jas@extundo.com>
32388
32389         * config/srclist.txt: Add gnupload.
32390
32391 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         Change copyright notice from LGPL 2 to GPL 2, since that's the
32394         standard form used in the gnulib repository.
32395         * tests/test-lock.c: Likewise.
32396         * tests/test-stdint.c: Likewise.
32397         * tests/test-tls.c: Likewise.
32398
32399         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
32400         prelude-manager.  User shorter URLs for GNU projects, without '?'.
32401         Add copyright notice.
32402
32403         * check-module: Add copyright notice.  Output a copyright
32404         notice if "--version" is specified.
32405         * modules/COPYING: New file.
32406         * tests/test-getaddrinfo.c: Add copyright notice.
32407         * tests/test-verify.c: Likewise.
32408
32409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32410
32411         Change copyright notice from LGPL 2 to GPL 2, since that's the
32412         standard form used in the gnulib repository.
32413         * lib/lock.c: LGPL -> GPL.
32414         * lib/lock.h: Likewise.
32415         * lib/strnlen1.c: Likewise.
32416         * lib/strnlen1.h: Likewise.
32417         * lib/tls.c: Likewise.
32418         * lib/tls.h: Likewise.
32419         * lib/tmpdir.c: Likewise.
32420
32421         * lib/TODO: Remove; this belongs only in coreutils.
32422
32423 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32424
32425         Add copyright notices to long-enough files that lack them, since
32426         otherwise the files aren't clearly free.  Use the same notice that
32427         getdate.texi already uses.
32428         * doc/alloca-opt.texi: Add copyright notice.
32429         * doc/alloca.texi: Likewise.
32430         * doc/ctime.texi: Likewise.
32431         * doc/functions.texi: Likewise.
32432         * doc/gcd.texi: Likewise.
32433         * doc/gnulib-tool.texi: Likewise.
32434         * doc/inet_ntoa.texi: Likewise.
32435         * doc/visibility.texi: Likewise.
32436
32437         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
32438         * doc/quote.texi: Add copyright notice.
32439
32440         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
32441         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
32442         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
32443         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
32444         is now obsolete, and give a pointer to the Sun list.
32445         Add copyright notice.
32446
32447 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32448
32449         * config/srclistvars.sh: Add copyright notice.
32450
32451 2006-08-14  Eric Blake  <ebb9@byu.net>
32452
32453         Import the following change from libc:
32454
32455         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
32456
32457         Upstream bug 2997.
32458         * lib/misc/error.c: Add space between program name and message if file
32459         name is missing.
32460
32461 2006-08-12  Karl Berry  <karl@gnu.org>
32462
32463         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
32464         remove, these originate in gnulib now.
32465
32466 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32467
32468         * doc/Makefile (standards.info standards.html standards.dvi):
32469         Also depend on make-stds.texi.
32470
32471 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32472
32473         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
32474         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
32475
32476         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
32477         in wchar_t.  Problem reported by Eric Blake.
32478
32479         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
32480         LEN is smaller than SIZE.  Suggested by Bruno Haible.
32481         Also, help the compiler to keep LEN in a register.
32482
32483 2006-08-11  Eric Blake  <ebb9@byu.net>
32484
32485         * users.txt: Sort.  Add tar.
32486
32487 2006-08-11  Bruno Haible  <bruno@clisp.org>
32488
32489         * users.txt: New file.
32490
32491 2006-08-11  Bruno Haible  <bruno@clisp.org>
32492
32493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
32494         before <wchar.h>. Needed for OSF/1 and BSD/OS.
32495
32496 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         * modules/snprintf (Depends-on): Remove minmax.
32499         (Maintainer): Add self and Bruno.
32500
32501 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         * lib/.cppi-disable: Add snprintf.h, socket_.h.
32504         * lib/snprintf.c: Include <errno.h> and <limits.h>.
32505         (EOVERFLOW): Define if the system does not.
32506         Do not include "minmax.h"; it wasn't used.
32507         (snprintf): Don't assume size_t promotes to an unsigned type.
32508         Fix bug when generated string was too long for the buffer: the
32509         buffer's contents are supposed to be the initial prefix of the
32510         output.  Don't assume vasnprintf returns EOVERFLOW if the size
32511         exceeds INT_MAX; do the check ourselves.
32512
32513         Import the following changes from libc:
32514
32515         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
32516
32517         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
32518         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
32519         set wc to the byte which couldn't be converted.
32520         (re_string_reconstruct): Don't clear valid_raw_len before calling
32521         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
32522         tip_context using re_string_context_at.
32523
32524         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
32525
32526         * lib/posix/regex.h: g++ still cannot handled [restrict].
32527
32528         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
32529
32530         * lib/posix/regex.h: Remove special handling for VMS.
32531
32532 2006-08-10  Jim Meyering  <jim@meyering.net>
32533
32534         * modules/same-inode: New module.
32535         * modules/dev-ino: New module.
32536         * modules/cycle-check: Depend on these modules, rather than simply
32537         including their .h files.
32538         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
32539         required via m4/cycle-check.m4.
32540         * modules/same: Depend on new same-inode module, rather than
32541         including same-inode.h.
32542         * modules/chdir-safer: New file.
32543
32544         * modules/chown (Depends-on): Add stat-macros.
32545
32546 2006-08-10  Jim Meyering  <jim@meyering.net>
32547
32548         * m4/cycle-check.m4: New file.
32549         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
32550         * m4/dev-ino.m4, m4/same-inode.m4: New files.
32551
32552 2006-08-10  Eric Blake  <ebb9@byu.net>
32553
32554         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
32555         in from original proposal.
32556
32557 2006-08-10  Eric Blake  <ebb9@byu.net>
32558         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32559
32560         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
32561         namespace.
32562
32563 2006-08-10  Bruno Haible  <bruno@clisp.org>
32564
32565         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
32566         as well.
32567
32568 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         Sync from coreutils.
32571
32572         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
32573
32574         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
32575         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
32576
32577 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32578
32579         * modules/restrict: Remove; no longer needed now that we assume
32580         Autoconf 2.59 or later.
32581         * MODULES.html.sh: Remove 'restrict'.
32582         * modules/argp (Depends-on): Remove 'restrict'.
32583         * modules/base64 (Depends-on): Likewise.
32584         * modules/gc (Depends-on): Likewise.
32585         * modules/getaddrinfo (Depends-on): Likewise.
32586         * modules/glob (Depends-on): Likewise.
32587         * modules/inet_ntop (Depends-on): Likewise.
32588         * modules/inet_pton (Depends-on): Likewise.
32589         * modules/memxor (Depends-on): Likewise.
32590         * modules/regex (Depends-on): Likewise.
32591         * modules/strtok_r (Depends-on): Likewise.
32592         * modules/time_r (Depends-on): Likewise.
32593
32594 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32595
32596         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
32597         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
32598         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32599         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
32600         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
32601         * m4/memxor.m4 (gl_MEMXOR): Likewise.
32602         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
32603         gl_C_RESTRICT replaced by AC_C_RESTRICT.
32604
32605         Merge from coreutils.
32606         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
32607         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
32608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32609         * m4/time_r.m4 (gl_TIME_R): Likewise.
32610
32611 2006-08-09  Karl Berry  <karl@gnu.org>
32612
32613         * config/srclist.txt: no more gettext-tools, per Bruno.
32614
32615 2006-08-08  Eric Blake  <ebb9@byu.net>
32616
32617         * modules/verror: New module.
32618         * MODULES.html.sh: Document it.
32619
32620 2006-08-08  Eric Blake  <ebb9@byu.net>
32621
32622         * lib/verror.h, lib/verror.c: New files.
32623
32624 2006-08-08  Eric Blake  <ebb9@byu.net>
32625
32626         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
32627         verror_at_line output complies with GNU Coding Standards even when
32628         file is NULL.
32629
32630 2006-08-07  Bruno Haible  <bruno@clisp.org>
32631
32632         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
32633         versions of AIX.
32634         Reported by Ralf Wildenhues.
32635
32636 2006-08-07  Bruno Haible  <bruno@clisp.org>
32637
32638         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
32639         in an AC_DEFUN. Needed so that the autoconf snippets can use
32640         AC_REQUIRE.
32641
32642 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32643
32644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32645         Initialize pkgdata_DATA.
32646         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
32647         overriding it.
32648
32649 2006-08-06  Eric Blake  <ebb9@byu.net>
32650
32651         * lib/error.h: Fold in some upstream changes from glibc.
32652         * lib/error.c: Likewise.
32653
32654 2006-08-04  Bruno Haible  <bruno@clisp.org>
32655
32656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32657         Make the mostlyclean-local rule depend on mostlyclean-generic.
32658         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
32659
32660 2006-07-31  Bruno Haible  <bruno@clisp.org>
32661
32662         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
32663         <stdlib.h>, <string.h>.
32664
32665 2006-07-30  Bruno Haible  <bruno@clisp.org>
32666
32667         * modules/readlink (License): Change to LGPL.
32668
32669 2006-07-30  Bruno Haible  <bruno@clisp.org>
32670
32671         * modules/javaversion (Makefile.am): Distribute javaversion.java and
32672         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
32673         set PKGDATADIR to point to it.
32674
32675 2006-07-30  Bruno Haible  <bruno@clisp.org>
32676
32677         * modules/csharpexec (configure.ac): Comment out macro invocation.
32678         * modules/javaexec (configure.ac): Likewise.
32679         * modules/javacomp-script (configure.ac): Likewise.
32680
32681         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
32682
32683 2006-07-30  Bruno Haible  <bruno@clisp.org>
32684
32685         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
32686         linked-list.
32687
32688 2006-07-30  Bruno Haible  <bruno@clisp.org>
32689
32690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
32691
32692 2006-07-30  Bruno Haible  <bruno@clisp.org>
32693
32694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32695         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
32696         get removed.
32697
32698 2006-07-29  Bruno Haible  <bruno@clisp.org>
32699
32700         Make it possible for gnulib-tool to work with locally modified or
32701         augmented gnulib repositories.
32702         * gnulib-tool (func_usage): Document --local-dir option.
32703         (local_gnulib_dir): New variable.
32704         Handle --local-dir option.
32705         (func_lookup_file): New function.
32706         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
32707         (func_get_description, func_get_filelist, func_get_description,
32708         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
32709         func_get_automake_snippet, func_get_include_directive,
32710         func_get_license, func_get_maintainer): Use func_lookup_file.
32711         (func_import, func_create_testdir): Use func_lookup_file.
32712
32713 2006-07-29  Bruno Haible  <bruno@clisp.org>
32714
32715         * modules/setenv (Depends-on): Add unistd.
32716
32717 2006-07-29  Bruno Haible  <bruno@clisp.org>
32718
32719         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
32720
32721 2006-07-29  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
32724
32725 2006-07-29  Bruno Haible  <bruno@clisp.org>
32726
32727         * gnulib-tool (import, update): If there is no Makefile.am, look at
32728         aclocal.m4, instead of bailing out.
32729
32730 2006-07-29  Bruno Haible  <bruno@clisp.org>
32731
32732         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
32733         Categorize the options by when they are useful.
32734
32735 2006-07-29  Bruno Haible  <bruno@clisp.org>
32736
32737         * gnulib-tool (func_usage): Document option --no-libtool.
32738         Handle option --no-libtool.
32739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
32740         for changed semantics of $libtool variable.
32741         (func_import): Likewise. If libtool is not used, show this through
32742         an option --no-libtool.
32743         (func_create_testdir): Update.
32744
32745 2006-07-29  Bruno Haible  <bruno@clisp.org>
32746
32747         * gnulib-tool (func_import): Extend error message about missing
32748         --doc-base.
32749
32750 2006-07-29  Bruno Haible  <bruno@clisp.org>
32751
32752         * gnulib-tool (func_import): Don't create the $docbase directory if
32753         there is no file to store there.
32754
32755 2006-07-29  Bruno Haible  <bruno@clisp.org>
32756
32757         * gnulib-tool (autoconf_minversion): If a --dir option is given and
32758         relevant, look for configure.ac there, not in the current directory.
32759         Also use a simple search for AC_PREREQ, not "autoconf --trace".
32760
32761 2006-07-29  Bruno Haible  <bruno@clisp.org>
32762
32763         * gnulib-tool (SORT): New variable.
32764         (func_usage): Undocument --assume-autoconf option.
32765         Remove --assume-autoconf option handling.
32766         (autoconf_minversion): Determine from the contents of configure.ac.
32767         (func_import): Remove autoconf_minversion handling.
32768         Suggested by Eric Blake.
32769
32770 2006-07-29  Bruno Haible  <bruno@clisp.org>
32771
32772         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
32773
32774 2006-07-29  Bruno Haible  <bruno@clisp.org>
32775
32776         * config/srclist.txt (*setenv.[ch]): Remove rules.
32777
32778 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32779
32780         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
32781
32782 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32783
32784         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
32785         arpa/inet.h.
32786
32787 2006-07-28  Simon Josefsson  <jas@extundo.com>
32788
32789         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
32790         * modules/inet_pton (Depends-on): Likewise.
32791
32792 2006-07-28  Simon Josefsson  <jas@extundo.com>
32793
32794         * m4/netinet_in_h.m4: New file.
32795
32796 2006-07-28  Simon Josefsson  <jas@extundo.com>
32797
32798         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
32799         #include's.
32800
32801 2006-07-28  Simon Josefsson  <jas@extundo.com>
32802
32803         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
32804         #include's.
32805
32806 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
32807
32808         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
32809         setgid on directories only if they set these bits.
32810         * lib/modechange.h: Remove obsolete comment about masks.
32811
32812 2006-07-28  Eric Blake  <ebb9@byu.net>
32813
32814         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
32815         macro expansion.
32816
32817 2006-07-28  Bruno Haible  <bruno@clisp.org>
32818
32819         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
32820
32821 2006-07-28  Bruno Haible  <bruno@clisp.org>
32822
32823         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
32824
32825 2006-07-28  Bruno Haible  <bruno@clisp.org>
32826
32827         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32828         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32829         Define fallbacks.
32830         Avoids link error on FreeBSD 4.x.
32831         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32832
32833         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
32834         encoding.
32835         * lib/mbswidth.c (iswcntrl): Likewise.
32836
32837 2006-07-27  Bruno Haible  <bruno@clisp.org>
32838
32839         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
32840         test.
32841
32842 2006-07-27  Bruno Haible  <bruno@clisp.org>
32843
32844         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
32845         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
32846         defined.
32847
32848 2006-07-26  Eric Blake  <ebb9@byu.net>
32849
32850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
32851
32852 2006-07-26  Eric Blake  <ebb9@byu.net>
32853
32854         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
32855         like mingw that lack mkstemp.
32856         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
32857         avoid compilation warning on mingw.
32858
32859 2006-07-26  Bruno Haible  <bruno@clisp.org>
32860
32861         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
32862         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
32863         INT_FAST*_MIN, INTPTR_MIN.
32864
32865 2006-07-25  Bruno Haible  <bruno@clisp.org>
32866
32867         * modules/version-etc (Depends-on): Add stdarg.
32868
32869 2006-07-25  Bruno Haible  <bruno@clisp.org>
32870
32871         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
32872         complex commands.
32873
32874 2006-07-25  Bruno Haible  <bruno@clisp.org>
32875
32876         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
32877         defined in <stdarg.h> or config.h.
32878
32879 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32880
32881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
32882         (gl_STDIO_SAFER): Remove.
32883
32884 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32885
32886         * MODULES.html.sh (File stream based Input/Output):
32887         Add fopen-safer, tmpfile-safer; remove stdio-safer.
32888         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
32889         * modules/fopen-safer, modules/tmpfile-safer: New files.
32890         * modules/stdio-safer: Remove.
32891
32892 2006-07-24  Bruno Haible  <bruno@clisp.org>
32893
32894         * modules/tmpdir: New file.
32895         * MODULES.html.sh (File system functions): Add it.
32896
32897 2006-07-24  Bruno Haible  <bruno@clisp.org>
32898
32899         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
32900         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
32901
32902 2006-07-24  Bruno Haible  <bruno@clisp.org>
32903
32904         * modules/clean-temp: New file.
32905
32906 2006-07-24  Bruno Haible  <bruno@clisp.org>
32907
32908         * m4/tmpdir.m4: New file, from GNU gettext.
32909
32910 2006-07-24  Bruno Haible  <bruno@clisp.org>
32911
32912         * lib/tmpdir.h: New file, from GNU gettext.
32913         * lib/tmpdir.c: New file, from GNU gettext.
32914
32915 2006-07-24  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/clean-temp.h: New file, from GNU gettext.
32918         * lib/clean-temp.c: New file, from GNU gettext.
32919
32920 2006-07-23  Eric Blake  <ebb9@byu.net>
32921
32922         * modules/stdio-safer (Files): Add tmpfile-safer.c.
32923         (Depends-on): Add binary-io.
32924
32925 2006-07-23  Eric Blake  <ebb9@byu.net>
32926
32927         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
32928
32929 2006-07-23  Eric Blake  <ebb9@byu.net>
32930
32931         * lib/tmpfile-safer.c: New file.
32932         * lib/stdio-safer.h (fopen_safer): Add prototype.
32933         * lib/stdio--.h (tmpfile): Make safer.
32934
32935 2006-07-23  Bruno Haible  <bruno@clisp.org>
32936
32937         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
32938         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
32939         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
32940         gl_linked_remove_at): Use it.
32941
32942 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32943         and Simon Josefsson <jas@extundo.com>
32944
32945         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
32946
32947         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
32948
32949 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32950
32951         * modules/close-stream: New file.
32952         * modules/closeout (Description): Make it clear that it exits
32953         with a diagnostic on error.
32954         (Depends-on): Add close-stream.  Remove fpending, stdbool.
32955         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
32956
32957 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32958
32959         * m4/close-stream.m4: New file.
32960
32961 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32962
32963         * lib/close-stream.c, lib/close-stream.h: New files.
32964
32965 2006-07-22  Bruno Haible  <bruno@clisp.org>
32966
32967         Merge from GNU gettext 0.15.
32968
32969         2006-05-01  Bruno Haible  <bruno@clisp.org>
32970
32971                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
32972
32973         2006-07-22  Bruno Haible  <bruno@clisp.org>
32974
32975                 * modules/javaversion: New file.
32976                 * MODULES.html.sh (Java): Add javaversion.
32977
32978         2006-03-12  Bruno Haible  <bruno@clisp.org>
32979
32980                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
32981
32982         2005-12-04  Bruno Haible  <bruno@clisp.org>
32983
32984                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
32985                 (untested).
32986
32987         2006-06-21  Bruno Haible  <bruno@clisp.org>
32988
32989                 Avoid warnings from recent versions of mcs.
32990                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
32991                 -o, -L, -r any more. Use options documented since mcs-1.0
32992                 instead. Similarly for -g.
32993
32994         2005-12-04  Bruno Haible  <bruno@clisp.org>
32995
32996                 * build-aux/csharpcomp.sh.in: Suffix for resources is
32997                 .resources, not .resource.
32998
32999         2005-07-09  Bruno Haible  <bruno@clisp.org>
33000
33001                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
33002                 add a .dll suffix.
33003                 Reported by Mark Junker <mjscod@gmx.de>.
33004
33005         2006-07-22  Bruno Haible  <bruno@clisp.org>
33006
33007                 * modules/gettext: Upgrade to gettext-0.15.
33008                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
33009                 m4/visibility.m4.
33010                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
33011
33012 2006-07-22  Bruno Haible  <bruno@clisp.org>
33013
33014         Merge from GNU gettext 0.15.
33015
33016         2006-03-25  Bruno Haible  <bruno@clisp.org>
33017
33018                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
33019
33020         2006-07-21  Bruno Haible  <bruno@clisp.org>
33021
33022                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
33023                 "1.1".
33024
33025         2006-05-09  Bruno Haible  <bruno@clisp.org>
33026
33027                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
33028                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
33029                 for the conftestver execution.
33030
33031         2006-05-01  Bruno Haible  <bruno@clisp.org>
33032
33033                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
33034                 optional target-version argument. Verify that the compiler
33035                 groks source of the specified source-version, or add -source
33036                 option as necessary. Verify that the compiler produces
33037                 bytecode in the specified target-version, or add -target and
33038                 -source options as necessary. Make the result of the test
33039                 available as variable CONF_JAVAC. Also log error output in
33040                 config.log.
33041
33042         2006-03-11  Bruno Haible  <bruno@clisp.org>
33043
33044                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
33045
33046         2006-05-09  Bruno Haible  <bruno@clisp.org>
33047
33048                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
33049                 CLASSPATH_SEPARATOR to a semicolon.
33050
33051         2006-03-12  Bruno Haible  <bruno@clisp.org>
33052
33053                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
33054                 available as variable CONF_JAVA, for subsequent autoconf
33055                 tests. Also log error output in config.log.
33056
33057         2006-07-19  Bruno Haible  <bruno@clisp.org>
33058
33059                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
33060                 that getline works on glibc2 systems. Needed to avoid trouble
33061                 in relocatable.c.
33062                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
33063
33064         2005-12-04  Bruno Haible  <bruno@clisp.org>
33065
33066                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
33067                 launcher (untested).
33068
33069         2005-12-04  Bruno Haible  <bruno@clisp.org>
33070
33071                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
33072
33073         2006-07-22  Bruno Haible  <bruno@clisp.org>
33074
33075                 * gettext.m4: Update from GNU gettext-0.15.
33076                 * nls.m4: Likewise.
33077                 * po.m4: Likewise.
33078                 * inttypes-pri.m4: Likewise.
33079                 * inttypes-h.m4: Renamed from inttypes.m4.
33080                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
33081
33082 2006-07-22  Bruno Haible  <bruno@clisp.org>
33083
33084         Merge from GNU gettext 0.15.
33085
33086         2005-07-05  Bruno Haible  <bruno@clisp.org>
33087
33088                 * printf-args.c (printf_fetchargs): Work around broken
33089                 definition of wint_t on mingw.
33090
33091         2005-02-12  Bruno Haible  <bruno@clisp.org>
33092
33093                 * xallocsa.h: Add extern "C" for C++.
33094
33095         2006-05-17  Bruno Haible  <bruno@clisp.org>
33096
33097                 Cygwin portability.
33098                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
33099
33100         2006-04-30  Bruno Haible  <bruno@clisp.org>
33101
33102                 * progreloc.c: Include <mach-o/dyld.h> if available.
33103                 (find_executable): Use _NSGetExecutablePath when possible.
33104
33105         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33106
33107                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
33108                 function.
33109
33110         2005-12-29  Bruno Haible  <bruno@clisp.org>
33111
33112                 * progreloc.c (set_program_name_and_installdir): Fix
33113                 compilation error.
33114
33115         2005-12-04  Bruno Haible  <bruno@clisp.org>
33116
33117                 Cygwin portability.
33118                 * progreloc.c: Include <windows.h> also on Cygwin.
33119                 (find_executable): Add support for Cygwin.
33120                 (set_program_name_and_installdir): Handle also platforms with
33121                 nonempty EXEEXT.
33122
33123         2006-07-11  Bruno Haible  <bruno@clisp.org>
33124
33125                 * javacomp.c: Fix a comment.
33126                 Reported by Jim Meyering.
33127
33128         2006-04-30  Bruno Haible  <bruno@clisp.org>
33129
33130                 * javacomp.h (compile_java_class): Add source_version,
33131                 target_version arguments.
33132                 * javacomp.c: Rewritten to choose only a compiler that
33133                 respects the specified source_version and target_version.
33134
33135         2006-06-27  Bruno Haible  <bruno@clisp.org>
33136
33137                 Assume correct S_ISDIR macro.
33138                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
33139
33140         2006-07-22  Bruno Haible  <bruno@clisp.org>
33141
33142                 * javaversion.h: New file, from GNU gettext.
33143                 * javaversion.c: New file, from GNU gettext.
33144                 * javaversion.java: New file, from GNU gettext.
33145                 * javaversion.class: New file, from GNU gettext.
33146
33147         2006-05-17  Bruno Haible  <bruno@clisp.org>
33148
33149                 Cygwin portability.
33150                 * javaexec.c (execute_java_class): Test for jview program
33151                 also on Cygwin.
33152
33153         2006-04-09  Bruno Haible  <bruno@clisp.org>
33154
33155                 * fatal-signal.c: Don't include string.h.
33156                 (at_fatal_signal): Use a copying loop instead of memcpy.
33157
33158         2005-12-04  Bruno Haible  <bruno@clisp.org>
33159
33160                 * csharpexec.c: Add support for 'clix' launcher (untested).
33161                 (execute_csharp_using_sscli): New function.
33162                 (execute_csharp_program): Call it.
33163
33164         2006-06-21  Bruno Haible  <bruno@clisp.org>
33165
33166                 Avoid warnings from recent versions of mcs.
33167                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
33168                 -o, -L, -r any more. Use options documented since mcs-1.0
33169                 instead. Similarly for -g.
33170
33171         2005-07-09  Bruno Haible  <bruno@clisp.org>
33172
33173                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
33174                 add a .dll suffix.
33175                 Reported by Mark Junker <mjscod@gmx.de>.
33176
33177         2006-06-17  Bruno Haible  <bruno@clisp.org>
33178
33179                 * config.charset: Update for NetBSD 3.0.
33180
33181         2006-05-17  Bruno Haible  <bruno@clisp.org>
33182
33183                 Cygwin portability.
33184                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
33185
33186         2006-05-16  Bruno Haible  <bruno@clisp.org>
33187
33188                 * localcharset.c [CYGWIN]: Include <windows.h>.
33189                 (get_charset_aliases): For Cygwin, return the same CPxxx
33190                 aliases list as under WIN32.
33191                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
33192                 the environment variables. Fall back to GetACP().
33193
33194         2006-04-05  Bruno Haible  <bruno@clisp.org>
33195
33196                 * config.charset: Update Juan Manuel Guerrero's address.
33197
33198         2005-02-12  Bruno Haible  <bruno@clisp.org>
33199
33200                 * allocsa.h: Add extern "C" for C++.
33201
33202         2005-02-10  Bruno Haible  <bruno@clisp.org>
33203
33204                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
33205                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
33206
33207         2006-07-22  Bruno Haible  <bruno@clisp.org>
33208
33209                 * gettext.h: Update to GNU gettext-0.15.
33210
33211 2006-07-22  Bruno Haible  <bruno@clisp.org>
33212
33213         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
33214         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
33215         lib-prefix.m4, longdouble.m4, ssize_t.m4.
33216
33217 2006-07-21  Eric Blake  <ebb9@byu.net>
33218
33219         * modules/stdlib-safer: New file.
33220         * MODULES.html.sh (File stream based Input/Output): Add
33221         stdlib-safer.
33222
33223 2006-07-21  Eric Blake  <ebb9@byu.net>
33224
33225         * lib/stdlib-safer.h: New file from coreutils, required by
33226         stdlib--.h.
33227
33228 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33229
33230         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
33231
33232 2006-07-20  Bruno Haible  <bruno@clisp.org>
33233
33234         * gnulib-tool: Recognize new option --assume-autoconf.
33235         (autoconf_minversion): New variable.
33236         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
33237
33238 2006-07-20  Bruno Haible  <bruno@clisp.org>
33239
33240         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
33241
33242 2006-07-19  Derek R. Price  <derek@ximbiot.com>
33243
33244         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
33245         Reindent and repaginate.
33246
33247 2006-07-19  Derek Price  <derek@ximbiot.com>
33248
33249         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
33250         Correct grammar.
33251
33252 2006-07-17  Bruno Haible  <bruno@clisp.org>
33253
33254         * modules/list: New file.
33255         * modules/array-list: New file.
33256         * modules/carray-list, modules/carray-list-tests: New files.
33257         * modules/linked-list, modules/linked-list-tests: New files.
33258         * modules/avltree-list, modules/avltree-list-tests: New files.
33259         * modules/rbtree-list, modules/rbtree-list-tests: New files.
33260         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
33261         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
33262         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
33263         * modules/oset: New file.
33264         * modules/array-oset: New file.
33265         * modules/avltree-oset, modules/avltree-oset-tests: New files.
33266         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
33267         * tests/test-carray_list.c: New file.
33268         * tests/test-linked_list.c: New file.
33269         * tests/test-avltree_list.c: New file.
33270         * tests/test-rbtree_list.c: New file.
33271         * tests/test-linkedhash_list.c: New file.
33272         * tests/test-avltreehash_list.c: New file.
33273         * tests/test-rbtreehash_list.c: New file.
33274         * tests/test-avltree_oset.c: New file.
33275         * tests/test-rbtree_oset.c: New file.
33276         * MODULES.html.sh (Container data structures): New section.
33277
33278 2006-07-17  Bruno Haible  <bruno@clisp.org>
33279
33280         * m4/gl_list.m4: New file.
33281
33282 2006-07-17  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/gl_list.h: New file.
33285         * lib/gl_list.c: New file.
33286         * lib/gl_array_list.h: New file.
33287         * lib/gl_array_list.c: New file.
33288         * lib/gl_carray_list.h: New file.
33289         * lib/gl_carray_list.c: New file.
33290         * lib/gl_linked_list.h: New file.
33291         * lib/gl_linked_list.c: New file.
33292         * lib/gl_anylinked_list1.h: New file.
33293         * lib/gl_anylinked_list2.h: New file.
33294         * lib/gl_avltree_list.h: New file.
33295         * lib/gl_avltree_list.c: New file.
33296         * lib/gl_anyavltree_list1.h: New file.
33297         * lib/gl_anyavltree_list2.h: New file.
33298         * lib/gl_rbtree_list.h: New file.
33299         * lib/gl_rbtree_list.c: New file.
33300         * lib/gl_anyrbtree_list1.h: New file.
33301         * lib/gl_anyrbtree_list2.h: New file.
33302         * lib/gl_anytree_list1.h: New file.
33303         * lib/gl_anytree_list2.h: New file.
33304         * lib/gl_linkedhash_list.h: New file.
33305         * lib/gl_linkedhash_list.c: New file.
33306         * lib/gl_anyhash_list1.h: New file.
33307         * lib/gl_anyhash_list2.h: New file.
33308         * lib/gl_avltreehash_list.h: New file.
33309         * lib/gl_avltreehash_list.c: New file.
33310         * lib/gl_rbtreehash_list.h: New file.
33311         * lib/gl_rbtreehash_list.c: New file.
33312         * lib/gl_anytreehash_list1.h: New file.
33313         * lib/gl_anytreehash_list2.h: New file.
33314
33315         * lib/gl_oset.h: New file.
33316         * lib/gl_oset.c: New file.
33317         * lib/gl_array_oset.h: New file.
33318         * lib/gl_array_oset.c: New file.
33319         * lib/gl_avltree_oset.h: New file.
33320         * lib/gl_avltree_oset.c: New file.
33321         * lib/gl_rbtree_oset.h: New file.
33322         * lib/gl_rbtree_oset.c: New file.
33323         * lib/gl_anytree_oset.h: New file.
33324
33325 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33326
33327         * m4/mkancesdirs.m4: New file.
33328         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
33329         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
33330         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
33331         it.
33332
33333 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33334
33335         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
33336         * lib/mkancesdirs.h: New files.
33337         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
33338         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
33339         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
33340         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
33341         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
33342         callers changed.  Revamp internals significantly, by not
33343         attempting to create directories that are temporarily more
33344         permissive than the final results.  Do not attempt to use
33345         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
33346         This removes some race conditions, fixes some bugs, and simplifies
33347         things.  Use new dirchownmod function to do owner and mode changes.
33348         * lib/mkdir-p.h: Likewise.
33349         * lib/modechange.c (octal_to_mode): New function.
33350         (struct mode_change): New member mentioned.
33351         (make_node_op_equals): New arg mentioned.  All callers changed.
33352         (mode_compile): Keep track of which mode bits the user has explicitly
33353         mentioned.
33354         (mode_adjust): New arg DIR, so that we implement the X op correctly.
33355         New arg PMODE_BITS, to keep track of which mode bits the user
33356         mentioned; it treats S_ISUID and S_ISGID speciall.
33357         All callers changed.
33358         * lib/modechange.h: Likewise.
33359
33360 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33361
33362         * MODULES.html.sh: Add mkancestors.
33363         * modules/mkancesdirs: New module.
33364         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
33365         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
33366         The chdir-safer and afs files are now orphans; I'll remove them
33367         unless someone speaks up.
33368         Add lib/dirchownmod.c, lib/dirchownmod.h.
33369         (Depends-on): Remove alloca, chown, save-cwd, dirname.
33370         Add lchown, mkancesdirs.
33371         (Maintainer): Add self.
33372
33373 2006-07-15  Karl Berry  <karl@gnu.org>
33374
33375         * gnulib-tool: help message wording/arrangement.
33376
33377 2006-07-14  Simon Josefsson  <jas@extundo.com>
33378
33379         * doc/gnulib.texi (Libtool and Windows): New section.
33380
33381 2006-07-12  Simon Josefsson  <jas@extundo.com>
33382
33383         * modules/gendocs (License): Fix license, approved by Karl.
33384
33385 2006-07-12  Eric Blake  <ebb9@byu.net>
33386
33387         * MODULES.html.sh: Add gendocs.
33388
33389 2006-07-11  Eric Blake  <ebb9@byu.net>
33390
33391         * modules/fdl: New module, to install doc/fdl.texi.
33392         * MODULES.html.sh: Add new section for documentation modules.
33393         * gnulib-tool: Avoid space-tab.
33394         (--doc-base): New option, to manage files from doc.
33395
33396 2006-07-11  Eric Blake  <ebb9@byu.net>
33397
33398         * m4/absolute-header.m4: Fix comments to match recent change.
33399
33400 2006-07-11  Eric Blake  <ebb9@byu.net>
33401
33402         * gnulib-tool: List --doc-base before --tests-base.
33403
33404 2006-07-11  Derek R. Price  <derek@ximbiot.com>
33405
33406         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
33407
33408 2006-07-11  Bruno Haible  <bruno@clisp.org>
33409
33410         * README: Mention where to put documentation.
33411
33412 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33413
33414         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
33415
33416 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33417
33418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
33419         to stdint.m4.
33420
33421 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33422
33423         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
33424         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
33425         "no/such/file/stdint.h" when there is no such file, so that
33426         the resulting C code can be parsed by dodgy compilers.
33427         Problems reported by Bob Proulx.
33428
33429 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33430
33431         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
33432         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33433         macros into the GNU _D_EXACT_NAMLEN.
33434         * lib/savedir.c:  Likewise.
33435         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
33436
33437 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33438         and Paul Eggert  <eggert@cs.ucla.edu>
33439
33440         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
33441         * m4/savedir.m4:
33442         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33443         macros into the GNU _D_EXACT_NAMLEN.
33444
33445 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33446
33447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
33448         around the absolute name, to work around a problem with the HP-UX
33449         11.23 native C compiler, reported by Bob Proulx.
33450
33451 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33452
33453         * doc/maintain.texi, make-stds.texi: Sync from
33454         <http://savannah.gnu.org/projects/gnustandards>.
33455
33456 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33457
33458         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
33459
33460 2006-07-09  Jim Meyering  <jim@meyering.net>
33461
33462         * m4/glob.m4: Remove a doubled word in a comment.
33463
33464 2006-07-09  Jim Meyering  <jim@meyering.net>
33465
33466         * lib/argp-pv.c: Remove a doubled word in a comment.
33467         * lib/check-version.c (check_version): Likewise.
33468         * lib/javacomp.c (compile_java_class): Likewise.
33469
33470 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
33471
33472         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
33473         for the benefit of people using Autoconf 2.60.  If you want to
33474         support older Autoconf versions you can copy m4/onceonly_2_57.m4
33475         (or m4/onceonly.m4, if pre-2.57) manually.
33476
33477 2006-07-08  Jim Meyering  <jim@meyering.net>
33478
33479         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
33480         comment.
33481         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
33482         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
33483         comment.
33484
33485 2006-07-08  Jim Meyering  <jim@meyering.net>
33486
33487         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
33488
33489 2006-07-07  Simon Josefsson  <jas@extundo.com>
33490
33491         * tests/test-crc.c: Change expected crc value, the test vector
33492         were probably computed using the old broken crc.c?
33493
33494 2006-07-06  Simon Josefsson  <jas@extundo.com>
33495
33496         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
33497         now the canonical place for the M4 file).
33498
33499         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
33500         from the sys_socket dependency now.
33501
33502         * modules/inet_pton (Files): Ditto.
33503
33504         * modules/inet_ntop (Files): Ditto.
33505
33506 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33507
33508         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
33509         not gl_PREREQ_GETUSERSHELL.
33510
33511 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33512
33513         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
33514         with only one argument, for Autoconf 2.60.
33515         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
33516         expand to nothing, so add a shell command to avoid syntax error.
33517         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33518
33519 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33520
33521         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
33522
33523 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
33526         no longer needed.  Check for isblank decl.
33527         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
33528         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
33529         of existence.
33530
33531 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33532
33533         * lib/getloadavg.c: Use __VMS, not VMS.
33534         * lib/getopt.c: Likewise.
33535         * lib/getpagesize.h: Likewise.
33536         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
33537         and probably does not work.
33538
33539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33540
33541         * lib/.cppi-disable: Add wcwidth.
33542         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
33543         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
33544         (ISGRAPH): Remove.  All uses changed to isgraph.
33545         (FOLD) [!defined _LIBC]: Remove special case.
33546         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
33547         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
33548         HAVE_ISBLANK.
33549         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
33550         case.
33551
33552 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
33553
33554         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
33555         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
33556         brackets.  Other minor changes to suppress some compiler
33557         warnings.
33558
33559 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33560         and Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
33563         of invoking obsolescent AC_HEADER_DIRENT macro.
33564         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
33565         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
33566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33568         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
33569         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33570         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
33571         * m4/readdir.m4: Remove; no longer needed.
33572
33573 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33574         and Paul Eggert  <eggert@cs.ucla.edu>
33575
33576         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
33577         Don't worry about this obsolete case any more.
33578         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
33579         directories.
33580         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
33581         worry about this obsolete case any more.
33582         * lib/fts.c: Likewise.
33583         * lib/getcwd.c: Likewise.
33584         * lib/glob.h: Likewise.
33585         * lib/savedir.c: Likewise.
33586
33587 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33588
33589         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
33590         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
33591         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
33592         needed.
33593         All uses removed.
33594         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33595         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33596         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
33597         needed.
33598         * m4/getdate.m4 (gl_GETDATE): Likewise.
33599         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33600         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33601         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33602         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33603         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33605         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
33606         needed.
33607
33608 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33609
33610         * lib/memcasecmp.c: Include <limits.h>.
33611         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
33612         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
33613         Don't assume isdigit succeeds only on '0' through '9'.
33614
33615 2006-07-05  Eric Blake  <ebb9@byu.net>
33616
33617         * modules/getaddrinfo (Depends-on): Add snprintf.
33618
33619 2006-07-05  Eric Blake  <ebb9@byu.net>
33620
33621         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
33622         to avoid 'header present but could not be compiled' on cygwin.
33623
33624 2006-07-05  Eric Blake  <ebb9@byu.net>
33625
33626         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
33627         missing from netdb.h.
33628         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
33629
33630 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33631
33632         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
33633         no longer needed.
33634         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
33635         * m4/getdate.m4 (gl_GETDATE): Likewise.
33636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33637         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33640         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33641
33642 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33643
33644         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
33645         All uses of is_space replaced by isspace.
33646         * lib/exit.h: Don't talk about STDC_HEADERS.
33647         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
33648         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
33649         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
33650         replaced by isprint etc.
33651         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
33652         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33653         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
33654         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
33655         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
33656         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33657
33658 2006-07-05  Bruno Haible  <bruno@clisp.org>
33659
33660         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
33661         the function exists, before testing against AIX.
33662         Reported by Martin Lambers <marlam@marlam.de>.
33663
33664 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33665
33666         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
33667         From Mark D. Baushke.
33668
33669 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33670
33671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
33672         to the absolute name, not just one, to bypass Sun C 5.8's
33673         "warning: #include of /usr/include/... may be non-portable".
33674
33675 2006-07-04  Eric Blake  <ebb9@byu.net>
33676
33677         * modules/dirname-tests: New test module.
33678         * tests/test-dirname.c: New file, replacing dirname.c
33679         TEST_DIRNAME section that was recently deleted.
33680
33681 2006-07-04  Bruno Haible  <bruno@clisp.org>
33682
33683         Assume ANSI C header files and <ctype.h> functions.
33684         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
33685         (mbsnwidth): Use isprint, iscntrl instead.
33686
33687 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33688
33689         Merge from coreutils.
33690         * MODULES.html.sh: Add xstrtold.
33691         * modules/xstrtold: New file.
33692         * modules/cycle-check (Files): Add lib/same-inode.h.
33693         * modules/dirname (Files): Add m4/double-slash-root.m4.
33694         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
33695         * modules/mkdir-p (Files): Add lib/same-inode.h.
33696         * modules/same (Files): Add lib/same-inode.h.
33697
33698 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * m4/absolute-header.m4: Renamed from full-header-path.m4.
33701         This is to keep the terminology clean; POSIX talks about
33702         "absolute pathnames", not "full pathnames", but the GNU
33703         Coding Standards say to use "path" for something else;
33704         so use "absolute" to keep both sides happy.
33705         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
33706         Set gl_absolute_header, not gl_full_header_path.
33707         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
33708         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
33709         All uses changed.
33710
33711         Merge from coreutils.
33712
33713         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33714
33715         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
33716         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
33717         want to require the building of c-strtod.o.
33718         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
33719         needs -lm directly.
33720         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
33721
33722         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
33723
33724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
33725         --as-needed option if available.  Problem reported by Albert Chin in
33726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
33727         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
33728         cc merely issues a bunch of annoying warnings for --as-needed
33729         (this problem was reported by Bob Proulx).  Also, try linking with
33730         -lm to detect a bug in binutils 2.16 (this problem was reported
33731         by Ralf Wildenhues).
33732
33733         2006-06-18  Jim Meyering  <jim@meyering.net>
33734
33735         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
33736         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
33737         macro.
33738         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
33739         also check for glibc-2.4's abort-inducing bug.
33740
33741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
33742         Low-probability clean-up should be to use rmdir to get rid of
33743         the just-created directory, not unlink.
33744
33745         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
33746         configure fail, and request a bug report to inform us about it.
33747         Add a comment that, barring reports to the contrary, in 2007 we'll
33748         assume ftruncate is universally available.
33749
33750         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33751
33752         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
33753
33754         2006-03-12  Jim Meyering  <jim@meyering.net>
33755
33756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
33757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
33758         * m4/same.m4 (gl_SAME): Likewise.
33759         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
33760
33761         2006-03-11  Eric Blake  <ebb9@byu.net>
33762
33763         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
33764         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
33765         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
33766         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
33767
33768 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33769
33770         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
33771         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
33772         reported by Mark D. Baushke, one in
33773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
33774
33775         Merge from coreutils.
33776
33777         * lib/.cppi-disable: Add stdint_.h.
33778         * lib/.cvsignore: Add stdint.h.
33779
33780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33781
33782         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
33783         both double and long double versions.
33784         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
33785         * lib/xstrtold.c: New file.
33786         * lib/xstrtod.h (xstrtold): New decl.
33787
33788         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33789
33790         * lib/filemode.c (setst): Remove.
33791         (strmode): Rewrite to avoid setst.  This makes the code shorter,
33792         (arguably) clearer, and the generated code is a bit smaller on my
33793         Debian GNU/Linux stable x86 host.
33794
33795         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33796
33797         * lib/filemode.c: Include "filemode.h" first, to test the interface.
33798         Assume that filemode.h includes sys/types.h and sys/stat.h.
33799         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
33800         (ftypelet): Reorder to put common cases first, for efficiency.
33801         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
33802         to do 'M'.
33803         (strmode): Renamed from mode_string, and now stores 12 bytes instead
33804         of 10, for compatibility with FreeBSD.  All callers changed.
33805         (filemodestring): Now stores 12 bytes instead of 10, and sets file
33806         types that can't be deduced solely from st_mode.  First arg is now a
33807         const pointer.
33808         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
33809         (strmode): Renamed from mode_string.
33810         (filemodestring): New decl.
33811         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
33812         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
33813         needed.
33814         (S_ISPORT, S_ISWHT): New macros, if not already defined.
33815
33816         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33817
33818         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
33819         fsusage.h now does that.  Include fsusage.h first, to test interface.
33820         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
33821         at most one method (the old code could have generated decls that
33822         didn't conform to C89, not that this was ever exercised).
33823         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
33824
33825         2006-03-19  Jim Meyering  <jim@meyering.net>
33826
33827         Work even in a chroot where d_ino values for entries in "/"
33828         don't match the stat.st_ino values for the same names.
33829         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
33830         number, iterate through all entries again, using lstat instead.
33831         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
33832         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
33833
33834         * lib/getcwd.c (__getcwd): Clarify a comment.
33835         Use memcpy in place of a call to strcpy.
33836
33837         2006-03-12  Jim Meyering  <jim@meyering.net>
33838
33839         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
33840         matches that of the current directory (which we're about to chdir ".."
33841         out of), then save the dev-ino of the parent, instead.
33842
33843         * lib/same-inode.h (SAME_INODE): New file/macro.
33844         * lib/chdir-safer.c (SAME_INODE): Remove definition.
33845         Include "same-inode.h", instead.
33846         * lib/same.c: Likewise.
33847         * lib/cycle-check.h: Include "same-inode.h".
33848         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
33849         * lib/cycle-check.c (SAME_INODE): Remove definition.
33850         * lib/root-dev-ino.h: Include "same-inode.h".
33851
33852         2006-03-11  Eric Blake  <ebb9@byu.net>
33853
33854         * lib/same.c (same_name): s/base_name/last_component/
33855         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
33856         * lib/filenamecat.c (file_name_concat): Likewise.
33857
33858         2006-03-11  Eric Blake  <ebb9@byu.net>,
33859                     Paul Eggert  <eggert@cs.ucla.edu>
33860
33861         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
33862         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
33863         drive prefix.
33864         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
33865         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
33866         (last_component): New method.
33867         * lib/dirname.c (dir_len): Determine when drive letters need a
33868         subsequent slash.  Preserve // when it is special.
33869         (dir_name): Don't append dot when drive letter is absolute.
33870         [TEST_DIRNAME]: Move into a full-blown gnulib test.
33871         * lib/basename.c (base_name): New semantics - malloc the result.
33872         Preserve // when it is special.  Preserve relative files that look
33873         like drive letters.
33874         (base_len): Preserve // when it is special.
33875         (last_component): New method, similar to old base_name semantics.
33876         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
33877         base_name.  Strip redundant slashes from ///.
33878
33879 2006-07-03  Jim Meyering  <jim@meyering.net>
33880
33881         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
33882         macro is used before the first cycle_check call.
33883
33884 2006-07-03  Eric Blake  <ebb9@byu.net>
33885
33886         * modules/dirname (Depends-on): Add xstrndup.
33887
33888 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33889
33890         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
33891         test cases, so that config.log is a bit easier to follow.
33892
33893 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33894
33895         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
33896         both are 64 bits, since this seems to be the tradition, and this
33897         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
33898         we ever run into a host that prefers long long to long in this
33899         case, we'll need another configure-time test.  Problem reported by
33900         Jim Meyering.
33901
33902 2006-07-02  Eric Blake  <ebb9@byu.net>
33903
33904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
33905
33906 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
33907
33908         * modules/inttypes (Depends-on): No longer depends on stdint.
33909         * modules/stdint (Description): Say more about assumptions.
33910         Say that the fast types might differ.  Say macros are used.
33911         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
33912         (Makefile.am): Revise list of substituted symbols to match
33913         new stdint.m4.
33914         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
33915         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
33916         * tests/test-stdint.c (verify_same_types)
33917         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
33918         the code conforms to C99/C89.
33919         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
33920         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
33921
33922 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
33925         but fix a bug, by requiring at least 64 bits.
33926         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
33928         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
33929         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
33930
33931         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
33932         changes.  Make 2.59 a prerequisite.  Check and substitute for
33933         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
33934         inttypes.h.  Do not use special include files; just use the
33935         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
33936         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
33937         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
33938         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
33939         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
33940         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
33941         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
33942         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
33943         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
33944         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
33945         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
33946         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
33947         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
33948         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
33949         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
33950         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
33951         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
33952         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
33953         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
33954         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
33955         WINT_MAX.  Check for C99 conformance more strictly, by detecting
33956         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
33957         not check for things that C99 does not require, e.g., int8_t.  If
33958         a test isn't needed unless <stdint.h> isn't working, and is
33959         unlikely to be needed for any other reason, then don't do it
33960         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
33961         size_t, since we assume C89 freestanding at least.  Do not check
33962         for sig_atomic_t, wchar_t, or wint_t, since the code now does
33963         the right thing even if the types are not defined.  Instead use:
33964         (gl_STDINT_TYPE_PROPERTIES): New macro.
33965         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
33966         testing whether <sys/types.h> clashes, as Autoconf does this for
33967         us now.  All uses removed.
33968         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
33969         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
33970         (gl_CHECK_TYPE_SAME):
33971         Remove; no longer needed.
33972         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
33973         exists, since we'll return 0 anyway in that case.
33974         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
33975
33976 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
33977
33978         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
33979         possible collision with system files.
33980         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
33981         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
33982         WCHAR_MIN and WCHAR_MAX in this case.
33983         (<stddef.h>): Do not include; no longer needed.
33984         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
33985         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
33986         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
33987         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
33988         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
33989         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
33990         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
33991         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
33992         !defined(__c99))]: Include in this case too, since it's harmless
33993         now.
33994         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
33995         dangerous to do so.
33996         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
33997         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
33998         (_STDINT_MIN, _STDINT_MAX): New macros.
33999         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
34000         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
34001         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
34002         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
34003         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
34004         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
34005         macros, not typedefs; this simplifies things quite a bit.
34006         Use long int for all types narrower than int64_t.
34007         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
34008         Define in terms of long long int or int64_t or long int,
34009         not int64_t or int32_t.  This saves some compile-time testing.
34010         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
34011         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
34012         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
34013         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
34014         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
34015         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
34016         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
34017         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34018         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
34019         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
34020         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34021         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34022         undef any previous version and define our own version, for
34023         simplicity and consistency with the new macros for types.
34024         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34025         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34026         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
34027         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
34028         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
34029         @WINT_T_SUFFIX@ to keep things simple here.
34030         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
34031         Simplify by assuming typical 8/16/32/64 host, since we're
34032         already doing that elsewhere anyway.
34033         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
34034         and assume long long int is 64 bits if available.  This
34035         speeds up 'configure'.
34036
34037 2006-07-01  Eric Blake  <ebb9@byu.net>
34038
34039         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
34040         Reported by Andreas Buening.
34041
34042 2006-07-01  Eric Blake  <ebb9@byu.net>
34043
34044         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
34045
34046 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34047
34048         * lib/getaddrinfo.c: fixed typo
34049
34050 2006-06-29  Jim Meyering  <jim@meyering.net>
34051
34052         * modules/strftime (Maintainer): Add my name, since with the
34053         FPRINTFTIME changes strftime.c has forked from glibc.
34054
34055 2006-06-29  Eric Blake  <ebb9@byu.net>
34056
34057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
34058
34059 2006-06-29  Eric Blake  <ebb9@byu.net>
34060
34061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
34062
34063 2006-06-29  Eric Blake  <ebb9@byu.net>
34064
34065         * lib/stat_.h: New file.
34066
34067 2006-06-29  Eric Blake  <ebb9@byu.net>
34068
34069         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
34070         unused static function.
34071
34072 2006-06-29  Eric Blake  <ebb9@byu.net>
34073
34074         * doc/functions.texi (Function Portability): Document missing lstat
34075         on mingw.
34076
34077 2006-06-29  Eric Blake  <ebb9@byu.net>
34078
34079         * MODULES.html.sh: Add sys_stat.
34080         * modules/sys_stat: New module.
34081         * modules/mkstemp (Depends-on): Add sys_stat.
34082
34083 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34084
34085         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
34086
34087 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34088
34089         * m4/c-bs-a.m4: Removed.
34090
34091 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34092
34093         * lib/strftime.c: Assume strftime() exists.
34094
34095 2006-06-29  Derek Price  <derek@ximbiot.com>
34096
34097         * modules/c-bs-a: Removed - \a is C89.
34098         * MODULES.html.sh: Remove c-bs-a.
34099
34100 2006-06-29  Bruno Haible  <bruno@clisp.org>
34101
34102         * modules/wcwidth (License): Change to LGPL.
34103
34104 2006-06-28  Simon Josefsson  <jas@extundo.com>
34105
34106         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
34107         on _WIN32.
34108
34109         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
34110         getnameinfo.
34111
34112 2006-06-28  Simon Josefsson  <jas@extundo.com>
34113
34114         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
34115
34116 2006-06-28  Simon Josefsson  <jas@extundo.com>
34117
34118         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
34119         functions there.  It will succeed on Windows XP, but on Windows
34120         2000 and (presumably) earlier, it will fail, and use the internal
34121         re-implementation.
34122         (use_win32_p): New function.
34123         (getaddrinfo): Use strtoul on servname, to support numeric ports.
34124         Support AI_NUMERICSERV to disable getservbyname.
34125         (getnameinfo): New function, only supports
34126         NI_NUMERICHOST|NI_NUMERICSERV for now.
34127
34128         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
34129         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
34130         getnameinfo.
34131
34132 2006-06-28  Eric Blake  <ebb9@byu.net>
34133
34134         * modules/wcwidth: New file.
34135         * modules/mbchar (Depends-on): Add wcwidth.
34136         * modules/mbswidth (Depends-on): Add wcwidth.
34137         * MODULES.html.sh: Add wcwidth.
34138
34139 2006-06-28  Eric Blake  <ebb9@byu.net>
34140
34141         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
34142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
34143
34144 2006-06-28  Eric Blake  <ebb9@byu.net>
34145
34146         * lib/xvasprintf.h: Fix comments.
34147
34148 2006-06-28  Eric Blake  <ebb9@byu.net>
34149
34150         * lib/mbchar.h (wcwidth): Include wcwidth.h.
34151         * lib/mbswidth.c (wcwidth): Move from here...
34152         * lib/wcwidth.h: ...to this new file.
34153
34154 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34155
34156         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
34157
34158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
34159         it's obsolete.
34160         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
34161
34162 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34163
34164         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
34165         Autoconf 2.60 says this stuff was obsolete.
34166
34167 2006-06-28  Bruno Haible  <bruno@clisp.org>
34168
34169         * modules/wcwidth (Files): Add m4/wchar_t.m4.
34170
34171 2006-06-28  Bruno Haible  <bruno@clisp.org>
34172
34173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
34174         gt_TYPE_WCHAR_T.
34175
34176 2006-06-28  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
34179         declaration for wcwidth.
34180         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
34181
34182 2006-06-28  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/mkdtemp.c [MINGW]: Include <io.h>.
34185         (mkdir): Define using _mkdir.
34186
34187 2006-06-28  Bruno Haible  <bruno@clisp.org>
34188
34189         * lib/getaddrinfo.h: Fix POSIX URL.
34190         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
34191         _WIN32.
34192         (use_win32_p): Make static.
34193         (getaddrinfo): Reject service name if it is empty or does not consist
34194         solely of decimal digits, or if its value is > 65535.
34195         (getnameinfo): Remove useless casts.
34196
34197 2006-06-27  Simon Josefsson  <jas@extundo.com>
34198
34199         * modules/sys_select: New file, suggested by Bruno Haible, Paul
34200         Eggert and Martin Lambers.
34201
34202 2006-06-27  Simon Josefsson  <jas@extundo.com>
34203
34204         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
34205         Eggert and Martin Lambers.
34206
34207 2006-06-27  Bruno Haible  <bruno@clisp.org>
34208
34209         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
34210         result to 0, not to empty.
34211         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
34212
34213 2006-06-27  Bruno Haible  <bruno@clisp.org>
34214
34215         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
34216
34217 2006-06-26  Simon Josefsson  <jas@extundo.com>
34218
34219         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
34220         present.
34221
34222 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34223
34224         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
34225         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
34226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
34227
34228 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
34229
34230         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
34231
34232 2006-06-26  Bruno Haible  <bruno@clisp.org>
34233
34234         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
34235
34236 2006-06-26  Bruno Haible  <bruno@clisp.org>
34237
34238         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
34239
34240 2006-06-26  Bruno Haible  <bruno@clisp.org>
34241
34242         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
34243         SGI C compiler in pre-C99 mode.
34244         Suggested by Mark D. Baushke and Larry Jones.
34245
34246 2006-06-26  Bruno Haible  <bruno@clisp.org>
34247
34248         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
34249         WCHAR_MAX.
34250         Reported by Mark D. Baushke and Larry Jones.
34251
34252 2006-06-26  Bruno Haible  <bruno@clisp.org>
34253
34254         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
34255         in pre-C99 mode.
34256         Suggested by Mark D. Baushke and Larry Jones.
34257
34258 2006-06-23  Simon Josefsson  <jas@extundo.com>
34259             Bruno Haible  <bruno@clisp.org>
34260
34261         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
34262         Emit mostlyclean-local rule.
34263         (func_emit_tests_Makefile_am): Likewise.
34264         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
34265
34266 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
34267
34268         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
34269
34270 2006-06-23  Bruno Haible  <bruno@clisp.org>
34271
34272         * tests/test-stdint.c: Update to match ISO C 99 Technical
34273         Corrigendum 1.
34274
34275 2006-06-23  Bruno Haible  <bruno@clisp.org>
34276
34277         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
34278
34279 2006-06-23  Bruno Haible  <bruno@clisp.org>
34280
34281         * lib/stdint_.h: Treat IRIX like OpenBSD.
34282
34283 2006-06-23  Bruno Haible  <bruno@clisp.org>
34284
34285         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
34286         ISO C 99 Technical Corrigendum 1.
34287
34288 2006-06-22  Simon Josefsson  <jas@extundo.com>
34289
34290         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
34291         MinGW.
34292
34293 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34294
34295         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
34296         needed.  Some compiler complained about some of them.  Problem reported
34297         by Larry Jones in
34298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
34299
34300 2006-06-21  Simon Josefsson  <jas@extundo.com>
34301
34302         * tests/test-getaddrinfo.c: New file.
34303
34304         * modules/getaddrinfo-tests: New file.
34305
34306         * MODULES.html.sh: Add inet_pton.
34307
34308         * modules/inet_pton: New file.
34309
34310 2006-06-21  Simon Josefsson  <jas@extundo.com>
34311
34312         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
34313         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
34314         of using the (limited) gnulib implementation on Windows XP.
34315
34316         * m4/inet_pton.m4: New file.
34317
34318 2006-06-21  Simon Josefsson  <jas@extundo.com>
34319
34320         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
34321         variable.
34322
34323         * lib/socket_.h: Don't define WINVER.
34324
34325         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
34326         slightly modified to work in gnulib.
34327
34328 2006-06-21  Simon Josefsson  <jas@extundo.com>
34329
34330         * doc/gnulib.texi (Windows sockets): Add.
34331
34332 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34333
34334         * lib/read-file.c (fread_file): Start with buffer allocation of
34335         0 bytes rather than 1 byte; this simplifies the code.
34336         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
34337         code to free buffer and save/restore errno.
34338         (internal_read_file): Remove unused local.
34339
34340 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34341
34342         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
34343         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
34344         Problem reported by Denis Excoffier in
34345         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
34346
34347 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34348
34349         * modules/sys_socket, modules/socklen: Include sys/types since
34350         FreeBSD 4.x's sys/socket.h needs it.
34351
34352 2006-06-19  Simon Josefsson  <jas@extundo.com>
34353
34354         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
34355
34356 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34357
34358         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
34359
34360 2006-06-19  Bruno Haible  <bruno@clisp.org>
34361
34362         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
34363         and FULL_PATH_INTTYPES_H in angle brackets.
34364         Reported by Mark D. Baushke <mdb@gnu.org>.
34365
34366 2006-06-17  Eric Blake  <ebb9@byu.net>
34367
34368         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
34369         errno.
34370
34371 2006-06-17  Bruno Haible  <bruno@clisp.org>
34372
34373         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
34374         <sys/inttypes.h>.
34375
34376 2006-06-17  Bruno Haible  <bruno@clisp.org>
34377
34378         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
34379         whether errno is declared. Assume <errno.h> declares errno.
34380
34381 2006-06-17  Bruno Haible  <bruno@clisp.org>
34382
34383         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
34384
34385 2006-06-17  Bruno Haible  <bruno@clisp.org>
34386
34387         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
34388         problem on Solaris 2.5.1.
34389
34390 2006-06-16  Eric Blake  <ebb9@byu.net>
34391
34392         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
34393         * lib/unicodeio.c [!defined errno]: Likewise.
34394         * lib/strtol.c [!defined errno]: Likewise.
34395         * lib/strtod.c [!defined errno]: Likewise.
34396
34397 2006-06-15  Eric Blake  <ebb9@byu.net>
34398
34399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
34400
34401 2006-06-15  Eric Blake  <ebb9@byu.net>
34402
34403         * config/srclist.txt (ssize_t.m4): Lose sync.
34404
34405 2006-06-15  Bruno Haible  <bruno@clisp.org>
34406
34407         * modules/stdint (Files): Include m4/full-header-path.m4,
34408         m4/size_max.m4, m4/wchar_t.m4.
34409         (Makefile.am): Many more substitutions.
34410         * modules/stdint-tests: New file.
34411         * tests/test-stdint.c: New file.
34412
34413 2006-06-15  Bruno Haible  <bruno@clisp.org>
34414
34415         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
34416         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
34417         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
34418         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
34419         gl_CHECK_TYPE_SAME): New macros.
34420
34421 2006-06-15  Bruno Haible  <bruno@clisp.org>
34422
34423         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
34424
34425 2006-06-15  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/stdint_.h: Rewritten to be fully auto-configured.
34428         Fixes bug on HP-UX/IA64.
34429
34430 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34431
34432         * lib/getdate.y (__attribute__): Don't define if already defined.
34433         Problem reported by Larry Jones.
34434         * lib/utimens.c (__attribute__): Likewise.
34435
34436 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
34437
34438         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
34439         reported by Andreas Schwab.
34440
34441 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34442             Bruno Haible  <bruno@clisp.org>
34443
34444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
34445         check for the declaration of strnlen and a run test that exposes the
34446         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
34447         rpl_strndup.
34448
34449 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34450             Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
34453
34454 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34455
34456         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
34457         compile test, for Tru64 4.0D.
34458
34459 2006-05-28  Karl Berry  <karl@gnu.org>
34460
34461         * config/srclist.txt (printf-args.c): lose sync.
34462
34463 2006-05-26  Martin Lambers  <marlam@marlam.de>
34464
34465         * lib/getpass.c: Updates the test for the native W32 API, and adds
34466         missing includes, thus fixing compilation warnings.
34467
34468 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34469
34470         * lib/exclude.c (exclude_fnmatch): New function.
34471         (excluded_file_name): Call exclude_fnmatch.
34472         * lib/exclude.h (excluded_file_name): New prototype
34473
34474 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
34475
34476         * lib/tempname.c (small_open, large_open): New macros.
34477         (__open, __open64) [!_LIBC]: Remove.
34478         (__gen_tempname): Use small_open and large_open instead of __open
34479         and __open64.  This fixes a portability bug on HP-UX 11.11i
34480         reported by Simon Wing-Tang in
34481         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
34482
34483 2006-05-24  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
34486         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
34487         Reported by Thorsten Maerz <torte@netztorte.de> via
34488         Aaron Stone <aaron@serendipity.cx>.
34489
34490 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34491
34492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
34493         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
34494         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
34495         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
34496         not really conditional on the cache.
34497         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
34498
34499 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34500
34501         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
34502         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
34503         (my_usleep): Don't mishandle maximum value.
34504
34505 2006-05-19  Jim Meyering  <jim@meyering.net>
34506
34507         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
34508
34509 2006-05-17  Bruno Haible  <bruno@clisp.org>
34510
34511         Cygwin portability.
34512         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
34513
34514 2006-05-17  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/stdint_.h: Fix recognition of Cygwin.
34517
34518 2006-05-15  Bruno Haible  <bruno@clisp.org>
34519
34520         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
34521         on libtool patch by Ralf Wildenhues.
34522
34523 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34524
34525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
34526         test for C99 conformance; (bool) 0.5 is an integer constant
34527         expression, but (bool) -0.5 is not.  Problem reported by Fedor
34528         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
34529
34530 2006-05-11  Simon Josefsson  <jas@extundo.com>
34531
34532         * m4/xvasprintf.m4: Fix obvious typo.
34533
34534 2006-05-11  Jim Meyering  <jim@meyering.net>
34535
34536         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
34537         James Lemley.
34538
34539 2006-05-10  Simon Josefsson  <jas@extundo.com>
34540
34541         * lib/md4.c: Typo fix, update copyright years.
34542         (K1, K2): Don't use L because it turn computations into 64-bit on
34543         64-bit platforms.
34544
34545 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34546
34547         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
34548         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
34549         unwanted sign propagation, e.g., on hosts with 64-bit int.
34550         There still are some problems with reeelly weird theoretical hosts
34551         (e.g., 33-bit int) but it's not worth worrying about now.
34552         * lib/sha1.c (rol): Likewise.
34553         (K1, K2, K3, K4): Remove unnecessary L suffix.
34554
34555 2006-05-10  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/des.c: Cast to avoid warnings.
34558
34559 2006-05-09  Bruno Haible  <bruno@clisp.org>
34560
34561         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
34562         (Depends-on): Depend also on xsize, stdarg.
34563         (configure.ac): Add gl_XVASPRINTF.
34564
34565 2006-05-09  Bruno Haible  <bruno@clisp.org>
34566
34567         * m4/xvasprintf.m4: New file.
34568
34569 2006-05-09  Bruno Haible  <bruno@clisp.org>
34570
34571         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
34572         (EOVERFLOW): Define fallback value.
34573         (xstrcat): New function.
34574         (xvasprintf): Recognize the special case of a string concatenation.
34575
34576 2006-05-08  Eric Blake  <ebb9@byu.net>
34577
34578         * gnulib-tool (func_version): Base copyright year on CVS date.
34579         (func_emit_copyright_notice): New function.
34580         (func_emit_lib_Makefile_am): Use it.
34581         (func_emit_tests_Makefile_am): Likewise.
34582         (func_import): Likewise.
34583
34584 2006-05-08  Bruno Haible  <bruno@clisp.org>
34585
34586         * modules/stdarg: New file.
34587         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
34588
34589 2006-05-08  Bruno Haible  <bruno@clisp.org>
34590
34591         * m4/stdarg.m4: New file, from GNU gettext.
34592
34593 2006-05-08  Bruno Haible  <bruno@clisp.org>
34594
34595         * config/srclist.txt (build-aux/config.rpath): different from latest
34596         release.
34597
34598 2006-05-08  Bruno Haible  <bruno@clisp.org>
34599
34600         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
34601
34602 2006-05-05  Jim Meyering  <jim@meyering.net>
34603
34604         * m4/warning.m4: New file, derived from bison's file by the same name.
34605
34606 2006-05-03  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/stdint_.h: Shorter URL.
34609         * lib/inttypes.h: Likewise.
34610
34611 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34612
34613         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
34614
34615 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34616
34617         * lib/verify.h: Document the internals better.  Most of this change
34618         was written by Bruno Haible.
34619
34620 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34621
34622         * doc/verify.texi: New file, partly based on a proposal by
34623         Bruno Haible.
34624
34625 2006-05-02  Bruno Haible  <bruno@clisp.org>
34626
34627         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
34628         test from here...
34629         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
34630
34631 2006-04-29  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
34634         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
34635
34636 2006-04-29  Bruno Haible  <bruno@clisp.org>
34637
34638         * gnulib-tool: Make --update option actually work.
34639
34640 2006-04-29  Bruno Haible  <bruno@clisp.org>
34641
34642         * doc/gcd.texi: New file.
34643         * doc/gnulib.texi: Include it.
34644
34645 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34646
34647         * lib/getdate.y (get_date): When adding relative date, start with the
34648         initial time, not with the result of the first mktime call.
34649
34650 2006-04-25  Bruno Haible  <bruno@clisp.org>
34651
34652         * gnulib-tool (func_import): Output the include directives in three
34653         blocks, sorted separately.
34654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34655
34656 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
34659         to define main with arguments, for C++.  Reported by Eric Blake.
34660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
34661         Prefer 'int main ()' to 'int main (void)', for C++.
34662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
34663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
34664         for 'main', for C99 and C++.
34665
34666 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34667
34668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
34669         Don't assume that exit status -1 is valid.
34670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34671         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34673         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
34674         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
34675         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
34676         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
34677         functions can be used without declaring them, or that you can
34678         exit with status -1.
34679         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34680
34681 2006-04-24  Karl Berry  <karl@gnu.org>
34682
34683         * config/srclist.txt (longdouble.m4): sync lost.
34684
34685 2006-04-24  Eric Blake  <ebb9@byu.net>
34686
34687         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
34688
34689 2006-04-24  Bruno Haible  <bruno@clisp.org>
34690
34691         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
34692         poll() implementation in AIX.
34693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34694
34695 2006-04-24  Bruno Haible  <bruno@clisp.org>
34696
34697         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
34698         assigned exactly once.
34699
34700 2006-04-23  Claudio Fontana  <claudio@gnu.org>
34701             Bruno Haible  <bruno@clisp.org>
34702
34703         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
34704         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
34705         for AM_CPPFLAGS.
34706
34707 2006-04-23  Bruno Haible  <bruno@clisp.org>
34708
34709         * modules/copy-file: Depend on unistd.
34710         * modules/execute: Likewise.
34711         * modules/fatal-signal: Likewise.
34712         * modules/findprog: Likewise.
34713         * modules/mkdtemp : Likewise.
34714         * modules/pipe: Likewise.
34715         * modules/wait-process: Likewise.
34716
34717 2006-04-23  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
34720         condition was already detected.
34721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34722
34723 2006-04-23  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/copy-file.c: Include <unistd.h> unconditionally.
34726         * lib/execute.c: Likewise.
34727         * lib/fatal-signal.c: Likewise.
34728         * lib/findprog.c: Likewise.
34729         * lib/mkdtemp.c: Likewise.
34730         * lib/pipe.h: Likewise.
34731         * lib/pipe.c: Likewise.
34732         * lib/wait-process.h: Likewise.
34733
34734 2006-04-23  Bruno Haible  <bruno@clisp.org>
34735
34736         * gnulib-tool (func_usage): Fix --import description. Document
34737         --update.
34738         (func_import): Create temporary file in a temporary directory, if
34739         --dry-run is specified. Silence errors from 'grep' when there are no
34740         m4 files in $m4dir.
34741         (func_create_testdir): Silence errors from 'grep' when there are no
34742         m4 files in $m4dir.
34743         Reported by Karl Berry <karl@freefriends.org>.
34744
34745 2006-04-20  Bruno Haible  <bruno@clisp.org>
34746
34747         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
34748         one argument, so that the code will be portable to Autoconf 2.60.
34749         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
34750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34751         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
34752
34753 2006-04-19  Derek Price  <derek@ximbiot.com>
34754             Eric Blake  <ebb9@byu.net>
34755
34756         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
34757         rather than "/full/path.h".  Update comment to match.  Shorten &
34758         generalize m4_translit call via AS_TR_CPP.
34759
34760 2006-04-19  Derek Price  <derek@ximbiot.com>
34761             Eric Blake  <ebb9@byu.net>
34762
34763         * lib/inttypes.h: Correct grammar in comment.
34764
34765 2006-04-18  Derek Price  <derek@ximbiot.com>
34766             Paul Eggert  <eggert@cs.ucla.edu>
34767
34768         * modules/inttypes: New file.
34769         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
34770
34771 2006-04-18  Derek Price  <derek@ximbiot.com>
34772             Paul Eggert  <eggert@cs.ucla.edu>
34773
34774         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
34775         New files.
34776
34777 2006-04-18  Derek Price  <derek@ximbiot.com>
34778             Paul Eggert  <eggert@cs.ucla.edu>
34779
34780         * lib/inttypes.h: New file.
34781         * lib/strtoimax.c: Assume <inttypes.h>.
34782
34783 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
34784
34785         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
34786         isn't mounted.  Problem reported by Kir Kolyshkin.
34787
34788 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34789
34790         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
34791         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
34792         Derek R. Price.
34793         * lib/regex.h (RE_DUP_MAX): Update comment to match current
34794         implementation.
34795
34796 2006-04-12  Eric Blake  <ebb9@byu.net>
34797
34798         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
34799         is now done automatically by the corresponding Autoconf macro.
34800
34801 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
34802
34803         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
34804         time_r.h.
34805
34806 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34807
34808         Merge regex changes from libc, removing some of our
34809         POSIX-conformance changes that were rejected and redoing them in a
34810         less-intrusive way.
34811
34812         * lib/regcomp.c (re_compile_internal, init_dfa):
34813         Length arg is now size_t, not Idx.  All uses changed.
34814         (peek_token): Forward decl now says internal_function.
34815         (__re_error_msgid, __re_error_msgid_idx):
34816         Now static rather than extern with attribute_hidden.
34817         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
34818         For some reason libc prefers K&R style defns for external functions.
34819         (regerror) [!defined _LIBC]: Likewise.
34820         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
34821         (seek_collating_symbol_entry, lookup_collation_sequence_value):
34822         (build_range_exp, build_collating_symbol):
34823         Use K&R-style defn.
34824         (re_compile_fastmap): Use '\0' to memset, not 0.
34825         (utf8_sb_map): Make the calculations more obvious.
34826         (init_dfa, parse_bracket_exp, build_charclass_op):
34827         Call calloc and cast result, as glibc does.
34828         (init_word_char, fetch_token, peek_token, peek_token_bracket):
34829         (build_range_exp, build_collating_symbol):
34830         Now internal functions.
34831
34832         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
34833
34834         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
34835         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
34836         Don't depend on VMS; depend on __VMS instead, for POSIX
34837         namespace cleanness.
34838         (regoff_t): Define to ssize_t, not long int.
34839
34840         Remove the REG_ macros named below.  Instead, make the old names
34841         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
34842         __USE_GNU_REGEX.
34843         (REG_BACKSLASH_ESCAPE_IN_LISTS):
34844         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
34845         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
34846         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
34847         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
34848         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
34849         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
34850         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
34851         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
34852         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
34853         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
34854         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
34855         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
34856         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
34857         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
34858         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
34859         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
34860         (REG_NREGS):
34861         Remove.  All uses replaced by the old RE_* names.
34862         (RE_BACKSLASH_ESCAPE_IN_LISTS):
34863         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
34864         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
34865         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
34866         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
34867         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
34868         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
34869         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
34870         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
34871         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
34872         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
34873         Don't bother having these macros be independent of each others'
34874         values, since they no longer exist in the POSIX name space.
34875
34876         Rename the following member names back to their old names,
34877         unless !__USE_GNU_REGEX.  All uses changed back.
34878         (buffer): Renamed from re_buffer.
34879         (allocated): Renamed from re_allocated.
34880         (used): Renamed from re_used.
34881         (syntax): Renamed from re_syntax.
34882         (fastmap): Renamed from re_fastmap.
34883         (translate): Renamed from re_translate.
34884         (can_be_null): Renamed from re_can_be_null.
34885         (regs_allocated): Renamed from re_regs_allocated.
34886         (fastmap_accurate): Renamed from re_fastmap_accurate.
34887         (no_sub): Renamed from re_no_sub.
34888         (not_bol): Renamed from re_not_bol.
34889         (not_eol): Renamed from re_not_eol.
34890         (newline_anchor): Renamed from re_newline_anchor.
34891         (num_regs): Renamed from rm_num_regs.
34892         (start): Renamed from rm_start.
34893         (end): Renamed from rm_end.
34894
34895         (free_state): Move up a bit.
34896
34897         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
34898         #define to be empty.
34899         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
34900         when that is what is intended.
34901         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
34902         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
34903         (MAX): New macro.
34904         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
34905         All uses changed back to re_malloc, etc.  It's now the caller's
34906         responsibility to check for overflow; all callers changed.
34907         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
34908         (re_x2nrealloc): Remove.
34909         (free_state): Remove decl.
34910
34911         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
34912         (re_set_registers, re_exec):
34913         Use K&R-style defn.
34914
34915         2006-01-31  Roland McGrath  <roland@redhat.com>
34916
34917         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
34918         Reported by Mike Frysinger <vapier@gentoo.org>.
34919
34920         2006-01-15  Andreas Jaeger  <aj@suse.de>
34921
34922         [BZ #1950]
34923         * lib/regex_internal.c (re_string_reconstruct): Adjust for
34924         build_wcs_upper_buffer change.
34925         (build_wcs_upper_buffer): Change return type.
34926
34927         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
34928
34929         * lib/regex_internal.h: Include <stdint.h> if available.
34930
34931         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
34932
34933         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
34934
34935         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
34936
34937         * lib/regcomp.c: Adjust for changed secondary hash function.
34938
34939         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
34940
34941         * lib/regex.h: Pretty printing.
34942         Clean up namespace a bit.
34943
34944         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
34945
34946         * lib/regexec.c (update_cur_sifted_state, check_arrival,
34947         check_arrival_add_next_nodes): Avoid using uninitialized variable.
34948
34949         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
34950                     Ulrich Drepper  <drepper@redhat.com>
34951
34952         [BZ #1302]
34953         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
34954         changed.
34955         (bitset_word_t): Renamed from bitset_word.  All uses changed.
34956
34957         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
34958
34959         [BZ #281]
34960         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
34961         * lib/regcomp.c: Remove unnecessary uses of
34962         unsigned RE_TRANSLATE_TYPE.
34963         * lib/regex_internal.h: Likewise.
34964         * lib/regex_internal.c: Likewise.
34965         * lib/regexec.c: Likewise.
34966         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
34967
34968         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
34969
34970         * lib/regexec.c (find_recover_state): Remove unnecessary
34971         initialization.
34972         (transit_state_bkref): Make DFA a const pointer.
34973         (get_subexp): Likewise.
34974         (check_arrival): Likewise.
34975         (update_cur_sifted_state): Likewise.
34976         (re_search_internal): Likewise.
34977         (prune_impossible_nodes): Likewise.
34978         (acquire_init_state_context): Likewise.
34979         (proceed_next_node): Likewise.
34980         (set_regs): Likewise.
34981         (free_fail_stack_return): Likewise.
34982         (check_arrival_expand_ecl): Mark DFA parameter as const.
34983         (check_arrival_expand_ecl_sub): Likewise.
34984         (check_subexp_limits): Likewise.
34985         (sub_epsilon_src_nodes):  Likewise.
34986         (add_epsilon_src_nodes):  Likewise.
34987         (merge_state_array): Likewise.
34988         (update_regs): Likewise.
34989         (build_trtable): Likewise.
34990         (sift_states_backward): Mark MCTX parameter as const.
34991         (build_sifted_states): Likewise.
34992         (update_cur_sifted_state): Likewise.
34993         (sift_states_mkref): Likewise.
34994         (check_arrival_expand_ecl): Mark eclosure as const.
34995         (check_dst_limits_calc_pos_1): Likewise.
34996         * lib/regex_internal.h (re_match_context_t): Make dfa a const
34997         pointer.
34998
34999         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
35000
35001         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
35002         (transit_state_sb): Likewise.
35003         (transit_state_mb): Likewise.
35004         (sift_states_iter_mb): Likewise.
35005         (check_arrival_add_next_nodes): Likewise.
35006         (check_node_accept_bytes): Change first parameter to pointer-to-const.
35007         [_LIBC] (re_search_2_stub): Use mempcpy.
35008
35009         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
35010         mbrtowc for very simple UTF-8 case.
35011
35012         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
35013         a pointer-to-const.
35014         (re_acquire_state_context): Likewise.
35015         * lib/regex_internal.h: Adjust prototypes.
35016
35017         * lib/regex.c: Prevent using C++ compilers.
35018
35019         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
35020         (re_acquire_state_context): Likewise.
35021
35022 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35023
35024         * modules/regex (Depends-on): Add ssize_t.
35025
35026 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35027
35028         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
35029         translation table.
35030
35031 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
35034
35035 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
35036             Bruno Haible  <bruno@clisp.org>
35037
35038         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
35039         <sys/types.h> and <inttypes.h>.
35040
35041 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35042
35043         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
35044         `__error_t_defined', so argp.h will not typedef the former.
35045
35046 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35047
35048         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
35049         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
35050         glibc names.  Even if glibc is changed to conform to POSIX, the
35051         traditional names will be available anyway, since regex depends on
35052         the extensions module.  Also, fix a longstanding typo in the
35053         implementation of Spencer ERE test #75 from grep 2.3.  Problems
35054         reported by Emanuele Giaquinta.  Also, change sense of cached
35055         variable, so that the message makes sense.
35056
35057 2006-03-24  Simon Josefsson  <jas@extundo.com>
35058
35059         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
35060         including some doc fixes.
35061         (base64_encode_alloc): Fix +1 bug on allocation failures.
35062
35063 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35064
35065         * lib/base64.c (base64_encode): Do not read past end of array with
35066         unsanitized input on systems with CHAR_BIT > 8.
35067
35068 2006-03-24  Eric Blake  <ebb9@byu.net>
35069
35070         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
35071
35072 2006-03-22  Karl Berry  <karl@gnu.org>
35073
35074         * config/srclist.txt (*setenv.[ch]): get from coreutils.
35075         * config/srclistvars.sh (COREUTILS): new var.
35076
35077 2006-03-17  Jim Meyering  <jim@meyering.net>
35078
35079         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
35080         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
35081
35082 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35083
35084         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
35085         no longer needs it.  Instead, check that regoff_t is as least
35086         as wide as ptrdiff_t.
35087
35088         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
35089         so that our regex.h stays compatible with the installed regex.
35090         This is helpful for installers who configure --without-included-regex.
35091         Problem reported by Emanuele Giaquinta.
35092
35093 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35094
35095         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
35096         Typedef to long int, not to off_, as POSIX will likely change
35097         in that direction.
35098
35099 2006-03-15  Eric Blake  <ebb9@byu.net>
35100
35101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
35102
35103 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35104
35105         * lib/argp-help.c (validate_uparams): Fix typo
35106         * lib/argp-parse.c (argp_default_options): Consistently begin help
35107         messages with a lowercase letter.
35108
35109 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
35110
35111         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
35112         overrun buffers and shouldn't be used (much as gets shouldn't be
35113         used).
35114         * lib/time_r.c (asctime_r, ctime_r): Likewise.
35115
35116 2006-03-08  Simon Josefsson  <jas@extundo.com>
35117
35118         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
35119         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35120
35121 2006-03-08  Simon Josefsson  <jas@extundo.com>
35122
35123         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
35124         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35125
35126 2006-03-08  Simon Josefsson  <jas@extundo.com>
35127
35128         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
35129         signal that configure disabled the device.
35130
35131 2006-03-08  Simon Josefsson  <jas@extundo.com>
35132
35133         * build-aux/maint.mk: Fix refresh-po, to handle no translated
35134         languages.
35135
35136 2006-03-07  Simon Josefsson  <jas@extundo.com>
35137
35138         * modules/getopt (Depends-on): Add unistd.
35139
35140         * modules/unistd: New file.
35141
35142 2006-03-07  Simon Josefsson  <jas@extundo.com>
35143
35144         * modules/gc-random: New file.
35145
35146 2006-03-07  Simon Josefsson  <jas@extundo.com>
35147
35148         * m4/unistd_h.m4: New file.
35149
35150 2006-03-07  Simon Josefsson  <jas@extundo.com>
35151
35152         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
35153         test to be side-effect free by storing the result in the cache
35154         variable gl_cv_lib_readline, and moving the assignment of
35155         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
35156         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35157
35158 2006-03-07  Simon Josefsson  <jas@extundo.com>
35159
35160         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
35161         error on missing devices (the functions will return an error).
35162
35163         * m4/gc.m4: Move random stuff to gc-random.m4
35164
35165 2006-03-07  Simon Josefsson  <jas@extundo.com>
35166
35167         * lib/unistd_.h: New file.
35168
35169 2006-03-07  Simon Josefsson  <jas@extundo.com>
35170
35171         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
35172
35173 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35174
35175         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
35176         Problem reported by Juan Manuel Guerrero.
35177
35178 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35179
35180         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
35181         the unistd module.
35182         * lib/getlogin_r.c: Likewise.
35183         * lib/getlogin_r.h: Likewise.
35184         * lib/glob.c: Likewise.
35185         * lib/pagealign_alloc.c: Likewise.
35186         * lib/unistd_.h: Remove; no longer needed.
35187
35188 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35189
35190         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35191         Add unistd.
35192         * modules/c-stack (Depends-on): Add unistd.
35193         * modules/getlogin_r: Likewise.
35194         * modules/glob: Likewise.
35195         * modules/pagealign_alloc: Likewise.
35196         * modules/unistd (Files): Remove lib/unistd_.h.
35197         (EXTRA_DIST): Remove.
35198         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
35199         need unistd_.h.
35200         (MOSTLYCLEANFILES): Remove unistd.h-t.
35201
35202 2006-03-03  Simon Josefsson  <jas@extundo.com>
35203
35204         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
35205
35206 2006-03-03  Simon Josefsson  <jas@extundo.com>
35207
35208         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
35209         libidn and bison.
35210
35211 2006-03-03  Simon Josefsson  <jas@extundo.com>
35212
35213         * build-aux/maint.mk: Add indent target.
35214
35215 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
35216
35217         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
35218         our replacement poll.h in any case, to avoid a differing
35219         declaration from a system header.  Seen on AIX.
35220
35221 2006-03-01  Simon Josefsson  <jas@extundo.com>
35222
35223         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
35224         <kasal@ucw.cz>.
35225
35226 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35227
35228         * modules/gettime (Depends-on): Add extensions module.
35229         * modules/nanosleep (Depends-on): Likewise.
35230         * modules/settime (Depends-on): Likewise.
35231
35232 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35233
35234         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
35235         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
35236         pedantically.
35237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35238         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
35239
35240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
35241         not "==".  Reported by Ralf Wildenhues.
35242
35243 2006-03-01  Karl Berry  <karl@gnu.org>
35244
35245         * doc/Copyright/request-*: new files, synced from gnuorg.
35246
35247 2006-03-01  Karl Berry  <karl@gnu.org>
35248
35249         * config/srclist.txt (Copyright/*): new entries.
35250
35251 2006-02-28  Simon Josefsson  <jas@extundo.com>
35252
35253         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
35254
35255 2006-02-27  Simon Josefsson  <jas@extundo.com>
35256
35257         * lib/base64.h: Indent #define's.  From Jim Meyering
35258         <jim@meyering.net>.
35259
35260 2006-02-27  Jim Meyering  <jim@meyering.net>
35261
35262         Revert the change of 2006-02-24, so these files can continue
35263         to be sync'd from gettext.
35264         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
35265         of `config.h'.
35266
35267 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         * modules/intprops: New file.
35270         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35271         Add intprops.
35272         * modules/getloadavg (Files): Remove lib/intprops.h.
35273         (Depends-on): Add intprops.
35274         * modules/human: Likewise.
35275         * modules/inttostr: Likewise.
35276         * modules/openat: Likewise.
35277         * modules/sig2str: Likewise.
35278         * modules/userspec: Likewise.
35279         * modules/utimecmp: Likewise.
35280         * modules/xnanosleep: Likewise.
35281         * modules/xstrtol: Likewise.
35282
35283 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
35284
35285         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
35286         * modules/lock-tests (TESTS): Use $(EXEEXT).
35287         * modules/tls-tests: Likewise.
35288         * modules/argp-tests: Likewise.
35289         (check_PROGRAMS): New var, replacing...
35290         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
35291
35292 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35293
35294         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
35295         `config.h'.
35296
35297 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35298
35299         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
35300
35301 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35302
35303         Sync from coreutils.
35304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
35305         gl_CHDIR_SAFER.
35306
35307 2006-02-22  Jim Meyering  <jim@meyering.net>
35308
35309         Sync from coreutils.
35310         * m4/chdir-safer.m4: New file.
35311
35312 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35313
35314         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
35315         AT_FDCWD exceeds INT_MAX.
35316         * lib/openat.h (AT_FDCWD): Likewise.
35317
35318 2006-02-17  Eric Blake  <address@hidden>
35319
35320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
35321
35322 2006-02-16  Simon Josefsson  <jas@extundo.com>
35323
35324         * modules/getaddrinfo (Depends-on): Add sys_socket.
35325
35326 2006-02-15  Simon Josefsson  <jas@extundo.com>
35327
35328         * build-aux/maint.mk: Add dsyntax-check rule.
35329
35330 2006-02-15  Eric Blake  <ebb9@byu.net>
35331
35332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
35333         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
35334         'present but cannot compile' warnings on cygwin.
35335         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
35336         use ws2tcpip.h if sys/socket.h works.
35337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
35338         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
35339
35340 2006-02-14  Simon Josefsson  <jas@extundo.com>
35341
35342         * modules/maintainer-makefile (Files): Rename.
35343
35344         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
35345         and (the local) Makefile.cfg to maint-cfg.mk.
35346
35347         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
35348         to the latter.
35349
35350         * modules/maintainer-makefile: New module.
35351
35352         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
35353         severaly stripped to make it possible to build it up from scratch
35354         with reliable tests.
35355
35356         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
35357         fixes to permit overriding the default actions when configure and
35358         makefile are not available.
35359
35360 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35361
35362         Sync from coreutils.
35363         * modules/lstat (Depends-on): Don't depend on xalloc.
35364         (License): Change from GPL to LGPL, since this is now simply a
35365         replacement for a libc function.
35366
35367 2006-02-14  Jim Meyering  <jim@meyering.net>
35368
35369         Sync from coreutils.
35370
35371         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
35372         failure on deficient systems, and simplify gnulib lgpl dependencies.
35373         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
35374         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
35375
35376         * lib/xalloc-die.c: Remove unused definition of N_.
35377
35378 2006-02-14  Jim Meyering  <jim@meyering.net>
35379
35380         Sync from coreutils.
35381         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
35382         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
35383         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
35384         double-quote uses of that variable, to accommodate the rare case in
35385         which getmntent is available in none of the libraries checked.  This
35386         happens at least on FreeBSD 5.0.
35387
35388 2006-02-13  Simon Josefsson  <jas@extundo.com>
35389
35390         * gnulib-tool (Usage): Fix --import, from
35391         karl@freefriends.org (Karl Berry).
35392
35393 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35394
35395         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
35396
35397 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
35398
35399         * lib/argp-namefrob.h: Restore changes accidentally lost during the
35400         "autoupdate" on 2005-12-12.
35401
35402 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35403
35404         * modules/closeout (Depends-on): Remove atexit.
35405
35406 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35407
35408         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
35409         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
35410
35411 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35412
35413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
35414         __EXTENSIONS__ if this causes compilation to fail.  Problem
35415         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
35416         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
35417
35418 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35419
35420         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
35421         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
35422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
35423         All uses changed.
35424
35425 2006-01-26  Simon Josefsson  <jas@extundo.com>
35426
35427         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
35428         prototype is visible on mingw32.
35429
35430         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
35431         for mingw32.
35432
35433         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
35434         mingw32).
35435
35436 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35437
35438         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
35439         attempt to open for write; this always fails, at least on POSIX
35440         hosts.  This reinstates the 2006-01-09 change, which was
35441         inadvertently removed.
35442
35443 2006-01-26  Bruno Haible  <bruno@clisp.org>
35444
35445         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
35446         Reported by Paul Eggert.
35447
35448 2006-01-26  Bruno Haible  <bruno@clisp.org>
35449             Paul Eggert  <eggert@cs.ucla.edu>
35450
35451         * lib/stdbool_.h (_Bool)
35452         [(! (defined __cplusplus || defined __BEOS__)
35453           && !defined __GNUC__
35454           && !(defined __HP_cc || defined __xlc__
35455                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
35456                || defined __sgi))]:
35457         #define to signed char in these cases too; this simplifies
35458         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
35459         etc., separately) and makes it more conservative.
35460
35461 2006-01-25  Simon Josefsson  <jas@extundo.com>
35462
35463         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
35464         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
35465         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
35466
35467 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35468
35469         * lib/argp-namefrob.h: Bugfix. Remove stray #
35470
35471 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35472
35473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
35474         so that we test the test.
35475         Check for yet another HP-UX cc bug involving *bool |= bool.
35476
35477 2006-01-25  Karl Berry  <karl@gnu.org>
35478
35479         * config/srclist.txt (vasnprintf.c): sync lost.
35480
35481 2006-01-25  Jim Meyering  <jim@meyering.net>
35482
35483         Sync from the stable (b5) branch of coreutils:
35484
35485         * lib/fts.c (fts_children): Don't let close() clobber errno from
35486         failed fchdir().
35487
35488         * lib/fts.c (fts_stat): When following a symlink-to-directory,
35489         don't necessarily interpret stat-fails+lstat-succeeds as indicating
35490         a dangling symlink.  That can also happen at least for ELOOP.
35491         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
35492         FYI, this bug predates the inclusion of fts.c in coreutils.
35493
35494         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
35495         in their own block, so pre-c99 compilers don't object.
35496
35497         Avoid the double-free (first in fts_read, second in fts_close) that
35498         would occur when an `active' directory is made inaccessible (e.g.,
35499         via chmod a-x) during a traversal.
35500         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
35501         before returning.  Reproduce this failure by
35502         mkdir -p a/b; cd a; chmod a-x . b
35503         Reported by Stavros Passas.
35504
35505 2006-01-25  Jim Meyering  <jim@meyering.net>
35506
35507         * lib/fileblocks.c: Remove more useless parentheses.
35508         * lib/readutmp.h: Likewise.
35509
35510 2006-01-25  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
35513         warnings.
35514         Reported by Paul Eggert.
35515
35516 2006-01-25  Bruno Haible  <bruno@clisp.org>
35517
35518         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
35519         rid of a trap command. For Solaris sh.
35520         Reported by Mark D. Baushke <mdb@gnu.org>.
35521
35522 2006-01-24  Simon Josefsson  <jas@extundo.com>
35523
35524         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
35525         Bruno.
35526
35527 2006-01-24  Karl Berry  <karl@gnu.org>
35528
35529         * config/srclist.txt (argp-namefrob.h): sync lost.
35530
35531 2006-01-24  Jim Meyering  <jim@meyering.net>
35532
35533         * modules/openat (Files): Add lib/intprops.h.
35534         From Mark D. Baushke.
35535
35536 2006-01-24  Jim Meyering  <jim@meyering.net>
35537
35538         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
35539         Reported by Mark D. Baushke.
35540
35541 2006-01-24  Jim Meyering  <jim@meyering.net>
35542
35543         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
35544
35545 2006-01-24  Bruno Haible  <bruno@clisp.org>
35546
35547         * modules/strnlen (Maintainer): Change from glibc to all.
35548
35549 2006-01-24  Bruno Haible  <bruno@clisp.org>
35550
35551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
35552         Patch by Paul Eggert.
35553
35554 2006-01-24  Bruno Haible  <bruno@clisp.org>
35555
35556         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
35557         already has it.
35558         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
35559         2005-11-26.
35560
35561         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
35562         'signed char' to avoid problems with the built-in _Bool type.
35563         Reported by Paul Eggert on 2005-11-26.
35564
35565 2006-01-24  Bruno Haible  <bruno@clisp.org>
35566
35567         * gnulib-tool (func_import): Avoid constructing complicated sed
35568         expressions inside backquote.
35569         Report and solution by Mark D. Baushke <mdb@gnu.org>.
35570
35571 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
35572
35573         These changes imported from libc.
35574         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
35575         test and two separate function calls.
35576         * lib/strndup.c (__strndup): Add libc_hidden_def.
35577
35578 2006-01-23  Simon Josefsson  <jas@extundo.com>
35579
35580         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
35581         Remove the test_*_SOURCES variable: automake infers it by default.
35582         * modules/tls-tests: Likewise.
35583
35584 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35585
35586         Work around porting bugs reported by Dieter in
35587         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
35588         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
35589         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
35590         Include "getopt.h" first, to check interface.
35591         (getenv): Declare only if defined HAVE_DECL_GETENV &&
35592         !HAVE_DECL_GETENV.
35593         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
35594         (__strndup): Revert to K&R-style function dfns, the glibc style.
35595         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
35596         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
35597         Include strnlen.h first, to get prototype properly.
35598         (strnlen): Renamed from __strnlen.
35599         Remove weak alias.
35600
35601 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35602
35603         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
35604
35605 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         * config/srclist.txt: Adjust to reflect glibc reorganization.
35608         This affects only comments.
35609
35610 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35611
35612          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
35613          Reported by Bruce Korb <bkorb@gnu.org>.
35614
35615 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35616
35617         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
35618         to pacify gcc -Wswitch-default.
35619
35620 2006-01-22  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
35623         temporary buffer for sprintf, take into account the precision also
35624         for 'd', 'i', 'u', 'o', 'x', 'X'.
35625
35626 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35627
35628         * modules/argp-tests: New module
35629         * tests/test-argp.c: New file
35630         * tests/test-argp-2.sh: New file
35631
35632 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35633
35634         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
35635         (__argp_base_name): Removed
35636         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
35637         typo.
35638         (__argp_base_name): Provide macro definition or extern declaration
35639         depending on the configuration
35640
35641 2006-01-20  Simon Josefsson  <jas@extundo.com>
35642
35643         * modules/inet_ntop (Depends-on): Depend on sys_socket.
35644
35645 2006-01-20  Simon Josefsson  <jas@extundo.com>
35646
35647         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
35648
35649 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35650
35651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
35652         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
35653         Suggested by Bruno Haible.
35654
35655 2006-01-20  Karl Berry  <karl@gnu.org>
35656
35657         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
35658         until changes propagate, I guess.
35659
35660 2006-01-19  Simon Josefsson  <jas@extundo.com>
35661
35662         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
35663
35664 2006-01-19  Simon Josefsson  <jas@extundo.com>
35665
35666         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
35667
35668 2006-01-19  Simon Josefsson  <jas@extundo.com>
35669
35670         * gnulib-tool: Set check_PROGRAMS.
35671
35672         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35673         modules/des-tests, modules/gc-arcfour-tests,
35674         modules/gc-arctwo-tests, modules/gc-des-tests,
35675         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35676         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35677         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35678         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35679         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35680         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
35681         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
35682         test_*_SOURCES.
35683
35684 2006-01-18  Simon Josefsson  <jas@extundo.com>
35685
35686         * modules/socklen (Depends-on): Depend on sys_socket.
35687
35688 2006-01-18  Simon Josefsson  <jas@extundo.com>
35689
35690         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35691         modules/des-tests, modules/gc-arcfour-tests,
35692         modules/gc-arctwo-tests, modules/gc-des-tests,
35693         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35694         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35695         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35696         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35697         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35698         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
35699         $(EXEEXT) to automake TESTS variable, for mingw32.
35700
35701 2006-01-17  Simon Josefsson  <jas@extundo.com>
35702
35703         * modules/socklen (Include): Need sys/socket.h.
35704
35705 2006-01-17  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/ssize_t (Include): Add <sys/types.h>.
35708
35709 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35710
35711         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
35712         it's not portable and it doesn't work with cross-compiles.
35713         Problem reported by Bruno Haible.  Fix missing-$ typo in
35714         'test "gl_cv_ignore_unused_libraries" ...' that prevented
35715         -zignore from being used with Sun's C compiler.
35716
35717 2006-01-12  Simon Josefsson  <jas@extundo.com>
35718
35719         * lib/base64.c: Fix warning, reported by Bruno Haible
35720         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
35721
35722 2006-01-12  Bruno Haible  <bruno@clisp.org>
35723
35724         * modules/ldd: New file.
35725         * build-aux/ldd.sh.in: New file.
35726         * MODULES.html.sh (Support for building libraries and executables): Add
35727         ldd.
35728
35729 2006-01-12  Bruno Haible  <bruno@clisp.org>
35730
35731         * m4/ldd.m4: New file.
35732
35733 2006-01-12  Bruno Haible  <bruno@clisp.org>
35734
35735         * gnulib-tool (func_import, func_create_testdir): Don't go into an
35736         endless loop while replacing $auxdir with build-aux.
35737
35738 2006-01-11  Simon Josefsson  <jas@extundo.com>
35739
35740         * lib/stdint_.h (SIZE_MAX): Add missing (.
35741
35742 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35743
35744         Sync from coreutils.
35745         * lib/md5.c: Fix commentary typos.
35746         (alignof, UNALIGNED_P): No need for a GCC-specific version.
35747         * lib/md5.h (__attribute__): Remove; unused.
35748         * lib/sha1.c: Fix commentary to match md5 better.
35749         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
35750         so that we don't need to worry about alignment.  All uses changed.
35751         This merges the 2005-10-28 md5 change into sha1.
35752
35753 2006-01-11  Jim Meyering  <jim@meyering.net>
35754
35755         Sync from coreutils.
35756         * lib/md5.c (OP): Fix spacing.
35757
35758 2006-01-11  Bruno Haible  <bruno@clisp.org>
35759
35760         Ensure automatic ordering between gl_LOCK and gl_ARGP.
35761         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
35762         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
35763
35764 2006-01-11  Bruno Haible  <bruno@clisp.org>
35765
35766         Ensure automatic ordering between gl_LOCK and gl_ARGP.
35767         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
35768         the "early" section as well.
35769
35770 2006-01-11  Bruno Haible  <bruno@clisp.org>
35771
35772         Avoid "ar: no archive members specified" error on MacOS X.
35773         * gnulib-tool (func_modules_add_dummy): New function.
35774         (func_import, func_create_testdir): Invoke it.
35775
35776 2006-01-11  Bruno Haible  <bruno@clisp.org>
35777
35778         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
35779         with $auxdir in AC_CONFIG_FILES statements.
35780
35781 2006-01-11  Bruno Haible  <bruno@clisp.org>
35782
35783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35784         Initialize also noinst_HEADERS to empty.
35785
35786 2006-01-11  Bruno Haible  <bruno@clisp.org>
35787
35788         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
35789         variables.
35790         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
35791         autoreconf.
35792
35793 2006-01-11  Bruno Haible  <bruno@clisp.org>
35794
35795         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
35796         overridable by the user.
35797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35798
35799 2006-01-10  Simon Josefsson  <jas@extundo.com>
35800
35801         * modules/sys_socket: New file.
35802
35803 2006-01-10  Simon Josefsson  <jas@extundo.com>
35804
35805         * m4/sys_socket_h.m4: New file.
35806
35807 2006-01-10  Simon Josefsson  <jas@extundo.com>
35808
35809         * lib/socket_.h: New file.
35810
35811 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35812
35813         * modules/readutmp (Maintainer): Add myself.
35814
35815 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35816
35817         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
35818         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
35819         People who are still concerned with buggy memcmp implementations
35820         can invoke gl_FUNC_MEMCMP themselves.
35821
35822 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35823
35824         * lib/regex_internal.h (BITSET_WORD_BITS):
35825         Work around a bug in 64-bit PGC (before version 6.1-2), where the
35826         preprocessor mishandles large unsigned values as if they were signed.
35827         Problem reported by Claudio Fontana in
35828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
35829
35830 2006-01-10  Jim Meyering  <jim@meyering.net>
35831
35832         Avoid the double-free (first in fts_read, second in fts_close) that
35833         would occur when an `active' directory is made inaccessible (e.g.,
35834         via chmod a-x) during a traversal.
35835         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
35836         before returning.  Reproduce this failure by
35837         mkdir -p a/b; cd a; chmod a-x . b
35838         Reported by Stavros Passas.
35839
35840         Sync from coreutils.
35841         * lib/sha1.c: Tweak grammar in a comment.
35842
35843 2006-01-10  Jim Meyering  <jim@meyering.net>
35844
35845         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
35846         Patch by Joerg Sonnenberger.
35847
35848 2006-01-10  Bruno Haible  <bruno@clisp.org>
35849
35850         * modules/readutmp: Depend on module free.
35851         * modules/strtok_r: Depend on module restrict.
35852
35853 2006-01-10  Bruno Haible  <bruno@clisp.org>
35854
35855         * modules/gettext (configure.ac): Add an invocation of
35856         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
35857
35858 2006-01-10  Bruno Haible  <bruno@clisp.org>
35859
35860         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
35861         Reported by Werner Lemberg <wl@gnu.org>.
35862
35863 2006-01-10  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/localcharset.c: Update from GNU gettext.
35866
35867 2006-01-10  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/argp.h (__const): Remove macro. Use const instead.
35870         * lib/argp-fmtstream.h (__const): Likewise.
35871         * lib/glob_.h (__const): Remove macro.
35872         * lib/glob-libc.h: Use const instead of __const.
35873
35874 2006-01-10  Bruno Haible  <bruno@clisp.org>
35875
35876         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
35877         variable.
35878         Needed to avoid an automake error regarding the 'gettext' module.
35879
35880 2006-01-09  Simon Josefsson  <jas@extundo.com>
35881
35882         * modules/inet_ntop (Depends-on): Add restrict.
35883
35884 2006-01-09  Simon Josefsson  <jas@extundo.com>
35885
35886         * modules/gc-rijndael-tests (License): Put under LGPL.
35887
35888         * modules/gc-des-tests (License): Likewise.
35889
35890         * modules/gc-arcfour-tests (License): Likewise.
35891
35892         * modules/gc-arctwo-tests (License): Likewise.
35893
35894         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
35895
35896         * modules/gc-hmac-sha1-tests (Files): Likewise.
35897
35898         * modules/gc-hmac-md5-tests (License): Likewise.
35899
35900         * modules/gc-sha1-tests (License): Likewise.
35901
35902         * modules/gc-md5-tests (License): Likewise.
35903
35904         * modules/gc-md4-tests (License): Likewise.
35905
35906         * modules/gc-md2-tests (License): Likewise.
35907
35908         * modules/gc-tests (License): Likewise.
35909
35910         * modules/des-tests (License): Likewise.
35911
35912         * modules/md4-tests (License): Likewise.
35913
35914         * modules/md2-tests (License): Likewise.
35915
35916 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35917
35918         Sync from coreutils:
35919
35920         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
35921         * modules/lib-ignore: New file.
35922         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
35923         chdir-safer.m4, lchmod.m4.
35924         * modules/openat: Add mkdirat.c, openat-priv.h.
35925
35926 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35927
35928         Sync from coreutils.
35929         * m4/lib-ignore.m4: New file.
35930         * m4/lchmod.m4: New file.
35931
35932 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35933
35934         Sync from coreutils.
35935         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
35936         for write access: POSIX says that must fail.
35937         * lib/fts.c (diropen): Likewise.
35938         * lib/save-cwd.c (save_cwd): Likewise.
35939         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
35940         well, for minor improvements on hosts that lack O_DIRECTORY.
35941         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
35942         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
35943         Fall back on chown if open failed with EACCES.
35944
35945         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
35946         Report an error at compile-time if only a 1-second nominal clock
35947         resolution is found.
35948
35949         * lib/lchmod.h: New file.
35950         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
35951         (make_dir_parents): Use lchown rather than chown, and
35952         lchmod rather than chmod.
35953
35954         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
35955         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
35956         "proc" reported by n0dalus.
35957
35958         * lib/mountlist.c: Include <limits.h>.
35959         (dev_from_mount_options)
35960         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
35961         New function.  It no longer assumes "dev=" has the System V meaning
35962         on Linux (since it doesn't).  It also parses "dev=" more carefully.
35963         (read_file_system_list)
35964         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
35965         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
35966         dev= in that case.
35967
35968         * lib/posixtm.h (PDS_PRE_2000): New macro.
35969         * lib/posixtm.c (year): Arg is now syntax_bits rather than
35970         allow_century.  All usages changed.  Reject dates outside the range
35971         1969-1999 if PDS_PRE_2000 is used.
35972
35973 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35974
35975         Sync from coreutils.
35976         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
35977         (Time of day items): Mention the possibility of leap seconds.
35978         Problem reported by Dr. David Alan Gilbert.
35979
35980 2006-01-09  Jim Meyering  <jim@meyering.net>
35981
35982         Sync from coreutils.
35983
35984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
35985
35986         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
35987
35988         * lib/modechange.c (mode_compile): Reject an invalid mode string
35989         that starts with an octal digit.  From Andreas Gruenbacher.
35990
35991         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
35992         and dup to open_safer and dup_safer, respectively.
35993         (openat_permissive): Fix typo in comment.
35994
35995         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
35996         "gettext.h"; either no longer needed or are guaranteed by openat.h.
35997         (_): Remove; no longer needed.
35998         (openat): Renamed from rpl_openat; no need for rpl_openat
35999         since openat.h renames openat for us.
36000         Replace most of the body with a call to openat_permissive,
36001         to avoid duplicate code.
36002         Port to (probably hypothetical) environments were mode_t is
36003         wider than int.
36004         (openat_permissive): Require mode arg, so that we can check
36005         types better.  Put it just after flags.  Change cwd failure
36006         indicator from pointer-to-bool to pointer-to-errno-value.
36007         All callers changed.
36008         Invoke openat_save_fail and/or openat_restore_fail if
36009         cwd_errno is null, so that openat can call us.
36010         (openat_permissive, fdopendir, fstatat, unlinkat):
36011         Simplify errno handling to avoid some duplicate code,
36012         as it's OK to set errno on success.
36013         * lib/openat.h: Revamp code so that function macros depend on
36014         __OPENAT_PREFIX only, not also on AT_FDCWD.
36015         (openat_ro): Remove.  Caller changed to use openat_permissive.
36016         (openat_permissive): Now a macro, if not a function.
36017         (openat_restore_fail, openat_save_fail): Now always functions,
36018         since mkdirat needs them even if __OPENAT_PREFIX is defined.
36019
36020         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
36021         and openat.c.
36022         * lib/mkdirat.c: Include openat-priv.h.
36023         Remove definitions of macros defined therein.
36024         * lib/openat.c: Likewise.
36025
36026         * lib/mkdirat.c (mkdirat): New file and function.
36027         * lib/openat.h (mkdirat): Declare.
36028
36029         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
36030
36031         * lib/openat.h (openat_permissive): Declare.
36032         (openat_ro): Define.
36033
36034         * lib/openat.c (EXPECTED_ERRNO): New macro.
36035         (openat_permissive): New function -- used in remove.c rewrite.
36036         (all functions): Set errno just before returning, only if there
36037         was an actual failure.
36038         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
36039
36040         Emulate openat-family functions using Linux's procfs, if possible.
36041         Idea and some code based on Ulrich Drepper's glibc changes.
36042
36043         * lib/openat.c: (BUILD_PROC_NAME): New macro.
36044         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
36045         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
36046         before falling back on save_cwd and restore_cwd.
36047         (fdopendir, fstatat, unlinkat): Likewise.
36048
36049         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
36050         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
36051
36052         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
36053         as second argument to va_arg.  Otherwise, some versions of gcc
36054         warn that `if this code is reached, the program will abort'.
36055
36056 2006-01-09  Jim Meyering  <jim@meyering.net>
36057
36058         Sync from coreutils.
36059         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
36060         Require openat-priv.h.
36061
36062 2006-01-09  Bruno Haible  <bruno@clisp.org>
36063
36064         * modules/strnlen (Include): Use strnlen.h.
36065
36066 2006-01-09  Bruno Haible  <bruno@clisp.org>
36067
36068         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
36069
36070 2006-01-09  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/sysexit_.h (EX_OK): New macro.
36073         Suggested by Martin Lambers <marlam@marlam.de>.
36074
36075 2006-01-09  Bruno Haible  <bruno@clisp.org>
36076
36077         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
36078         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
36079
36080 2006-01-09  Bruno Haible  <bruno@clisp.org>
36081
36082         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
36083         numbers.
36084
36085 2006-01-09  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
36088         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
36089         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
36090         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
36091
36092 2006-01-09  Bruno Haible  <bruno@clisp.org>
36093
36094         * build-aux/javacomp.sh.in: New file, moved from lib/.
36095         * modules/javacomp-script (Files): Update.
36096         (configure.ac): Add AC_CONFIG_FILES invocation.
36097         (EXTRA_DIST): Remove variable.
36098
36099         * build-aux/javaexec.sh.in: New file, moved from lib/.
36100         * modules/javaexec (Files): Update.
36101         (configure.ac): Add AC_CONFIG_FILES invocation.
36102         (EXTRA_DIST): Remove javaexec.sh.in.
36103
36104         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
36105         * modules/csharpcomp-script (Files): Update.
36106         (configure.ac): Add AC_CONFIG_FILES invocation.
36107         (EXTRA_DIST): Remove variable.
36108
36109         * build-aux/csharpexec.sh.in: New file, moved from lib/.
36110         * modules/csharpexec (Files): Update.
36111         (configure.ac): Add AC_CONFIG_FILES invocation.
36112         (EXTRA_DIST): Remove csharpexec.sh.in.
36113
36114 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36115
36116         Sync from coreutils.
36117
36118         Add POSIX ACL support
36119         * lib/acl.h (copy_acl, set_acl): Add declarations.
36120         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
36121         systems other than Linux.
36122         (chmod_or_fchmod): New function: use fchmod when possible,
36123         and chmod otherwise.
36124         (file_has_acl): Add a POSIX ACL implementation, with a
36125         Linux-specific subcase.
36126         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
36127         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
36128         acls are unsupported.
36129         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
36130         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
36131         are unsupported.
36132
36133 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36134
36135         Sync from coreutils.
36136         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
36137
36138 2006-01-07  Bruno Haible  <bruno@clisp.org>
36139
36140         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
36141         gl_EARLY.
36142
36143 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36144
36145         * lib/strftime.c (tzname): Don't declare if it is already #defined.
36146         Problem reported for Mingw by Mark Junker.
36147
36148 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36149
36150         * README: Gnulib normally doesn't generate a tarball.
36151
36152 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36153
36154         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
36155         long int, not int, for nanosecond counts, so that people who are
36156         used to POSIX struct timespec won't be surprised.  Reported by Jim
36157         Meyering.
36158
36159 2005-12-28  Bruno Haible  <bruno@clisp.org>
36160
36161         * build-aux/config.rpath: Update from GNU gettext.
36162
36163 2005-12-16  Jim Meyering  <jim@meyering.net>
36164
36165         * modules/fprintftime: New module.
36166         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
36167
36168 2005-12-16  Jim Meyering  <jim@meyering.net>
36169
36170         * m4/fprintftime.m4: New file.
36171
36172 2005-12-16  Jim Meyering  <jim@meyering.net>
36173
36174         * lib/fprintftime.c, lib/fprintftime.h: New files.
36175
36176 2005-12-15  Simon Josefsson  <jas@extundo.com>
36177
36178         * modules/socklen (configure.ac): Fix M4 macro name, to align with
36179         new m4/socklen.m4.
36180
36181 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36182
36183         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
36184         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
36185
36186 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36187
36188         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
36189         * lib/argp-help.c (fill_in_uparams): Check if the constructed
36190         struct uparams is valid. Fall back to the default values if it is
36191         not.
36192
36193 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36194
36195         * modules/argp (Files): Add argp-pin.c
36196         (Depends-on): dirname
36197         (lib_SOURCES): Add argp-pin.c
36198
36199 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36200
36201         * m4/argp.m4:  Check if program_invocation_name and
36202         program_invocation_short_name are declared and define appropriate
36203         macros if they are not.
36204
36205 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36206
36207         * lib/argp-help.c (__argp_base_name): New function
36208         (__argp_short_program_name): Rewrite using __argp_base_name
36209         * lib/argp-namefrob.h: Define program_invocation_name and
36210         program_invocation_short_name if requested
36211         (__argp_base_name): Add prototype
36212         * lib/argp-parse.c (argp_def): Use gettext wrappers
36213         (argp_default_parser): Use __argp_base_name
36214         * lib/argp-pin.c: New file. Defines program_invocation_name and
36215         program_invocation_short_name on systems that lack them.
36216
36217 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36218
36219         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
36220         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36221         porting problem reported by Georg Schwarz in
36222         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36223
36224 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36225
36226         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
36227         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36228         porting problem reported by Georg Schwarz in
36229         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36230
36231 2005-12-05  Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
36234         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
36235         Reported by Mark Junker <mjscod@gmx.de>.
36236
36237 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36238
36239         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
36240         Use implementation from Albert Chin, with some
36241         comments/corrections by Stepan Kasal and myself.
36242
36243 2005-12-02  Bruno Haible  <bruno@clisp.org>
36244
36245         * gnulib-tool (func_import): Accept GPLed build tool modules when
36246         --lgpl is given.
36247         * modules/csharpcomp-script: New file.
36248         * modules/csharpcomp: Depend on it.
36249         * modules/javacomp-script: New file.
36250         * modules/javacomp: Depend on it.
36251         Suggested by Simon Josefsson.
36252
36253 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
36254
36255         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
36256         statement, to work around an HP-UX 10.20 compiler bug reported by
36257         Peter O'Gorman.
36258
36259 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36260
36261         * modules/savedir (Depends-on): Add openat.
36262
36263 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36264
36265         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
36266         (uintmax_t) [defined uintmax_t]: Do not declare.
36267         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
36268         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
36269         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
36270         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
36271         sake of portability to weird hosts that C allows (though we don't
36272         know of any practical examples).
36273
36274         * lib/savedir.h (fdsavedir): New decl.
36275         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
36276         contains most of the former guts of savedir.
36277         (savedir): Use savedirstream.
36278         Include "openat.h".
36279
36280 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36281
36282         * modules/obstack (Files): Add m4/ulonglong.m4.
36283         Problem reported by Davide Angelocola.
36284
36285 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36286
36287         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
36288         coreutils no longer futzes with rounding modes.
36289
36290 2005-11-14  Jim Meyering  <jim@meyering.net>
36291
36292         * lib/mkstemp-safer.c: Include <config.h>, required for possible
36293         replacement of mkstemp.
36294
36295 2005-11-10  Simon Josefsson  <jas@extundo.com>
36296
36297         * lib/readline.c: Remove EOL.
36298
36299 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36300
36301         * modules/gethrxtime (Depends-on): Add gettime.
36302
36303 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36304
36305         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
36306         or gettimeofday; no longer needed.
36307
36308 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36309
36310         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
36311         time business.
36312         (gethrxtime) [! (HAVE_NANOUPTIME
36313         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
36314         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
36315         our own approximation.
36316
36317 2005-11-08  Eric Blake  <ebb9@byu.net>
36318
36319         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36320
36321 2005-11-08  Eric Blake  <ebb9@byu.net>
36322
36323         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36324
36325 2005-11-04  Bruno Haible  <bruno@clisp.org>
36326
36327         * gnulib-tool: Implement --update mode.
36328
36329 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36330
36331         Fix porting problem reported by Theodoros V. Kalamatianos.
36332         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
36333         Don't assume that futimes failing means we must fail.
36334
36335 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36336
36337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
36338         variables to suggest the intended function of the PATH_MAX check.
36339
36340 2005-10-30  Kean Johnston  <jkj@sco.com>
36341
36342         Trivial changes to support SCO systems.
36343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
36344         as PATH_MAX.
36345         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
36346         where __ptr is null when no I/O is pending.
36347
36348 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36349
36350         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
36351         leave errno alone.  Problem reported by Dmitry V. Levin.
36352
36353 2005-10-28  Simon Josefsson  <jas@extundo.com>
36354
36355         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
36356         Test more.
36357
36358         * tests/test-gc-md2.c, tests/test-md2.c: New files.
36359
36360         * modules/md2, modules/md2-tests: New files.
36361
36362 2005-10-28  Simon Josefsson  <jas@extundo.com>
36363
36364         * m4/inet_ntop.m4: More tests.
36365
36366         * m4/gc-md2.m4, md2.m4: New file.
36367
36368 2005-10-28  Simon Josefsson  <jas@extundo.com>
36369
36370         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
36371         "restrict" keywords, as per POSIX.  Protect the function
36372         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
36373         Don't use K&R prototypes.  Check the sprintf return values.
36374         Re-define EAFNOSUPPORT if not present.  Indent.
36375
36376         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
36377         suggested by Bruno Haible <bruno@clisp.org>.
36378
36379         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
36380
36381         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
36382
36383         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
36384         libgcrypt).
36385
36386         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
36387
36388         * lib/md2.h, lib/md2.c: New files.
36389
36390 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
36391
36392         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
36393         errno alone.  Problem reported by Frederic Jolliton.
36394
36395 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
36396
36397         * modules/verify (License): Change from GPL to LGPL.  This is a
36398         tiny module and there are apparently near-equivalents that are
36399         under the BSD license.
36400
36401 2005-10-24  Simon Josefsson  <jas@extundo.com>
36402
36403         * modules/sha1: Relicense to LGPL.
36404
36405 2005-10-24  Simon Josefsson  <jas@extundo.com>
36406
36407         * lib/md4.h: Shrink buffer size, now that we changed the type.
36408
36409 2005-10-23  Simon Josefsson  <jas@extundo.com>
36410
36411         * gnulib-tool (func_import): Fix --tests-base.
36412
36413 2005-10-22  Simon Josefsson  <jas@extundo.com>
36414
36415         * modules/arcfour (Depends-on): Need stdint.
36416
36417 2005-10-22  Simon Josefsson  <jas@extundo.com>
36418
36419         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
36420         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
36421
36422 2005-10-22  Simon Josefsson  <jas@extundo.com>
36423
36424         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
36425         suggested by Bruno Haible <bruno@clisp.org>.
36426
36427 2005-10-22  Simon Josefsson  <jas@extundo.com>
36428
36429         * lib/crc.h: Include stddef.h, for size_t.
36430
36431 2005-10-22  Simon Josefsson  <jas@extundo.com>
36432
36433         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
36434         arcfour_context struct (simplify test vector testing in GNU
36435         Shishi).
36436
36437 2005-10-21  Simon Josefsson  <jas@extundo.com>
36438
36439         * modules/des, modules/des-tests: New files.
36440
36441         * modules/gc-des, modules/gc-des-tests: New files.
36442
36443         * tests/test-des.c, tests/test-gc-des.c: New file.
36444
36445 2005-10-21  Simon Josefsson  <jas@extundo.com>
36446
36447         * modules/arctwo, modules/arctwo-tests: New files.
36448
36449         * tests/test-arctwo.c: New file.
36450
36451         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
36452
36453         * tests/test-gc-arctwo.c: New file.
36454
36455 2005-10-21  Simon Josefsson  <jas@extundo.com>
36456
36457         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
36458         Bruno Haible <bruno@clisp.org>.
36459
36460         * m4/gc-des.m4: New file.
36461
36462 2005-10-21  Simon Josefsson  <jas@extundo.com>
36463
36464         * m4/arctwo.m4: New file.
36465
36466         * m4/gc-arctwo.m4: New file.
36467
36468 2005-10-21  Simon Josefsson  <jas@extundo.com>
36469
36470         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
36471         block.
36472
36473 2005-10-21  Simon Josefsson  <jas@extundo.com>
36474
36475         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
36476         <bruno@clisp.org>.
36477
36478         * lib/hmac-sha1.c (hmac_sha1): Likewise.
36479
36480         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
36481         Bruno Haible <bruno@clisp.org>.
36482
36483         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
36484         <bruno@clisp.org>.
36485
36486 2005-10-21  Simon Josefsson  <jas@extundo.com>
36487
36488         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
36489
36490 2005-10-21  Simon Josefsson  <jas@extundo.com>
36491
36492         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
36493
36494 2005-10-21  Simon Josefsson  <jas@extundo.com>
36495
36496         * lib/des.h, lib/des.c: New files.
36497
36498         * lib/gc-gnulib.c: Support DES.c
36499
36500 2005-10-21  Simon Josefsson  <jas@extundo.com>
36501
36502         * lib/arctwo.h, lib/arctwo.c: New files.
36503
36504         * lib/gc-gnulib.c: Support ARCTWO.
36505
36506 2005-10-21  Simon Josefsson  <jas@extundo.com>
36507
36508         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
36509         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36510
36511 2005-10-21  Simon Josefsson  <jas@extundo.com>
36512
36513         * gnulib-tool (func_import, func_create_testdir): Define automake
36514         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
36515         Makefile.am snippet),
36516         suggested by Bruno Haible <bruno@clisp.org>.
36517
36518         * modules/gc (Makefile.am): Use it.
36519
36520 2005-10-21  Bruno Haible  <bruno@clisp.org>
36521
36522         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
36523         patch.
36524
36525 2005-10-19  Simon Josefsson  <jas@extundo.com>
36526
36527         * tests/test-gc-rijndael.c: New file.
36528
36529         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
36530
36531 2005-10-19  Simon Josefsson  <jas@extundo.com>
36532
36533         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
36534         interface too.
36535
36536 2005-10-19  Simon Josefsson  <jas@extundo.com>
36537
36538         * tests/test-gc-arcfour.c: New file.
36539
36540         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
36541
36542 2005-10-19  Simon Josefsson  <jas@extundo.com>
36543
36544         * modules/gc-md4, modules/gc-md4-tests: New file.
36545
36546         * tests/test-gc-md4.c: New file.
36547
36548 2005-10-19  Simon Josefsson  <jas@extundo.com>
36549
36550         * m4/gc-md4.m4: New file.
36551
36552 2005-10-19  Simon Josefsson  <jas@extundo.com>
36553
36554         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
36555         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
36556         <kasal@ucw.cz>.
36557
36558 2005-10-19  Simon Josefsson  <jas@extundo.com>
36559
36560         * m4/gc-arcfour.m4: New file.
36561
36562         * m4/gc-rijndael.m4: New file.
36563
36564 2005-10-19  Simon Josefsson  <jas@extundo.com>
36565
36566         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
36567
36568 2005-10-19  Simon Josefsson  <jas@extundo.com>
36569
36570         * lib/gc-gnulib.c: Support ARCFOUR.
36571
36572 2005-10-19  Simon Josefsson  <jas@extundo.com>
36573
36574         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
36575         support.
36576
36577         * lib/gc.h: Add ECB enum type.
36578
36579         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
36580
36581 2005-10-18  Simon Josefsson  <jas@extundo.com>
36582
36583         * tests/test-md5.c: New file.
36584
36585         * modules/md5-tests: New file.
36586
36587 2005-10-18  Simon Josefsson  <jas@extundo.com>
36588
36589         * tests/test-md4.c: New file.
36590
36591         * modules/md4, modules/md4-tests: New files.
36592
36593 2005-10-18  Simon Josefsson  <jas@extundo.com>
36594
36595         * m4/md4.m4: New file.
36596
36597 2005-10-18  Simon Josefsson  <jas@extundo.com>
36598
36599         * lib/md4.h, lib/md4.c: New files, based on md5.?.
36600
36601 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
36602
36603         * gnulib-tool (func_create_testdir): Omit the second check whether
36604         BUILT_SOURCES in nonempty.
36605
36606 2005-10-17  Simon Josefsson  <jas@extundo.com>
36607
36608         * tests/test-rijndael.c: New file.
36609
36610 2005-10-17  Simon Josefsson  <jas@extundo.com>
36611
36612         * modules/sha1: Depend on stdint instead of md5.
36613
36614         * modules/md5: Depend on stdint, remove uint32_t.
36615
36616 2005-10-17  Simon Josefsson  <jas@extundo.com>
36617
36618         * modules/gc-sha1-tests: New file.
36619
36620         * tests/test-gc-sha1.c: New file.
36621
36622 2005-10-17  Simon Josefsson  <jas@extundo.com>
36623
36624         * m4/md5.m4: Remove call to uint32_t.m4.
36625
36626 2005-10-17  Simon Josefsson  <jas@extundo.com>
36627
36628         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
36629
36630         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
36631         md5.h.
36632
36633         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
36634
36635         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
36636
36637 2005-10-17  Simon Josefsson  <jas@extundo.com>
36638
36639         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
36640
36641 2005-10-17  Simon Josefsson  <jas@extundo.com>
36642
36643         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
36644
36645 2005-10-17  Simon Josefsson  <jas@extundo.com>
36646
36647         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
36648
36649         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
36650
36651 2005-10-17  Bruno Haible  <bruno@clisp.org>
36652
36653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
36654         that it can also be used in a test.
36655
36656 2005-10-16  Bruno Haible  <bruno@clisp.org>
36657
36658         * gnulib-tool (func_emit_tests_Makefile_am): Also define
36659         TESTS_ENVIRONMENT, so that individual tests can augment it.
36660
36661         * gnulib-tool (func_create_testdir): Use an intermediate target for
36662         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
36663         macros, like $(ALLOCA_H), which cannot be passed through the command
36664         line.
36665
36666 2005-10-15  Simon Josefsson  <jas@extundo.com>
36667
36668         * modules/rijndael-tests: New file.
36669
36670         * modules/rijndael: New file.
36671
36672 2005-10-15  Simon Josefsson  <jas@extundo.com>
36673
36674         * m4/rijndael.m4: New file.
36675
36676 2005-10-15  Simon Josefsson  <jas@extundo.com>
36677
36678         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
36679
36680         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
36681
36682 2005-10-14  Simon Josefsson  <jas@extundo.com>
36683
36684         * tests/test-arcfour.c: New file.
36685
36686         * modules/arcfour, modules/arcfour-tests: New files.
36687
36688 2005-10-14  Simon Josefsson  <jas@extundo.com>
36689
36690         * m4/arcfour.m4: New file.
36691
36692 2005-10-14  Simon Josefsson  <jas@extundo.com>
36693
36694         * lib/arcfour.h, lib/arcfour.c: New files.
36695
36696 2005-10-14  Roland McGrath  <roland@redhat.com>
36697
36698         Import from libc.  [BZ #1331]
36699         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
36700         macro argument.
36701         Reported by Matej Vela <vela@debian.org>.
36702
36703 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36704
36705         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
36706         include <wchar.h>; no longer needed.
36707
36708 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36709
36710         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
36711
36712 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
36713         and  Ulrich Drepper  <drepper@redhat.com>
36714
36715         Import from libc.
36716         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
36717         instead of inline stream orientation test and two separate
36718         function calls.  Pay no attention to USE_IN_LIBIO.
36719
36720 2005-10-13  Simon Josefsson  <jas@extundo.com>
36721
36722         * modules/gc-hmac-md5-tests: New file.
36723
36724         * tests/test-gc-hmac-sha1.c: New file.
36725
36726         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
36727
36728         * modules/gc-hmac-md5-tests: New file.
36729
36730         * tests/test-gc-md5.c: New file.
36731
36732         * modules/gc-md5-tests: New file.
36733
36734 2005-10-13  Simon Josefsson  <jas@extundo.com>
36735
36736         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
36737         Move memory allocation outside of loop.
36738
36739 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
36740
36741         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
36742         intermediate directory is in a read-only file system.  Problem
36743         reported by Eric Blake.
36744
36745 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
36746
36747         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
36748
36749 2005-10-12  Simon Josefsson  <jas@extundo.com>
36750
36751         * tests/test-hmac-sha1.c: New file.
36752
36753         * modules/hmac-sha1-tests: New file.
36754
36755         * modules/hmac-sha1: New file.
36756
36757 2005-10-12  Simon Josefsson  <jas@extundo.com>
36758
36759         * modules/gc-sha1: New file.
36760
36761 2005-10-12  Simon Josefsson  <jas@extundo.com>
36762
36763         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
36764
36765         * tests/test-gc-pbkdf2-sha1.c: New file.
36766
36767 2005-10-12  Simon Josefsson  <jas@extundo.com>
36768
36769         * modules/gc-md5, modules/gc-hmac-md5: New files.
36770
36771         * modules/gc (Files): Remove md5, memxor and hmac files.
36772
36773 2005-10-12  Simon Josefsson  <jas@extundo.com>
36774
36775         * m4/gc-pbkdf2-sha1.m4: New file.
36776
36777         * m4/gc-hmac-sha1.m4: New file.
36778
36779         * m4/gc-sha1: New file.
36780
36781         * m4/hmac-sha1.m4: New file.
36782
36783 2005-10-12  Simon Josefsson  <jas@extundo.com>
36784
36785         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
36786
36787         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
36788
36789 2005-10-12  Simon Josefsson  <jas@extundo.com>
36790
36791         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
36792         suggested by Bruno Haible <bruno@clisp.org>.
36793
36794 2005-10-12  Simon Josefsson  <jas@extundo.com>
36795
36796         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
36797
36798 2005-10-12  Simon Josefsson  <jas@extundo.com>
36799
36800         * lib/gc-pbkdf2-sha1.c: New file.
36801
36802         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
36803
36804 2005-10-12  Simon Josefsson  <jas@extundo.com>
36805
36806         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
36807
36808         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
36809
36810 2005-10-12  Simon Josefsson  <jas@extundo.com>
36811
36812         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
36813         GC_USE_HMAC_MD5, respectively.
36814
36815         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
36816         (gc_md5): Fix typo.
36817
36818         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
36819
36820         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
36821
36822         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
36823
36824 2005-10-12  Bruno Haible  <bruno@clisp.org>
36825
36826         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
36827         Reported by Stepan Kasal <kasal@ucw.cz>.
36828
36829 2005-10-11  Simon Josefsson  <jas@extundo.com>
36830
36831         * tests/test-crc.c: New file.
36832
36833         * modules/crc, modules/crc-tests: New files.
36834
36835 2005-10-11  Simon Josefsson  <jas@extundo.com>
36836
36837         * m4/crc.m4: New file.
36838
36839 2005-10-11  Simon Josefsson  <jas@extundo.com>
36840
36841         * lib/gc.h: Add gc_hash and gc_hash_buffer.
36842
36843         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
36844
36845         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
36846
36847 2005-10-11  Simon Josefsson  <jas@extundo.com>
36848
36849         * lib/crc.h, lib/crc.c: New files.
36850
36851         * lib/gc.h (gc_hash_buffer): Add doc.
36852
36853 2005-10-11  Bruno Haible  <bruno@clisp.org>
36854
36855         * modules/c-strcasestr: New file.
36856         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
36857
36858 2005-10-11  Bruno Haible  <bruno@clisp.org>
36859
36860         * modules/c-strcase: New file.
36861         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
36862
36863 2005-10-11  Bruno Haible  <bruno@clisp.org>
36864
36865         * lib/strcasecmp.c: Include limits.h.
36866         (strcasecmp): Avoid integer overflow on exotic platforms.
36867         * lib/strncasecmp.c: Include limits.h.
36868         (strncasecmp): Avoid integer overflow on exotic platforms.
36869         Reported by Paul Eggert.
36870
36871 2005-10-11  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/c-strcasestr.h: New file, from GNU gettext.
36874         * lib/c-strcasestr.c: New file, from GNU gettext.
36875
36876 2005-10-11  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/c-strcase.h: New file, from GNU gettext.
36879         * lib/c-strcasecmp.c: New file, from GNU gettext.
36880         * lib/c-strncasecmp.c: New file, from GNU gettext.
36881
36882 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
36883
36884         * modules/mempcpy (License): GPL -> LGPL.
36885         * modules/strchrnul (License): Likewise.
36886         * modules/sysexits (License): Likewise.
36887
36888 2005-10-08  Simon Josefsson  <jas@extundo.com>
36889
36890         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
36891
36892 2005-10-07  Simon Josefsson  <jas@extundo.com>
36893
36894         * m4/memxor.m4: Remove gl_C_RESTRICT call.
36895
36896 2005-10-06  Simon Josefsson  <jas@extundo.com>
36897
36898         * tests/test-hmac-md5.c: New file.
36899
36900         * modules/hmac-md5-tests: New file.
36901
36902         * modules/hmac-md5: New file.
36903
36904 2005-10-06  Simon Josefsson  <jas@extundo.com>
36905
36906         * m4/hmac-md5.m4: New file.
36907
36908         * m4/memxor.m4: Require gl_C_RESTRICT.
36909
36910 2005-10-06  Simon Josefsson  <jas@extundo.com>
36911
36912         * lib/memxor.c (memxor): Avoid casts and warnings.
36913
36914 2005-10-06  Simon Josefsson  <jas@extundo.com>
36915
36916         * lib/hmac-md5.c: New file.
36917
36918         * lib/hmac.h: New file.
36919
36920 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
36921
36922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
36923         promotes to int, not unsigned int, to catch the AIX 5.3
36924         compiler bug.
36925
36926 2005-10-05  Simon Josefsson  <jas@extundo.com>
36927
36928         * modules/memxor: New file.
36929
36930         * modules/iconv (Files): Move config.rpath to havelib, it is used
36931         there.
36932
36933         * modules/havelib (Files): Add config.rpath.
36934
36935 2005-10-05  Simon Josefsson  <jas@extundo.com>
36936
36937         * m4/memxor.m4: New file.
36938
36939 2005-10-05  Simon Josefsson  <jas@extundo.com>
36940
36941         * lib/memxor.c (memxor): Fix compiler error.
36942
36943         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
36944         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
36945
36946         * lib/memxor.h, lib/memxor.c: New files.
36947
36948         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
36949         we assume all systems have it, suggested by Jim Meyering
36950         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
36951         any systems lack sys/socket.h; mingw32 is known to lack it, but we
36952         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
36953         same reasons.
36954
36955 2005-10-05  Simon Josefsson  <jas@extundo.com>
36956
36957         * config/srclist.txt: Add glibc bug 1423 for md5.h.
36958
36959 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
36960
36961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
36962         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
36963         needed, since the source code now assumes these .h files.
36964
36965 2005-10-05  Derek Price  <derek@ximbiot.com>
36966
36967         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
36968
36969 2005-10-05  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/stdint (License): Change to LGPL.
36972
36973 2005-10-04  Simon Josefsson  <jas@extundo.com>
36974
36975         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
36976         D. Baushke" <mdb@gnu.org>.
36977
36978 2005-10-04  Bruno Haible  <bruno@clisp.org>
36979
36980         * lib/verify.h (verify_true): Provide alternative definition for C++.
36981
36982 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
36983
36984         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
36985         (SSIZE_MAX): New macro, if not already defined.
36986         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
36987         than 2 GiB.
36988
36989 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
36990
36991         Sync from coreutils.
36992         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
36993         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
36994         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
36995         ULLONG_MAX doesn't work with 2.7.2.1.
36996
36997 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
36998
36999         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
37000         From Ben Pfaff.
37001
37002         * modules/exclude (Depends-on): Depend on verify.
37003         * modules/strtoimax (Depends-on): Likewise.
37004         * modules/utimecmp (Depends-on): Likewise.
37005
37006 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37007
37008         * lib/exclude.c: Include verify.h.
37009         (verify): Remove.  All callers changed to use verify.h's version.
37010         * lib/strtoimax.c: Likewise.
37011         * lib/utimecmp.c: Likewis.e
37012
37013         Sync from coreutils.
37014         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
37015         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
37016         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
37017         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
37018         bother returning ENOSYS if settimeofday or stime fails; just let
37019         them return whatever errno they want to return.
37020         * lib/utimens.c: Include unistd.h, for dup2.
37021         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
37022         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
37023
37024 2005-10-02  Jim Meyering  <jim@meyering.net>
37025
37026         Sync from coreutils.
37027         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
37028         from glibc-2.2.5 that fails for read-only files.
37029
37030 2005-10-02  Jim Meyering  <jim@meyering.net>
37031
37032         Sync from coreutils.
37033         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
37034         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
37035         `#if HAVE_CONFIG_H'.
37036         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
37037         Remove AT_FDCWD test.
37038         Do not consume the fd unless successful.
37039         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
37040         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
37041         block, so that we don't even try to compile it if settimeofday is
37042         available.  This works around a compilation failure on OSF1 V5.1,
37043         due to stime requiring a `long int*' while tv_sec is `int'.
37044
37045 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
37046
37047         Sync from coreutils.
37048         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
37049         against `yes', rather than just testing for nonempty.
37050
37051 2005-10-01  Simon Josefsson  <jas@extundo.com>
37052
37053         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
37054         and Darwin.
37055
37056         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
37057         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
37058         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
37059         freeaddrinfo and gai_strerror are declared by the POSIX headers.
37060         Check if struct addrinfo is declared.
37061
37062 2005-10-01  Simon Josefsson  <jas@extundo.com>
37063
37064         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
37065         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
37066         AI_* and EAI_* definitions.  Protect function declarations.
37067
37068 2005-10-01  Jim Meyering  <jim@meyering.net>
37069
37070         Sync from coreutils.
37071
37072         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
37073         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
37074         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
37075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37076         in the inet and nsl libraries.  Required on Solaris 5.7.
37077
37078 2005-10-01  Jim Meyering  <jim@meyering.net>
37079
37080         Sync from coreutils.
37081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37082         in the inet and nsl libraries.  Required on Solaris 5.7.
37083
37084 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
37085
37086         * lib/getdelim.c (getdelim): Remove unused variables.
37087
37088 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
37089
37090         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
37091         so that the code works even with ancient cpp.  Portability problem
37092         with GCC 2.7.2.1 reported by Thomas M.Ott.
37093
37094 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37095
37096         * modules/regex (Depends-on): Add strcase.
37097
37098         * modules/gethostname (Licence): Change from GPL to LGPL, since
37099         gethostname.c is a trivial implementation of a standard library
37100         function.
37101         * modules/poll (License): Change from GPL to LGPL, since it's
37102         derived from LGPL code.
37103
37104 2005-09-27  Jim Meyering  <jim@meyering.net>
37105
37106         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
37107         HAVE_CONFIG_H.
37108
37109         * lib/intprops.h (signed_type_or_expr__): Define.
37110         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
37111         for unsigned types.
37112
37113 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37114
37115         * lib/verify.h (verify_expr): Remove, replacing with:
37116         (verify_true): New macro that returns true instead of void.
37117         (verify_type__): Remove.
37118         (verify): Use verify_true rather than verify_type__.
37119
37120 2005-09-26  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
37123         is necessary.
37124         (lib_SOURCES): Remove mbchar.c.
37125         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
37126         (Files): Add m4/mbrtowc.m4.
37127         * modules/mbiter: Likewise.
37128         * modules/mbuiter: Likewise.
37129
37130 2005-09-26  Bruno Haible  <bruno@clisp.org>
37131
37132         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
37133         compile mbchar.c if they are not both present.
37134         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
37135         * m4/mbiter.m4 (gl_MBITER): Likewise.
37136         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
37137         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
37138         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
37139
37140 2005-09-25  Jim Meyering  <jim@meyering.net>
37141
37142         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
37143         also uses socklen_t.
37144
37145 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37146
37147         * lib/utimens.c (ENOSYS): Define if not already defined.
37148         (futimens): Support having a null PATH if the file descriptor
37149         is nonnegative.
37150
37151         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
37152         Remove.
37153         (__attribute): Define to empty unless GCC 3.1 or later.
37154         This works around a core dump on OpenBSD 3.4, which has GCC
37155         2.95.3, which dumps core when given __attribute__(()).  It also
37156         simplifies other tests, since we really don't want to bother with
37157         worrying about which ancient version of GCC supported what.
37158         Original problem reported by Yoann Vandoorselaere, with part of
37159         the fix suggested by Derek Price.
37160
37161 2005-09-24  Jim Meyering  <jim@meyering.net>
37162
37163         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
37164         so we can once again use a positive bitfield width of 1 -- now we
37165         don't have to explain why we were using a bitfield width of 2.
37166
37167 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37168
37169         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
37170         and similarly for the other external symbols.  Problem reported
37171         by James Gallager.
37172
37173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
37174         bug reported by Jim Meyering.
37175
37176         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
37177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
37178         not needed, since socklen is a prerequisite module.
37179
37180 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37181
37182         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
37183         Problem reported by Eric Blake.
37184         (getaddrinfo): Initialize se so that it's not garbage.
37185         Redo internal storage allocation so that it doesn't make unportable
37186         assumptions about alignment.
37187         Fix a memory leak.
37188
37189         * lib/utimens.c (futimens): Use futimesat if available.
37190         Prefer it to futimes since it doesn't have the futimes bug.
37191
37192         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
37193         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
37194         Instead, declare a function that returns a pointer to an array,
37195         and use verify_type__ to declare the size of the array.
37196         Problem and germ of a solution reported by Bruno Haible.
37197         (verify_type__): Use 2, not 1, for bitfield size, to avoid
37198         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
37199
37200 2005-09-23  Jim Meyering  <jim@meyering.net>
37201
37202         Sync from coreutils.
37203         Correct build failure (socklen_t not defined) on at least
37204         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
37205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
37206
37207 2005-09-23  Jim Meyering  <jim@meyering.net>
37208
37209         * modules/getaddrinfo (Depends-on): Add socklen.
37210
37211 2005-09-23  Bruno Haible  <bruno@clisp.org>
37212
37213         * tests/test-verify.c: New file.
37214
37215 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37216
37217         Sync from coreutils.
37218
37219         * modules/argmatch (Depends-on): Add verify.
37220         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
37221         unistd-safer.
37222         * modules/save-cwd (Depends-on): Likewise.
37223
37224         * modules/openat (Files): Add lib/openat-die.c.
37225         (Depends-on): Remove error, exitfail.
37226         Add dirname.
37227
37228         * modules/verify: New file.
37229         * MODULES.html.sh (Diagnostics <assert.h>): New section,
37230         with "verify" module.
37231
37232 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37233
37234         Sync from coreutils.
37235
37236         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
37237         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
37238         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
37239         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
37240         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
37241         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
37242         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
37243         Don't bother checking for string.h, stdlib.h, unistd.h.
37244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
37245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
37246         module's job.
37247         * m4/jm-macros.m4 (gl_MACROS): Likewise.
37248         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
37249
37250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
37251         (gl_GETDATE): Use it.
37252
37253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
37254
37255 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37256
37257         Sync from coreutils.
37258
37259         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
37260         stat-time.h.
37261         * lib/argmatch.h: Include verify.h
37262         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
37263         (ARGMATCH_ASSERT): Remove; unused.
37264         * lib/canonicalize.c: Assume STDC_HEADERS.
37265         * lib/exclude.c: Include "strcase.h".
37266         * lib/regex_internal.h [!defined _LIBC]: Likewise.
37267         * lib/getusershell.c: Include stdio--.h rather than stdio.h
37268         and stdio-safer.h.
37269         (getusershell): Call fopen, not fopen_safer.
37270         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
37271         Do not include unistd-safer.h.
37272         (save_cwd): Don't call fd_safer; no longer needed
37273         now that we include fcntl--.h.
37274
37275         * lib/getdate.y (relative_time): New type.
37276         (RELATIVE_TIME_0): New constant.
37277         (parser_control): Use relative_time instead of doing it ourselves.
37278         (%union): Add new relative_time rel member.
37279         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
37280         Now typeless.
37281         (relunit, relunit_snumber): Now of type rel.
37282         (zone, rel, relunit, get_date): Adjust to above changes.
37283
37284         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
37285         Do not include unistd-safer.h.
37286         (getloadavg): Don't call fd_safer; no longer needed
37287         now that we include fcntl--.h.
37288
37289         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
37290         (make_dir_parents): Treat ENOSYS like EEXIST.
37291
37292         Improve quality of diagnostics on restore_cwd failure.
37293         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
37294         (make_dir_parents): Last arg is now int * (for errno), not bool *.
37295         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
37296         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
37297         each time through the loop.  Do not diagnose restore_cwd failure;
37298         that is the caller's job (and perhaps the caller does not care).
37299
37300         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
37301         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
37302         If the file already exists but is not a directory, don't bother
37303         to try to make its parents.
37304         Close potential file descriptor leak if we can't chdir("/") (!).
37305         Don't always return true if chdir($PWD) fails; return true only
37306         if the requested action was done successfully (except for the
37307         chdir($PWD)).
37308         Don't log final directory unless we actually made it.
37309         Refactor to avoid duplicate code to fix up permissions.
37310         Don't attempt to fix up parent permissions if chdir($PWD) fails.
37311
37312         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
37313         to make it a bit faster and (I hope) clearer.
37314         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
37315         Fix bug in formats like %2N.
37316
37317         * lib/verify.h: New file.
37318
37319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37320
37321         Sync from coreutils.
37322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
37323
37324 2005-09-22  Jim Meyering  <jim@meyering.net>
37325
37326         Sync from coreutils.
37327
37328         * m4/lstat.m4 (gl_FUNC_LSTAT):
37329         Use AC_LIBSOURCES to require lstat.c and lstat.h.
37330         Remove obsolete comment.
37331         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
37332         * m4/xstrtod.m4: Likewise.
37333
37334         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
37335
37336 2005-09-22  Jim Meyering  <jim@meyering.net>
37337
37338         Sync from coreutils.
37339
37340         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
37341
37342         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
37343         the .tm_year member, since otherwise gcc-4.0 would now warn about
37344         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
37345
37346         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
37347         order to avoid an unsuppressible warning from gcc on 64-bit systems.
37348
37349         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
37350         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
37351         when run in a time zone for which daylight savings time is in effect
37352         for the starting date.
37353
37354         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
37355         stop us from restricting permissions of just-created absolute-named
37356         directories.
37357         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
37358         to restore initial working directory.
37359         * lib/mkdir-p.c (make_dir_parents): New parameter:
37360         different_working_dir, to tell caller if/when we change the working
37361         directory and are unable to return to the initial one.
37362         * lib/mkdir-p.h (make_dir_parents): Update prototype.
37363         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
37364         `return false'.  This fixes a bug introduced on 2004-07-30.
37365
37366         * lib/openat.c (fdopendir): Be sure to close the supplied
37367         file descriptor before returning.  This makes our replacement
37368         implementation a little closer to Solaris's, where fdopendir
37369         ties the file descriptor to the returned DIR* pointer.
37370         * lib/openat.c (unlinkat): New function.
37371         * lib/openat.h (unlinkat): Add prototype.
37372         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
37373         (openat_restore_fail): Rename from openat_restore_die.
37374         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
37375
37376         Provide an alternative to exiting immediately upon save_cwd or
37377         restore_cwd failure.  Now, an application can arrange e.g.,
37378         to perform a longjump in that case.
37379         * lib/openat.c: Include dirname.h.
37380         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
37381         (rpl_openat, fdopendir, fstatat): Call openat_save_die
37382         and openat_restore_die rather than calling error directly.
37383         Don't include "error.h" or "exitfail.h"; they're no longer needed.
37384
37385         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
37386         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
37387         define.
37388
37389         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
37390         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
37391                             int utc, int nanoseconds);
37392         Background:
37393         date should not have to allocate a megabyte of virtual memory to
37394         handle a format argument like +%1048575T.  When implemented with
37395         strftime, it must allocate such a buffer, use strftime to fill it
37396         in, print it, then free it.
37397         With fprintftime, it simply prints everything and exits.
37398         With no need for memory allocation, that's one fewer way to fail.
37399         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
37400         optional field width, not before, so we accept %9:z, not %:9z.
37401         (my_strftime): Be sure to use L_('x') for literals.
37402
37403         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
37404         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
37405         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
37406         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
37407         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
37408         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
37409         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
37410         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
37411         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
37412         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
37413         * lib/xgethostname.c, lib/xreadlink.c:
37414         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
37415
37416         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
37417         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
37418         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
37419         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37420         and don't include <sys/file.h>).
37421
37422 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
37423
37424         Sync from coreutils.
37425
37426         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
37427         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
37428         [!LDAV_DONE]: Avoid unused variable warning.
37429
37430 2005-09-21  Bruno Haible  <bruno@clisp.org>
37431
37432         * lib/unicodeio.h (unicode_to_mb): New declaration.
37433
37434 2005-09-20  Derek Price  <derek@ximbiot.com>
37435
37436         * lib/getaddrinfo.c: Don't include <netdb.h> included from
37437         getaddrinfo.h.
37438
37439 2005-09-20  Bruno Haible  <bruno@clisp.org>
37440
37441         * gnulib-tool: Remove trailing slashes from the values specified for
37442         --source-base, --m4-base, --tests-base, --aux-dir.
37443         Suggested by Simon Josefsson <jas@extundo.com>.
37444
37445 2005-09-20  Bruno Haible  <bruno@clisp.org>
37446
37447         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
37448         func_modules_to_filelist, func_import, func_create_testdir): Make all
37449         sorting results locale-independent, so that gnulib-cache.m4 doesn't
37450         change when gnulib-tool is invoked in a different locale.
37451
37452 2005-09-19  Simon Josefsson  <jas@extundo.com>
37453
37454         * m4/socklen.m4: Fix typo.
37455
37456 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37457
37458         Use a consistent style for including <config.h>.
37459         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
37460         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
37461         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
37462         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
37463         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
37464         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
37465         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
37466         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
37467         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
37468         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
37469         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
37470         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
37471         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
37472         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
37473         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
37474         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
37475         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
37476         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
37477         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
37478         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
37479         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
37480         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
37481         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
37482         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
37483         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
37484         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
37485         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
37486         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
37487         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
37488         lib/xstrtoumax.c, lib/yesno.c:
37489         Standardize inclusion of config.h.
37490         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
37491         lib/inttostr.h:  Removed inclusion of config.h from header files.
37492         * lib/inttostr.c:  Adjusted in-tree users.
37493         * lib/timespec.h: Remove superfluous warning to include config.h.
37494         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
37495         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
37496         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
37497         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
37498         config.h with HAVE_CONFIG_H.
37499
37500 2005-09-19  Jim Meyering  <jim@meyering.net>
37501
37502         * modules/pathmax (License): Change to LGPL.
37503
37504 2005-09-19  Derek Price  <derek@ximbiot.com>
37505
37506         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
37507
37508 2005-09-19  Bruno Haible  <bruno@clisp.org>
37509
37510         * gnulib-tool (import): Provide default for --tests-base.
37511
37512 2005-09-19  Bruno Haible  <bruno@clisp.org>
37513
37514         * doc/quote.texi: New file, extracted from gnulib.texi.
37515         * doc/ctime.texi: New file, extracted from gnulib.texi.
37516         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
37517         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
37518         * doc/gnulib.texi: Include them.
37519
37520 2005-09-18  Bruno Haible  <bruno@clisp.org>
37521
37522         Portability fix.
37523         * gnulib-tool (func_readlink): New function.
37524         (func_ln_if_changed): Use it.
37525
37526 2005-09-18  Bruno Haible  <bruno@clisp.org>
37527
37528         * gnulib-tool: Support --with-tests also with --import.
37529         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
37530         (func_import): Use variables $testsbase and $inctests. Emit a
37531         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
37532         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
37533         SUBDIRS += $testsdir.
37534         (func_create_testdir): Update.
37535
37536 2005-09-18  Bruno Haible  <bruno@clisp.org>
37537
37538         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
37539         instead of $dry_run.
37540         (func_cp_if_changed, func_mv_if_changed): Remove functions.
37541         (func_ln_if_changed): Don't handle dry-run here.
37542         (func_import): In dry-run mode, detect more precisely which actions
37543         would be performed, and don't use "...ing" verbs.
37544
37545 2005-09-18  Bruno Haible  <bruno@clisp.org>
37546
37547         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
37548         (func_import): Use join on two temporary files instead of three nested
37549         loops, in order to determine which files are new or old.
37550
37551 2005-09-18  Bruno Haible  <bruno@clisp.org>
37552
37553         * gnulib-tool (func_import): Comment out code that spits out the
37554         new files with --dry-run.
37555
37556 2005-09-18  Bruno Haible  <bruno@clisp.org>
37557
37558         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
37559
37560 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37561
37562         * lib/stat-time.h: New file.
37563         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
37564         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
37565         in a different way.
37566         (timespec_cmp): New function.
37567         * lib/utimecmp.c: Include stat-time.h.
37568         (SYSCALL_RESOLUTION): Depend on whether various struct stat
37569         members exist, not on the obsolescent ST_MTIM_NSEC.
37570         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
37571
37572 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37573
37574         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
37575
37576 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37577
37578         * MODULES.html.sh (File system functions): Add stat-time.
37579         * modules/stat-time: New file.
37580         * modules/timespec (Files): Remove m4/st_mtim.m4; this
37581         is now done in a different way, by the stat-time module.
37582         * modules/utimecmp (Depends-on): Add stat-time.
37583
37584 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37585
37586         * m4/st_mtim.m4: Remove.  Superseded by...
37587         * m4/stat-time.m4: New file.
37588         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
37589         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
37590
37591 2005-09-15  Derek Price  <derek@ximbiot.com>
37592
37593         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
37594
37595 2005-09-15  Derek Price  <derek@ximbiot.com>
37596
37597         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
37598         * lib/regex_internal.c: Ditto, using this...
37599         (__GNUC_PREREQ): ...new macro.
37600         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
37601         using...
37602         (__GNUC_PREREQ): ...this new macro.
37603
37604         * lib/strstr.h: Include string.h. Define strstr as a macro here.
37605
37606 2005-09-15  Derek Price  <derek@ximbiot.com>
37607             Paul Eggert  <eggert@cs.ucla.edu>
37608
37609         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
37610         changes, consolidating in...
37611         * lib/regex_internal.h: ...this file.
37612
37613 2005-09-13  Jim Meyering  <jim@meyering.net>
37614
37615         * lib/canon-host.c: Filter through gnu indent and reword comments
37616         slightly.
37617         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
37618
37619 2005-09-13  Derek Price  <derek@ximbiot.com>
37620
37621         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
37622         failure.
37623         Reported by Jim Meyering  <jim@meyering.net>.
37624
37625 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37626
37627         * lib/base64.c: Typo.
37628         (base64_encode): Put b64str in initialized data section.
37629
37630 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
37631
37632         Merge glibc and coreutils changes into gnulib, plus a few
37633         extra fixes.
37634         * lib/md5.c: Use #error rather than a string.
37635         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
37636         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
37637         (__attribute__): Define to empty for non recent-GCC.
37638         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
37639         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
37640         Renamed from their non-__ counterparts, with new macros replacing
37641         them if not _LIBC.  Add __THROW attribute.
37642         (rol): Remove.
37643         (struct md5_ctx): Align buffer if using GCC.
37644         * lib/sha1.h (struct sha1_ctx): Likewise.
37645         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
37646         The old name was backwards.
37647         (NOTSWAP): Remove; not used.
37648         (rol): New macro, moved here from md5.h.
37649         (sha1_process_block): Remove a FIXME that doesn't make sense.
37650
37651 2005-09-12  Derek Price  <derek@ximbiot.com>
37652
37653         Return usable errors from canon-host.
37654         * lib/canon-host.h: New file.
37655         * lib/canon-host.c (canon_host): Wrap...
37656         (canon_host_r): ...this new function, which now relies exclusively on
37657         getaddrinfo.
37658         (ch_strerror): New function.
37659         (last_cherror): New global.
37660         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
37661         interface.
37662         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
37663         void *.
37664         (freeaddrinfo): Free ai->ai_canonname when set.
37665
37666 2005-09-12  Derek Price  <derek@ximbiot.com>
37667
37668         Make canon-host require getaddrinfo.
37669         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
37670         AC_LIBSOURCE canon-host.h.  Call...
37671         (gl_PREREQ_CANON_HOST): ...this new function, which requires
37672         gl_GETADDRINFO.
37673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
37674
37675 2005-09-12  Derek Price  <derek@ximbiot.com>
37676
37677         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
37678         LGPL.
37679         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
37680
37681 2005-09-12  Derek Price  <derek@ximbiot.com>
37682
37683         * lib/gai_strerror.c: Include config.h when available.  Include
37684         getaddrinfo.h before other headers to test interface.
37685         Reported by Larry Jones <lawrence.jones@ugs.com>.
37686
37687 2005-09-12  Derek Price  <derek@ximbiot.com>
37688             Paul Eggert  <eggert@cs.ucla.edu>
37689
37690         * modules/glob (Files): Add glob-libc.h.
37691
37692 2005-09-12  Derek Price  <derek@ximbiot.com>
37693             Paul Eggert  <eggert@cs.ucla.edu>
37694
37695         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
37696         glob_.h, glob-libc.h.
37697         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
37698
37699 2005-09-12  Derek Price  <derek@ximbiot.com>
37700             Paul Eggert  <eggert@cs.ucla.edu>
37701
37702         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
37703         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
37704         protecting things that should be done only in gnulib contexts.
37705         * lib/glob_.h: New file, containing only the glob things needed for
37706         gnulib.
37707         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
37708         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
37709         (glob, globfree, glob_pattern_p): Now defined simply in terms of
37710         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
37711         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
37712         and to respect the namespace rules better.
37713
37714 2005-09-08  Simon Josefsson  <jas@extundo.com>
37715
37716         * modules/socklen: New file.
37717
37718 2005-09-08  Simon Josefsson  <jas@extundo.com>
37719
37720         * m4/socklen.m4: New file.
37721
37722 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37723
37724         * modules/utimens (Files): Add m4/utimbuf.m4, since
37725         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
37726         Reported by Sergey Poznyakoff.
37727
37728 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37729
37730         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
37731         definitions, since that's the preferred style in glibc.
37732         Fix a minor spacing issue, and update copyright notice to match
37733         glibc's.
37734
37735 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37736
37737         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
37738
37739 2005-09-06  Simon Josefsson  <jas@extundo.com>
37740
37741         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
37742         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
37743
37744 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37745
37746         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
37747         warning.
37748
37749 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37750
37751         * config/srclist.txt: Add glibc bug 1302.
37752
37753 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
37754
37755         Change bitset word type from unsigned int to unsigned long int,
37756         as this has better performance on typical 64-bit hosts.
37757         Port bitset code to hosts with unusual word sizes.
37758         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
37759         (build_collating_symbol):
37760         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
37761         argument is a bitset.  This is merely a style issue, but it makes
37762         it clearer that an entire array is expected.
37763         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
37764         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
37765         Port to the case where bitset_word is not the same as unsigned int.
37766         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
37767         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
37768         Likewise.
37769         * lib/regexec.c (check_dst_limits_calc_pos_1,
37770         check_subexp_matching_top):
37771         (build_trtable, group_nodes_into_DFAstates):
37772         Likewise.
37773         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
37774         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
37775         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
37776         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
37777         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
37778         * lib/regcomp.c (optimize_subexps, lower_subexp):
37779         Work even if bitset_word has holes in its bitwise representation.
37780         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
37781         * lib/regexec.c (check_dst_limits_calc_pos_1,
37782         check_subexp_matching_top):
37783         Likewise.
37784         * lib/regex_internal.c (re_string_reconstruct):
37785         Don't assume UCHAR_MAX == 255.
37786         * lib/regex_internal.h (bitset_set_all): Likewise.
37787         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
37788         All uses changed.
37789         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
37790         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
37791         All uses changed.
37792         (BITSET_WORD_MAX): New macro.
37793         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
37794         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
37795         (bitset_empty, bitset_copy):
37796         Prefer sizeof (bitset) to multiplying it out ourselves.
37797         (bitset_not_merge): Remove; unused.
37798         (bitset_contain): Return bool, not unsigned int with one bit on.
37799         All callers changed.
37800         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
37801         alignment than re_node_set; do this by defining a new internal
37802         type struct dests_alloc and using it to allocate memory.
37803
37804 2005-09-05  Bruno Haible  <bruno@clisp.org>
37805
37806         * gnulib-tool (func_import): Fix comparison in handling of symbolic
37807         links.
37808
37809 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
37810
37811         * modules/size_max (Makefile.am): Add size_max.h
37812
37813 2005-09-04  Derek Price  <derek@ximbiot.com>
37814
37815         * gnulib-tool (func_import): Fix reversed $symbolic logic.
37816
37817 2005-09-03  Simon Josefsson  <jas@extundo.com>
37818
37819         * gnulib-tool: Fix typo.
37820
37821 2005-09-03  Simon Josefsson  <jas@extundo.com>
37822
37823         * config/srclist.txt: Add glibc bug 1293.
37824
37825 2005-09-03  Derek Price  <derek@ximbiot.com>
37826
37827         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
37828         From Larry Jones <lawrence.jones@ugs.com>.
37829
37830 2005-09-02  Simon Josefsson  <jas@extundo.com>
37831
37832         * modules/socklen: New file.
37833
37834 2005-09-02  Simon Josefsson  <jas@extundo.com>
37835
37836         * modules/havelib: New module.
37837
37838         * modules/gettext, modules/iconv, modules/lock, modules/readline:
37839         Use havelib.
37840
37841 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
37842
37843         Check for arithmetic overflow when calculating sizes, to prevent
37844         some buffer-overflow issues.  These patches are conservative, in the
37845         sense that when I couldn't determine whether an overflow was possible,
37846         I inserted a run-time check.
37847         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
37848         macros.
37849         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
37850         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
37851         (re_xnrealloc, re_x2nrealloc): New inline functions.
37852         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
37853         parse_bracket_exp):
37854         (build_equiv_class, build_charclass): Check for arithmetic overflow
37855         in size expression calculations.
37856         * lib/regex_internal.c (re_string_realloc_buffers):
37857         (build_wcs_upper_buffer, re_node_set_add_intersect):
37858         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
37859         (re_dfa_add_node, register_state): Likewise.
37860         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
37861         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
37862         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
37863         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
37864
37865 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
37866
37867         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
37868         m4/ulonglong.m4.  Problem reported by Martin Lambers.
37869
37870 2005-09-02  Bruno Haible  <bruno@clisp.org>
37871
37872         Support for lib vs. lib64 distinction on biarch platforms.
37873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
37874         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
37875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
37876
37877 2005-09-02  Bruno Haible  <bruno@clisp.org>
37878
37879         * gnulib-tool (import): In the other first-use case, provide defaults
37880         as well.
37881
37882 2005-09-02  Bruno Haible  <bruno@clisp.org>
37883
37884         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
37885         patches not yet found in the latest gettext release.
37886
37887 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37888
37889         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
37890         to avoid a collision with bits/local_lim.h in glibc.
37891         All uses changed.  Problem reported by Dmitry V. Levin in
37892         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
37893
37894         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
37895         bugs in int versus size_t comparisons.
37896         (re_string_context_at): Fix bug where the code assumed that
37897         Idx is signed.
37898
37899         Use bool where appropriate.
37900         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
37901         All callers changed.
37902         (calc_eclosure_iter): Likewise, for ROOT arg.
37903         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
37904         (build_charclass_op): Likewise, for NON_MATCH arg.
37905         * lib/regex_internal.c (re_string_allocate, re_string_construct):
37906         (re_string_construct_common): Likewise, for ICASE arg.
37907         * lib/regexec.c (re_search_2_stub, re_search_stub):
37908         Likewise, for RET_LEN arg.
37909         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
37910         (set_regs): Likewise, for FL_BACKTRACK arg.
37911         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
37912         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
37913         (calc_eclosure_iter, parse_bracket_exp):
37914         Use bool for internal variables that are booleans.
37915         * lib/regexec.c (re_search_internal, check_matching,
37916         proceed_next_node):
37917         (set_regs, build_sifted_states, sift_states_bkref):
37918         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
37919         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
37920         (find_collation_sequence_value):
37921         Likewise.
37922         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
37923         (re_node_set_compare):
37924         Return bool, not int. All callers changed.
37925         * lib/regexec.c (check_halt_node_context, check_dst_limits):
37926         (build_trtable, check_node_accept): Likewise.
37927         * lib/regex_internal.h: Include stdbool.h.
37928
37929         Fix bugs uncovered when converting to bool.
37930         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
37931         failure instead of charging ahead blindly.
37932         * lib/regex_internal.c (register_state): Likewise.
37933         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
37934         for freeing internal storage.
37935         (group_nodes_into_DFA_states): Use unsigned int, not int, for
37936         bitset pieces used as boolean, to avoid undefined behavior
37937         on hosts that do int overflow checking.
37938
37939 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         * config/srclist.txt: Add glibc bugs 1285-1287.
37942
37943 2005-09-01  Jim Meyering  <jim@meyering.net>
37944
37945         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
37946         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
37947         Require gl_STAT_MACROS, too.
37948
37949 2005-09-01  Bruno Haible  <bruno@clisp.org>
37950
37951         * gnulib-tool (import): In the first-use case, provide defaults.
37952
37953 2005-09-01  Bruno Haible  <bruno@clisp.org>
37954
37955         * gnulib-tool (func_import): Remove the .tmp files.
37956
37957 2005-09-01  Bruno Haible  <bruno@clisp.org>
37958
37959         * gnulib-tool (func_import): Fix handling of symbolic links.
37960
37961 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37962
37963         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
37964         old glibc regex code mishandles strings longer than 2**31 bytes.
37965         This patch fixes this when the regex code is used in gnulib
37966         (i.e., outside glibc).
37967
37968         This patch should not affect the use of the regex code inside
37969         glibc.  No doubt this problem also needs to be handled for glibc
37970         as well, but the result will be an incompatible change to the
37971         glibc ABI, and the old ABI will have to be supported too.  That
37972         can be the the subject for another patch.
37973
37974         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
37975         governing whether the rest of this patch is active.  By default,
37976         the macro is disabled and the patch has no effect.
37977         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
37978         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
37979         (struct re_pattern_buffer, re_search, re_search_2, re_match):
37980         (re_match_2, re_set_registers): Use the new types.
37981         * lib/regex_internal.h (Idx, re_hashval_t): New types.
37982         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
37983         New macros.
37984         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
37985         (re_string_context_at, bin_tree_t, re_dfastate_t):
37986         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
37987         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
37988         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
37989         (re_string_char_size_at, re_string_wchar_at):
37990         (re_string_elem_size_at):
37991         Use the new types and macros to port to 64-bit hosts.
37992         Use unsigned types for internal values, so that the code
37993         mostly works even for arrays larger than SSIZE_MAX.
37994         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
37995         (search_duplicated_node, calc_eclosure_iter, fetch_number):
37996         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
37997         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
37998         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
37999         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
38000         (calc_inveclosure, parse_dup_op, build_range_exp):
38001         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
38002         (fetch_number, create_token_tree, mark_opt_subexp):
38003         Likewise.
38004         * lib/regex_internal.c (re_string_construct_common,
38005         create_ci_newstate):
38006         (create_cd_newstate, re_string_allocate, re_string_construct):
38007         (re_string_realloc_buffers, build_wcs_upper_buffer):
38008         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38009         (re_string_reconstruct, re_string_peek_byte_case):
38010         (re_string_fetch_byte_case, re_string_context_at):
38011         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38012         (re_node_set_init_copy, re_node_set_add_intersect):
38013         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38014         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38015         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38016         (re_acquire_state, re_acquire_state_context, register_state):
38017         Likewise.
38018         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
38019         search_cur_bkref_entry):
38020         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
38021         (re_search_internal, re_search_2_stub, re_search_stub)
38022         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
38023         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
38024         (update_cur_sifted_state, check_dst_limits):
38025         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38026         (check_subexp_limits, sift_states_bkref, merge_state_array):
38027         (check_subexp_matching_top, get_subexp, get_subexp_sub):
38028         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
38029         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38030         (expand_bkref_cache, check_node_accept_bytes):
38031         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
38032         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
38033         (acquire_init_state_context, check_halt_node_context):
38034         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
38035         (sift_states_backward, clean_state_log_if_needed):
38036         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
38037         (find_recover_state, transit_state_sb, transit_state_mb):
38038         (transit_state_bkref, build_trtable, match_ctx_clean):
38039         Likewise.
38040         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
38041         to work around an assumption that REG_MISSING is negative.
38042
38043         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
38044         (seek_collating_symbol_entry) [defined _LIBC]:
38045         (lookup_collation_sequence_value) [defined _LIBC]:
38046         (build_range_exp, build_collating_symbol) [defined _LIBC]:
38047         Use prototypes rather than old-style function definitions.
38048         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
38049         (transit_state_sb) [0]:
38050         (find_collation_sequence_value) [defined _LIBC]: Likewise.
38051
38052         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
38053         rm_eo.
38054
38055         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
38056         (optimize_subexps, lower_subexp):
38057         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
38058         since the signed shift might overflow.  Use 1u<<31 instead.
38059         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38060         Likewise.
38061         * lib/regexec.c (check_dst_limits_calc_pos_1,
38062         check_subexp_matching_top): Likewise.
38063
38064         * lib/regcomp.c (optimize_subexps, lower_subexp):
38065         Use CHAR_BIT rather than 8, for clarity.
38066         * lib/regexec.c (check_dst_limits_calc_pos_1):
38067         (check_subexp_matching_top): Likewise.
38068         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
38069         have to worry about portability issues when shifting it left.
38070         Remove no-longer-needed test for table_size > 0.
38071         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
38072         in a word, as the resulting behavior is undefined.
38073         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
38074         in one case, a <= should have been an <, and in another case the
38075         whole test was missing.
38076         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
38077         the standard name CHAR_BIT.
38078         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
38079         this is not true on one's complement and signed-magnitude hosts.
38080
38081         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
38082         next_last_offset.
38083         (struct re_dfa_t): Remove unused member states_alloc.
38084         * lib/regcomp.c (init_dfa): Don't initialize unused members.
38085
38086 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38087
38088         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
38089         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
38090         and large-file glibc and in 32-bit large-file Solaris.
38091
38092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38093
38094         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
38095         lengths fit in regoff_t; this isn't true if regoff_t is the same
38096         width as size_t.
38097         * lib/regex.c (re_search_internal): 5th arg is LAST_START
38098         (= START + RANGE) instead of RANGE.  This avoids overflow
38099         problems when regoff_t is the same width as size_t.
38100         All callers changed.
38101         (re_search_2_stub): Check for overflow when adding the
38102         sizes of the two strings.
38103         (re_search_stub): Check for overflow when adding START
38104         to RANGE; if it occurs, substitute the extreme value.
38105
38106 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38107
38108         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
38109
38110 2005-08-31  Jim Meyering  <jim@meyering.net>
38111
38112         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
38113         a pointer-to-const.
38114         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
38115         (register_state): Likewise.
38116         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
38117         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38118         (group_nodes_into_DFAstates): Likewise.
38119
38120 2005-08-31  Jim Meyering  <jim@meyering.net>
38121
38122         * check-module: Add a FIXME comment.
38123
38124 2005-08-31  Eric Blake  <ebb9@byu.net>
38125
38126         * modules/unistd-safer (Files): Add unistd--.h.
38127         * modules/stdio-safer (Files): Add stdio--.h.
38128
38129 2005-08-31  Derek Price  <derek@ximbiot.com>
38130
38131         * lib/getdelim.c (getdelim): Return EOF on EOF.
38132         Reported by Larry Jones <lawrence.jones@ugs.com>.
38133
38134 2005-08-31  Bruno Haible  <bruno@clisp.org>
38135
38136         Avoid unnecessary diffs in the generated lib/Makefile.am.
38137         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
38138         the generated files.
38139         (func_import): Don't set cmd.
38140
38141 2005-08-31  Bruno Haible  <bruno@clisp.org>
38142
38143         * lib/strstr.c: Include <stddef.h>, for NULL.
38144         * lib/strcasestr.c: Likewise.
38145         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38146
38147 2005-08-31  Bruno Haible  <bruno@clisp.org>
38148
38149         * gnulib-tool: New option --macro-prefix.
38150         (func_import): Use macro_prefix.
38151         (import): Handle option --macro-prefix.
38152
38153 2005-08-31  Bruno Haible  <bruno@clisp.org>
38154
38155         * gnulib-tool (import): Rename most ac_* variables to cached_*.
38156         Also use new variables cached_lgpl, cached_libtool.
38157
38158 2005-08-31  Bruno Haible  <bruno@clisp.org>
38159
38160         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
38161         always instantiating them.
38162
38163 2005-08-31  Bruno Haible  <bruno@clisp.org>
38164
38165         * gnulib-tool (func_import): Read the previous cached settings
38166         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
38167         earlier added by gnulib but are now dropped. Warn when a gnulib file
38168         overwrites a non-gnulib file.
38169
38170 2005-08-31  Bruno Haible  <bruno@clisp.org>
38171
38172         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
38173         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
38174         projects that don't keep autogenerated files in CVS. Put into
38175         actioncmd only the specified modules, not the transitive closure.
38176
38177 2005-08-31  Bruno Haible  <bruno@clisp.org>
38178
38179         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
38180         Create directories that shall be filled.
38181         (import): Don't look for gl_* macros in configure.ac. Recurse across
38182         all directories containing a gnulib-cache.m4 files, if meaningful.
38183
38184 2005-08-31  Bruno Haible  <bruno@clisp.org>
38185
38186         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
38187         (import): Set seen_libtool when we see gl_LIBTOOL.
38188
38189 2005-08-31  Bruno Haible  <bruno@clisp.org>
38190
38191         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
38192         declaration macro definitions from generated gnulib.m4.
38193
38194 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
38195
38196         * lib/iconvme.h: Add prototype for iconv_alloc.
38197
38198 2005-08-29  Simon Josefsson  <jas@extundo.com>
38199
38200         * lib/iconvme.c: Fix errno.
38201
38202 2005-08-29  Bruno Haible  <bruno@clisp.org>
38203
38204         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
38205         that it works when the directory contains spaces.
38206
38207 2005-08-29  Bruno Haible  <bruno@clisp.org>
38208
38209         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
38210
38211 2005-08-29  Bruno Haible  <bruno@clisp.org>
38212
38213         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
38214         Emit more advice.
38215
38216 2005-08-29  Bruno Haible  <bruno@clisp.org>
38217         and Stepan Kasal  <kasal@ucw.cz>
38218
38219         * check-module: If more parameters are given, check each of them
38220         separately; add more exceptions, as noted by Jim Meyering.
38221         (check_module): New procedure.
38222         (%exempt_header): Now contains all exceptions.
38223
38224 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
38225
38226         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
38227
38228 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
38229
38230         * lib/iconvme.c: Split iconv_string into iconv_alloc.
38231
38232 2005-08-28  Bruno Haible  <bruno@clisp.org>
38233
38234         * m4/gnulib-tool.m4: New file.
38235
38236 2005-08-27  Jim Meyering  <jim@meyering.net>
38237
38238         * modules/unistd-safer (Files): Add pipe-safer.c.
38239         * modules/fcntl-safer (Files): Add creat-safer.c.
38240
38241 2005-08-27  Jim Meyering  <jim@meyering.net>
38242
38243         * m4/stdlib-safer.m4: New file.  From coreutils.
38244         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
38245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
38246         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
38247         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
38248         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
38249
38250 2005-08-27  Jim Meyering  <jim@meyering.net>
38251
38252         * lib/fopen-safer.c: Merge minor changes from coreutils.
38253         * lib/dup-safer.c: Likewise.
38254         * lib/fd-safer.c: Likewise.
38255
38256         Merge from coreutils.
38257         * lib/stdio--.h: New file.
38258         * lib/stdlib--.h: New file.
38259         * lib/mkstemp-safer.c: New file.
38260
38261         GNU tar needs these.
38262         * lib/pipe-safer.c: New file.
38263         * lib/creat-safer.c: New file.
38264         * lib/fcntl--.h (creat): Define to creat_safer.
38265         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
38266         * lib/unistd--.h (pipe): Define to pipe_safer.
38267         * lib/unistd-safer.h: Declare pipe_safer.
38268
38269 2005-08-26  Simon Josefsson  <jas@extundo.com>
38270
38271         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
38272         Haible <bruno@clisp.org>.
38273
38274 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
38275
38276         * lib/regex_internal.h: Remove all references to
38277         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
38278         or better.
38279         (bitset_not, bitset_merge, bitset_not_merge):
38280         (bitset_mask, re_string_allocate, re_string_construct):
38281         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
38282         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
38283         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
38284         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
38285         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38286         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38287         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
38288         (re_acquire_state_context):
38289         Remove unnecessary forward decls.
38290         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
38291         Put __attribute at function definition,
38292         now that the function decl has been removed.
38293         * lib/regex_internal.c (re_string_peek_byte_case):
38294         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
38295         Likewise.
38296
38297 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
38298
38299         * m4/regex.m4: Add AC_PREREQ(2.50).
38300         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
38301
38302 2005-08-25  Simon Josefsson  <jas@extundo.com>
38303
38304         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
38305         __fsetlocking.
38306
38307 2005-08-25  Simon Josefsson  <jas@extundo.com>
38308
38309         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
38310         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
38311         GLIBC specific code.
38312
38313 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38314
38315         Make regex safe for g++.  This fixes one real bug (an "err"
38316         that should have been "*err").  g++ problem reported by
38317         Sam Steingold.
38318         * lib/regex_internal.h (re_calloc): New macro, consistent with
38319         re_malloc etc.  All callers of calloc changed to use re_calloc.
38320         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
38321         not int.  All callers changed.
38322         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
38323         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
38324         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
38325         (find_recover_state): Change "err" to "*err"; this fixes what
38326         appears to be a real bug.
38327         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
38328         versus int.
38329
38330 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38331
38332         * modules/regex (Depends-on): Add malloc, since the code
38333         assumes that !malloc(0) means failure.
38334
38335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38336
38337         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
38338
38339         alloca modernization/simplification for regex.
38340         * lib/regex.c: Remove portability cruft for alloca.  This no longer
38341         needs to be at the start of the file, and can be moved into
38342         regex_internal.h and simplified.
38343         * lib/regex_internal.h: Include <alloca.h>.
38344         (__libc_use_alloca) [!defined _LIBC]: New macro.
38345         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
38346         now works outside glibc.
38347
38348 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38349
38350         * config/srclist.txt: Add glibc bugs 1241, 1245.
38351
38352 2005-08-25  Jim Meyering  <jim@meyering.net>
38353
38354         * lib/open-safer.c: Include <config.h>.
38355         Otherwise, we'd lose LARGEFILE support in any file using
38356         e.g. "fcntl--.h"
38357
38358 2005-08-25  Bruno Haible  <bruno@clisp.org>
38359
38360         * m4/minmax.m4: Require autoconf 2.52.
38361         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
38362         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
38363         alternatives of translit over the alphabet.
38364         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
38365
38366 2005-08-24  Simon Josefsson  <jas@extundo.com>
38367
38368         * tests/test-getpass.c: New file.
38369
38370 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38371
38372         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
38373         for GNU regex features.
38374
38375 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38376
38377         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
38378         * lib/regex.h (regerror): Likewise.
38379
38380         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
38381         requires this.  (The code never needed it.)
38382
38383         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
38384         All uses of recently-renamed identifiers changed to use the new,
38385         POSIX-compliant names.  The code will build and run just fine
38386         without these changes, but it's better to eat our own dog food
38387         and use the standard-conforming names.
38388
38389         * lib/regex.h: Fix a multitude of POSIX name space violations.
38390         These changes have an effect only for programs that define
38391         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
38392         do not change anything for programs compiled in the normal way.
38393         Also, there is no effect on the ABI.
38394
38395         (_REGEX_SOURCE): New macro.
38396         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
38397         defined and _GNU_SOURCE is not; this fixes a name space violation.
38398
38399         Rename the following macros to obey POSIX requirements.
38400         The old names are still visible as macros if _REGEX_SOURCE is defined.
38401         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
38402         RE_BACKSLASH_ESCAPE_IN_LISTS.
38403         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
38404         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
38405         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
38406         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
38407         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
38408         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
38409         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
38410         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
38411         (REG_INTERVALS): renamed from RE_INTERVALS.
38412         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
38413         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
38414         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
38415         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
38416         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
38417         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
38418         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
38419         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
38420         RE_UNMATCHED_RIGHT_PAREN_ORD.
38421         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
38422         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
38423         (REG_DEBUG): renamed from RE_DEBUG.
38424         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
38425         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
38426         unusual, since we can't clash with the POSIX REG_ICASE.
38427         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
38428         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
38429         (REG_NO_SUB): renamed from RE_NO_SUB.
38430         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
38431         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
38432         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
38433         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
38434         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
38435         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
38436         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
38437         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
38438         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
38439         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
38440         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
38441         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
38442         RE_SYNTAX_POSIX_MINIMAL_BASIC.
38443         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
38444         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
38445         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
38446         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
38447         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
38448         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
38449         (REG_FIXED): Renamed from REGS_FIXED.
38450         (REG_NREGS): Renamed from RE_NREGS.
38451
38452         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
38453         of other REG_* macros, since POSIX says the user is allowed to
38454         #undef these macros selectively.
38455
38456         (reg_errcode_t): Update comment stating what other tables need
38457         to be consistent.
38458
38459         Rename the following enum values to obey POSIX requirements.
38460         The old names are still visible as macros.
38461         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
38462         is not defined, since GNU is supposed to be a superset of POSIX as
38463         much as possible, and since we want reg_errcode_t to be a signed
38464         type for implementation consistency.
38465         (_REG_NOERROR): Renamed from REG_NOERROR.
38466         (_REG_NOMATCH): Renamed from REG_NOMATCH.
38467         (_REG_BADPAT): Renamed from REG_BADPAT.
38468         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
38469         (_REG_ECTYPE): Renamed from REG_ECTYPE.
38470         (_REG_EESCAPE): Renamed from REG_EESCAPE.
38471         (_REG_ESUBREG): Renamed from REG_ESUBREG.
38472         (_REG_EBRACK): Renamed from REG_EBRACK.
38473         (_REG_EPAREN): Renamed from REG_EPAREN.
38474         (_REG_EBRACE): Renamed from REG_EBRACE.
38475         (_REG_BADBR): Renamed from REG_BADBR.
38476         (_REG_ERANGE): Renamed from REG_ERANGE.
38477         (_REG_ESPACE): Renamed from REG_ESPACE.
38478         (_REG_BADRPT): Renamed from REG_BADRPT.
38479         (_REG_EEND): Renamed from REG_EEND.
38480         (_REG_ESIZE): Renamed from REG_ESIZE.
38481         (_REG_ERPAREN): Renamed from REG_ERPAREN.
38482         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
38483         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
38484         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
38485         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
38486
38487         (_REG_RE_NAME, _REG_RM_NAME): New macros.
38488         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
38489         changed.  But support the old name if the new one is not defined
38490         and if _REGEX_SOURCE.
38491
38492         Change the following member names in struct re_pattern_buffer.
38493         The old names are still supported if !_REGEX_SOURCE.
38494         The new names are always supported, regardless of _REGEX_SOURCE.
38495         (re_buffer): Renamed from buffer.
38496         (re_allocated): Renamed from allocated.
38497         (re_used): Renamed from used.
38498         (re_syntax): Renamed from syntax.
38499         (re_fastmap): Renamed from fastmap.
38500         (re_translate): Renamed from translate.
38501         (re_can_be_null): Renamed from can_be_null.
38502         (re_regs_allocated): Renamed from regs_allocated.
38503         (re_fastmap_accurate): Renamed from fastmap_accurate.
38504         (re_no_sub): Renamed from no_sub.
38505         (re_not_bol): Renamed from not_bol.
38506         (re_not_eol): Renamed from not_eol.
38507         (re_newline_anchor): Renamed from newline_anchor.
38508
38509         Change the following member names in struct re_registers.
38510         The old names are still supported if !_REGEX_SOURCE.
38511         The new names are always supported, regardless of _REGEX_SOURCE.
38512         (rm_num_regs): Renamed from num_regs.
38513         (rm_start): Renamed from start.
38514         (rm_end): Renamed from end.
38515
38516         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
38517         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
38518         Prepend __ to parameter names.
38519
38520         Undo yesterday's changes.
38521
38522 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38523
38524         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
38525         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
38526         lib/regex.c.
38527
38528 2005-08-24  Jim Meyering  <jim@meyering.net>
38529
38530         Sync from coreutils.
38531         * m4/fcntl-safer.m4: New file.
38532
38533         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
38534         and object files for this module.
38535
38536 2005-08-24  Jim Meyering  <jim@meyering.net>
38537
38538         Sync from coreutils.
38539         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
38540
38541 2005-08-24  Jim Meyering  <jim@meyering.net>
38542
38543         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
38544         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
38545
38546 2005-08-24  Jim Meyering  <jim@meyering.net>
38547
38548         * modules/fcntl-safer: New module.
38549         * modules/fts (Depends-on): Add fcntl-safer.
38550         * MODULES.html.sh (File descriptor based Input/Output):
38551         Add fcntl-safer.
38552
38553 2005-08-24  Bruno Haible  <bruno@clisp.org>
38554
38555         Support for unit test modules.
38556         * modules/README: Mention tests modules.
38557         * modules/TEMPLATE-TESTS: New file.
38558         * gnulib-tool: New options --extract-tests-module, --with-tests and
38559         --tests-base (unused for the moment).
38560         (testsbase, inctests): New variables.
38561         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
38562         (func_verify_module): Exclude TEMPLATE-TESTS.
38563         (func_verify_nontests_module, func_verify_tests_module): New functions.
38564         (func_get_dependencies): Add implicit dependency for tests modules.
38565         (func_get_tests_module): New function.
38566         (func_modules_transitive_closure): When --with-tests was specified,
38567         include the unit tests as well, unless explicitly avoided.
38568         (func_emit_lib_Makefile_am): Ignore the tests modules here.
38569         (func_emit_tests_Makefile_am): New function.
38570         (func_create_testdir): When --with-tests was specified, emit a
38571         tests/ directory.
38572         * MODULES.html.sh (Future developments): Update.
38573
38574 2005-08-24  Bruno Haible  <bruno@clisp.org>
38575
38576         * modules/tls-tests: New file.
38577         * tests/test-tls.c: New file, from GNU gettext.
38578
38579 2005-08-24  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/lock-tests: New file.
38582         * tests/test-lock.c: New file, from GNU gettext.
38583
38584 2005-08-24  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/lock.h: Add multiple inclusion guard.
38587         * lib/tls.h: Add multiple inclusion guard.
38588
38589 2005-08-24  Bruno Haible  <bruno@clisp.org>
38590
38591         * gnulib-tool: Add support for the --aux-dir option to
38592         --create-testdir, --create-megatestdir, --test, --megatest.
38593         (func_create_testdir, func_create_megatestdir): Optionally emit a
38594         AC_CONFIG_AUX_DIR directive.
38595         (create-testdir, create-megatestdir, test, megatest): Provide a
38596         default value for $auxdir.
38597
38598 2005-08-24  Bruno Haible  <bruno@clisp.org>
38599
38600         * gnulib-tool (import): Use compound statement instead of subshell
38601         where possible.
38602
38603 2005-08-24  Bruno Haible  <bruno@clisp.org>
38604
38605         * gnulib-tool (import): Change --aux-dir default to "build-aux".
38606
38607 2005-08-24  Bruno Haible  <bruno@clisp.org>
38608
38609         * gnulib-tool (func_version): Update.
38610
38611 2005-08-24  Bruno Haible  <bruno@clisp.org>
38612
38613         * gnulib-tool (func_import, func_create_testdir,
38614         func_create_megatestdir): Quote all autoconf macro arguments.
38615
38616 2005-08-24  Bruno Haible  <bruno@clisp.org>
38617
38618         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
38619         option --force, because --force causes the aclocal.m4 of each
38620         subdirectory to be newer than the corresponding config.h.in.
38621
38622 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38623
38624         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
38625         All contents moved to gl_REGEX.
38626         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
38627         assume that it does.
38628
38629 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38630
38631         * lib/regex.h (REG_NOSYS)
38632         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
38633         Define, since POSIX requires it as of 2001.
38634         (_REG_ENOSYS)
38635         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
38636         New private symbol, used to keep the enum signed in all cases.
38637         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
38638         Youngman in
38639         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
38640
38641         * lib/regex_internal.c (re_string_skip_chars, register_state):
38642         (calc_state_hash):
38643         Remove forward decls; no longer needed now that we use prototypes.
38644         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
38645         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
38646         (clean_state_log_if_needed): Likewise.
38647
38648 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38649
38650         * config/srclist.txt: Add glibc bugs 1231-1233.
38651
38652 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38653
38654         Fix problems reported by Sam Steingold in
38655         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
38656         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
38657         assumed that reg_errcode_t is a signed type, which is not
38658         necessarily true if _XOPEN_SOURCE is not defined.
38659         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
38660         since some compilers warn about it otherwise.
38661
38662 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38663
38664         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
38665         (init_word_char, create_initial_state, duplicate_node_closure):
38666         (fetch_token, peek_token_bracket, build_range_exp):
38667         (build_collating_symbol): Remove forward decls; no longer needed
38668         now that we use prototypes.
38669
38670         * lib/regcomp.c:
38671         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
38672         (re_compile_fastmap_iter, regcomp, regerror, regfree):
38673         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
38674         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
38675         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
38676         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
38677         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
38678         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
38679         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
38680         (build_range_exp, build_collating_symbol, parse_bracket_exp):
38681         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
38682         (build_charclass, build_charclass_op, fetch_number, create_tree):
38683         (create_token_tree, mark_opt_subexp, duplicate_tree):
38684         Use prototypes rather than old-style definitions.
38685
38686         * lib/regex_internal.c:
38687         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
38688         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
38689         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38690         (re_string_reconstruct, re_string_peek_byte_case):
38691         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
38692         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38693         (re_node_set_init_copy, re_node_set_add_intersect):
38694         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38695         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38696         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38697         (re_acquire_state, re_acquire_state_context, register_state):
38698         (create_ci_newstate, create_cd_newstate, free_state):
38699         Likewise.
38700         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
38701         re_search_2):
38702         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
38703         (re_search_internal, prune_impossible_nodes):
38704         (acquire_init_state_context, check_matching, static):
38705         (check_halt_node_context, check_halt_state_context, proceed_next_node):
38706         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
38707         (update_regs, sift_states_backward, build_sifted_states):
38708         (clean_state_log_if_needed, merge_state_array):
38709         (update_cur_sifted_state, add_epsilon_src_nodes):
38710         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
38711         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
38712         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
38713         (find_recover_state, check_subexp_matching_top, transit_state_mb):
38714         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
38715         (check_arrival, check_arrival_add_next_nodes):
38716         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38717         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38718         (check_node_accept_bytes, check_node_accept, extend_buffers):
38719         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
38720         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
38721         (sift_ctx_init):
38722         Likewise.
38723
38724         * lib/regex_internal.h:
38725         (re_string_allocate, re_string_construct, re_string_reconstruct):
38726         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
38727         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
38728         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
38729         (re_string_context_at, re_string_peek_byte_case):
38730         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
38731         is defined, since we now use prototypes always.
38732
38733         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
38734         C89 or better.  All uses removed.
38735
38736 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38737
38738         * config/srclist.txt: Add glibc bugs 1220-1227.
38739
38740 2005-08-20  Jim Meyering  <jim@meyering.net>
38741
38742         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
38743         of unused local, dfa.
38744
38745 2005-08-20  Bruno Haible  <bruno@clisp.org>
38746
38747         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
38748
38749 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38750
38751         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
38752         (re_node_set_insert_last, re_dfa_add_node):
38753         Rename local variables to avoid GCC shadowing warnings.
38754
38755 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38756
38757         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
38758         [defined lint]: Suppress bogus uninitialized-variable warnings.
38759
38760         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
38761         and let the caller return REG_ESPACE if out of space.  This
38762         removes an uninitialied-variable warning with GCC 4.0.1, and also
38763         avoids taking the address of a local variable.  All callers
38764         changed.
38765
38766 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38767
38768         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
38769         $LIBCSRC/posix/regexec.c.
38770         Add glibc bug 1217 for regcomp.c.
38771
38772 2005-08-19  Jim Meyering  <jim@meyering.net>
38773
38774         * lib/regexec.c (proceed_next_node): Redo local variables to
38775         avoid GCC shadowing warnings.
38776
38777 2005-08-18  Bruno Haible  <bruno@clisp.org>
38778
38779         * lib/strstr.c (strstr): Fix return value in multibyte case.
38780         * lib/strcasestr.c (strcasestr): Likewise.
38781
38782 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38783
38784         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
38785
38786 2005-08-17  Jim Meyering  <jim@meyering.net>
38787
38788         Make the %s format (seconds since the epoch) work for a negative
38789         number and when used with a zero-padded field width, e.g. %015s.
38790
38791         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
38792         label so that it precedes the code to set `digits'.  Otherwise,
38793         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
38794         print `00-22'.  Now, it prints `-0022', as it should.
38795
38796 2005-08-17  Bruno Haible  <bruno@clisp.org>
38797
38798         * modules/strstr (Files): Add m4/mbrtowc.m4.
38799         (Depends-on): Add mbuiter.
38800
38801 2005-08-17  Bruno Haible  <bruno@clisp.org>
38802
38803         * modules/strcasestr: New file.
38804         * MODULES.html.sh (String handling, based on ANSI C 89): Add
38805         strcasestr.
38806
38807 2005-08-17  Bruno Haible  <bruno@clisp.org>
38808
38809         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
38810
38811 2005-08-17  Bruno Haible  <bruno@clisp.org>
38812
38813         * modules/mbuiter: New file.
38814         * MODULES.html.sh (Extended multibyte and wide character utilities):
38815         Add mbuiter.
38816
38817 2005-08-17  Bruno Haible  <bruno@clisp.org>
38818
38819         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
38820         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
38821
38822 2005-08-17  Bruno Haible  <bruno@clisp.org>
38823
38824         * m4/strcasestr.m4: New file.
38825
38826 2005-08-17  Bruno Haible  <bruno@clisp.org>
38827
38828         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
38829         * lib/strstr.c: Completely rewritten, with multibyte locale support.
38830
38831 2005-08-17  Bruno Haible  <bruno@clisp.org>
38832
38833         * lib/strcasestr.h: New file.
38834         * lib/strcasestr.c: New file.
38835
38836 2005-08-17  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/strcasecmp.c: Use mbuiter.h.
38839
38840 2005-08-17  Bruno Haible  <bruno@clisp.org>
38841
38842         * lib/mbuiter.h: New file.
38843
38844 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
38845
38846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
38847         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
38848         and gl_GETOPT are both invoked via different paths (as happens
38849         with GNU tar CVS because it uses both argp and getopt), the former
38850         wins.
38851
38852 2005-08-16  Bruno Haible  <bruno@clisp.org>
38853
38854         * modules/tls: New file.
38855         * MODULES.html.sh (Multithreading): Add tls.
38856
38857 2005-08-16  Bruno Haible  <bruno@clisp.org>
38858
38859         * modules/strnlen1: New file.
38860         * MODULES.html.sh (String handling): Add strnlen1.
38861
38862 2005-08-16  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/strcase (Files): Add m4/mbrtowc.m4.
38865         (Depends-on): Add strnlen1, mbchar.
38866
38867 2005-08-16  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/mbiter: New file.
38870         * MODULES.html.sh (Extended multibyte and wide character utilities):
38871         Add mbiter.
38872
38873 2005-08-16  Bruno Haible  <bruno@clisp.org>
38874
38875         * modules/mbfile: New file.
38876         * MODULES.html.sh (Extended multibyte and wide character utilities):
38877         Add mbfile.
38878
38879 2005-08-16  Bruno Haible  <bruno@clisp.org>
38880
38881         * modules/mbchar: New file.
38882         * MODULES.html.sh (Extended multibyte and wide character utilities):
38883         New section.
38884
38885 2005-08-16  Bruno Haible  <bruno@clisp.org>
38886
38887         * m4/tls.m4: New file, from GNU gettext.
38888
38889 2005-08-16  Bruno Haible  <bruno@clisp.org>
38890
38891         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
38892         always.
38893         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
38894
38895 2005-08-16  Bruno Haible  <bruno@clisp.org>
38896
38897         * m4/mbiter.m4: New file.
38898
38899 2005-08-16  Bruno Haible  <bruno@clisp.org>
38900
38901         * m4/mbfile.m4: New file.
38902
38903 2005-08-16  Bruno Haible  <bruno@clisp.org>
38904
38905         * m4/mbchar.m4: New file.
38906
38907 2005-08-16  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/tls.h: New file, from GNU gettext.
38910         * lib/tls.c: New file, from GNU gettext.
38911
38912 2005-08-16  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/strnlen1.h: New file.
38915         * lib/strnlen1.c: New file.
38916
38917 2005-08-16  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
38920         (mbi_init): Update.
38921         (mbi_avail, mbi_advance): Let the iteration end before the terminating
38922         NUL byte, not after it.
38923
38924 2005-08-16  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/strcase.h (strcasecmp): Add note in comments.
38927         * lib/strncasecmp.c: Use code from strcasecmp.c.
38928         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
38929         (strcasecmp): Work correctly in multibyte locales.
38930
38931 2005-08-16  Bruno Haible  <bruno@clisp.org>
38932
38933         * lib/mbiter.h: New file.
38934
38935 2005-08-16  Bruno Haible  <bruno@clisp.org>
38936
38937         * lib/mbfile.h: New file.
38938
38939 2005-08-16  Bruno Haible  <bruno@clisp.org>
38940
38941         * lib/mbchar.h: New file.
38942         * lib/mbchar.c: New file.
38943
38944 2005-08-16  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
38947         the valid ones. Makes the comparison operations transitive:
38948         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
38949         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
38950
38951 2005-08-15  Simon Josefsson  <jas@extundo.com>
38952
38953         * modules/ssize_t (License): Change to 'unlimited'.
38954
38955         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
38956
38957 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38958
38959         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
38960         Add comments for each pending glibc patch.
38961
38962 2005-08-15  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/regex.h (__restrict_arr): Don't define to __restrict if
38965         __cplusplus is defined.
38966
38967 2005-08-14  Jim Meyering  <jim@meyering.net>
38968
38969         Sync from coreutils.
38970
38971         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
38972         Use the hash-table-based cycle-detection code not just when
38973         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
38974         Reported by James Youngman in
38975         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
38976         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
38977         FTS_TIGHT_CYCLE_CHECK.
38978         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
38979         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
38980         once again.
38981         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
38982         * lib/fts.c (fd_safer): Remove decl.
38983         Include fcntl--.h rather than unistd-safer.h
38984         (fts_safe_changedir): Don't call fd_safer; no longer needed
38985         now that we include fcntl--.h.
38986
38987 2005-08-12  Simon Josefsson  <jas@extundo.com>
38988
38989         * modules/getndelim2: Use ssize_t module.
38990         * modules/getnline: Likewise.
38991         * modules/safe-read: Likewise.
38992         * modules/xreadlink: Likewise.
38993
38994         * modules/ssize_t: New file.
38995
38996 2005-08-12  Simon Josefsson  <jas@extundo.com>
38997
38998         * m4/readline.m4: Look for termcap, curses or ncurses if required.
38999
39000 2005-08-12  Simon Josefsson  <jas@extundo.com>
39001
39002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39003         ssize_t.
39004
39005 2005-08-12  Simon Josefsson  <jas@extundo.com>
39006
39007         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
39008         readline, getdelim and check_version.
39009         (Support for systems lacking ISO C 99: Sizes of integer types):
39010         Add size_max.
39011
39012 2005-08-12  Bruno Haible  <bruno@clisp.org>
39013
39014         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
39015
39016 2005-08-11  Simon Josefsson  <jas@extundo.com>
39017
39018         * modules/readline: New file.
39019
39020         * modules/strnlen (Files): Add strnlen.h.
39021
39022 2005-08-11  Simon Josefsson  <jas@extundo.com>
39023
39024         * m4/readline.m4: New file.
39025
39026 2005-08-11  Simon Josefsson  <jas@extundo.com>
39027
39028         * lib/readline.h, readline.c: New file.
39029
39030 2005-08-11  Simon Josefsson  <jas@extundo.com>
39031
39032         * doc/gnulib.texi (Initial import, Finishing touches): Mention
39033         gl_AVOID.
39034
39035 2005-08-11  Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/strnlen.h (strnlen): Change parameter name to match comment.
39038
39039 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
39040
39041         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
39042
39043 2005-08-10  Simon Josefsson  <jas@extundo.com>
39044
39045         * tests/test-iconvme.c: New file.
39046
39047 2005-08-10  Simon Josefsson  <jas@extundo.com>
39048
39049         * m4/strnlen.m4: New file.
39050
39051         * m4/strndup.m4: Don't check for strnlen declaration, done in
39052         strnlen.m4.
39053
39054 2005-08-10  Simon Josefsson  <jas@extundo.com>
39055
39056         * lib/strndup.c: Use strnlen.h.
39057
39058         * lib/strnlen.h: New file.
39059
39060 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39061
39062         * README: Typos.
39063
39064 2005-08-02  Simon Josefsson  <jas@extundo.com>
39065
39066         * modules/readline: New file.
39067
39068 2005-08-02  Simon Josefsson  <jas@extundo.com>
39069
39070         * modules/getdelim: New file.
39071
39072         * modules/getline: Rewrite, don't use getndelim2.
39073
39074 2005-08-02  Simon Josefsson  <jas@extundo.com>
39075
39076         * m4/getline.m4: Separate out getdelim stuff into separate module.
39077
39078         * m4/getdelim.m4: New file.
39079
39080 2005-08-02  Simon Josefsson  <jas@extundo.com>
39081
39082         * lib/getline.h, getline.c: Rewrite.
39083
39084         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
39085
39086 2005-07-31  Bruno Haible  <bruno@clisp.org>
39087
39088         * lib/lock.h (gl_lock_initializer): New macro.
39089         (gl_lock_define_initialized): Use it.
39090         (gl_rwlock_initializer): New macro.
39091         (gl_rwlock_define_initialized): Use it.
39092         (gl_recursive_lock_initializer): New macro.
39093         (gl_recursive_lock_define_initialized): Use it.
39094
39095 2005-07-30  Karl Berry  <karl@gnu.org>
39096
39097         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
39098         Report from Ben Pfaff, regarding getopt.
39099
39100 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
39101
39102         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
39103         normal way.
39104         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
39105         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
39106         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
39107         (gl_GETOPT): Use the new macros.  Most of the implementation
39108         is moved to the new macros.  This is for programs like Emacs
39109         that don't want all the functionality of gl_GETOPT.
39110
39111 2005-07-26  Bruno Haible  <bruno@clisp.org>
39112
39113         * m4/lock.m4: Update from GNU gettext.
39114
39115 2005-07-26  Bruno Haible  <bruno@clisp.org>
39116
39117         * lib/lock.h: Update from GNU gettext.
39118         * lib/lock.c: Update from GNU gettext.
39119
39120 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39121
39122         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
39123         obsolescent AC_TRY_RUN.  Include the default includes files, for
39124         'exit'.
39125
39126 2005-07-24  Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/visibility: New file.
39129         * MODULES.html.sh (Misc): Add visibility.
39130
39131 2005-07-24  Bruno Haible  <bruno@clisp.org>
39132
39133         * m4/visibility.m4: New file.
39134
39135 2005-07-24  Bruno Haible  <bruno@clisp.org>
39136
39137         * doc/visibility.texi: New file.
39138
39139 2005-07-22  Bruno Haible  <bruno@clisp.org>
39140
39141         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
39142         $(ALLOCA_H), redundant through BUILT_SOURCES.
39143         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
39144         redundant through BUILT_SOURCES.
39145         * modules/byteswap (Makefile.am): Remove explicit dependency on
39146         $(BYTESWAP_H), redundant through BUILT_SOURCES.
39147         * modules/fnmatch (Makefile.am): Remove explicit dependency on
39148         $(FNMATCH_H), redundant through BUILT_SOURCES.
39149         * modules/getopt (Makefile.am): Remove explicit dependency on
39150         $(GETOPT_H), redundant through BUILT_SOURCES.
39151         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
39152         redundant through BUILT_SOURCES.
39153         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
39154         redundant through BUILT_SOURCES.
39155         * modules/stdbool (Makefile.am): Remove explicit dependency on
39156         $(STDBOOL_H), redundant through BUILT_SOURCES.
39157         * modules/stdint (Makefile.am): Remove explicit dependency on
39158         $(STDINT_H), redundant through BUILT_SOURCES.
39159         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
39160         Remove explicit dependency on $(SYSEXITS_H).
39161         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
39162
39163 2005-07-18  Simon Josefsson  <jas@extundo.com>
39164
39165         * lib/check-version.c (check_version): Accept identical versions too.
39166
39167 2005-07-18  Bruno Haible  <bruno@clisp.org>
39168
39169         * modules/lock: New file.
39170         * MODULES.html.sh (Multithreading): New section.
39171
39172 2005-07-18  Bruno Haible  <bruno@clisp.org>
39173
39174         * m4/lock.m4: New file, from GNU gettext.
39175
39176 2005-07-18  Bruno Haible  <bruno@clisp.org>
39177
39178         * lib/lock.h: New file, from GNU gettext.
39179         * lib/lock.c: New file, from GNU gettext.
39180
39181 2005-07-18  Bruno Haible  <bruno@clisp.org>
39182
39183         * lib/lock.h (gl_once_t): New type.
39184         (gl_once_define, gl_once): New macros.
39185         * lib/lock.c (fresh_once): New variable.
39186         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
39187         functions.
39188
39189 2005-07-16  Simon Josefsson  <jas@extundo.com>
39190
39191         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
39192         workaround, suggested by Bruno.
39193
39194 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39195
39196         * modules/xalloc (Depends-on): Add xalloc-die.
39197         * modules/xvasprintf (Depends-on): Add xalloc-die.
39198
39199 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39200
39201         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
39202         with a minor change.
39203
39204 2005-07-15  Bruno Haible  <bruno@clisp.org>
39205
39206         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
39207         When using lib/poll.c, define poll as rpl_poll.
39208
39209 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
39210
39211         * modules/argp (Depends-on): Remove unlocked-io.
39212
39213 2005-07-14  Derek Price  <derek@ximbiot.com>
39214
39215         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
39216         for glob symlink bug.
39217
39218 2005-07-14  Bruno Haible  <bruno@clisp.org>
39219
39220         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
39221         Instead, test for *_unlocked function declarations directly.
39222
39223 2005-07-11  Simon Josefsson  <jas@extundo.com>
39224
39225         * modules/size_max: New file.
39226
39227         * modules/xsize: Depend on size_max module for size_max.m4.
39228
39229 2005-07-11  Simon Josefsson  <jas@extundo.com>
39230
39231         * lib/size_max.h: New file.
39232
39233 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
39234
39235         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
39236         copyright symbol and the year.
39237         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
39238         (version_etc_va): Use parameterized copyright notice.
39239         Reword to conform to the current GNU coding standards.
39240
39241 2005-07-11  Karl Berry  <karl@gnu.org>
39242
39243         * doc/gnulib.texi (Quoting): new node.
39244         (Initial import): more info, from Patrice.
39245
39246 2005-07-11  Bruno Haible  <bruno@clisp.org>
39247
39248         * gnulib-tool (func_usage): Document option --avoid.
39249         (Command line options): Handle --avoid.
39250         (func_acceptable): New function.
39251         (func_modules_transitive_closure): Use it.
39252
39253 2005-07-11  Bruno Haible  <bruno@clisp.org>
39254
39255         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
39256         Reported by Jim Meyering.
39257
39258 2005-07-10  Bruno Haible  <bruno@clisp.org>
39259
39260         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
39261         Needed when size_t is smaller than 'unsigned int'.
39262         Reported by Paul Eggert.
39263
39264 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39265
39266         * modules/argp (Depends-on): Add unlocked-io
39267
39268 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39269
39270         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
39271         block of defines.
39272
39273 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39274
39275         * config/srclist.txt: Comment out regcomp.c, since we have a porting
39276         fix now.
39277
39278 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
39279         and Paul Eggert  <eggert@cs.ucla.edu>
39280
39281         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
39282         in wint_t, not wchar_t.  Remove now-unnecessary cast.
39283
39284 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39285
39286         * modules/regex (Files): Add lib/regex_internal.c,
39287         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
39288         (Depends-on): Add extensions.
39289         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
39290
39291 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39292
39293         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
39294         pathconf.
39295         * m4/same.m4 (gl_SAME): Likewise.
39296         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
39297
39298         * m4/regex.m4: Adjust to new libc regex implementation.
39299         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
39300         all the .c and .h parts of (the new) regex.
39301         Quote the m4 stuff better.
39302         Check for RE_ICASE bug of old gnulib.
39303         Check for REG_STARTEND of recent libc.
39304         Rename local variables from jm_* to gl_*.
39305         Quote operand of "test -f".
39306         Say "recent enough" version of libc, not "version 2".
39307         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
39308         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
39309         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
39310         Remove check for btowc, isascii.
39311         Require AM_LANGINFO_CODESET.
39312
39313 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39314
39315         * lib/regex.c, regex.h: Sync from libc.
39316         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
39317         * lib/regexec.c:
39318         New files, synced from libc, except that regex_internal.h
39319         currently has a small porting fix.
39320
39321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39322
39323         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
39324         regex_internal.c, regexec.c.
39325         Add regex_internal.h too, but as a comment, since the libc version
39326         is currently broken in gnulib mode.
39327
39328 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39329
39330         Support programs like Emacs that use gnulib but not gettext.
39331         * MODULES.html.sh (Internationalization functions): Add gettext-h.
39332         * modules/gettext-h: New file.
39333         * modules/gettext (Files): Remove lib/gettext.h.
39334         (Depends-on): Add gettext-h.
39335         (Makefile.am): Remove lib_SOURCES.
39336         * modules/argmatch, modules/c-stack, modules/closeout:
39337         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
39338         * modules/execute, modules/file-type, modules/getaddrinfo:
39339         * modules/getopt, modules/human, modules/javacomp:
39340         * modules/javaexec, modules/mkdir-p, modules/obstack:
39341         * modules/openat, modules/pagealign_alloc, modules/pipe:
39342         * modules/quotearg, modules/regex, modules/rpmatch:
39343         * modules/unicodeio, modules/userspec, modules/version-etc:
39344         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
39345         * modules/xsetenv:
39346         Depend on gettext-h, not gettext.
39347
39348 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39349
39350         * gnulib-tool (func_import): Add support for 'public domain' license.
39351         * modules/alloca, modules/atexit, modules/memmove:
39352         Now public domain, not GPL.
39353         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
39354         * modules/realloc, modules/strerror, modules/strtod:
39355         Now LGPL, not GPL.
39356
39357 2005-07-05  Bruno Haible  <bruno@clisp.org>
39358
39359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
39360         autoconf CVS. Needed for mingw.
39361
39362 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39363
39364         Remove the dependency of the strftime module on the tzset module.
39365         * modules/strftime (Depends-on): Remove dependency on tzset.
39366
39367 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39368
39369         Remove the dependency of the strftime module on the tzset module.
39370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
39371         gl_FUNC_TZSET_CLOBBER.
39372
39373 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39374
39375         Remove the dependency of the strftime module on the tzset module.
39376         * lib/strftime.c (my_strftime)
39377         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
39378         Copy the input structure, to work around some of the bug with
39379         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
39380         Solaris releases, you should also use the tzset module, but we won't
39381         require it as a dependency any more since we don't want LGPLed code
39382         to depend on GPLed code.
39383
39384 2005-07-02  Jim Meyering  <jim@meyering.net>
39385
39386         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
39387         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
39388         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
39389         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
39390
39391 2005-07-02  Jim Meyering  <jim@meyering.net>
39392
39393         * lib/backupfile.c (backup_args): Change a `0' to NULL.
39394
39395 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39396
39397         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
39398         declares only 'struct timespec;' (!).
39399
39400 2005-07-01  Jim Meyering  <jim@meyering.net>
39401
39402         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
39403         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
39404         * lib/save-cwd.c, tempname.c:
39405         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39406         and don't include <sys/file.h>).
39407
39408 2005-06-29  Jim Meyering  <jim@meyering.net>
39409
39410         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
39411         type name.  Use the variable name instead.
39412         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
39413         Likewise.
39414
39415 2005-06-28  Simon Josefsson  <jas@extundo.com>
39416
39417         * modules/check-version (Files): Add check-version.m4.
39418
39419 2005-06-28  Simon Josefsson  <jas@extundo.com>
39420
39421         * m4/check-version.m4: New file, suggested by Jim Meyering
39422         <jim@meyering.net>.
39423
39424 2005-06-28  Simon Josefsson  <jas@extundo.com>
39425
39426         * lib/check-version.h, lib/check-version.c: New files.
39427
39428 2005-06-28  Simon Josefsson  <jas@extundo.com>
39429
39430         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
39431         collision with global variable.  Better indentation.  Don't
39432         increment buffer pointer beyond buffer end.  Based on comments
39433         from Paul Eggert <eggert@cs.ucla.edu>.
39434
39435         * lib/base64.h: Indent.
39436
39437 2005-06-28  Simon Josefsson  <jas@extundo.com>
39438
39439         * doc/gnulib.texi (Library version handling): New section.
39440
39441 2005-06-28  Jim Meyering  <jim@meyering.net>
39442
39443         * check-module (find_included_lib_files): Hard-code another
39444         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
39445         but modules/fts-lgpl (correctly) does not list those files.
39446
39447         * modules/canonicalize (Files): Add lib/pathmax.h.
39448
39449 2005-06-25  Simon Josefsson  <jas@extundo.com>
39450
39451         * modules/check-version: New file.
39452
39453 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
39454
39455         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
39456         initializer of struct addrinfo, as an indication that we don't
39457         care how many members the structure has.
39458
39459 2005-06-24  Derek Price  <derek@ximbiot.com>
39460         and Bruno Haible  <bruno@clisp.org>
39461
39462         Remove stat module & update lstat.
39463         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
39464         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39465         * m4/stat.m4: Remove this file.
39466
39467 2005-06-24  Derek Price  <derek@ximbiot.com>
39468         and Bruno Haible  <bruno@clisp.org>
39469
39470         Remove stat module & update lstat.
39471         * lib/stat.c: Remove this file...
39472         (slash_aware_lstat): ...moving this content and its support...
39473         * lib/lstat.c (rpl_lstat): ...into here.
39474         * lib/lstat.h: New file.
39475
39476 2005-06-24  Derek Price  <derek@ximbiot.com>
39477         and Bruno Haible  <bruno@clisp.org>
39478
39479         Remove stat module & update lstat.
39480         * config/srclist.txt (libc sources): Remove stat.
39481
39482 2005-06-24  Derek Price  <derek@ximbiot.com>
39483         and Bruno Haible  <bruno@clisp.org>
39484
39485         Remove stat module & update lstat.
39486         * MODULES.html.sh (stat): Remove.
39487         * MODULES.html: Regenerated.
39488         * modules/lstat (Description): Correct function name.
39489         (Files): Add "lstat.h".
39490         (Depends-on): Remove stat, add xalloc, stat-macros.
39491         * modules/stat: Remove this file.
39492         (Include): Add "lstat.h", remove <sys/stat.h>.
39493
39494 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39495
39496         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
39497         (ranged_convert): Don't save conversion in a temporary struct.
39498         This causes a warning with GCC 4.0.0, and anyway in the typical
39499         case it's not worth the extra 100 bytes or so of code.
39500         (ranged_convert, __mktime_internal): When calling a function via a
39501         pointer P, use P () rather than (*P) (), as we now assume C89 or
39502         better.
39503
39504 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39505
39506         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
39507         "who -r" failed to give output.  Problem reported by Tim Waugh.
39508
39509         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
39510         (xcalloc): Use it to avoid needless tests.
39511         Problem reported by Jim Meyering.
39512
39513 2005-06-20  Derek Price  <derek@ximbiot.com>
39514
39515         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
39516         unnecessary for Autoconfs > 2.59c.
39517
39518 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39519
39520         * lib/argp.h (__option_is_short): Check upper limit of
39521         __key. Isprint() requires its argument to have the value
39522         of an unsigned char or EOF.
39523
39524 2005-06-16  Jim Meyering  <jim@meyering.net>
39525
39526         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
39527         when either N or S is zero.
39528
39529 2005-06-16  Derek Price  <derek@ximbiot.com>
39530
39531         * m4/bison.m4: Declare YACC & YFLAGS precious.
39532
39533 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
39534
39535         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
39536         multibyte string or pattern, fall back on unibyte matching.
39537         Problem reported by James Youngman.
39538
39539 2005-06-08  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/csharpcomp: New file.
39542         * MODULES.html.sh (C#): Add csharpcomp.
39543
39544 2005-06-08  Bruno Haible  <bruno@clisp.org>
39545
39546         * m4/csharpcomp.m4: New file, from GNU gettext.
39547
39548 2005-06-08  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/csharpcomp.h: New file, from GNU gettext.
39551         * lib/csharpcomp.c: New file, from GNU gettext.
39552         * lib/csharpcomp.sh.in: New file, from GNU gettext.
39553
39554 2005-06-08  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
39557         warning on mingw.
39558
39559 2005-06-07  Derek Price  <derek@ximbiot.com>
39560
39561         Sync from CVS.
39562         * lib/glob_.h: Indent nested #ifdef.
39563
39564 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39565
39566         Sync from coreutils.
39567         Use "file name" when talking about file names, instead of "filename"
39568         or "path", as per the GNU coding standards.
39569         * lib/mkdir-p.c: Renamed from makepath.c.
39570         (make_dir_parents): Renamed from make_path.  All callers changed.
39571         * lib/mkdir-p.h: Likewise.  All includers changed.
39572         * lib/filenamecat.c: Renamed from path-concat.c.
39573         (file_name_concat): Renamed from path_concat.  All callers changed.
39574         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
39575         * lib/filenamecat.h: Likewise.  All includers changed.
39576         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
39577         in comments or local variable names.
39578         * lib/basename.c: Likewise.
39579         * lib/canonicalize.c, canonicalize.h: Likewise.
39580         * lib/dirname.c, dirname.h: Likewise.
39581         * lib/euidaccess.c: Likewise.
39582         * lib/exclude.c: Likewise
39583         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
39584         * lib/fsusage.c, fsuage.h: Likewise.
39585         * lib/fts.c, fts_.h: Likewise.
39586         * lib/getcwd.c: Likewise.
39587         * lib/getloadavg.c: Likewise.
39588         * lib/mkstemp.c: Likewise.
39589         * lib/mountlist.c, mountlist.h: Likewise.
39590         * lib/openat.c, openat.h: Likewise.
39591         * lib/readlink-stub.c: Likewise.
39592         * lib/readutmp.c, readutmp.h: Likewise.
39593         * lib/rename.c: Likewise.
39594         * lib/rmdir.c: Likewise.
39595         * lib/same.c: Likewise.
39596         * lib/savedir.c: Likewise.
39597         * lib/stripslash.c: Likewise.
39598         * lib/tempname.c: Likewise.
39599         * lib/xreadlink.c: Likewise.
39600         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
39601         All uses changed.
39602         * lib/exclude.h: Likewise.
39603
39604         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
39605         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39606         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
39607         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39608         * lib/pathmax.h: Include <limits.h> unconditionally, since other
39609         files have been getting away with it for years (MORE/BSD 4.3
39610         is extinct now).
39611         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
39612         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39613
39614         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
39615         Define to 256, not 255, as per modern POSIX.
39616
39617 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39618
39619         Sync from coreutils.
39620         Use "file name" when talking about file names, instead of "filename"
39621         or "path", as per the GNU coding standards.
39622         * MODULES.html.sh: mkdir-p renamed from makepath.
39623         filenamecat renamed from path-concat.
39624         * modules/filenamecat: Renamed from modules/path-concat.
39625         (Files): filenamecat.h and filenamecat.c renamed from
39626         path-concat.h and path-concat.c.
39627         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
39628         (Include): filenamecat.h, not path-concat.h.
39629         * modules/mkdir-p: Renamed from modules/makepath.
39630         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
39631         makepath.c.
39632         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
39633         (Include): mkdir-p.h, not makepath.h.
39634
39635 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39636
39637         Sync from coreutils.
39638         * m4/mkdir-p.m4: Renamed from makepath.m4.
39639         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
39640         Rename files from makepath.c to mkdir-p.c, and from
39641         makepath.h to mkdir-p.h.
39642         * m4/filenamecat.m4: Renamed from path-concat.m4.
39643         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
39644         Rename files from path-concat.c to filenamecat.c,
39645         and from path-concat.h to filenamecat.h.
39646         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
39647         "file name" in local variables or comments.
39648         * m4/rename.m4: Likewise.
39649
39650 2005-06-01  Bruno Haible  <bruno@clisp.org>
39651
39652         * modules/csharpexec: New file.
39653         * MODULES.html.sh (C#): New section.
39654
39655 2005-06-01  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/csharp.m4: New file, from GNU gettext.
39658         * m4/csharpexec.m4: New file, from GNU gettext.
39659
39660 2005-06-01  Bruno Haible  <bruno@clisp.org>
39661
39662         * lib/csharpexec.h: New file, from GNU gettext.
39663         * lib/csharpexec.c: New file, from GNU gettext.
39664         * lib/csharpexec.sh.in: New file, from GNU gettext.
39665
39666 2005-05-31  Derek Price  <derek@ximbiot.com>
39667             Paul Eggert  <eggert@cs.ucla.edu>
39668
39669         Sync from cvs.
39670         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39671
39672 2005-05-31  Derek Price  <derek@ximbiot.com>
39673             Paul Eggert  <eggert@cs.ucla.edu>
39674
39675         Sync from cvs.
39676         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39677
39678 2005-05-29  Derek Price  <derek@ximbiot.com>
39679
39680         * config/srclist.txt (glob_.h, glob.c): Add these files.
39681
39682 2005-05-29  Derek Price  <derek@ximbiot.com>
39683
39684         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
39685         * modules/glob: New file.
39686         * modules/getlogin_r: Add link to POSIX spec in description.
39687
39688 2005-05-29  Derek Price  <derek@ximbiot.com>
39689             Paul Eggert  <eggert@cs.ucla.edu>
39690
39691         * m4/glob.m4: New file.
39692
39693 2005-05-29  Derek Price  <derek@ximbiot.com>
39694             Paul Eggert  <eggert@cs.ucla.edu>
39695
39696         * lib/glob_.h, lib/glob.c: New files.
39697
39698 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39699
39700         * modules/fts (Files): Remove m4/inttypes-pri.m4.
39701         * modules/fts-lgpl (Depends-on): Remove gettext.
39702
39703 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39704
39705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
39706         and don't require gt_INTTYPES_PRI.
39707
39708 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39709
39710         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
39711
39712         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
39713         the configuration hassle isn't worth it.
39714         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
39715         (LONGEST_MODIFIER, PRIuMAX): Remove.
39716
39717 2005-05-27  Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/getlogin_r.h: Remove second include of <stddef.h>.
39720
39721 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
39724         _POSIX_PTHREAD_SEMANTICS for Solaris.
39725
39726 2005-05-25  Derek Price  <derek@ximbiot.com>
39727
39728         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
39729
39730 2005-05-25  Derek Price  <derek@ximbiot.com>
39731             Paul Eggert  <eggert@cs.ucla.edu>
39732
39733         * modules/getlogin_r, m4/getlogin_r.m4: New files.
39734         * lib/getlogin_r.c, getlogin_r.h: New files.
39735
39736 2005-05-25  Bruno Haible  <bruno@clisp.org>
39737             Derek Price  <derek@ximbiot.com>
39738
39739         * lib/getlogin_r.h: Simplify API documentation.
39740
39741 2005-05-23  Derek Price  <derek@ximbiot.com>
39742
39743         * modules/minmax (Files): Add m4/minmax.m4.
39744         (configure.ac): Add gl_MINMAX.
39745
39746 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39747
39748         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
39749         so that unistd-safer.h (GPL'ed code) need not be included.
39750
39751 2005-05-22  Bruno Haible  <bruno@clisp.org>
39752
39753         * m4/minmax.m4: New file.
39754         Based on a patch by Derek Price <derek@ximbiot.com>.
39755
39756 2005-05-22  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
39759         (INT64_MIN): Fix definition.
39760         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
39761
39762         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
39763         NEED_SIGNED_INT_TYPES.
39764
39765         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
39766         HAVE_SYSTEM_INTTYPES.
39767
39768 2005-05-22  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
39771         Also include <sys/param.h> if it defines MIN, MAX.
39772         Based on a patch by Derek Price <derek@ximbiot.com>.
39773
39774 2005-05-21  Jim Meyering  <jim@meyering.net>
39775
39776         * modules/fts (Files): Add m4/inttypes-pri.m4.
39777         (Depends-on): Add lstat and remove gettext.  Alphabetize.
39778
39779 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39780
39781         New fts module.
39782         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
39783         (setup_dir, free_dir): New functions.
39784         (enter_dir, leave_dir): Define trivial
39785         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
39786         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
39787         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
39788         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
39789         Move to fts-cycle.c.
39790         (fts_open): Use setup_dir.
39791         (fts_close): Use free_dir.
39792         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
39793         This adds a label and some gotos, but the alternatives were messier.
39794         Check for memory allocation failure when entering a dir.
39795         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
39796         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
39797         (FTS): New member fts_cycle, that is a union that contains the
39798         old active_dir_ht and cycle_state.  All uses changed to mention
39799         fts_cycle.ht and fts_cycle.state.
39800         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
39801         fts.c, with the following changes:
39802         (setup_dir, free_dir): New functions.
39803         (enter_dir): Now returns bool.  Return true if successful, false
39804         if memory exhausted.  All callers changed.
39805         Do not bother partly cleaning up on
39806         memory allocation failure; that is free_dir's job.
39807         However, free ad if hash_insert fails, to avoid memory leak.
39808         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
39809         fts->fts_options to see which union member to use.
39810
39811 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39812
39813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
39814         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
39815
39816 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39817
39818         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
39819
39820 2005-05-20  Jim Meyering  <jim@meyering.net>
39821
39822         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
39823         Now a macro, to pacify GCC.
39824
39825 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
39826
39827         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
39828         of -1.
39829
39830 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
39831
39832         * lib/chown.c (rpl_chown): Return -1 on failure.
39833
39834 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39835
39836         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
39837         Don't check for stddef.h.
39838         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
39839         don't use its results.
39840         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
39841         since we include them unconditionally.  Don't require
39842         AM_STDBOOL_H, since stdbool is a prerequisite.
39843         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
39844         since we assume C89 or better.
39845         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
39846         as we don't use their results.
39847         Don't check for fchdir, memmove, memset, strrchr, as we use
39848         them unconditionally.
39849         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
39850         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
39851
39852 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39853
39854         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
39855         Include <stddef.h> unconditionally, since we assume C89 now.
39856         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
39857         * lib/fts.c: Include fts_.h first, to check interface.
39858         Do not include intprops.h; no longer needed.
39859         Include cycle-check.h and hash.h, since fts_.h no longer does.
39860         Remove unnecessary casts of closedir to void.
39861         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
39862         decide whether to decrement nlinks.
39863         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
39864         (FTS): Use struct hash_table * instead of Hash_table, so that
39865         we no longer need to include hash.h here.
39866
39867 2005-05-18  Jim Meyering  <jim@meyering.net>
39868
39869         * modules/dirfd (License): Change to LGPL.  Most of the code
39870         is already in the public domain.
39871
39872 2005-05-18  Jim Meyering  <jim@meyering.net>
39873
39874         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
39875         Reported by Yoann Vandoorselaere.
39876
39877 2005-05-17  Jim Meyering  <jim@meyering.net>
39878
39879         * m4/fts.m4: New file, from coreutils.
39880
39881 2005-05-17  Jim Meyering  <jim@meyering.net>
39882
39883         * lib/fts.c, lib/fts_.h: New files, from coreutils.
39884
39885 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39886
39887         Sync from coreutils.
39888         * m4/unlinkdir.m4: New file.
39889
39890 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39891
39892         Sync from coreutils.
39893         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
39894         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
39895         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
39896         White space changes only.
39897         * lib/makepath.c (make_path): Port to hosts where leading "//" is
39898         special.
39899         * lib/yesno.c: Include getline.h, not ctype.h.
39900         (yesno): Don't remove leading white space; POSIX doesn't allow it.
39901         Use getline to remove arbitrary restriction on response length.
39902
39903 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39904
39905         * config/srclist-update: Spell out "Street" in FSF postal
39906         mail address; this is the style the FSF seems to prefer.
39907
39908         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
39909         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
39910         this updates FSF postal mail address.
39911
39912         Sync from coreutils.
39913         * modules/unlinkdir: New file.
39914         * modules/yesno (Depends-on): Add getline.
39915         * MODULES.html.sh (File system functions): Add unlinkdir.
39916
39917 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39918
39919         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
39920         lib/strsep.h:
39921         Change the initial comment to refer to GPL, not LGPL.
39922         gnulib-tool will change it to LGPL as needed.
39923
39924         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
39925         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
39926         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
39927         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
39928         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
39929         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
39930         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
39931         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
39932         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
39933         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
39934         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
39935         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
39936         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
39937         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
39938         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
39939         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
39940         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
39941         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
39942         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
39943         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
39944         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
39945         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
39946         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
39947         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
39948         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
39949         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
39950         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
39951         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
39952         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
39953         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
39954         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
39955         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
39956         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
39957         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
39958         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
39959         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
39960         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
39961         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
39962         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
39963         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
39964         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
39965         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
39966         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
39967         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
39968         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
39969         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
39970         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
39971         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
39972         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
39973         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
39974         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
39975         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
39976         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
39977         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
39978         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
39979         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
39980         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
39981         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
39982         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
39983         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
39984         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
39985         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
39986         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
39987         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
39988         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
39989         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
39990         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
39991         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
39992         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
39993         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
39994         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
39995         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
39996         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
39997         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
39998         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
39999         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
40000         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
40001         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
40002         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
40003         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
40004         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
40005         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
40006         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
40007         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
40008         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
40009         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
40010         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
40011         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
40012         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
40013         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
40014         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
40015         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
40016         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
40017         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
40018         lib/yesno.c, lib/yesno.h:
40019         Update FSF postal mail address.
40020
40021 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40022
40023         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
40024         tests/test-memmem.c, tests/test-stpncpy.c:
40025         Update FSF postal mail address.
40026
40027 2005-05-13  Bruno Haible  <bruno@clisp.org>
40028
40029         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
40030         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
40031         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
40032         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
40033         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
40034         Add support for 64-bit integers in the MSVC compiler.
40035
40036 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40037
40038         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
40039
40040 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
40041
40042         * gnulib-tool (func_import): Sort and uniquify recommended includes.
40043
40044 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40045
40046         * doc/getdate.texi (General date syntax): Don't say that date
40047         date --iso-8601=ns generates acceptable dates; it doesn't yet.
40048         Problem reported by Nic Ferrier.
40049
40050 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40051
40052         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
40053         specified in ai_socktype. Fix invalid ai_protocol
40054         check. ai_protocol is usually set to 0 or depending on
40055         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
40056         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
40057         ai_socktype / ai_protocol in the returned addrinfo structure.
40058
40059 2005-05-10  Simon Josefsson  <jas@extundo.com>
40060
40061         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
40062         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40063
40064 2005-05-10  Karl Berry  <karl@gnu.org>
40065
40066         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
40067         (from http://www.gnu.org/licenses).
40068         * doc/COPYING.LIB: also rename to COPYING.LESSER.
40069         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
40070         fdl.texi suffices.
40071
40072 2005-05-10  Karl Berry  <karl@gnu.org>
40073
40074         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
40075         (COPYING.DOC): remove.
40076
40077         * config/srclist-update: new FSF address.
40078
40079 2005-05-10  Derek Price  <derek@ximbiot.com>
40080
40081         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
40082         possible.
40083
40084 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40085             Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/inet_ntop: New file.
40088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40089         inet_ntop.
40090
40091 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40092             Bruno Haible  <bruno@clisp.org>
40093
40094         * m4/inet_ntop.m4: New file.
40095
40096 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40097             Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/inet_ntop.h: New file.
40100         * lib/inet_ntop.c: New file, from glibc with modifications.
40101
40102 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * modules/time_r (License): Change to LGPL.
40105         * modules/extensions (License): Change to LGPL.  Actually,
40106         the license is more permissive than that, but currently gnulib-tool
40107         doesn't know how to handle more-permissive licenses.
40108
40109         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
40110         Problem reported by Dave Love.
40111
40112 2005-05-08  Jim Meyering  <jim@meyering.net>
40113
40114         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
40115         blank.
40116
40117 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40118
40119         * modules/argmatch (Depends-on): Add stdbool.
40120         * modules/backupfile (Depends-on): Likewise.
40121         * modules/chdir-long (Depends-on): Likewise.
40122         * modules/closeout (Depends-on): Likewise.
40123         * modules/cycle-check (Depends-on): Likewise.
40124         * modules/dirname (Depends-on): Likewise.
40125         * modules/fnmatch (Depends-on): Likewise.
40126         * modules/fsusage (Depends-on): Likewise.
40127         * modules/fwriteerror (Depends-on): Likewise.
40128         * modules/getcwd (Depends-on): Likewise.
40129         * modules/getloadavg (Depends-on): Likewise.
40130         * modules/hard-locale (Depends-on): Likewise.
40131         * modules/makepath (Depends-on): Likewise.
40132         * modules/mountlist (Depends-on): Likewise.
40133         * modules/nanosleep (Depends-on): Likewise.
40134         * modules/posixtm (Depends-on): Likewise.
40135         * modules/quotearg (Depends-on): Likewise.
40136         * modules/readtokens (Depends-on): Likewise.
40137         * modules/readtokens0 (Depends-on): Likewise.
40138         * modules/readutmp (Depends-on): Likewise.
40139         * modules/save-cwd (Depends-on): Likewise.
40140         * modules/strftime (Depends-on): Likewise.
40141         * modules/userspec (Depends-on): Likewise.
40142         * modules/utimecmp (Depends-on): Likewise.
40143         * modules/xgetcwd (Depends-on): Likewise.
40144         * modules/xnanosleep (Depends-on): Likewise.
40145         * modules/xstrtod (Depends-on): Likewise.
40146         * modules/yesno (Depends-on): Likewise.
40147
40148 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
40151         needless checks.
40152
40153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40154
40155         Merge from coreutils.  Among other things,
40156         add bulletproofing for cases where stdin, stdout, or stderr are closed.
40157         * lib/fd-safer.c: New file.
40158         * lib/fcntl-safer.h, open-safer.c: Remove.
40159         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
40160         * lib/dup-safer.c: Include unistd-safer.h first.
40161         Don't include errno.h.
40162         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
40163         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
40164         * lib/file-type.c: Rely on file-type.h change.
40165         * lib/getloadavg.c: Include unistd-safer.h.
40166         (getloadavg): Use safer open.
40167         * lib/getusershell.c: Include "stdio-safer.h".
40168         (getusershell): Use safer fopen.
40169         * lib/long-options.c (long_options): Use NULL rather than 0.
40170         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
40171         'free'.
40172         * lib/modechange.c: Likewise.
40173         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
40174         (MODE_DONE): New constant.
40175         (struct mode_change): Remove 'next' member.
40176         (make_node_op_equals): New function; like the old one of the
40177         same name, except it allocates an array.
40178         (mode_compile, mode_create_from_ref): Use it.
40179         (mode_compile): Allocate result as an array, not a linked list.
40180         Parse octal string ourself, so that we catch mistakes like "+0".
40181         (mode_adjust): Arg is an array, not a linked list.
40182         * lib/modechange.c: Include stat-macros.h, xalloc.h.
40183         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
40184         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
40185         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
40186         Remove.  This is now stat-macros.h's job.
40187         (talloc): Remove.  All callers replaced by xalloc, so that
40188         our invokers don't have to worry about reporting memory failures.
40189         (make_node_op_equals): Remove.
40190         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40191         New constants.
40192         (struct mode_change): Moved here from modechange.h.
40193         (mode_append_entry): Remove.
40194         (mode_compile): Remove MASKED_OPS arg, since it encouraged
40195         apps to have incorrect behavior.  Use simpler algorithm for head
40196         and tail.  Don't futz with umask; that's now the job of mode_adjust.
40197         Detect more invalid usages rather than having somewhat-random behavior.
40198         Don't insert an "a=" action, as that leads to incorrect behavior.
40199         (mode_compile, mode_create_from_ref): Return NULL on error instead
40200         of an enum, since now there's only one way to have an error.  All
40201         callers changed.
40202         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
40203         at the correct time.  Simplify calculation of "+u" and its ilk.
40204         Don't mishandle "+X".
40205         (mode_free): Remove "register" and localize decls.
40206         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40207         (struct mode_change): Move to modechange.c; callers don't
40208         need to see this stuff.
40209         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
40210         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
40211         (mode_change, mode_adjust): Reflect the new signatures noted above.
40212         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
40213         that might redefine system include files.
40214         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
40215         (my_usleep): Use NULL rather than (void *) 0.
40216         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
40217         Use siginterrupt to specify that system calls should be interrupted.
40218         (rpl_nanosleep): Move initialization of suspended closer to call of
40219         my_usleep.
40220         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
40221         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
40222         (desirable_utmp_entry): New function.
40223         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
40224         using x2nrealloc, to simplify logic.
40225         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
40226         size calculation.  Do not assume utmp file is a regular file.
40227         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
40228         (READ_UTMP_CHECK_PIDS): New constant.
40229         * lib/save-cwd.c: Include unistd-safer.h.
40230         (save_cwd): Use fd_safer.
40231         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
40232         [!_LIBC] Include "stat-macros.h" instead.
40233         * lib/unistd-safer.h (fd_safer): New decl.
40234
40235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40236
40237         * modules/getloadavg (Depends-on): Add unistd-safer.
40238         * modules/getusershell (Depends-on): Add stdio-safer.
40239         * modules/lstat (Depends-on): Remove xalloc.
40240         * modules/mkstemp (Depends-on): Add stat-macros.
40241         * modules/modechange (Depends-on): Remove xstrtol.
40242         Add stat-macros, xalloc.
40243         * modules/save-cwd (Depends-on): Add unistd-safer.
40244         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
40245         * modules/unistd-safer (Files): Add lib/fd-safer.c
40246         (Makefile.am): Remove lib_SOURCES.
40247
40248         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
40249         Remove fcntl-safer; unistd-safer supersedes it.
40250
40251 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
40254         AC_HEADER_STAT.
40255         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
40256         (gl_PREREQ_CHOWN): Remove.
40257         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
40258         it.  Don't require AC_HEADER_STAT.
40259         (gl_PREREQ_LSTAT): Remove.
40260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
40261         Don't require AC_HEADER_STAT.
40262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
40263         (gl_PREREQ_RMDIR): Remove.
40264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
40265         mention stat-macros.h or AC_HEADER_STAT, since we'll make
40266         the stat-macros module a prerequisite.
40267         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
40268         * m4/filemode.m4 (gl_FILEMODE): Likewise.
40269         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
40270         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
40271         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
40272         variable names.
40273         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
40274         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
40275         variable prefixes.
40276         * m4/fcntl-safer.m4: Remove.
40277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
40278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
40279         Invoke gl_PREREQ_FD_SAFER.
40280         (gl_PREREQ_FD_SAFER): New macro.
40281         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
40282         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
40283         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
40284         Remove duplicate call to AC_LIBOBJ(readutmp).
40285         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
40286
40287         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
40288         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
40289
40290 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40291
40292         * MODULES.html.sh (Misc): Add byteswap.
40293
40294 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40295
40296         * modules/getcwd (Depends-on): Add extensions.
40297         * modules/openat (Depends-on): Likewise.
40298
40299 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40300
40301         * modules/byteswap: New file.
40302
40303 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40304
40305         * m4/byteswap.m4: New file.
40306
40307 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40308
40309         * lib/byteswap_.h: New file.
40310
40311 2005-04-25  Karl Berry  <karl@gnu.org>
40312
40313         * m4/gettext.m4: Update from GNU gettext 0.14.4.
40314
40315 2005-04-25  Albert Chin  <china@thewrittenword.com>
40316
40317         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
40318         Toolkit C bug.
40319
40320 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
40321
40322         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
40323         (func_ln_if_changed) Remove forcibly for no error message
40324         in case file does not exist.
40325
40326 2005-04-19  Simon Josefsson  <jas@extundo.com>
40327
40328         * gnulib-tool (Options): Make --symlink mean --symbolic.
40329
40330 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
40331
40332         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
40333
40334 2005-04-16  Simon Josefsson  <jas@extundo.com>
40335
40336         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
40337
40338 2005-04-15  Simon Josefsson  <jas@extundo.com>
40339
40340         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
40341
40342 2005-04-15  Simon Josefsson  <jas@extundo.com>
40343
40344         * gnulib-tool: Rename --symlink to --symbolic.
40345
40346 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
40347
40348         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
40349         symbolic links to files instead of copying/moving.  Add --aux-dir,
40350         specifying directory relative --dir where auxiliary build tools
40351         are placed.
40352
40353 2005-04-14  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/allocsa (License): Change to LGPL.
40356         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40357
40358 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40359
40360         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
40361         that "UTC +1 second" continues to work.  Problem reported
40362         by Dmitry V. Levin.
40363         (relunit_snumber): New rule.
40364         (relunit): Use it.
40365
40366 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40367
40368         * lib/getdate.y (universal_time_zone_table): New constant.
40369         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
40370         universal_time_zone_table.
40371         (lookup_zone): Prefer universal_time_zone_table to
40372         local_time_zone_table, so that "GMT" time stamps are allowed in
40373         London during the summer.  Problem reported by Ian Abbott.
40374
40375 2005-04-12  Jim Meyering  <jim@meyering.net>
40376
40377         * lib/human.c (humblock): Set *options even when returning due to
40378         xstrtoumax conversion failure.  Thanks to a used-uninitialized
40379         warning from gcc-4.
40380
40381 2005-04-09  Jim Meyering  <jim@meyering.net>
40382
40383         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
40384         -Wuninitialized: initialize tm0.tm_year.
40385
40386 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40387
40388         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
40389         count, since there's no maximum.  All uses changed.
40390         Add member dsts_seen.
40391         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
40392         not being INT_MAX.
40393         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
40394         Use pc_rels_seen to decide whther a date is absolute.
40395
40396         * lib/getdate.y (number): Don't overwrite year.
40397         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
40398         check.
40399
40400 2005-04-02  Simon Josefsson  <jas@extundo.com>
40401
40402         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
40403         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
40404
40405 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
40406
40407         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
40408         where no absolute path name can be longer than PATH_MAX.
40409
40410 2005-03-27  Jim Meyering  <jim@meyering.net>
40411
40412         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
40413
40414 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
40415
40416         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
40417         "one's complement" -> "ones' complement" in comment, as per Knuth.
40418         "value of type" -> "type or expression" in comment.
40419         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
40420
40421 2005-03-26  Jim Meyering  <jim@meyering.net>
40422
40423         Comment nits.
40424         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
40425         Correct typos: s/or/of/.
40426
40427 2005-03-26  Jim Meyering  <jim@meyering.net>
40428
40429         * modules/check-include-files: Move to ../ and rename to...
40430         * check-module: ...this.
40431
40432 2005-03-25  Jim Meyering  <jim@meyering.net>
40433
40434         * modules/xvasprintf (Files): Add xalloc.h.
40435
40436 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40437
40438         * modules/gettext (Files): config/config.rpath ->
40439         build-aux/config.rpath
40440         * modules/iconv (Files): Likewise.
40441         Problem reported by Oskar Liljeblad.
40442
40443 2005-03-23  Jim Meyering  <jim@meyering.net>
40444
40445         * modules/check-include-files: New script to check for
40446         missing dependencies, multiple includes, etc.
40447
40448         * modules/c-strtold (Depends-on): Add xalloc.
40449         * modules/c-strtod (Depends-on): Add xalloc.
40450         * modules/hash (Depends-on): Add xalloc.
40451         (Files): Remove lib/xalloc.h.
40452
40453         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
40454         * modules/userspec (Files): Add lib/inttostr.h.
40455
40456 2005-03-23  Jim Meyering  <jim@meyering.net>
40457
40458         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
40459
40460 2005-03-22  Jim Meyering  <jim@meyering.net>
40461
40462         * modules/stat-macros: New module.
40463         * modules/canonicalize, modules/euidaccess, modules/file-type,
40464         * modules/filemode, modules/lchown, modules/makepath,
40465         * modules/rmdir, modules/stat: Depend on new stat-macros module
40466         rather than listing lib/stat-macros.h manually.
40467         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
40468
40469 2005-03-22  Jim Meyering  <jim@meyering.net>
40470
40471         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
40472
40473 2005-03-22  Bruno Haible  <bruno@clisp.org>
40474
40475         * config/srclist.txt: Replace target directory 'config' with
40476         'build-aux'.
40477         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
40478         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
40479         ../build-aux/.
40480
40481 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
40482
40483         * modules/chdir-long (Depends-on): Add mempcpy.
40484
40485         * modules/acl, modules/backupfile, modules/c-strtod,
40486         modules/c-strtold, modules/canon-host, modules/canonicalize,
40487         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
40488         modules/exclude, modules/exitfail, modules/file-type,
40489         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
40490         modules/getdate, modules/getline, modules/getpagesize,
40491         modules/getpass, modules/getugroups, modules/group-member,
40492         modules/hard-locale, modules/hash, modules/human, modules/idcache,
40493         modules/inttostr, modules/long-options, modules/makepath,
40494         modules/md5, modules/memcasecmp, modules/memcoll,
40495         modules/modechange, modules/mountlist, modules/path-concat,
40496         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
40497         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
40498         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
40499         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
40500         modules/strftime, modules/strndup, modules/strverscmp,
40501         modules/timespec, modules/unlocked-io, modules/userspec,
40502         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
40503         modules/yesno:
40504         Remove lib_SOURCES line from Makefile.am section, as this is now
40505         done automatically by the corresponding Autoconf macro.
40506
40507 2005-03-21  Jim Meyering  <jim@meyering.net>
40508
40509         Changes imported from coreutils.
40510
40511         * lib/cycle-check.c: Don't include xalloc.h.
40512
40513         * lib/path-concat.c: Don't include assert.h.
40514         (path_concat): Remove assertion that would have triggered
40515         for ABASE starting with more than one slash.
40516         Reported by Andreas Schwab.
40517
40518         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
40519         properly when ABASE is an absolute file name.
40520         Correct the description of this function.
40521         Include <assert.h>.
40522         Add an assertion and a test driver.
40523         This fixes a bug introduced on 2004-07-02.
40524         Andreas Schwab reported the resulting failure of cp --parents:
40525         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
40526
40527 2005-03-21  Jim Meyering  <jim@meyering.net>
40528
40529         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
40530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
40531
40532 2005-03-21  Jim Meyering  <jim@meyering.net>
40533         and  Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
40536         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
40537         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
40538         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
40539         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
40540         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
40541         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
40542         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
40543         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
40544         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
40545         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
40546         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
40547         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
40548         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
40549         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
40550         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
40551         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
40552         for these modules.
40553
40554 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
40557         (which shouldn't happen), generate nothing instead of returning 0
40558         immediately, so that nstrftime (NULL, ...) doesn't return 0.
40559
40560 2005-03-16  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
40563         HAVE_LONGLONG_64BIT.
40564
40565 2005-03-16  Bruno Haible  <bruno@clisp.org>
40566
40567         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
40568         HAVE_LONGLONG_64BIT.
40569
40570 2005-03-16  Bruno Haible  <bruno@clisp.org>
40571
40572         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
40573         HAVE_LONGLONG_64BIT.
40574
40575 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         * lib/strftime.c (my_strftime): Prepend space to format so that we can
40578         reliably distinguish strftime failure from empty output on POSIX
40579         hosts.
40580
40581 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40582
40583         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
40584         (iconv_string): Don't guess a size-zero buffer, as that might cause
40585         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
40586         result would be 'too large', where 'too large' is (heuristically)
40587         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
40588         overflow concerns.  This will prevent some unwanted malloc failures
40589         when the inputs are very large.
40590
40591 2005-03-15  Karl Berry  <karl@gnu.org>
40592
40593         * config/srclist.txt (config.rpath): from gettext.
40594         * config/config.rpath: update.
40595
40596 2005-03-15  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
40599         to 'negate'.
40600
40601         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
40602         variable.
40603
40604         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
40605         results.
40606
40607 2005-03-14  Simon Josefsson  <jas@extundo.com>
40608
40609         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
40610         <fx@gnu.org>.
40611
40612 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
40613
40614         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
40615         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
40616         intprops.h.
40617         * lib/strtol.c: Likewise.
40618
40619 2005-03-14  Jim Meyering  <jim@meyering.net>
40620
40621         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
40622         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
40623         to be nonzero so that we (and caller) can detect the difference
40624         between a valid zero-length expansion and an error return, even
40625         when the underlying strftime fails before writing anything into
40626         that location.
40627
40628 2005-03-14  Bruno Haible  <bruno@clisp.org>
40629
40630         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
40631         Update from GNU gettext 0.14.3.
40632
40633 2005-03-10  Jim Meyering  <jim@meyering.net>
40634
40635         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
40636
40637 2005-03-10  Jim Meyering  <jim@meyering.net>
40638
40639         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
40640         so that this module works on systems without fchdir.
40641
40642 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
40643
40644         Factor int-properties macros into a single file, except for
40645         glibc-related files.
40646         * lib/intprops.h: New file.
40647         * lib/getloadavg.c: Include it instead of limits.h.
40648         (INT_STRLEN_BOUND): Remove.
40649         * lib/human.c: Include intprops.h.
40650         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
40651         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
40652         302/1000.
40653         * lib/inttostr.h: Include intprops.h instead of limits.h.
40654         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
40655         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
40656         for consistency with intprops.h.
40657         (time_t_is_integer, twos_complement_arithmetic): Use them.
40658         * lib/sig2str.h: Include <signal.h>, intprops.h.
40659         (INT_STRLEN_BOUND): Remove.
40660         * lib/strftime.c (TYPE_SIGNED): Remove.
40661         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
40662         * lib/strtol.c: Adjust comments to match intprops.h.
40663         * lib/userspec.c: Include intprops.h.
40664         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
40665         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
40666         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
40667         instead of rolling our own expressions.
40668         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
40669
40670         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
40671         instead of int.
40672         (my_strftime): Do not mishandle years close to INT_MAX, by doing
40673         the right thing even if adding 1900 would overflow.  Similarly
40674         for tm_mon + 1 and tm_yday + 1.
40675         Make %Y always equivalent to %C%y, and similarly for %G and %g.
40676         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
40677         (DO_SIGNED_NUMBER): New macro.
40678         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
40679
40680 2005-03-07  Bruno Haible  <bruno@clisp.org>
40681
40682         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
40683
40684 2005-03-07  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
40687
40688 2005-03-04  Derek R. Price  <derek@ximbiot.com>
40689
40690         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
40691         (func_import): Only replace files via --import when they have actually
40692         changed.
40693
40694 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40695
40696         * m4/mmap-anon.m4: New file.
40697         * m4/pagealign_alloc.m4: New file.
40698
40699 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40700             Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/pagealign_alloc: New file.
40703         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
40704
40705 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40706             Bruno Haible  <bruno@clisp.org>
40707
40708         * lib/pagealign_alloc.h: New file.
40709         * lib/pagealign_alloc.c: New file.
40710
40711 2005-03-03  Bruno Haible  <bruno@clisp.org>
40712
40713         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
40714         Use an all-permissive copyright notice, recommended by RMS.
40715
40716 2005-03-02  Bruno Haible  <bruno@clisp.org>
40717
40718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
40719         of AIX, the replacement has to be done only after <string.h> is
40720         included, therefore not in config.h. stpncpy.h does the replacement,
40721         and stpncpy.c uses it.
40722
40723 2005-03-02  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
40726         stpncpy.c uses it.
40727
40728 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40729
40730         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
40731         The workaround isn't strictly needed for POSIX conformance, and
40732         it's too much of a pain to configure and maintain.  We'll ask
40733         people to fix their kernels instead.
40734         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
40735         (NANOSLEEP_BUG_WORKAROUND): Remove.
40736         (xnanosleep): Remove the workaround.
40737
40738 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40739
40740         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
40741         Reported by Derek Price.
40742         (Include): Add "timespec.h".
40743
40744         * modules/xnanosleep (Depends-on): Remove gethrxtime.
40745
40746 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40747
40748         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
40749         to detect nanosleep bug.
40750
40751 2005-03-01  Bruno Haible  <bruno@clisp.org>
40752
40753         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
40754
40755 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
40756
40757         * modules/gethrxtime: New file.
40758         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
40759         (Depends-on): Add gethrxtime.
40760         (configure.ac): Add gl_XNANOSLEEP.
40761         (Makefile.am): Remove lib_SOURCES line.
40762
40763 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40764
40765         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
40766         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
40767
40768 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40769
40770         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
40771         * lib/timespec.h (gettime): Return void, since it always
40772         succeeds now.  All uses changed.
40773         * lib/gettime.c (gettime) Likewise.
40774         [HAVE_NANOTIME]: Prefer nanotime.
40775         Assume gettimeofday succeeds, as POSIX requires.
40776         Assime time () succeeds, since other code already does.
40777         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
40778         (timespec_subtract): Remove.
40779         (NANOSLEEP_BUG_WORKAROUND): New constant.
40780         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
40781         things considerably.  Use it only on GNU/Linux hosts, since the
40782         workaround shouldn't be needed elsewhere.
40783
40784 2005-02-24  Bruno Haible  <bruno@clisp.org>
40785
40786         * modules/gettext (Files): Add m4/glibc2.m4.
40787
40788 2005-02-24  Bruno Haible  <bruno@clisp.org>
40789
40790         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
40791         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
40792         * m4/progtest.m4:
40793         Update from GNU gettext 0.14.2.
40794         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
40795
40796 2005-02-24  Bruno Haible  <bruno@clisp.org>
40797
40798         * lib/localcharset.c: Update from GNU gettext 0.14.2.
40799         * lib/config.charset: Update from GNU gettext 0.14.2.
40800
40801 2005-02-24  Bruno Haible  <bruno@clisp.org>
40802
40803         * lib/gettext.h: Update from GNU gettext 0.14.2.
40804
40805 2005-02-23  Simon Josefsson  <jas@extundo.com>
40806
40807         * m4/iconvme.m4: New file.
40808
40809 2005-02-23  Jim Meyering  <jim@meyering.net>
40810
40811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
40812         change.
40813         Thanks to Bruno Haible for catching it.
40814
40815 2005-02-22  Simon Josefsson  <jas@extundo.com>
40816
40817         * modules/iconvme: New file.
40818
40819         * MODULES.html.sh: Add iconvme.
40820
40821 2005-02-22  Simon Josefsson  <jas@extundo.com>
40822
40823         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
40824
40825 2005-02-22  Simon Josefsson  <jas@extundo.com>
40826
40827         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
40828
40829 2005-02-22  Jim Meyering  <jim@meyering.net>
40830
40831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
40832         s/ifndef/ifdef/.
40833
40834 2005-02-20  Neil Conway  <neilc@samurai.com>
40835
40836         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
40837         returned by OSX/Darwin if the specified buffer is not large
40838         enough for the hostname.
40839
40840 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40841
40842         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
40843         pass it to _help, otherwise the latter coredumps trying to
40844         dereference state.root_argp.
40845
40846 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40847
40848         * modules/chdir-long (Depends-on): Add memrchr.
40849         * modules/memrchr (Files): Add lib/memrchr.h.
40850         (Include): "memrchr.h".
40851
40852 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40853
40854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
40855
40856 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         * lib/memrchr.h: New file.
40859         * lib/chdir-long.c: Include it.
40860         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
40861         Don't bother including stddef.h.
40862
40863 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
40864
40865         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
40866         inclusion.
40867         Include <sys/types.h>, for dev_t.
40868         (ME_DUMMY, ME_REMOTE): Move from here....
40869         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
40870         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
40871         Dmitry V. Levin.
40872         Include mountlist.h first, to test the interface.
40873
40874 2005-01-29  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/progname.c (program_name): Initialize.
40877         Needed when linking statically on MacOS X.
40878
40879 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40880
40881         Sync from coreutils.
40882         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
40883         (Depends-on): Add c-strtod.
40884         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
40885
40886 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40887
40888         Sync from coreutils.
40889         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
40890
40891         Remove files that are specific to coreutils.
40892         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
40893
40894 2005-01-28  Bruno Haible  <bruno@clisp.org>
40895
40896         * modules/javacomp: New file.
40897         * MODULES.html.sh (Java): Add javacomp.
40898
40899 2005-01-28  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/javacomp.m4: New file, from GNU gettext.
40902
40903 2005-01-28  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/javacomp.sh.in: New file, from GNU gettext.
40906         * lib/javacomp.h: New file, from GNU gettext.
40907         * lib/javacomp.c: New file, from GNU gettext.
40908
40909 2005-01-26  Simon Josefsson  <jas@extundo.com>
40910
40911         * lib/gai_strerror.c: Use GPL in header.
40912
40913 2005-01-26  Bruno Haible  <bruno@clisp.org>
40914
40915         * modules/javaexec: New file.
40916         * MODULES.html.sh (Java): Add javaexec.
40917
40918 2005-01-26  Bruno Haible  <bruno@clisp.org>
40919
40920         * m4/javaexec.m4: New file, from GNU gettext.
40921
40922 2005-01-26  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/javaexec.sh.in: New file, from GNU gettext.
40925         * lib/javaexec.h: New file, from GNU gettext.
40926         * lib/javaexec.c: New file, from GNU gettext.
40927
40928 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40929
40930         * modules/lchown (Depends-on): Remove lchown.h
40931
40932 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40933
40934         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
40935         must be defined if the header file was not found, in order
40936         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
40937
40938 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40939
40940         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
40941         initializers for struct pentry_state.
40942         (__argp_error): Check return value of __asprintf
40943         (__argp_failure): Translate error message
40944
40945         * lib/argp-parse.c: Removed braces around the expansion of N_()
40946
40947 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40948
40949         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
40950         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
40951         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
40952         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
40953         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
40954         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
40955         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
40956         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
40957         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
40958         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
40959         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
40960         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
40961         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
40962         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
40963         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
40964         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
40965         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
40966         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
40967         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
40968         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
40969         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
40970         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
40971         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
40972         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
40973         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
40974         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
40975         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
40976         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
40977         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
40978         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
40979         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
40980         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
40981         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
40982         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
40983         xstrtol.m4, xstrtoumax.m4, yesno.m4:
40984         Use an all-permissive copyright notice, recommended by RMS.
40985
40986 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
40987
40988         * modules/chdir-long (Depends-on): Remove mempcpy.
40989
40990 2005-01-21  Jim Meyering  <jim@meyering.net>
40991
40992         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
40993         same value as for Solaris 9.
40994
40995         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
40996         component length.  This included changing the parameter to be
40997         of type `char *' rather than `char const *'.
40998         * lib/chdir-long.h (chdir_long): Update prototype.
40999
41000         * lib/openat.c (fdopendir, fstatat): New functions.
41001         * lib/openat.h: Include headers required for use of DIR and struct
41002         stat.
41003         [AT_SYMLINK_NOFOLLOW]: Define.
41004         (fdopendir, fstatat): Add prototypes.
41005
41006 2005-01-21  Bruno Haible  <bruno@clisp.org>
41007
41008         * modules/classpath: New file.
41009         * MODULES.html.sh (Java): Add classpath.
41010
41011 2005-01-21  Bruno Haible  <bruno@clisp.org>
41012
41013         * lib/classpath.h: New file, from GNU gettext.
41014         * lib/classpath.c: New file, from GNU gettext.
41015
41016 2005-01-20  Simon Josefsson  <jas@extundo.com>
41017
41018         * modules/version-etc-fsf: New file.
41019
41020 2005-01-20  Simon Josefsson  <jas@extundo.com>
41021
41022         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
41023         * lib/version-etc.c: Remove version_etc_copyright.
41024         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
41025         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
41026
41027 2005-01-20  Simon Josefsson  <jas@extundo.com>
41028
41029         * lib/base64.h (isbase64): Add.
41030
41031         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
41032         using a unsigned prototype, don't inline.
41033         (base64_decode): Use it.
41034
41035 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41036
41037         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
41038         it.
41039
41040 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41041
41042         * lib/save-cwd.c (save_cwd): Remove code to support the case
41043         where fchdir is missing or flaky.
41044
41045 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41046
41047         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
41048
41049 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41050
41051         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
41052         AC_LIBSOURCES now does this.
41053         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
41054         with new ullong_max module.
41055
41056 2005-01-19  Bruno Haible  <bruno@clisp.org>
41057
41058         * modules/sh-quote: New file.
41059         * MODULES.html.sh (Executing programs): Add sh-quote.
41060
41061 2005-01-19  Bruno Haible  <bruno@clisp.org>
41062
41063         * lib/sh-quote.h: New file, from GNU gettext.
41064         * lib/sh-quote.c: New file, from GNU gettext.
41065
41066 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41067
41068         Merge from coreutils.
41069         * m4/ullong_max.m4: New file.
41070         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
41071         (gl_MACROS): Assume localeconv exists.
41072
41073 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41074
41075         Merge changes from coreutils, as described below in several
41076         changelogs dated today.
41077
41078         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
41079         (O_DIRECTORY): Remove; not needed here, since "." must be
41080         a directory.  All uses removed.
41081         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
41082         universal on Suns, and we also need to test for IRIX.
41083         Revamp code to use 'if' rather than '#if'.
41084         Avoid unnecessary comparison of cwd->desc to 0.
41085
41086         * lib/utimens.c (futimens): Robustify the previous patch, by checking
41087         for known valid error numbers rather than observed invalid ones.
41088
41089 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41090
41091         * modules/ullong_max: New file.
41092
41093         * modules/chdir-long, modules/openat: New files.
41094         * modules/save-cwd (Depends-on): Depend on chdir-long.
41095         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
41096
41097 2005-01-18  Jim Meyering  <jim@meyering.net>
41098
41099         Merge from coreutils.
41100         * m4/chdir-long.m4, m4/openat.m4: New files.
41101         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
41102         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
41103         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
41104         is sane and DOES follow symlinks.  Besides, testing 20 different
41105         systems found no broken chown implementations.
41106         Prompted by a change in rsync's copy of this macro.
41107         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
41108
41109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
41110
41111         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
41112         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
41113         NULL-means-set-to-current-time semantics.
41114         Remove temporary file immediately, rather than waiting
41115         for configure's at-exit trap code to do it.
41116
41117 2005-01-18  Jim Meyering  <jim@meyering.net>
41118
41119         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41120
41121         * lib/utimens.c (futimens): Account for the fact that futimes
41122         can also fail with errno == ENOSYS or errno == ENOENT.
41123         Patch from Dmitry V. Levin.
41124
41125         Change the name of the robust chdir function from chdir to chdir_long.
41126         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
41127         (restore_cwd): Use chdir_long, not chdir.
41128         * lib/chdir-long.c: Renamed from chdir.c.
41129         * lib/chdir-long.h: Renamed from chdir.h.
41130         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
41131         Hurd.
41132
41133 2005-01-18  Bruno Haible  <bruno@clisp.org>
41134
41135         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
41136         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
41137         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
41138         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
41139         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
41140         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
41141         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
41142         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
41143         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
41144         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
41145         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
41146         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
41147         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
41148         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
41149         Use an all-permissive copyright notice, recommended by RMS.
41150
41151 2005-01-18  Bob Proulx  <bob@proulx.com>
41152
41153         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
41154         simplify offsetof() macro construct to avoid compile failure with
41155         native HP-UX 11.0 ANSI C compiler.
41156
41157 2005-01-17  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
41160         redundant because stpncpy.m4 takes care of it.
41161
41162 2005-01-17  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
41165
41166 2005-01-17  Bruno Haible  <bruno@clisp.org>
41167
41168         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
41169         used.
41170
41171 2005-01-17  Bruno Haible  <bruno@clisp.org>
41172
41173         * lib/fwriteerror.h (fwriteerror): Change specification to include
41174         fclose.
41175         * lib/fwriteerror.c: Include <stdbool.h>.
41176         (fwriteerror): At the end, close the file stream. Record whether
41177         stdout was already closed.
41178
41179 2005-01-17  Bruno Haible  <bruno@clisp.org>
41180
41181         * lib/execute.c (environ): Declare if needed.
41182         * lib/pipe.c (environ): Likewise.
41183         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
41184
41185 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41186
41187         * modules/argp: Depend on vsnprintf
41188
41189 2005-01-10  Jim Meyering  <jim@meyering.net>
41190
41191         * modules/closeout (Depends-on): Add atexit.
41192
41193 2005-01-06  Bruno Haible  <bruno@clisp.org>
41194
41195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
41196
41197 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41198
41199         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
41200         definitions to be after all include files, to avoid collisions.
41201         Problem reported by Bob Proulx.
41202
41203 2005-01-04  Jim Meyering  <jim@meyering.net>
41204
41205         Changes imported from coreutils.
41206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
41207         as the mkstemp template, use a temporary directory and an
41208         8.3-friendly template to avoid trouble on systems like DJGPP.
41209         Reported by Juan M. Guerrero via Stepan Kasal.
41210         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
41211         close. Remove the temporary directory right away, rather than waiting
41212         for configure's at-exit trap code to do it.
41213         Suggestion from Stepan Kasal.
41214
41215 2005-01-01  Simon Josefsson  <jas@extundo.com>
41216
41217         * gnulib-tool: Print #include directives when --import'ing.
41218
41219 2004-12-28  Simon Josefsson  <jas@extundo.com>
41220
41221         * tests/test-base64.c: Include required header files.  Remove
41222         unused variables.
41223
41224 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41225
41226         * modules/error (Depends-on): Remove gettext.
41227
41228 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41229
41230         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
41231         not needed.  This removes a dependency on the gettext module.
41232         [defined _LIBC]: Do not include <libintl.h>; not needed.
41233
41234 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41235
41236         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
41237         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
41238
41239 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41240
41241         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
41242         HAVE_DECL_STRTOLD.
41243
41244 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41245
41246         * modules/getdate (Depends-on): Remove alloca-opt.
41247
41248 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41249
41250         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
41251
41252 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41253
41254         * lib/argp-parse.c: Include <stddef.h>.
41255         (alignof, alignto): New macros.
41256         (parser_init): Don't assume that void * is aligned sufficiently
41257         for struct option.
41258
41259         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
41260         need to extend the stack.
41261         (YYINITDEPTH): New macro, so that the initial stack isn't overly
41262         large.
41263
41264 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41265
41266         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
41267
41268 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
41271         (2004-10-24) change.  Apparently this was a false alarm.
41272
41273         * modules/getdate: Depend on alloca-opt, not alloca.
41274
41275 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41276
41277         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
41278         Remove now-obsolete comment about AIX.
41279         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
41280         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
41281         (YYMAXDEPTH): New macro.
41282
41283 2004-12-18  Simon Josefsson  <jas@extundo.com>
41284
41285         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
41286
41287 2004-12-18  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
41290
41291 2004-12-18  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/fatal-signal.c (fatal_signals): Make non-const.
41294         (init_fatal_signals): New function.
41295         (uninstall_handlers, install_handlers): Ignore signals that were set to
41296         SIG_IGN.
41297         (at_fatal_signal): Call init_fatal_signals.
41298         (init_fatal_signal_set): Likewise. Ignore signals that were set to
41299         SIG_IGN.
41300         Reported by Paul Eggert.
41301
41302 2004-12-18  Bruno Haible  <bruno@clisp.org>
41303
41304         * doc/alloca.texi: New file.
41305         * doc/alloca-opt.texi: New file.
41306
41307 2004-12-17  Jim Meyering  <jim@meyering.net>
41308
41309         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
41310         Otherwise, install-sh could exit with improper exit status when
41311         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
41312
41313 2004-12-16  Simon Josefsson  <jas@extundo.com>
41314
41315         * tests/test-base64.c: Add license.
41316
41317 2004-12-15  Stepan Kasal  <address@hidden>
41318
41319         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
41320
41321 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41322
41323         * modules/getcwd (Files): Add m4/d-ino.m4.
41324         Suggested by Mark D. Baushke.
41325
41326 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         * lib/getdate.y (textint): New member "negative".
41329         (time_zone_hhmm): New function.
41330         Expect 14 shift-reduce conflicts, not 13.
41331         (o_colon_minutes): New rule.
41332         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
41333         (yylex): Set the "negative" member of signed numbers.
41334
41335 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         * doc/getdate.texi (Time of day items, Time zone items):
41338         Describe new formats +00:00, UTC+00:00.
41339
41340 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41341
41342         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
41343         spurious "-l"s.  Problem reported by Stepan Kasal.
41344
41345 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
41346
41347         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
41348         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
41349
41350 2004-12-04  Simon Josefsson  <jas@extundo.com>
41351
41352         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
41353         Vandoorselaere <yoann@prelude-ids.org>.
41354
41355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41356
41357         Changes imported from coreutils.
41358         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
41359         exist.
41360         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
41361
41362 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41363
41364         Changes imported from coreutils.
41365         * lib/hard-locale.c: Assume <locale.h> exists.
41366         Include "strdup.h".
41367         (GLIBC_VERSION): New macro.
41368         (hard_locale): Assume setlocale exists.
41369         Rewrite to avoid #ifdef.
41370         Use strdup rather than malloc + strcpy.
41371         * lib/human.c: Assume <locale.h> exists.
41372         (human_readable): Assume localeconv exists.
41373
41374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41375
41376         * modules/hard-locale (Depends-on): Add strdup.
41377
41378 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
41379
41380         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
41381         convert T2, not T.  (Imported from libc.)
41382
41383 2004-11-30  Simon Josefsson  <jas@extundo.com>
41384
41385         * modules/restrict (License): Change to LGPL.
41386
41387 2004-11-30  Simon Josefsson  <jas@extundo.com>
41388
41389         * m4/restrict.m4: Add copyright and copying conditions.
41390
41391 2004-11-30  Simon Josefsson  <jas@extundo.com>
41392
41393         * m4/base64.m4: New file.
41394
41395 2004-11-30  Simon Josefsson  <jas@extundo.com>
41396
41397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
41398         base64.
41399
41400         * tests/test-base64.c: New file.
41401
41402         * modules/base64: New file.
41403
41404 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41405
41406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
41407         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
41408
41409         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
41410
41411 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
41414         (__getcwd.c): Don't restore errno; glibc doesn't.
41415         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
41416         first, falling back to our code only if its results look suspicious.
41417         Ensure that the resulting buffer is only as large as necessary.
41418
41419         * lib/readutmp.c: Include readutmp.h first.
41420         Include <errno.h>, since readutmp.h no longer does that.
41421         * lib/readutmp.h: Don't include <errno.h>,
41422         <sys/param.h>, <time.h>; not needed to establish interface.
41423         (errno): Remove decl.
41424         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
41425         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
41426         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
41427
41428 2004-11-28  Simon Josefsson  <jas@extundo.com>
41429
41430         * lib/base64.h, base64.c: New file.
41431
41432 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
41435
41436 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41437
41438         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
41439         (Depends-on): Remove pathmax, same.  Add mempcpy.
41440         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
41441         (Makefile.am): Append getcwd.h to lib_SOURCES.
41442         (Include): Add getcwd.h.
41443         (Maintainer): Change from Jim Meyering to "all, glibc",
41444         since getdate now uses intended-for-glibc code.
41445         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
41446         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
41447
41448 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41449
41450         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
41451         HP's ANSI C compiler.
41452         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
41453         Declaring int functions causes warnings on some modern systems and
41454         shouldn't be needed to compile on ancient ones.
41455         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
41456         defined.
41457
41458         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
41459         with the following changes.
41460         (__set_errno): Parenthesize properly.
41461         Include <stdbool.h>.
41462         (MIN, MAX, MATCHING_INO): New macros.
41463         (__getcwd): Define with prototype, not K&R form.
41464         Use heuristics to allocate default buffer on stack if possible.
41465         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
41466         behavior, and to avoid the PATH_MAX limit when computing
41467         ../../../../...
41468         Use MATCHING_INO to compare inode number to file.
41469         Check for arithmetic overflow in size calculations.
41470         Fix bug in reallocation of dot array that caused getcwd to fail
41471         on directories nested deeper than 75.
41472         Be more careful about saving errno on error.
41473         Do not use realloc; use only free+malloc, as this is a bit
41474         more flexible and avoids a needless copy operation.
41475         Do not inspect st_dev and st_ino for symbolic links; POSIX
41476         doesn't specify the latter.
41477         Check for closedir errors.
41478         Avoid needless casts.
41479         Use "#ifdef weak_alias" around weak_alias, to be like other
41480         glibc code.
41481         The following changes to getcwd.c have effect only when used in
41482         gnulib; they have no effect inside glibc proper.
41483         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
41484         as alloca isn't used.
41485         (alloca, __alloca): Likewise.
41486         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
41487         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
41488         unconditionally, as gnulib assumes C89 or better.
41489         Do not include <sys/param.h>.
41490         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
41491         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
41492         better.
41493         (NULL) [!defined NULL]: Remove; we assume C89 or better.
41494         Include <dirent.h> in a way that is compatible with modern Autoconf.
41495         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
41496         New macros, if not already defined.
41497         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
41498         Use "_LIBC", not "defined _LIBC", for consistency.
41499         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
41500         a mempcpy module.
41501         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
41502         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
41503         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
41504         credit only to Jim Meyering and adjust the copyright dates.
41505         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
41506         <stdlib.h>, <unistd.h>, "pathmax.h".
41507         Instead, include "xgetcwd.h" (first) and "getcwd.h".
41508         (INITIAL_BUFFER_SIZE): Remove.
41509         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
41510
41511 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41512
41513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
41514         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
41515         Use the _ONCE methods, for efficiency.
41516         Check for fcntl.h.  In test program, include <errno.h>
41517         and <fcntl.h> if available.  Remove old K&R cruft from
41518         test program.  Check for common errors in GNU/Linux,
41519         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
41520         don't do AC_LIBOBJ, as that's getcwd.m4's job.
41521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
41522         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
41523         name accordingly.
41524         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
41525         accommodate new getcwd.c.
41526         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
41527         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
41528         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
41529         that's all we need now.
41530
41531 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41532
41533         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
41534         argp-parse.c depends on getopt internals, that means we should
41535         always use our getopt, to be on the safe side.
41536         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
41537         order not to spoil the result of an eventual previous invocation
41538         of gl_GETOPT_SUBSTITUTE.
41539
41540 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41541
41542         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
41543         redefinition warnings. To avoid them, include the defines
41544         in `#if !defined __need_getopt ... #endif'. The only place
41545         where __getopt_argv_const is used is in definitions
41546         of getopt_long and getopt_long_only below, which are as well
41547         protected by `#ifndef __need_getopt'.
41548         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
41549         __need_getopt after including <stdio.h> and <unistd.h> These
41550         headers might have defined it.
41551
41552 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41553
41554         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
41555
41556 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41557
41558         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
41559         (futimens): New function, which uses futimes if available.
41560         (futimens, utimens): Support timespec==NULL, with same semantics
41561         as utime and utimens.
41562         * lib/utimens.h (futimens): New decl.
41563
41564 2004-11-23  Jim Meyering  <jim@meyering.net>
41565
41566         * lib/getopt_.h: Remove trailing blanks.
41567
41568 2004-11-23  Jim Meyering  <jim@meyering.net>
41569
41570         * lib/__fpending.c: Add comment.
41571
41572 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
41573
41574         * modules/canonicalize (Depends-on): Add xreadlink.
41575         Problem reported by James Youngman.
41576
41577 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41578
41579         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
41580         New macros.
41581         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
41582         optopt): Use them instead of invoking ## directly; otherwise, the
41583         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
41584
41585 2004-11-19  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/strtok_r.c: Move comments from here...
41588         * lib/strtok_r.h: ... to here.
41589
41590 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41591
41592         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
41593         implementations that mishandle size_t overflow.
41594
41595 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41596
41597         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
41598         might fail.  Problem reported by Yoann Vandoorselaere.
41599         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
41600         implementations that mishandle size_t overflow.
41601
41602 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41603
41604         * modules/canon-host (Depends-on): Add strdup.
41605
41606 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41607
41608         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
41609
41610 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * lib/canon-host.c: Include "strdup.h".
41613         (canon_host): Use getaddrinfo if available, so that IPv6 works.
41614         Use strdup instead of malloc/strcpy to duplicate strings.
41615
41616         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
41617         (human_space_before_unit): New constant.
41618         * lib/human.c (human_readable): Support it.
41619
41620         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
41621         (xgetcwd): Set errno correctly when failing.
41622         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
41623         the failure is actually due to a PATH_MAX problem.
41624
41625         Further getopt changes to make it more likely that glibc will
41626         buy the changes back.
41627         * lib/getopt.c (POSIXLY_CORRECT): New constant.
41628         (getopt): Use it, so to preserve glibc semantic
41629         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
41630         when compiling for libc.
41631         * lib/getopt_.h (__getopt_argv_const): Bring it back.
41632         (getopt_long, getopt_long_only): Use it.
41633
41634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41635         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
41636         (getopt): Argv is now char * const *, as per standard.
41637         (_getopt_internal_r, _getopt_internal): Argv is now char **,
41638         not char *__getopt_argv_const *.
41639         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41640         _getopt_long_only_r): Likewise.
41641         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
41642         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41643         _getopt_long_r, _getopt_long_only_r): Likewise.
41644         * lib/getopt_.h (__getopt_argv_const): Remove.
41645         (getopt): Argv is now char * const *, as per standard.
41646
41647         * lib/getdate.y (tORDINAL): New token.
41648         (day, relunit): Allow it for relative times.
41649         (relative_time_table): Use tORDINAL for ordinals.
41650
41651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41652
41653         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
41654         Document that "second" isn't allowed as an ordinal number.
41655
41656 2004-11-16  Jim Meyering  <jim@meyering.net>
41657
41658         * modules/closeout (Depends-on): Add fpending.
41659
41660 2004-11-15  Jim Meyering  <jim@meyering.net>
41661
41662         * lib/closeout.c: Include "__fpending.h" once again.
41663         Include <stdbool.h>.
41664         (close_stdout): Don't fail just because stdout was closed initially,
41665         since some programs don't write to stdout in the normal course of
41666         operation (other than --version and --help), and we don't want this
41667         function to make e.g. `touch file >&-' fail.
41668         But do fail if it was closed and someone has tried to write to it.
41669         E.g., `printf foo >&-' must fail.
41670
41671 2004-11-13  Jim Meyering  <jim@meyering.net>
41672
41673         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
41674
41675 2004-11-12  Simon Josefsson  <jas@extundo.com>
41676
41677         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
41678         small doc fix is still pending.
41679
41680 2004-11-11  Simon Josefsson  <jas@extundo.com>
41681
41682         * modules/strtok_r: New file.
41683
41684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41685         strtok_r.
41686
41687 2004-11-11  Simon Josefsson  <jas@extundo.com>
41688
41689         * m4/strtok_r.m4: New file.
41690
41691         * m4/getopt.m4: Replace opterr.
41692
41693 2004-11-11  Simon Josefsson  <jas@extundo.com>
41694
41695         * lib/strtok_r.h, strtok_r.c: New file.
41696
41697 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41698
41699         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
41700         of replacing opterr, getopt, etc.  This should handle the
41701         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
41702
41703 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41704
41705         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
41706         we can stop lying to compilers about the constness of argv when we
41707         are compiled outside glibc.
41708         (getopt, getopt_long, getopt_long_only): Use it.
41709         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41710         _getopt_internal, getopt): Likewise.
41711         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41712         _getopt_long_only_r): Likewise.
41713         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41714         _getopt_long_r, _getopt_long_only_r): Likewise.
41715
41716         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
41717         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
41718         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
41719         the other external symbols.
41720         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
41721         declaration, since the above renaming now works around collisions.
41722
41723 2004-11-11  Jim Meyering  <jim@meyering.net>
41724
41725         * lib/linebreak.c: Remove trailing blanks.
41726         * lib/alloca_.h: Likewise.
41727         * lib/acosl.c: Likewise.
41728         * lib/euidaccess.c: Likewise.
41729         * lib/allocsa.h: Likewise.
41730
41731 2004-11-10  Simon Josefsson  <jas@extundo.com>
41732
41733         * m4/getaddrinfo.m4: New file.
41734
41735 2004-11-10  Simon Josefsson  <jas@extundo.com>
41736
41737         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
41738
41739 2004-11-10  Simon Josefsson  <jas@extundo.com>
41740
41741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41742         getaddrinfo.
41743
41744         * modules/getaddrinfo: New file.
41745
41746 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41747
41748         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
41749
41750 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41751
41752         * lib/mktime.c (SHR): New macro, which is a portable
41753         substitute for >> that should work even on Crays.
41754         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
41755         Problem reported by Mark D. Baushke in
41756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
41757         * lib/getdate.y (SHR): Likewise.
41758         (tm_diff): Use it.
41759         * lib/strftime.c (SHR): Likewise.
41760         (tm_diff): Use it.
41761         * lib/quotearg.c (struct quoting_options): Use unsigned int for
41762         quote_these_too, so that right shifts are well defined.  All uses
41763         changed.
41764
41765 2004-11-10  Jim Meyering  <jim@meyering.net>
41766
41767         Ensure that no close failure goes unreported.
41768         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
41769         return early when it seems there's nothing to flush.
41770         Don't include __fpending.h.
41771
41772 2004-11-10  Jim Meyering  <jim@meyering.net>
41773
41774         * modules/closeout (Depends-on): Remove fpending.
41775
41776 2004-11-10  Jim Meyering  <jim@meyering.net>
41777
41778         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
41779
41780 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41781
41782         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
41783         gl_FUNC_STRFTIME.
41784         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
41785         and AC_REQUIRE when possible, to avoid duplicate checks.
41786         Check for <wchar.h>.
41787
41788 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41789
41790         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
41791
41792 2004-11-09  Bruno Haible  <bruno@clisp.org>
41793
41794         * m4/sockpfaf.m4: New file.
41795
41796 2004-11-05  Bruno Haible  <bruno@clisp.org>
41797
41798         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
41799         Reported by Mark D. Baushke <mdb@cvshome.org>.
41800
41801 2004-11-04  Bruno Haible  <bruno@clisp.org>
41802
41803         2004-09-11  Bruno Haible  <bruno@clisp.org>
41804                 * allocsa.valgrind: New file.
41805         2004-02-06  Bruno Haible  <bruno@clisp.org>
41806                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
41807                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
41808                 Reported by Christopher Seip <chris.seip@hp.com>.
41809
41810 2004-11-04  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/allocsa (Files): Add lib/allocsa.valgrind.
41813         (Makefile.am): Distribute it.
41814
41815 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41816
41817         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
41818         with errno == ERANGE if the buffer is too small.
41819         Problem reported by Mark D. Baushke.
41820
41821 2004-11-03  Albert Chin  <china@thewrittenword.com>
41822             Paul Eggert  <eggert@cs.ucla.edu>
41823
41824         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
41825         equivalent, substitute $ac_type for equivalent type rather than
41826         blindly using uint32_t *always* which won't work if uint32_t is not
41827         available.  Define _UINT32_T to work around typedef of uint32_t if
41828         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
41829         2.5.1.
41830
41831 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41832
41833         * m4/jm-macros.m4: Sync from coreutils.
41834         (gl_MACROS): Check for mbrlen, for pathchk.
41835         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
41836
41837 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * lib/xreadlink.c (MAXSIZE): New macro.
41840         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
41841         size does not exceed MAXSIZE.  Avoid cast.
41842         As suggested by Mark D. Baushke in
41843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
41844         if readlink fails with buffer size just under MAXSIZE, try again
41845         with MAXSIZE.
41846
41847 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
41850
41851 2004-11-02  Derek R. Price  <derek@ximbiot.com>
41852         and  Paul Eggert  <eggert@cs.ucla.edu>
41853
41854         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
41855         (get_date): Overparenthesize to avoid GCC warning.
41856
41857 2004-11-02  Bruno Haible  <bruno@clisp.org>
41858
41859         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
41860         returns void.
41861
41862 2004-11-02  Bruno Haible  <bruno@clisp.org>
41863
41864         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
41865         function returns void.
41866
41867 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41868
41869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
41870         fflush_unlocked, flockfile, funlockfile, funlockfile,
41871         fputs_unlocked, putc_unlocked.
41872
41873 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41874
41875         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
41876         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
41877         already declared.
41878
41879 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41880
41881         * modules/getdate (Files): Add doc/getdate.texi.
41882         (Depends-on): Add setenv, xalloc.
41883
41884 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41885
41886         * lib/getdate.y: Add support for TZ="foo" within a date string.
41887         Fix some bugs near time_t boundaries.  Reject dates with
41888         out-of-range components, e.g., "Sept 31".
41889         Include <stdlib.h>, "setenv.h", "xalloc.h".
41890         (ISDIGIT_LOCALE): Remove; unused.
41891         Note that the TZ and time functions used here are not reentrant.
41892         (mktime_ok, get_tz): New functions.
41893         (TZBUFSIZE): New constant.
41894         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
41895         This requires that we sometimes generate our own TZ="XXX..." setting.
41896
41897 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41898
41899         * doc/getdate.texi: New file, from coreutils with modifications for
41900         the new TZ parsing.
41901
41902 2004-10-27  Derek R. Price  <derek@ximbiot.com>
41903
41904         * lib/mktime.c (not_equal_tm): Remove redundant check.
41905
41906 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41907
41908         * modules/regex (lib_SOURCES): Add regex.c.
41909         Reported by James Youngman in
41910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
41911
41912 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         * lib/getdate.y: Use Bison 1.875 features, and some minor
41915         code cleanups.  This change does not affect semantics.
41916         Don't include <stdlib.h>; no longer needed.
41917         Don't include unlocked-io.h; only the "#if TEST" code uses
41918         stdio, and performance isn't crucial there.
41919         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
41920         Bison 1.875 features as described below.
41921         All uses of "PC." replaced by "pc->".
41922         (YYSTYPE): Add a forward declaration.
41923         (yylex, yyerror): Use full prototypes in forward decls.
41924         Use "%pure-parser" rather than obsolescent "%pure_parser".
41925         Use %parse-param and %lex-param instead of obsolescent
41926         YYPARSE_PARAM and YYLEX_PARAM.
41927         (meridian_table, month_and_day_table, time_units_table,
41928         relative_time_table, time_zone_table, military_table,
41929         lookup_zone, lookup_word, get_date):
41930         Use NULL instead of 0 where appropriate.
41931         (to_hour): Avoid abort (), to avoid a dependency on
41932         stdlib.h.
41933         (yyerror, yylex): Now accepts parser_control * arg.
41934         (main) [TEST]: Use '\0' rather than 0 for char.
41935
41936 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41937
41938         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
41939
41940 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41941
41942         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
41943         It's now the caller's responsibility to handle the case where
41944         !HAVE_GETPAGESIZE && !defined getpagesize.
41945
41946         * lib/mktime.c (leapyear): Arg is long int, not int.
41947
41948 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
41949
41950         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
41951
41952 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41953
41954         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
41955         missing.  Problem reported by James Youngman.
41956
41957 2004-10-16  Simon Josefsson  <jas@extundo.com>
41958
41959         * gnulib-tool: Fix comments.  Fix parse problem.
41960         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
41961
41962 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
41963
41964         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
41965         implementation of getopt_long.  Problem reported by Alexander Taler in:
41966         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
41967
41968 2004-10-15  Bruno Haible  <bruno@clisp.org>
41969
41970         * gnulib-tool: Untabify. Initialize supplied_libname.
41971         (func_usage): More homogenous output.
41972         (func_modules_transitive_closure, func_modules_to_filelist,
41973         func_emit_lib_Makefile_am): New functions.
41974         (func_import): New function, extracted from big case statement. Use
41975         func_get_license, func_modules_transitive_closure,
41976         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
41977         opt_lgpl. Don't use test -a, as it's not portable.
41978         (func_create_testdir): Use func_modules_transitive_closure,
41979         func_modules_to_filelist, func_emit_lib_Makefile_am.
41980
41981 2004-10-15  Bruno Haible  <bruno@clisp.org>
41982
41983         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
41984
41985 2004-10-15  Bruno Haible  <bruno@clisp.org>
41986
41987         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
41988         the portions belonging to each module.
41989         Suggested by Derek Robert Price <derek@ximbiot.com>.
41990
41991 2004-10-12  Simon Josefsson  <jas@extundo.com>
41992
41993         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
41994         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
41995         to real functions.
41996
41997 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41998
41999         * modules/vsnprintf: New file.
42000
42001 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42002
42003         * m4/vsnprintf.m4: New file.
42004
42005 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42006
42007         * lib/vsnprintf.h: New file.
42008         * lib/vsnprintf.c: New file.
42009
42010 2004-10-11  Bruno Haible  <bruno@clisp.org>
42011
42012         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
42013         vsnprintf.
42014
42015 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42016
42017         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
42018
42019 2004-10-07  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
42022         fits into the provided buffer.
42023
42024 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42025
42026         * lib/diacrit.c, diacrit.h: Add GPL notice.
42027
42028         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
42029         notice.
42030         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
42031         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
42032         This avoids a potential constant-folding bug.
42033
42034 2004-10-05  Bruno Haible  <bruno@clisp.org>
42035
42036         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
42037         for the declaration of strsep.
42038
42039 2004-10-05  Bruno Haible  <bruno@clisp.org>
42040
42041         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
42042
42043 2004-10-04  Simon Josefsson  <jas@extundo.com>
42044
42045         * modules/memmem: New file.
42046         * tests/test-memmem.c: New file.
42047         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
42048
42049 2004-10-04  Simon Josefsson  <jas@extundo.com>
42050
42051         * m4/memmem.m4: New file.
42052
42053 2004-10-04  Simon Josefsson  <jas@extundo.com>
42054
42055         * lib/memmem.h: New file.
42056         * lib/memmem.c: New file, taken from glibc.
42057
42058 2004-10-04  Simon Josefsson  <jas@extundo.com>
42059
42060         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
42061         '#ifdef USE_UNLOCKED_IO'.
42062
42063 2004-10-04  Simon Josefsson  <jas@extundo.com>
42064
42065         * config/srclist.txt: Add memmem from glibc.
42066
42067 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42068
42069         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
42070
42071         * modules/argmatch, modules/argp, modules/closeout, modules/error,
42072         modules/exclude, modules/getdate, modules/getline,
42073         modules/getndelim2, modules/getpass, modules/getpass-gnu,
42074         modules/getusershell, modules/linebuffer, modules/md5,
42075         modules/mountlist, modules/posixtm, modules/readtokens,
42076         modules/readutmp, modules/regex, modules/sha1,
42077         modules/version-etc, modules/yesno:
42078         Remove dependency on unlocked-io.
42079
42080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42081
42082         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
42083
42084         * m4/unlocked-io.m4: Add copyright notice.
42085         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
42086
42087 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
42090         * lib/xmalloc.c (xmemdup): Likewise.
42091         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
42092         XFREE): Remove these long-obsolescent macros.
42093         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
42094         * lib/xstrdup.c: Remove.
42095
42096         * lib/regex.c (re_comp): Cast gettext return value to char *,
42097         Problem reported by Martin Neitzel via Mark D. Baushke.
42098
42099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42100
42101         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
42102         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
42103         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
42104         regex.c, sha1.c, version-etc.c, yesno.c:
42105         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
42106         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
42107         the includer's responsibility.
42108
42109         Sync from coreutils.
42110
42111         * lib/modechange.c (mode_compile): Don't decrement a pointer that
42112         points to the start of a string, as the C Standard says the
42113         resulting behavior is undefined.
42114
42115         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
42116         simple -> simple_backups, numbered_existing ->
42117         numbered_existing_backups, numbered -> numbered_backups
42118         to avoid shadowing problems.  All uses changed.
42119         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
42120         * lib/backupfile.c (check_extension, numbered_backup):
42121         Rename locals to avoid shadowing 'basename'.
42122         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
42123         once.
42124
42125         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
42126         * lib/.cvsignore: Add getopt.h.
42127
42128 2004-10-04  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/README: New file.
42131         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
42132         not a module.
42133
42134 2004-10-02  Jim Meyering  <jim@meyering.net>
42135
42136         * lib/dirfd.h, getpagesize.h: Add copyright notice.
42137
42138 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42139
42140         * modules/strsep: New file.
42141
42142 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42143
42144         * m4/strsep.m4: New file.
42145
42146 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42147
42148         * lib/strsep.h: New file.
42149         * lib/strsep.c: New file.
42150
42151 2004-10-01  Simon Josefsson  <jas@extundo.com>
42152
42153         * lib/snprintf.c (snprintf): Handle size==0.
42154
42155 2004-10-01  Simon Josefsson  <jas@extundo.com>
42156             Bruno Haible  <bruno@clisp.org>
42157
42158         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
42159         (snprintf): Declare 'args'.
42160
42161 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
42162
42163         * lib/snprintf.c: Remove comments as to why each header is needed.
42164
42165 2004-10-01  Bruno Haible  <bruno@clisp.org>
42166
42167         * MODULES.html.sh: Add strsep.
42168
42169 2004-09-30  Simon Josefsson  <jas@extundo.com>
42170
42171         * modules/snprintf: New file.
42172
42173 2004-09-30  Simon Josefsson  <jas@extundo.com>
42174
42175         * m4/snprintf.m4: New file.
42176
42177 2004-09-30  Simon Josefsson  <jas@extundo.com>
42178
42179         * lib/snprintf.h, lib/snprintf.c: New files.
42180
42181 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42182
42183         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
42184         (hol_entry_help): Never translate an empty string.
42185         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
42186         * lib/argp.h (OPTION_NO_TRANS): New option.
42187
42188 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42189
42190         * modules/argp (Maintainer): Replace Simon Josefsson
42191         by Sergey Poznyakoff.
42192
42193 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42194
42195         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
42196         changes merged back into glibc.
42197
42198 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
42201
42202 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
42203
42204         * lib/xvasprintf.c: Include xalloc.h.
42205         (xvasprintf): Use xalloc_die, not xmalloc_die.
42206
42207 2004-09-29  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/alloca-opt: New file, derived from modules/alloca.
42210         * modules/allocsa: Depend on alloca-opt instead of alloca.
42211         * modules/setenv: Likewise.
42212         * modules/vasnprintf: Likewise.
42213         * MODULES.html.sh: Add alloca-opt.
42214
42215 2004-09-28  Simon Josefsson  <jas@extundo.com>
42216
42217         * gnulib-tool: New parameter --lgpl, to asseert that modules are
42218         LGPL, and to replace license template from GPL to LGPL.
42219
42220 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42221
42222         * modules/dummy: Change license to LGPL.
42223
42224 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42225
42226         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
42227
42228 2004-09-24  Simon Josefsson  <jas@extundo.com>
42229
42230         * modules/minmax (License): Change from GPL to LGPL.
42231
42232 2004-09-23  Simon Josefsson  <jas@extundo.com>
42233
42234         * gnulib-tool (--import): Typo.
42235
42236 2004-09-23  Simon Josefsson  <jas@extundo.com>
42237
42238         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
42239
42240 2004-09-22  Bruno Haible  <bruno@clisp.org>
42241
42242         * modules/*: Add 'License' field.
42243         * gnulib-tool: Accept --extract-license option.
42244         (func_get_license): New function.
42245
42246 2004-09-21  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42249         Reported by Simon Josefsson.
42250
42251 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42252
42253         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
42254         gl_AC_TYPE_LONG_LONG.
42255
42256 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
42259
42260 2004-09-18  Simon Josefsson  <jas@extundo.com>
42261         and  Paul Eggert  <eggert@cs.ucla.edu>
42262
42263         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
42264         calls with autoreconf.  Define GL_LIB.
42265
42266 2004-09-14  Karl Berry  <karl@gnu.org>
42267
42268         * config/srclist.txt: unsync setenv.c, sigh.
42269
42270 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42271
42272         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
42273         Problem reported by Bruno Haible in:
42274         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
42275
42276 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * config/srclist.txt: Comment out argp-pvh.c.
42279
42280 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
42281
42282         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
42283         in case some system header has #define'd it.  Problem reported by
42284         Soeren D. Schulze in
42285         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
42286
42287 2004-09-09  Karl Berry  <karl@gnu.org>
42288
42289         * regex.[ch]: delete from the root.  These were supposed to be
42290                 synced with emacs cvs, but this has not happened for about
42291                 a year, and anyway nothing else uses emacs regex.[ch].
42292                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
42293                 lib/regex[.ch] is untouched.
42294
42295 2004-09-09  Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
42298
42299 2004-09-09  Bruno Haible  <bruno@clisp.org>
42300
42301         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
42302         modifications.
42303         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
42304
42305 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42306
42307         * modules/xvasprintf: New file.
42308         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
42309
42310 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42311
42312         * lib/xvasprintf.h: New file.
42313         * lib/xvasprintf.c: New file.
42314         * lib/xasprintf.c: New file.
42315
42316 2004-09-08  Bruno Haible  <bruno@clisp.org>
42317
42318         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
42319
42320 2004-09-08  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
42323         length is > INT_MAX.
42324         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
42325         more.
42326
42327 2004-09-08  Bruno Haible  <bruno@clisp.org>
42328
42329         * lib/stdint_.h: New file, taken from GNU clisp.
42330
42331 2004-09-08  Bruno Haible  <bruno@clisp.org>
42332             Oskar Liljeblad  <oskar@osk.mine.nu>
42333
42334         * modules/stdint: New file.
42335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
42336
42337 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42338
42339         Import from coreutils.
42340         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
42341         strings on unbounded length.  alloca's performance benefits aren't
42342         that important here.
42343         (V_STRDUP): Remove.
42344         (parse_with_separator): New function, with most of the internals
42345         of the old parse_user_spec.  Allow user to omit both user and group,
42346         for compatibility with FreeBSD.
42347         Clone only the user name, not the entire spec.
42348         Do not set *uid, *gid unless entirely successful.
42349         Avoid memory leak in some failing cases.
42350         Fix regression for USER.GROUP reported by Dmitry V. Levin in
42351         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
42352         (parse_user_spec): Rewrite to use parse_with_separator.
42353
42354 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42355
42356         * modules/userspec: Don't depend on alloca.
42357
42358 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42359
42360         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
42361
42362 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42363
42364         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
42365         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
42366         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
42367
42368 2004-08-16  Simon Josefsson  <jas@extundo.com>
42369
42370         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
42371         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
42372         Add --dry-run for --import.
42373         Let user provided command line parameters override configure.ac
42374         settings.
42375
42376 2004-08-12  Simon Josefsson  <jas@extundo.com>
42377
42378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
42379         as discussed with Paul Eggert in threads rooted at
42380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
42381         and
42382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
42383         Before, the test was empty, and relied on ELIDE_CODE in source
42384         code.)
42385         (gl_PREREQ_GETOPT): New macro.
42386         (gl_GETOPT): Use them.
42387
42388 2004-08-12  Simon Josefsson  <jas@extundo.com>
42389
42390         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
42391         * lib/getopt_.h: Renamed from getopt.h.
42392
42393 2004-08-12  Simon Josefsson  <jas@extundo.com>
42394
42395         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
42396         Change default library name from libfoo to libgnu.
42397         Now, if you have a configure.ac that says:
42398                 gl_SOURCE_BASE(gl)
42399                 gl_M4_BASE(gl/m4)
42400                 gl_MODULES(error getopt etcetera)
42401                 gl_INIT
42402         you can import all you need by running:
42403                 ../gnulib/gnulib-tool --import
42404
42405         * modules/getopt (Files): Rename getopt.h to getopt_.h.
42406         (Makefile.am): Rewrite, use logic from argz.
42407         (Include): Use <getopt.h> instead of "getopt.h".
42408
42409 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42410
42411         * modules/argp (Files): Add m4/unlocked-io.m4.
42412         (Depends-on): Add extensions.
42413
42414 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42415
42416         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
42417         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
42418         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
42419         Check for program_invocation_name, program_invocation_short_name,
42420         flockfile, funlockfile, features.h, _getopt_long_only_r.
42421
42422 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42423
42424         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
42425         its complicated substitute.
42426         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
42427         and program_invocation_name.
42428         (__argp_basename) [!_LIBC]: Remove; the only use was
42429         replaced by its body.
42430         (__argp_short_program_name): Change condition from
42431         !defined __argp_short_program_name to
42432         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
42433         to match argp-namefrob.h.
42434         (__argp_failure): Don't assume strerror_r returns char *.
42435         * lib/argp-parse.c (N_): Define unconditionally.
42436         (argp_default_options): Fill out initializers with 0 to avoid
42437         gcc warnings.
42438
42439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42440
42441         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
42442         getopt1.c.
42443
42444 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42445
42446         Merge from coreutils.
42447
42448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
42449
42450         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
42451         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
42452
42453 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         Merge from coreutils.
42456
42457         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
42458         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
42459         for Reliant Unix 5.43.
42460
42461         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
42462         (union fooround): Use uintmax_t, not long int.
42463         The rest is a merge from libc:
42464         [defined _LIBC]: Include <shlib-compat.h>.
42465         (_obstack) [defined _LIBC]: Remove after 2.3.4.
42466
42467         * lib/settime.c (settime): Recode to avoid warning with
42468         Sun Forte C 6U2.
42469
42470         * lib/strverscmp.c: Convert to UTF-8.
42471
42472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42473
42474         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
42475         m4/uintmax_t.m4.
42476
42477 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * modules/xalloc-die: New file.
42480         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
42481
42482         * modules/md5 (Files): Add m4/uint32_t.m4.
42483         * modules/sha1: Renamed from modules/sha.
42484         (Files):
42485         Rename lib/sha.h to lib/sha1.h.
42486         Rename lib/sha.c to lib/sha1.c.
42487         Rename m4/sha.m4 to m4/sha1.m4.
42488         (lib_SOURCES): Likewise.
42489         (configure.ac): Rename gl_SHA to gl_SHA1.
42490         (Include): sha.h -> sha1.h.
42491
42492 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42493
42494         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
42495         * m4/sha1.m4: Renamed from sha.m4.
42496         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
42497
42498 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42499
42500         * lib/obstack.h (obstack_empty_p):
42501         Don't assume that chunk->contents is suitably aligned.
42502         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
42503         Likewise. Problem reported by Benno in
42504         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
42505
42506         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
42507         readable.  This could be improved further but it'd take some work.
42508
42509 2004-08-08  Simon Josefsson  <jas@extundo.com>
42510
42511         * modules/xgethostname (Depends-on): Remove exit and error (not
42512         used).
42513
42514         * modules/getpass-gnu: Add getpass.h.
42515         (Depends-on): Add stdbool.
42516         * modules/getpass: Add getpass.h.
42517
42518 2004-08-08  Simon Josefsson  <jas@extundo.com>
42519
42520         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
42521         Check getpass declaration.
42522
42523 2004-08-08  Simon Josefsson  <jas@extundo.com>
42524
42525         * lib/xgethostname.c: Don't include error.h (not used).
42526
42527         * lib/getpass.h: Add.
42528         * lib/getpass.c: Include getpass.h first.
42529
42530 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
42531
42532         * lib/xalloc-die.c: New file.
42533         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
42534         All uses removed.
42535         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
42536         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
42537         xalloc-die.c.
42538         (_, N_, xalloc_die): Move to xalloc-die.c.
42539         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
42540         so that we needn't mess with xalloc_msg_memory_exhausted.
42541
42542         * lib/sha1.h: Renamed from sha.h.
42543         (SHA1_H): Renamed from _SHA_H.
42544         (sha1_ctx): Renamed from sha_ctx.
42545         (sha1_init_ctx): Renamed from sha_init_ctx.
42546         (sha1_process_block): Renamed from sha_process_block.
42547         (sha1_process_bytes): Renamed from sha_process_bytes.
42548         (sha1_finish_ctx): Renamed from sha_finish_ctx.
42549         (sha1_read_ctx): Renamed from sha_read_ctx.
42550         (sha1_stream): Renamed from sha_stream.
42551         (sha1_buffer): Renamed from sha_buffer.
42552         * lib/sha1.c: Likewise; renamed from sha.c.
42553         Do not include <sys/types.h>.
42554         Include <stddef.h> rather than <stdlib.h>.
42555
42556 2004-08-08  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
42559         FILESYSTEM_PREFIX_LEN.
42560         * lib/progreloc.c: Likewise.
42561         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
42562
42563 2004-08-06  Simon Josefsson  <jas@extundo.com>
42564
42565         * modules/progname (Depends-on): Don't depend on stdbool.
42566
42567 2004-08-06  Simon Josefsson  <jas@extundo.com>
42568
42569         * modules/getsubopt: New file.
42570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42571         getsubopt.
42572
42573 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42574
42575         More merge from coreutils.
42576
42577         * m4/utimens.m4, m4/utimecmp.m4: New files.
42578         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
42579         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
42580         prereq.m4, sha.m4: Import changes from coreutils.
42581
42582 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42583
42584         More merge from coreutils.
42585         * modules/raise, modules/readtokens0, modules/utimens:
42586         * modules/utimecmp, module/xnanosleep: New files.
42587         * modules/strftime: Add lib/strftime.h.
42588         Change include from <time.h> to "strftime.h".
42589         * modules/yesno: Add lib/yesno.h.
42590         * modules/backupfile: Remove lib/addext.c.
42591         * modules/euidaccess: Add stat-macros.h.
42592         * modules/canonicalize, modules/euidaccess,
42593         modules/filemode, modules/lchown, modules/makepath,
42594         modules/rmdir, modules/stat: Likewise.
42595
42596 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42597
42598         Merge from tar.
42599         * lib/argp-help.c (make_hol, hol_append): Don't assume that
42600         SIZE_MAX is a valid preprocessor constant.
42601         (__argp_basename): Change from "#ifndef _LIBC"
42602         to "#ifndef __argp_short_program_name", so that
42603         we don't compile these functions for tar.
42604
42605         More merges from coreutils.
42606         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
42607         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
42608         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
42609         * lib/addext.c: Remove; no longer needed.
42610         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
42611         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
42612         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
42613         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
42614         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
42615         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
42616         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
42617         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
42618         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
42619         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42620         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
42621         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
42622         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
42623         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
42624         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
42625         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
42626         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
42627         Import changes from coreutils.
42628
42629 2004-08-05  Simon Josefsson  <jas@extundo.com>
42630
42631         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
42632
42633 2004-08-05  Simon Josefsson  <jas@extundo.com>
42634
42635         * m4/getsubopt.m4: New file.
42636
42637 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42638
42639         Merge from coreutils.
42640
42641         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
42642         * m4/getcwd-path-max.m4: New files.
42643
42644         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
42645         FILESYSTEM_PREFIX_LEN ->
42646         FILE_SYSTEM_PREFIX_LEN.
42647         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
42648         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
42649         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
42650         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
42651
42652         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
42653         prerequisite modules now handle the DOS stuff.
42654         Don't check for unistd.h.
42655
42656 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         Merge from coreutils.
42659
42660         * lib/.gdb-history: Remove; this doesn't belong here.
42661
42662         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
42663         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
42664         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
42665         * lib/getcwd.c: New files.
42666
42667         * lib/dirname.h: Include <stdbool.h>.
42668         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
42669         for consistency with POSIX terminology.  All uses changed.
42670         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
42671         (strip_trailing_slashes): Use bool for booleans.
42672         * lib/stripslash.c (strip_trailing_slashes): Likewise.
42673
42674         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
42675         sometimes returns a positive errno value even when it succeeds.
42676         (print_errno_message) [!LIBC]: Fall back on strerror if
42677         __strerror_r fails.
42678
42679         * lib/path-concat.c (mempcpy): Don't define if a system header defines
42680         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
42681         (longest_relative_suffix): New function.
42682         (path_concat): Use it.  Assume first argument is not NULL.
42683         Port to DOS.  Omit redundant separators.
42684         Report an error instead of returning NULL.
42685         Use mempcpy instead of memcpy.
42686         (xpath_concat): Remove: not declared or used.
42687
42688         * lib/same.h: Include <stdbool.h>
42689         (same_name): Return bool, not int.
42690         * lib/same.c (same_name): Likewise.
42691         (errno): Don't declare; we assume C89 or better now.
42692
42693         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
42694         if not already defined.
42695
42696         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
42697         * lib/dup-safer.c (errno): Likewise.
42698
42699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42700
42701         Merge from coreutils.
42702         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
42703         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
42704         * modules/path-concat: Don't depend on strdup.
42705
42706 2004-08-03  Simon Josefsson  <jas@extundo.com>
42707
42708         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
42709         * lib/progname.h: Don't include stdbool.h.
42710
42711 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42712
42713         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
42714         * MODULES.html.sh (func_all_modules): Remove fatal.
42715
42716 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42717
42718         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
42719
42720 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42721
42722         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
42723         working.
42724
42725 2004-08-02  Simon Josefsson  <jas@extundo.com>
42726
42727         * lib/getsubopt.h: New file, with comments from Bruno Haible.
42728         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
42729         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
42730
42731 2004-08-01  Simon Josefsson  <jas@extundo.com>
42732
42733         * lib/xgetdomainname.c: Include stdlib.h, for free().
42734
42735 2004-07-19  Bruno Haible  <bruno@clisp.org>
42736
42737         * MODULES.html.sh (func_all_modules): Add dummy.
42738
42739 2004-07-16  Simon Josefsson  <jas@extundo.com>
42740
42741         * modules/dummy: New file.
42742
42743 2004-07-16  Simon Josefsson  <jas@extundo.com>
42744
42745         * lib/dummy.c: New file.
42746
42747 2004-07-16  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/backupfile.h: Add extern "C" for C++.
42750         * lib/closeout.h: Likewise.
42751         * lib/copy-file.h: Likewise.
42752         * lib/findprog.h: Likewise.
42753         * lib/full-write.h: Likewise.
42754         * lib/pathname.h: Likewise.
42755         * lib/progname.h: Likewise.
42756         * lib/stpcpy.h: Likewise.
42757         * lib/stpncpy.h: Likewise.
42758         * lib/strcase.h: Likewise.
42759         * lib/strstr.h: Likewise.
42760         * lib/xalloc.h: Likewise.
42761
42762         * lib/mbswidth.h: Add extern "C" for C++.
42763         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
42764
42765 2004-07-13  Robert Millan  <robertmh@gnu.org>
42766
42767         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
42768
42769 2004-07-09  Simon Josefsson  <jas@extundo.com>
42770
42771         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
42772         failed without this.)
42773
42774 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42775
42776         * modules/chown (Files): Add lib/fchown-stub.c, since
42777         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
42778
42779 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42780
42781         * lib/fchown-stub.c: New file.
42782
42783 2004-06-24  Jim Meyering  <jim@meyering.net>
42784
42785         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
42786
42787 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42788
42789         * modules/argz: Omit "#include".
42790
42791         * MODULES.html.sh (func_all_modules): Add calloc, to match
42792         2004-06-01 addition of calloc module.
42793
42794 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42795
42796         * m4/argz.m4: New file, which is autoupdated from libtool.
42797
42798 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42799
42800         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
42801         libtool.
42802
42803 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * config/srclist-update: Don't insist on "USA." before the
42806         close-comment, as libtool omits the period and puts the */ on a
42807         separate line.
42808         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
42809         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
42810
42811 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
42812
42813         * modules/argz: New file.
42814         * MODULES.html.sh (func_all_modules): Add argz.
42815
42816 2004-06-12  Jim Meyering  <jim@meyering.net>
42817         and  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         * modules/hash (Files): Add lib/xalloc.h.
42820         * modules/pipe (Depends-on): Add wait-process.
42821         * modules/stat (Depends-on): Add xalloc.
42822         * modules/userspec (Files): Add lib/userspec.h.
42823         * modules/xstrto
42824
42825         Upgrade from gettext-0.13.
42826         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
42827         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
42828         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
42829
42830 2004-06-10  Jim Meyering  <jim@meyering.net>
42831
42832         * lib/calloc.c: New file.
42833
42834 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
42835
42836         * lib/getdate.y (yylex): Allow space between sign and number.
42837         Problem reported by Dan Jacobson.
42838
42839 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
42840
42841         Merge from coreutils CVS.
42842
42843         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
42844         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
42845         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
42846         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
42847         xstrtol.m4: Fix copyright date and/or serial number.
42848
42849         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
42850         See if we need an fchown replacement.
42851         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
42852         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
42853         and use the replacement function if we detect either defect.
42854
42855         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
42856         gl_UTIMECMP.
42857
42858 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
42859         and  Jim Meyering  <jim@meyering.net>
42860
42861         Merge from coreutils CVS.
42862
42863         * lib/stat-macros.h: New file, with contents from file-type.h
42864         and coreutils' system.h.
42865         * lib/file-type.c: Include "stat-macros.h".
42866         * lib/file-type.h (file_type): Move all macro definitions to new file,
42867         stat-macros.h.
42868
42869         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
42870         Wrap old code with this conditional.
42871         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
42872         function that does not dereference symlinks.
42873         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
42874
42875         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
42876         dependency problems.
42877         (xreadlink): Accept new arg SIZE, for efficiency.
42878         All decls and uses changed.
42879         * lib/xreadlink.h: Include <stddef.h>, for size_t.
42880
42881         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
42882         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
42883
42884         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
42885         sysexits.h.
42886
42887 2004-06-01  Jim Meyering  <jim@meyering.net>
42888
42889         * m4/calloc.m4: New file.
42890
42891 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
42892
42893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
42894         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
42895         Also, fix a typo in a diagnostic.
42896
42897 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
42898
42899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
42900         or AC_FUNC_REALLOC.
42901
42902 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
42903
42904         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
42905         macros to be defined.
42906         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
42907         the allocator returns NULL because the requested size is zero.
42908
42909 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
42910
42911         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
42912         var.  Add comment explaining why libc still defines it.  This
42913         merges the following patch from glibc:
42914         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
42915
42916 2004-05-20  Andreas Schwab  <schwab@suse.de>
42917
42918         * m4/free.m4: Replace free if it not known to work, not the other
42919         way round.
42920
42921 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
42922
42923         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
42924         present in glibc since revision 1.1 of this file.
42925         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
42926         obstack_alignment_mask, obstack_alloc, obstack_base,
42927         obstack_blank, obstack_blank_fast, obstack_chunk_size,
42928         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
42929         obstack_grow0, obstack_init, obstack_int_grow,
42930         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
42931         obstack_next_free, obstack_object_size, obstack_ptr_grow,
42932         obstack_ptr_grow_fast, obstack_room): Remove declarations of
42933         nonexistent functions.
42934
42935 2004-05-18  Karl Berry  <karl@gnu.org>
42936
42937         * config/srclist.txt: break link for vasnprintf.c.
42938
42939 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42940
42941         Port obstack to the AS/400, where pointers are 16 bytes wide and
42942         you cannot cast an integer to a valid pointer.  This patch is
42943         currently waiting to be integrated into glibc; see
42944         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
42945
42946         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
42947         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
42948         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
42949         (struct obstack): temp member is now a union of a pointer and
42950         an integer, instead of an integer.  All integer uses changed.
42951         This does not affect the physical layout of struct obstack,
42952         except on hosts (like the AS/400) where the size or alignment of
42953         void * is greater than that of ptrdiff_t.
42954         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
42955         __STDC__)]: Store temporary in pointer member of union, not
42956         integer member.
42957         * lib/obstack.c: Include <stddef.h>, for offsetof.
42958         (struct fooalign): Remove; it doesn't need a name.
42959         (union fooround): Change double to long double, and add void *.
42960         (DEFAULT_ALIGNMENT): Use offsetof to compute.
42961         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
42962         not a macro.  Hence the values are always int; so remove all
42963         casts-to-int in uses.
42964
42965 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42966
42967         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
42968         we can get this patch merged into glibc.
42969
42970 2004-05-17  Derek R. Price  <derek@ximbiot.com>
42971             Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         * m4/argp: Depend on alloca.
42974
42975 2004-05-17  Derek R. Price  <derek@ximbiot.com>
42976             Paul Eggert  <eggert@cs.ucla.edu>
42977
42978         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
42979         freecoding.
42980
42981 2004-05-17  Bruno Haible  <bruno@clisp.org>
42982
42983         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
42984         precision that consists of a '.' followed by an empty digit string.
42985         Patch by Tor Lillqvist <tml@iki.fi>.
42986
42987 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42988
42989         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
42990         for backward compatibility with older code.  We need our own
42991         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
42992         it under some other name, and our alloca.h will define it.
42993
42994 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42995             Derek Price  <derek@ximbiot.com>
42996
42997         * lib/alloca.c: Include <alloca.h>, to get our interface.
42998         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
42999         include <alloca.h> first.  Use C89 prototype for alloca; this
43000         requires including <stddef.h> for size_t.  Use extern "C" if C++.
43001         Use #elif for simplicity, since we can assume C89 now.
43002         Don't try to source the system alloca.h since it will not be found
43003         and to prevent recursively including its replacement.
43004         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
43005         * lib/regex.c: Likewise.
43006
43007 2004-05-16  Derek Price  <derek@ximbiot.com>
43008             Paul Eggert  <eggert@cs.ucla.edu>
43009
43010         getline cleanup.  This changes the getndelim2 API: both order of
43011         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
43012         no delimiter).
43013
43014         * lib/getline.c: Don't include stddef.h or stdio.h, since our
43015         interface does that.
43016         (getline): Always use getdelim, so that we don't have two
43017         copies of this code.
43018         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
43019         if available.
43020         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
43021         (GETNDELIM2_MAXIMUM): New macro.
43022         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
43023         instead of the old practice of delim2==0.  All callers changed.
43024         Return -1 on overflow, instead of returning junk.
43025         Do not set *linesize unless allocation succeeds.
43026         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
43027         that we include sys/types.h.
43028         * lib/getnline.h: Likewise.
43029         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
43030         (getndelim2): Reorder arguments.
43031         * lib/getnline.c (getnline, getndelim):
43032         Don't discard the NMAX argument.
43033         (getnline): Invoke getndelim, to avoid code duplication.
43034         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
43035         of (size_t) -1 by callers of the getnline family.
43036
43037 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43038
43039         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
43040         Check for gettimeofday.
43041         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
43042         Check for settimeofday, stime.
43043
43044 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43045
43046         * lib/nanosleep.c (suspended): Change its type from int to
43047         sig_atomic_t volatile.
43048         (first_call): Make it private to rpl_nanosleep, and have it
43049         be zero initially as that's a bit faster.
43050         (my_usleep): Round up fractional times instead of truncating them,
43051         as this is the usual meaning for 'sleep'.
43052
43053         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
43054         doesn't work.
43055         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
43056         (ENOSYS): Define if not defined.
43057         (settime): Fall back on stime if it exists and settimeofday fails.
43058         But don't bother with fallbacks if a method fails with errno == EPERM.
43059
43060 2004-05-11  Jim Meyering  <jim@meyering.net>
43061
43062         Prior to this change, the save_cwd caller required read access to the
43063         current directory on most systems (ones with the fchdir function).
43064
43065         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
43066         fails, try write-only, and finally, resort to using xgetcwd.
43067
43068 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43069
43070         * lib/obstack.c, obstack.h: Import changes from libc.
43071
43072 2004-04-28  Bruno Haible  <bruno@clisp.org>
43073
43074         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
43075         also implicitly appends .exe to executables.
43076         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
43077         accepts Windows pathnames.
43078         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43079         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43080         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43081         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43082         Reported by Derek Robert Price <derek@ximbiot.com>.
43083
43084 2004-04-21  Karl Berry  <karl@gnu.org>
43085
43086         * config/srclist.txt (localcharset.c): break sync.
43087
43088 2004-04-20  Paul Eggert  <eggert@twinsun.com>
43089
43090         * m4/host-os.m4: Add a copyright notice.
43091
43092 2004-04-20  Jim Meyering  <jim@meyering.net>
43093
43094         Change UTILS_ to gl_ in AC_DEFINE'd names.
43095         Change utils_- and jm_-prefixed variables, too.
43096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
43097         UTILS_FUNC_MKDIR_TRAILING_SLASH.
43098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
43099
43100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
43101         Don't emit trailing blanks.
43102         Also rename jm_-prefixed variables to have gl_ prefix.
43103
43104         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
43105         Also rename jm_-prefixed variables to have gl_ prefix.
43106
43107         * m4/jm-macros.m4: Reflect the renamings.
43108         * m4/prereq.m4: Likewise.
43109
43110 2004-04-20  Jim Meyering  <jim@meyering.net>
43111
43112         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
43113         memory.
43114
43115 2004-04-20  Jim Meyering  <jim@meyering.net>
43116             Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
43119         memory when realloc fails.
43120
43121 2004-04-19  Jim Meyering  <jim@meyering.net>
43122
43123         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
43124         now that readutmp.c may call `free (0)'.
43125
43126 2004-04-19  Bruno Haible  <bruno@clisp.org>
43127
43128         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
43129         * m4/inttypes_h.m4: Likewise.
43130         * m4/stdint_h.m4: Likewise.
43131         * m4/intmax_t.m4: Likewise.
43132         * m4/uintmax_t.m4: Likewise.
43133
43134 2004-04-18  Jim Meyering  <jim@meyering.net>
43135
43136         * m4/prereq.m4: Don't forbid jm_ prefix.
43137
43138         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
43139         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
43140         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
43141         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
43142         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
43143         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
43144         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
43145         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
43146         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
43147         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
43148         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
43149         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
43150         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
43151         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
43152         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
43153         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
43154         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
43155         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
43156         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
43157
43158 2004-04-18  Jim Meyering  <jim@meyering.net>
43159
43160         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
43161         failure, don't leak memory and do call END_UTMP_ENT.
43162
43163 2004-04-16  Jim Meyering  <jim@meyering.net>
43164
43165         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
43166         coreutils' stat program.
43167         (gl_PREREQ): Don't require jm_PREREQ_STAT.
43168
43169 2004-04-11  Paul Eggert  <eggert@twinsun.com>
43170
43171         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
43172         C89.
43173         (CHAR_BIT): Remove, since we assume C89.
43174         Include <stdint.h> if available, as per current Autoconf CVS advice.
43175
43176 2004-03-31  Jim Meyering  <jim@meyering.net>
43177
43178         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
43179         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
43180         * m4/xalloc.m4: Likewise.
43181
43182 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43183
43184         Merge from coreutils.
43185
43186         * m4/inttostr.m4: New file.
43187         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
43188         Require AM_STDBOOL_H and gl_TIMESPEC instead.
43189         Require gl_CLOCK_TIME.
43190         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
43191
43192 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43193
43194         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
43195         not bool, to be more consistent with Unix conventions.
43196         Suggested by Bruno Haible.
43197
43198         Merge from coreutils.
43199
43200         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
43201         * lib/umaxtostr.c: New files.
43202
43203         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
43204         the usual <time.h> dance.
43205         (get_date): Change signature to support fractional time stamps.
43206         All callers changed.
43207         * lib/getdate.y: Include "getdate.h" first, as we can now
43208         assume C89 and don't need to worry about 'const'.
43209         Similarly, include "unlocked-io.h" near start, not in middle.
43210         Include <limits.h>.
43211         (textint.value): Use long int rather than int.
43212         (textint.digits): Use size_t rather than int.
43213         (BILLION, LOG10_BILLION): New constants.
43214         (parser_control): New member rel_ns.  Members day_ordinal,
43215         time_zone, month, day, hour, minutes, rel_year, rel_month,
43216         rel_day, rel_hour, rel_minutes, rel_seconds
43217         are now long int, not int.  Member seconds is now struct timespec,
43218         not int.  New member timespec_seen.  Members dates_seen, days_seen,
43219         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
43220         not int.
43221         (%union.intval): Now long int, not int.
43222         New member timespec.
43223         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
43224         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
43225         (spec): Now is a timespec or an item list.
43226         (timespec, items): New nonterminals.
43227         (time, rel, relunit, number, get_date):
43228         Add support for fractional seconds.
43229         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
43230         (gmtime, localtime, mktime): Remove decls; not needed with C89.
43231         (to_hour): First arg is now long int, not int.
43232         (to_year): Returns long int, not int.
43233         Don't treat year -70 like 70.
43234         (tm_diff): Returns long int, not int.
43235         (lookup_word): Use bool instead of int when appropriate.
43236         (yylex): Use size_t for count, not int.
43237         Detect overflow when parsing large integer constants.
43238         Add support for fractions.
43239         (get_date): Make pointers 'const' if possible.
43240         Use more-portable code to detect integer overflow.
43241         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
43242         Don't use ctime; it's not reliable if the year has >4 digits.
43243
43244         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
43245         This is for compatibility with BSD.
43246
43247         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
43248         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
43249         From coreutils' system.h.
43250
43251         * lib/userspec.c: Don't include "posixver.h".
43252         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
43253         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
43254         compatible extension.  Simplify code by removing a boolean int
43255         that was always nonzero if a string was nonnull.
43256
43257 2004-03-30  Jim Meyering  <jim@meyering.net>
43258
43259         Merge from coreutils.
43260
43261         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
43262         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
43263         on some systems one must include <grp.h> before it.
43264         Reported by Christian Krackowizer.
43265
43266 2004-03-30  Jim Meyering  <jim@meyering.net>
43267
43268         Merge from coreutils.
43269
43270         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
43271
43272         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
43273         an empty input stream.
43274
43275         * lib/readtokens.c: Include <stdbool.h>.
43276         (readtoken): Use `size_t' rather than int/long.
43277         All callers adjusted.
43278         Use `bool' rather than `int' where appropriate.
43279         Use memset rather than an explicit loop.
43280         Use x2nrealloc rather than xrealloc.
43281         Allow the use of `\0' as a delimiter.
43282         (readtokens): Likewise.
43283         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
43284
43285 2004-03-30  Jim Meyering  <jim@meyering.net>
43286
43287         * m4/realloc.m4: Remove file, since now it does no more than
43288         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
43289         the `configure.ac' section of module/realloc.
43290         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
43291
43292 2004-03-30  Bruno Haible  <bruno@clisp.org>
43293
43294         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
43295         nonnull.
43296
43297 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43298
43299         Merge changes to getloadavg.c from coreutils and Emacs.
43300
43301         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
43302         Define to an expression, not to the empty string.
43303         Include cloexec.h and xalloc.h.
43304         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
43305         Use set_cloexec_flag rather than rolling our own.
43306         * lib/cloexec.c, lib/cloexec.h: New files.
43307
43308 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43309
43310         * m4/cloexec.m4: New file.
43311
43312 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43313
43314         * lib/getopt.h: Sync with libc CVS.
43315
43316 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43317             Bruno Haible  <bruno@clisp.org>
43318
43319         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
43320         mbswidth.
43321
43322 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43323             Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/mbswidth.h: Include <wchar.h> only if
43326         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
43327         <wchar.h>.
43328         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
43329
43330 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43331
43332         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
43333         Sync with libc CVS.
43334         * lib/getopt_int.h: New file, also synced from libc.
43335
43336 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43337
43338         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
43339         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
43340         Bring back getopt.c, getopt.h, getopt1.c.
43341
43342 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43343
43344         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
43345         All uses changed.  Check for sa_sigaction member; this fixes
43346         a bug first reported by Jason Andrade in
43347         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43348
43349 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43350
43351         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
43352         '#if' expressions.  Unlike the code it replaces, it does not
43353         depend on (defined _SC_PAGESIZE).  However, it does depend on
43354         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
43355         first reported by Jason Andrade in
43356         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43357
43358 2004-02-25  Simon Josefsson  <jas@extundo.com>
43359
43360         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
43361
43362 2004-02-25  Simon Josefsson  <jas@extundo.com>
43363
43364         * lib/strdup.h: New file.
43365         * lib/strdup.c: Include it.
43366         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
43367         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
43368
43369 2004-02-23  Karl Berry  <karl@gnu.org>
43370
43371         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
43372         (from fencepost.gnu.org:/gd/gnuorg).
43373
43374 2004-02-23  Karl Berry  <karl@gnu.org>
43375
43376         * config/srclistvars.sh (GNUORG) [karl]: redefine.
43377         * config/srclist.txt: add maintain/standards documents.
43378
43379 2004-02-18  Bruno Haible  <bruno@clisp.org>
43380
43381         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
43382         Reported by Derek Robert Price <derek@ximbiot.com>.
43383
43384 2004-02-16  Karl Berry  <karl@gnu.org>
43385
43386         * config/mkinstalldirs, install-sh: update from automake.
43387
43388 2004-02-06  Karl Berry  <karl@gnu.org>
43389
43390         * m4/po.m4: update from gettext 0.14.1.
43391
43392 2004-02-06  Karl Berry  <karl@gnu.org>
43393
43394         * lib/config.charset: update from gettext 0.14.1.
43395
43396 2004-02-05  Paul Eggert  <eggert@twinsun.com>
43397
43398         Add comments and code, prompted by suggestions from Bruno Haible
43399         for sh-quote.
43400         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
43401         describing the enum quoting_style values.
43402         * lib/quotearg.c (quotearg_alloc): New function.
43403         (quotearg_buffer_restyled): Treat lone { and } as special.
43404         Treat = as special.  Work around bug with older shells
43405         that "see" a '\' that is really the 2nd byte of a multibyte char.
43406         Quote empty string with shell_quoting_style.
43407
43408 2004-02-03  Bruno Haible  <bruno@clisp.org>
43409
43410         * m4/pipe.m4: New file, from GNU gettext.
43411
43412 2004-02-03  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/pipe.h: New file, from GNU gettext.
43415         * lib/pipe.c: New file, from GNU gettext.
43416
43417 2004-01-27  Bruno Haible  <bruno@clisp.org>
43418
43419         * m4/execute.m4: New file, from GNU gettext.
43420
43421 2004-01-27  Bruno Haible  <bruno@clisp.org>
43422
43423         * lib/execute.h: New file, from GNU gettext.
43424         * lib/execute.c: New file, from GNU gettext.
43425         * lib/w32spawn.h: New file, from GNU gettext.
43426
43427 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43428
43429         Merge from diffutils.
43430
43431         * lib/file-type.c (file_type): Add typed memory objects.
43432         * lib/file-type.h (S_TYPEISTMO): New macro.
43433
43434         * lib/c-stack.h (c_stack_action): Remove argv argument.
43435         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
43436         (die): Don't calculate message unless segv_action returns.
43437         (get_stack_location, min_address_from_argv, max_address_from_argv,
43438         volatile stack_base, volatile_stack_size): Remove.
43439         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
43440         that every segmentation violation is a stack overflow.  (Ouch!)
43441         See Debian bug 136249 (still outstanding) for more info about why
43442         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
43443
43444 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43445
43446         Exit-status fix from coreutils.
43447
43448         Use exit_failure consistently in place of EXIT_FAILURE,
43449         so that program exit statuses are consistent on failure.
43450
43451         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
43452         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
43453         * lib/argmatch.h: Comment fix to match the above.
43454         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
43455         Now a macro referring to exit_failure, instead of a separate
43456         variable.  Include "exitfail.h" to get it.
43457         * lib/xstrtol.h: Include "exitfail.h".
43458         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
43459
43460         * lib/long-options.c (parse_long_options): Use prototype
43461         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
43462         for clarity.
43463
43464 2004-01-21  Jim Meyering  <jim@meyering.net>
43465
43466         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
43467         so as not to conflict with a different-sized __mktime_internal
43468         function in GNU libc.
43469         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
43470         Problem building statically-linked `ls' reported by Michael Brunnbauer.
43471
43472 2004-01-20  Karl Berry  <karl@gnu.org>
43473
43474         * config/config.guess: update from config.
43475
43476         * config/srclistvars.sh: GNUWWWLICENSES for karl.
43477
43478 2004-01-20  Bruno Haible  <bruno@clisp.org>
43479
43480         Safer stack allocation.
43481         * lib/setenv.c: Include allocsa.h.
43482         (alloca): Remove fallback definition.
43483         (freea): Remove macro.
43484         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
43485         instead of freea.
43486
43487 2004-01-20  Bruno Haible  <bruno@clisp.org>
43488
43489         * m4/eealloc.m4: New file, from GNU gettext.
43490
43491 2004-01-20  Bruno Haible  <bruno@clisp.org>
43492
43493         * m4/allocsa.m4: New file, from GNU gettext.
43494
43495 2004-01-20  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/xallocsa.h: New file, from GNU gettext.
43498         * lib/xallocsa.c: New file, from GNU gettext.
43499
43500 2004-01-20  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
43503
43504 2004-01-20  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
43507         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
43508         specially.
43509
43510 2004-01-20  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
43513         patch.
43514
43515 2004-01-20  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
43518
43519 2004-01-20  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/eealloc.h: New file.
43522
43523 2004-01-20  Bruno Haible  <bruno@clisp.org>
43524
43525         * lib/binary-io.h: Avoid warnings on Cygwin.
43526
43527 2004-01-20  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/allocsa.h: New file, from GNU gettext.
43530         * lib/allocsa.c: New file, from GNU gettext.
43531
43532 2004-01-18  Karl Berry  <karl@gnu.org>
43533
43534         * doc/gpl.texi, doc/lgpl.texi: new files.
43535
43536 2004-01-18  Karl Berry  <karl@gnu.org>
43537
43538         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
43539         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
43540
43541 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43542
43543         Merge from coreutils.
43544
43545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
43546         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
43547         (gl_DEFAULT_POSIX2_VERSION): Move
43548         the documentation from 'configure' into 'config.hin',
43549         so that 'configure --help' isn't burdened by it and
43550         we don't have to worry about its formatting there.
43551         Reword the documentation so that it's more succinct
43552         and can be run together into a single paragraph.
43553         * m4/same.m4 (gl_SAME): Check for pathconf.
43554
43555 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43556
43557         Merge from coreutils.
43558
43559         * lib/posixver.c: Include posixver.h.
43560
43561         * lib/same.c: Include <stdbool.h>, <limits.h>.
43562         (_POSIX_NAME_MAX): Define if not defined.
43563         (MIN): New macro.
43564         (same_name): If file names are silently truncated, report
43565         that the file names are the same if they are the same after
43566         the silent truncation.
43567
43568         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
43569         conversion function.
43570         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
43571         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
43572         longer needed.
43573
43574 2004-01-15  Jim Meyering  <jim@meyering.net>
43575
43576         Merge from coreutils.
43577
43578         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
43579         if no library is required.
43580         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
43581         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
43582         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
43583         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
43584         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
43585         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
43586         value, $ac_cv_search_crypt, if it's "none required".
43587         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
43588         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
43589         not gl_FUNC_GETLOADAVG.
43590         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
43591         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
43592
43593 2004-01-15  Jim Meyering  <jim@meyering.net>
43594
43595         Merge from coreutils.
43596
43597         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
43598         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
43599         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
43600
43601         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
43602         optional configure-time default.
43603
43604         * lib/version-etc.c (version_etc_copyright): Update copyright date.
43605
43606         * lib/xreadlink.c (xreadlink): Correct outdated comment.
43607
43608 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
43609
43610         Merge from coreutils.
43611
43612         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
43613         value, $ac_cv_search_nanosleep, if it's "none required".
43614
43615 2004-01-14  Paul Eggert  <eggert@twinsun.com>
43616
43617         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
43618         with like-named macro in fnmatch.c.
43619         (EXT): Use an internal constant instead.
43620
43621         Merge fnmatch patches from glibc.
43622         * lib/fnmatch.c (mbsinit): Remove define.
43623         Add libc_hidden_ver (__fnmatch, fnmatch).
43624         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
43625         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
43626
43627 2004-01-14  Karl Berry  <karl@gnu.org>
43628
43629         * config/install-sh: update from automake.
43630
43631 2004-01-13  Karl Berry  <karl@gnu.org>
43632
43633         * config/install-sh: update from automake.
43634
43635 2004-01-09  Karl Berry  <karl@gnu.org>
43636
43637         * config/install-sh: update from automake.
43638
43639 2004-01-05  Karl Berry  <karl@gnu.org>
43640
43641         * config/config.{sub,guess}: update from config.
43642
43643 2003-12-31  Karl Berry  <karl@gnu.org>
43644
43645         * config/depcomp: update from automake.
43646
43647 2003-12-14  Karl Berry  <karl@gnu.org>
43648
43649         * lib/config.charset: update from gettext-runtime.
43650
43651 2003-12-03  Paul Eggert  <eggert@twinsun.com>
43652
43653         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
43654         Bug reported by Alfred M. Szmidt.
43655
43656 2003-12-03  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/gettext.m4: Upgrade from gettext-0.13.
43659         * m4/po.m4: Upgrade from gettext-0.13.
43660         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
43661         * m4/intmax.m4: New file, from gettext-0.13.
43662         * m4/printf-posix.m4: New file, from gettext-0.13.
43663
43664 2003-11-29  Karl Berry  <karl@gnu.org>
43665
43666         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
43667
43668 2003-11-25  Paul Eggert  <eggert@twinsun.com>
43669             Bruno Haible  <bruno@clisp.org>
43670
43671         * lib/printf-parse.h: Don't include sys/types.h.
43672         (ARG_NONE): New macro.
43673         (char_directive): Change type of *arg_index fields to size_t.
43674         * lib/printf-parse.c: Don't include sys/types.h.
43675         (SSIZE_MAX): Remove macro.
43676         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
43677         Remove unnecessary overflow check.
43678         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
43679         fields.
43680
43681 2003-11-25  Bruno Haible  <bruno@clisp.org>
43682
43683         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
43684
43685 2003-11-25  Bruno Haible  <bruno@clisp.org>
43686
43687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
43688         gt_TYPE_SSIZE_T.
43689
43690 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43691
43692         * modules/alloca: Remove dependency on xalloc.
43693
43694 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43695
43696         * lib/alloca.c: Remove dependency on xalloc module.
43697         (xalloc_die): Remove.
43698         (memory_full) [!defined emacs]: New macro.
43699         [!defined emacs]: Don't include xalloc.h.
43700         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
43701         address arithmetic overflows.  Change datatypes a bit to avoid
43702         unnecessary casts.
43703
43704 2003-11-22  Jim Meyering  <jim@meyering.net>
43705
43706         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
43707         s/size/size_t/.
43708
43709 2003-11-21  Karl Berry  <karl@gnu.org>
43710
43711         * config/config.{sub,guess}: update from config.
43712
43713 2003-11-18  Karl Berry  <karl@gnu.org>
43714
43715         * config/config.{sub,guess}: update from config.
43716
43717         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
43718
43719 2003-11-17  Paul Eggert  <eggert@twinsun.com>
43720
43721         * README: Mention that S+T cannot overflow if S is the size of
43722         an existing object and T is sufficiently small.
43723
43724 2003-11-17  Jim Meyering  <jim@meyering.net>
43725
43726         On systems without utime and without a utimes function capable of
43727         dealing with a NULL struct utimbuf* argument, this utime replacement
43728         could -- in unusual circumstances -- leak a file descriptor.
43729         * lib/utime.c: Include <unistd.h> and <errno.h>.
43730         (utime_null): Be sure to close `fd' and to preserve errno.
43731         Reported by Geoff Collyer via Arnold Robbins.
43732
43733 2003-11-17  Bruno Haible  <bruno@clisp.org>
43734
43735         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
43736         (Depends-on): Add xsize.
43737
43738 2003-11-17  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
43741
43742 2003-11-17  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/vasnprintf.c (alloca): Remove fallback definition.
43745         (freea): Remove definition.
43746         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
43747         Reported by Paul Eggert.
43748
43749 2003-11-16  Paul Eggert  <eggert@twinsun.com>
43750             Bruno Haible  <bruno@clisp.org>
43751
43752         Protect against address arithmetic overflow.
43753         * lib/printf-args.h: Include stddef.h.
43754         (arguments): Change type of field 'count' to size_t.
43755         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
43756         'unsigned int' where appropriate.
43757         * lib/printf-parse.h: Include sys/types.h.
43758         (char_directive): Change type of *arg_index fields to ssize_t.
43759         (char_directives): Change type of fields 'count', max_*_length to
43760         size_t.
43761         * lib/printf-parse.c: Include sys/types.h and xsize.h.
43762         (SSIZE_MAX): Define fallback value.
43763         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
43764         instead of 'int' where appropriate. Check a_allocated, d_allocated
43765         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
43766         * lib/vasnprintf.c: Include xsize.h.
43767         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
43768         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
43769         overflow. Avoid wraparound when converting a width or precision from
43770         decimal to binary.
43771
43772 2003-11-16  Bruno Haible  <bruno@clisp.org>
43773
43774         Update from GNU gettext.
43775         * lib/printf-parse.c: Generalize to it can be compiled for wide
43776         strings.
43777         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
43778         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
43779         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
43780         SNPRINTF): New macros.
43781         Don't include <alloca.h> if the file is used inside libintl.
43782         (local_wcslen): New function, for Solaris 2.5.1.
43783         (VASNPRINTF): Use it instead of wcslen.
43784
43785 2003-11-16  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/xsize.h (xmax): New function.
43788         (xsum, xsum3, xsum4): Declare as "pure" functions.
43789
43790 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43791
43792         * modules/xalloc (Files): Undo latest change, since xalloc.h
43793         no longer needs SIZE_MAX or PTRDIFF_MAX.
43794
43795 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43796
43797         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
43798         gl_PTRDIFF_MAX.
43799
43800 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43801
43802         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
43803         "return", to pacify some unknown compiler.  Problem reported
43804         by Joerg Schilling.
43805
43806 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43807
43808         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
43809         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
43810         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
43811         heuristic is just as accurate as far as we know, and it removes a
43812         dependency on size_max.m4 and ptrdiff_max.m4.
43813
43814 2003-11-11  Bruno Haible  <bruno@clisp.org>
43815
43816         * modules/xsize (Files): Add m4/size_max.m4.
43817         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
43818
43819 2003-11-11  Bruno Haible  <bruno@clisp.org>
43820
43821         * m4/size_max.m4: New file.
43822         * m4/ptrdiff_max.m4: New file.
43823         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
43824         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
43825         (gl_XALLOC): Invoke it.
43826
43827 2003-11-11  Bruno Haible  <bruno@clisp.org>
43828
43829         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
43830         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
43831         defined.
43832
43833 2003-11-10  Paul Eggert  <eggert@twinsun.com>
43834
43835         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
43836         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
43837         rejected some allocations of exactly SIZE_MAX - 2 bytes.
43838         From Bruno Haible.
43839         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
43840         not (size_t) -1, since it's defined here.
43841
43842 2003-11-09  Karl Berry  <karl@gnu.org>
43843
43844         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
43845
43846 2003-11-06  Paul Eggert  <eggert@twinsun.com>
43847
43848         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
43849         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
43850         Reject sizes of exactly SIZE_MAX bytes.
43851         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
43852         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
43853
43854 2003-11-05  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/xsize.h: Include limits.h, to avoid a possible collision with
43857         SIZE_MAX defined in <limits.h> on Solaris.
43858
43859 2003-11-04  Jim Meyering  <jim@meyering.net>
43860
43861         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
43862         variable names, rather than @VAR@.
43863         * modules/poll: Likewise.
43864
43865 2003-11-04  Bruno Haible  <bruno@clisp.org>
43866
43867         * modules/xsize: New file.
43868         * modules/linebreak: Depend on xsize.
43869         * MODULES.html.sh (func_all_modules): Add xsize.
43870
43871 2003-11-04  Bruno Haible  <bruno@clisp.org>
43872
43873         * m4/xsize.m4: New file.
43874
43875 2003-11-04  Bruno Haible  <bruno@clisp.org>
43876
43877         * lib/xsize.h: New file.
43878         * lib/linebreak.c: Include xsize.h.
43879         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
43880         argument for overflow.
43881         Suggested by Paul Eggert.
43882
43883 2003-11-03  Karl Berry  <karl@gnu.org>
43884
43885         * config/config.{guess,sub}: update from config.
43886
43887 2003-11-03  Jim Meyering  <jim@meyering.net>
43888
43889         * modules/userspec (lib_SOURCES): Add userspec.h.
43890         (Include): Add "userspec.h".
43891         Improve description.
43892
43893 2003-11-03  Jim Meyering  <jim@meyering.net>
43894
43895         * lib/userspec.c: Include "userspec.h".
43896         * lib/userspec.h: New file.
43897
43898 2003-11-03  Bruno Haible  <bruno@clisp.org>
43899
43900         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
43901
43902 2003-11-03  Bruno Haible  <bruno@clisp.org>
43903
43904         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
43905         available, to avoid (extremely rare) race condition.
43906         Suggested by Paul Eggert.
43907
43908 2003-11-02  Karl Berry  <karl@gnu.org>
43909
43910         * config/srclist.txt (vasprintf.c): sync broken, sigh.
43911
43912 2003-10-31  Paul Eggert  <eggert@twinsun.com>
43913
43914         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
43915         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
43916         (read_filesystem_list): Set and use me_type_malloced.
43917         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
43918         whatever the type happens to be), for brevity and consistency.
43919         Check for size calculation overflow on Alphas running OSF/1.
43920
43921 2003-10-31  Jim Meyering  <jim@meyering.net>
43922
43923         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
43924
43925         * lib/linebuffer.c: Include <string.h> for declaration of memset.
43926
43927 2003-10-30  Paul Eggert  <eggert@twinsun.com>
43928             Bruno Haible  <bruno@clisp.org>
43929
43930         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
43931         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
43932
43933 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
43934
43935         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
43936         netbsd*-gnu*.  Suggested by Robert Millan.
43937
43938 2003-10-29  Paul Eggert  <eggert@twinsun.com>
43939
43940         * modules/group-member: Depend on stdbool.
43941
43942 2003-10-29  Paul Eggert  <eggert@twinsun.com>
43943
43944         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
43945
43946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
43947
43948         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
43949         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
43950         after the 'gnu' in these cases.  This fixes some bugs in the
43951         previous change, and is based on suggestions by Robert Millan.
43952
43953 2003-10-29  Paul Eggert  <eggert@twinsun.com>
43954
43955         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
43956         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
43957         no longer needed.
43958         * lib/quotearg.c (quotearg_n_options): Use it.
43959         * lib/group-member.c: Include <stdbool.h>.
43960         (free_group_info): Arg is now const *; don't free arg.
43961         (get_group_info): Now returns bool and accepts struct group_info *,
43962         rather than returning a malloc'ed struct group_info *.
43963         All uses changed.  Check for overflow in internal size calculation.
43964
43965         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
43966         rather than xmalloc/xrealloc.
43967         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
43968         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
43969         conformance bug: the old code used a pointer after freeing the
43970         storage that it addressed.
43971         * lib/hash.c (hash_initialize): Simplify the code by using
43972         xalloc_oversized rather than doing it by hand.
43973         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
43974         the buffer preserved.  Use free and xmalloc instead.
43975         * lib/quotearg.c (quotearg_n_options): Likewise.
43976         Use a simpler test for size overflow.  Don't use xalloc_oversized
43977         because unsigned int might be wider than size_t (!); this suggests
43978         that we should switch from unsigned int to size_t for slot numbers.
43979
43980 2003-10-28  Paul Eggert  <eggert@twinsun.com>
43981
43982         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
43983         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
43984         NetBSD kernels.  Requested by Richard Stallman.
43985
43986 2003-10-27  Paul Eggert  <eggert@twinsun.com>
43987
43988         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
43989         to allocate the returned structure.  Do not allocate a subarray,
43990         as x2nrealloc will do that.
43991         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
43992         instead of xnrealloc.
43993         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
43994
43995 2003-10-27  Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/stdbool_.h: Better support for BeOS.
43998
43999 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44000
44001         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
44002         now uses inline.
44003
44004 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44005
44006         * lib/xalloc.h (xalloc_oversized): New static inline function, for
44007         callers that want to do their own size-overflow checking.  Include
44008         <stdbool.h>, since xalloc_oversized returns bool.
44009         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
44010         to use xalloc_oversized.
44011
44012         Add two functions x2realloc, x2nrealloc, for programs that grow
44013         arrays dynamically by doubling their sizes.
44014         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
44015         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
44016         New functions.
44017
44018         Port to C99 semantics for 'inline' of external functions.
44019         Bug reported by Bruno Haible.
44020         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
44021         with the old contents of xnmalloc.
44022         (xnmalloc, xmalloc): Use it.
44023         (xnrealloc_inline): New static inline function,
44024         with the old contents of xnrealloc.
44025         (xnrealloc, xrealloc): Use it.
44026
44027         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
44028         that.
44029
44030 2003-10-26  Karl Berry  <karl@gnu.org>
44031
44032         * config/srclist.txt (COPYING.DOC): no longer available from
44033         /gd/gnuorg; don't know where the ultimate source is.
44034
44035 2003-10-25  Paul Eggert  <eggert@twinsun.com>
44036
44037         Fix several address-calculation bugs in the hash modules,
44038         plus some minor code cleanup.
44039
44040         * lib/hash.h: Include <stdbool.h>, for bool.
44041         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
44042         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
44043         hash_get_n_entries, hash_get_max_bucket_length,
44044         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
44045         hash_rehash): Use size_t rather than unsigned.
44046         * lib/hash.c (struct hash_table, hash_get_n_buckets,
44047         hash_get_n_buckets_used, hash_get_n_entries,
44048         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
44049         hash_get_entries, hash_do_for_each, hash_string, is_prime,
44050         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
44051         Likewise.
44052         (SIZE_MAX): Define if not defined.
44053         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
44054         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
44055         hash_print):
44056         Use const * when possible.
44057         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
44058         (check_tuning): Fix bug: if tuning parameters were very close to
44059         0 or 1, rounding errors could have caused subscript violations.
44060         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
44061         (hash_initialize): Add 'fail:' label
44062         to free table and return NULL, and use it to simplify code.
44063         Use calloc rather than clearing the storage ourself.
44064         (hash_initialize, hash_rehash): Check for arithmetic overflow in
44065         buffer size calculations.
44066         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
44067         Include <stddef.h>, for size_t.
44068         * lib/hash-pjw.c (hash_pjw): Likewise.
44069         Switch to method described by Bruno Haible.
44070         Include <limits.h>, for CHAR_BIT.
44071         (SIZE_BITS): New macro.
44072
44073 2003-10-23  Paul Eggert  <eggert@twinsun.com>
44074
44075         * m4/getline.m4 (AM_FUNC_GETLINE):
44076         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
44077         hosts.  Problem reported by Derek Robert Price in
44078         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
44079         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
44080         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
44081
44082 2003-10-21  Paul Eggert  <eggert@twinsun.com>
44083
44084         * lib/getndelim2.c (getndelim2): When size calculation overflows,
44085         ceiling the allocation at NMAX bytes rather than silently
44086         discarding input bytes before NMAX is reached.  This makes
44087         a difference only if NMAX exceeds SIZE_MAX / 2.
44088
44089         * lib/obstack.c: Merge from glibc.
44090         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
44091         Add libc_hidden_def (_obstack_newchunk).
44092         (_obstack_free) [! defined _LIBC]: Remove.
44093         [defined _LIBC]: Make a strong alias from obstack_free, rather than
44094         a clone of the function body.
44095         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
44096         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
44097
44098         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
44099         glibc.
44100         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
44101         arg to memcpy.
44102
44103         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
44104         (obstack_ptr_grow_fast, obstack_int_grow_fast):
44105         Don't use lvalue casts, as GCC plans to remove support for them
44106         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
44107         was also present in the non-GCC version, indicating that this
44108         code had always been buggy and had never been widely used.
44109         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
44110         Use the fast variant of each macro, rather than copying the
44111         definiens of the fast variant; that way, we'll be more likely to
44112         catch future bugs in the fast variants.
44113
44114 2003-10-20  Bruno Haible  <bruno@clisp.org>
44115
44116         * modules/wait-process: New file.
44117         * MODULES.html.sh (func_all_modules): Add wait-process.
44118
44119 2003-10-20  Bruno Haible  <bruno@clisp.org>
44120
44121         * m4/wait-process.m4: New file.
44122
44123 2003-10-20  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/wait-process.h: New file, from GNU gettext.
44126         * lib/wait-process.c: New file, from GNU gettext.
44127
44128 2003-10-19  Jim Meyering  <jim@meyering.net>
44129
44130         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
44131         HPUX 10.20.
44132
44133 2003-10-18  Karl Berry  <karl@gnu.org>
44134
44135         * config/config.guess: update from config.
44136
44137 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44138
44139         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
44140         (getgroups): First arg is int, not size_t.
44141         Don't let 'free' mangle errno.
44142
44143 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44144
44145         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
44146
44147 2003-10-16  Karl Berry  <karl@gnu.org>
44148
44149         * config/config.{guess,sub}: update from config.
44150
44151 2003-10-16  Jim Meyering  <jim@meyering.net>
44152
44153         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
44154         memcpy.
44155
44156 2003-10-15  Paul Eggert  <eggert@twinsun.com>
44157
44158         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
44159         (SIZE_MAX): Remove.
44160         (new_exclude, add_exclude_file): Initial size no longer needs to
44161         be a power of 2.
44162         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
44163         our own address arithmetic overflow checking.
44164
44165         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
44166         (fnmatch): Do not alloca more than 2000 wide characters;
44167         instead, use malloc for large buffers.
44168         Check for address arithmetic overflow, and return -1
44169         with errno set to ENOMEM in that case.
44170         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
44171         (NEW_PATTERN): Do not alloca more than 8000 bytes;
44172         instead, return -1.  Check for address arithmetic overflow.
44173
44174 2003-10-14  Paul Eggert  <eggert@twinsun.com>
44175
44176         Handle invalid suffixes and overflow independently, so that
44177         callers can treat them independently as needed.  Fix some bugs in
44178         suffix handling, e.g., "100k@" was not diagnosed as an invalid
44179         suffix for a human-readable blocksize.  The major caller-visible
44180         change is the addition of a new
44181         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
44182         that both overflow and suffix chars were found.
44183
44184         * lib/human.c (humblock): Don't check separately for invalid suffix
44185         char; that is xstrtoumax's job (now that its bug is fixed).
44186         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
44187         INTMAX_MAX]: New macros.
44188         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
44189         TYPE_MAXIMUM): New macros.
44190         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
44191         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
44192         if overflow occurs, as it's what __strtol does and it's more useful
44193         in practice.
44194         (__xstrtol): If __strtol reports some error other than ERANGE,
44195         reflect it to the caller as LONGINT_INVALID.  If it reports
44196         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
44197         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
44198         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
44199         value.
44200         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
44201         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
44202         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
44203         [defined UINTMAX_MAX]: New macros.
44204
44205 2003-10-14  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
44208
44209 2003-10-14  Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/sig_atomic_t: New file, from GNU gettext.
44212         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
44213
44214 2003-10-14  Bruno Haible  <bruno@clisp.org>
44215
44216         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
44217         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
44218         Also use volatile where needed.
44219
44220 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44221
44222         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
44223         Change maintainer from Bruno Haible to 'all'.
44224
44225 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44226
44227         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
44228
44229 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44230
44231         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
44232         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
44233         and define in terms of the other primitives.
44234         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
44235         (SIZE_MAX): Define if not already defined.
44236         (array_size_overflow): New function.
44237         (xalloc_die): Abort instead of exiting if 'error' returns.
44238         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
44239         (xmalloc, xrealloc): Use them.
44240         (xcalloc): Check for address arithmetic overflow.
44241         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
44242         a bit faster than strcpy.
44243
44244 2003-10-10  Simon Josefsson  <jas@extundo.com>
44245
44246         * modules/argp (Depends-on): Add restrict and strcase.
44247
44248 2003-10-10  Simon Josefsson  <jas@extundo.com>
44249
44250         * m4/argp.m4: Add AC_C_INLINE.
44251
44252 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44253
44254         Merge getpass from libc, plus a few fixes.
44255
44256         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
44257         Include <stdbool.h>.
44258         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
44259         __fsetlocking to empty.
44260         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
44261         do include <bits/libc-lock.h>.
44262         Do not include <fcntl.h>; not needed.
44263         [_LIBC]: Include <wchar.h>.
44264         (NOTCANCEL_MODE): New macro.
44265         (flockfile, funlockfile) [_LIBC]: New macros.
44266         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
44267         [!_LIBC]: New macros.
44268         (call_fclose): New function.
44269         (getpass): Use it.  Save tty stream separately; this simplifies the
44270         code and makes it more reliable if stdin happens to equal stdout.
44271         Invoke __fsetlocking on tty.
44272         Handle thread cancellation if needed.
44273         Namespace cleanup (use __tcgetattr, __getline).
44274         Use bool for Booleans.
44275         [USE_IN_LIBIO]: Handle wide streams.
44276         [!_LIBC]: Unconditionally do the fseek, since we don't know what
44277         stream might go where.
44278
44279         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
44280         doesn't have to include <stdio.h> before us.
44281         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
44282         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
44283         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
44284         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
44285         if not declared, so that we can use getpass.c code from libc without
44286         rewriting it.
44287         (flockfile, ftrylockfile, funlockfile): New macros.
44288
44289 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44290
44291         * modules/getpass: Depend on stdbool.
44292
44293 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44294
44295         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
44296
44297 2003-10-07  Karl Berry  <karl@gnu.org>
44298
44299         * config/config.{guess,sub}: update from config.
44300
44301 2003-10-06  Jim Meyering  <jim@meyering.net>
44302             Bruno Haible  <bruno@clisp.org>
44303
44304         This lets translators provide better translations for the
44305         "Written by ..." part of --version output.
44306         * lib/version-etc.h: Include stdarg.h.
44307         (version_etc_copyright): Declare as readonly.
44308         (version_etc): Make this function variadic with a NULL-terminated list
44309         of author name strings.
44310         (version_etc_va): New declaration.
44311         * lib/version-etc.c: Include stdarg.h, stdlib.h.
44312         (version_etc_copyright): Declare as readonly.
44313         (version_etc_va): New function. Provide a different translatable string
44314         for each possible number of authors < 10. Abbreviate when there are 10
44315         authors or more.
44316         (version_etc): Make this function variadic. Call version_etc_va.
44317         Suggestion from Gary V. Vaughan.
44318
44319         * lib/long-options.h (parse_long_options): Change prototype: the
44320         authors string is moved to the end and becomes variadic.
44321         * lib/long-options.c: Include stdarg.h.
44322         (parse_long_options): Make this function variadic, too.
44323         Call version_etc_va, not version_etc.
44324
44325 2003-10-06  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/version-etc-2: Remove file.
44328         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
44329
44330 2003-10-06  Bruno Haible  <bruno@clisp.org>
44331
44332         * modules/fatal-signal: New file.
44333         * MODULES.html.sh (func_all_modules): Add fatal-signal.
44334
44335 2003-10-06  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/fatal-signal.m4: New file.
44338         * m4/signalblocking.m4: New file, from GNU gettext.
44339
44340 2003-10-06  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/version-etc-2.h: Remove file.
44343         * lib/version-etc-2.c: Remove file.
44344
44345 2003-10-06  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/fatal-signal.h: New file, from GNU gettext.
44348         * lib/fatal-signal.c: New file, from GNU gettext.
44349
44350 2003-10-05  Paul Eggert  <eggert@twinsun.com>
44351
44352         * README: Rework advice for preventing empty .o files.
44353         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
44354         not <sys/types.h>.
44355
44356 2003-10-04  Karl Berry  <karl@gnu.org>
44357
44358         * lib/argp*: update from libc.
44359
44360 2003-10-04  Karl Berry  <karl@gnu.org>
44361
44362         * config/config.{guess,sub}: update from config.
44363
44364 2003-10-02  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/lchown (Include): Add lchown.h.
44367         * modules/time_r (Include): Use "..." syntax.
44368         * modules/xgetdomainname (Include): Add xgetdomainname.h.
44369
44370 2003-10-01  Simon Josefsson  <jas@extundo.com>
44371
44372         * MODULES.html.sh (func_all_modules): Move gethostname from section
44373         'based on' to section 'lacking' POSIX:2001.
44374
44375 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
44376
44377         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
44378         to output mode on the same stream.
44379
44380 2003-09-29  Paul Eggert  <eggert@twinsun.com>
44381
44382         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
44383         Fix arg typo in previous patch.
44384
44385 2003-09-28  Jim Meyering  <jim@meyering.net>
44386
44387         * lib/error.c: Correct cpp indentation.
44388
44389 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44390
44391         * modules/free: New file.
44392
44393 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44394
44395         * m4/free.m4: New file.
44396
44397 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44398
44399         * lib/minmax.h (MIN, MAX)
44400         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
44401         Omit the special code that used __typeof__, since we worry that
44402         it could be more trouble than it's worth.  See:
44403         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
44404         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
44405
44406         * lib/free.c: New file.
44407
44408 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
44409
44410         Trivial fixes to Makefile.am parts of module listings.
44411         * modules/strstr: Append strstr.h to lib_SOURCES.
44412         * modules/strcase: Likewise, for strcase.h.
44413
44414 2003-09-27  Karl Berry  <karl@gnu.org>
44415
44416         * config/mkinstalldirs: update from automake.
44417
44418 2003-09-26  Paul Eggert  <eggert@twinsun.com>
44419
44420         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
44421         (error_tail): Do not loop, reallocating temporary buffer, since
44422         the output cannot contain more wide characters than the input
44423         contains bytes, the size must be big enough already.  This avoids
44424         one potential size overflow calculation.  Check for size overflow
44425         when calculating temporary buffer size.  Free temporary buffer
44426         when done, if it was allocated with malloc; this plugs a memory
44427         leak.  Remove casts from void * to pointers, that are no longer
44428         needed now that we're assuming C89 or better.
44429
44430         Merge error changes from glibc.
44431
44432         * lib/error.c, error.h: Update copyright notice header to match glibc.
44433         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
44434         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
44435         Disable cancellation while printing error.
44436         * lib/error.h: Prepend __ to parameter names.
44437
44438 2003-09-26  Jim Meyering  <jim@meyering.net>
44439
44440         * lib/error.c (error_tail): Move some declarations
44441         into inner scope where the local variables are used.
44442
44443 2003-09-26  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
44446         stpncpy().
44447         Don't define stpncpy through config.h; it's now done through stpncpy.h.
44448
44449 2003-09-26  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/stpncpy.h (gnu_stpncpy): New declaration.
44452         (stpncpy): Define as alias for gnu_stpncpy.
44453         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
44454
44455 2003-09-25  Simon Josefsson  <jas@extundo.com>
44456
44457         * lib/xgetdomainname.h: New file.
44458         * lib/xgetdomainname.c: New file.
44459
44460 2003-09-25  Simon Josefsson  <jas@extundo.com>
44461             Bruno Haible  <bruno@clisp.org>
44462
44463         * modules/getdomainname: New file.
44464         * modules/xgetdomainname: New file.
44465         * MODULES.html.sh (func_all_modules): Add getdomainname,
44466         xgetdomainname.
44467
44468 2003-09-25  Simon Josefsson  <jas@extundo.com>
44469             Bruno Haible  <bruno@clisp.org>
44470
44471         * m4/getdomainname.m4: New file.
44472
44473 2003-09-25  Simon Josefsson  <jas@extundo.com>
44474             Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/getdomainname.h: New file.
44477         * lib/getdomainname.c: New file.
44478
44479 2003-09-25  Karl Berry  <karl@gnu.org>
44480
44481         * lib/argp-fmtstream.c, argp-help.c: update from libc.
44482
44483 2003-09-25  Karl Berry  <karl@gnu.org>
44484
44485         * config/install-sh: update from automake.
44486
44487 2003-09-25  Bruno Haible  <bruno@clisp.org>
44488
44489         * modules/version-etc-2: New file, from modules/version-etc with
44490         modifications.
44491         * MODULES.html.sh (func_all_modules): Add version-etc-2.
44492
44493 2003-09-25  Bruno Haible  <bruno@clisp.org>
44494
44495         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
44496         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
44497
44498 2003-09-24  Simon Josefsson  <jas@extundo.com>
44499
44500         * modules/xgethostname: Add xgethostname.h.
44501
44502 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44503
44504         * lib/linebuffer.c (freebuffer): Don't free the argument, just
44505         the buffer associated with the argument.  Bug reported by
44506         Simon Josefsson.
44507
44508 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44509
44510         * README: Document assumptions that 'int' is at least 32 bits
44511         wide, that integer arithmetic is 2's complement without overflow,
44512         that there are no holes in integer values, that adding sizes of
44513         two nonoverlapping objects can't overflow, and that all-bits-zero
44514         yields scalar zero.  Fix spelling and capitalization typos.
44515
44516 2003-09-19  Karl Berry  <karl@gnu.org>
44517
44518         * lib/argp.h: update from libc.
44519
44520 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44521
44522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
44523         to avoid spurious warnings like "AC_RUN_IFELSE was called before
44524         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
44525
44526 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44527
44528         * gnulib-tool: Use "test -h", not "test -L", for portability
44529         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
44530         (tags_regexp): Remove, since \| doesn't conform to POSIX.
44531         (sed_extract_prog): Issue s commands one-by-one, rather than
44532         using \| in one s command.
44533
44534 2003-09-16  Paul Eggert  <eggert@twinsun.com>
44535
44536         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
44537         input error, instead of returning NULL the next time we are called
44538         (and therefore losing track of errno).
44539
44540 2003-09-16  Bruno Haible  <bruno@clisp.org>
44541
44542         * gnulib-tool (func_create_testdir): Warn about duplicated
44543         dependencies.
44544
44545 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44546
44547         * modules/argmatch, modules/fatal, modules/obstack,
44548         modules/xalloc, modules/xgethostname: Sort dependencies by
44549         importance, not alphabetically.
44550
44551 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44552
44553         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
44554         fails, so that the caller gets the proper errno.
44555
44556         * lib/readutmp.c (read_utmp): Likewise.
44557         Check for fstat error.  Close stream and free storage
44558         when failing.
44559
44560 2003-09-14  Karl Berry  <karl@gnu.org>
44561
44562         * config/srclist.txt (strdup.c): disable for c89 changes.
44563
44564 2003-09-14  Jim Meyering  <jim@meyering.net>
44565
44566         * lib/getloadavg.c: Correct cpp indentation.
44567         * lib/strdup.c: Likewise.
44568         * lib/vasnprintf.c: Likewise.
44569
44570 2003-09-14  Bruno Haible  <bruno@clisp.org>
44571
44572         * modules/fwriteerror: New file.
44573         * MODULES.html.sh (func_all_modules): Add fwriteerror.
44574
44575 2003-09-14  Bruno Haible  <bruno@clisp.org>
44576
44577         * lib/fwriteerror.h: New file.
44578         * lib/fwriteerror.c: New file.
44579
44580 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44581
44582         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
44583         modules/xgethostname, modules/xalloc: Depend on exit.
44584
44585 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44586
44587         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
44588
44589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
44590         and AC_MINIX, too, so that their extensions are available.
44591
44592         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
44593         This macro has been superseded by gl_BACKUPFILE.
44594
44595         More patches to assume C89 or better.
44596
44597         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
44598
44599         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
44600         unconditionally.
44601         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
44602         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
44603         Include <string.h>, <stdlib.h> unconditionally.
44604         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
44605         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
44606         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
44607         headers or for string.h.
44608         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
44609         or strtoul.
44610
44611         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
44612         headers.
44613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
44614         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
44616         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
44617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44618         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
44619         memcpy, memset.
44620         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
44621         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
44622         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
44623         strtol.
44624         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
44625         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
44626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
44627         strtoul.
44628
44629 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44630
44631         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
44632         * lib/obstack.c [!defined _LIBC]: Likewise.
44633         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
44634         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
44635         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
44636
44637         More changes to assume C89 or better.
44638
44639         * lib/error.c (error_tail): Assume vprintf.
44640
44641         * lib/argmatch.c (getenv): Remove decl.
44642         * lib/progreloc.c (get_full_program_name): Define via prototype.
44643         * lib/setenv.c (clearenv): Likewise.
44644         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
44645         needed.
44646         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
44647         (malloc, memcpy): Remove decls.
44648         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
44649         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
44650         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44651         (memcpy): Remove macro.
44652         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
44653         (__P): Remove.  All uses removed.
44654         (PTR): Remove.  All uses changed to void *.
44655         (CHAR_BIT, NULL): Remove.
44656         (spaces, zeros, memset_space, memset_zero)
44657         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
44658         Remove.
44659         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
44660         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
44661         Define with prototype.
44662         Remove now-unnecessary prototype decl.
44663         (extra_args_spec): Assume ANSI C.  All uses changed.
44664         (extra_args_spec_iso): Remove.
44665         (my_strftime, emacs_strftimeu): Define via prototype.
44666         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
44667         unconditionally.
44668         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
44669         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
44670         (strtoul, strtol): Remove decls.
44671         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
44672         LONG_MAX): Remove.
44673         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44674         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
44675         (LOCALE_PARAM_PROTO): New macro.
44676         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
44677         (INTERNAL (strtol), strtol): Define with a prototype.
44678         (PARAMS): Remove.  All uses removed.
44679         * lib/tempname.c: Include <string.h> unconditionally.
44680         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
44681         * lib/xgethostname.c (main): Define with a prototype.
44682         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
44683         Include <stdlib.h> unconditionally.
44684         (calloc, malloc, realloc, free): Remove decls.
44685         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
44686         Include <stdlib.h> unconditionally.  Sort include file names.
44687         (strtod): Remove.
44688         (xstrtod): Define with a prototype.
44689         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
44690         (strtol, strtoul): Remove decls.
44691
44692 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44693
44694         More patches to assume C89 or better.
44695         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
44696         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
44697         string.h, memchr, STDC_HEADERS.
44698
44699 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44700
44701         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
44702         Include <stdlib.h>, <string.h> unconditionally.
44703         Remove now-unnecessary cast to char *.
44704         * lib/strnlen.c: Include <string.h> unconditionally.
44705         * lib/yesno.c (yesno): Define with a prototype.
44706
44707 2003-09-11  Bruno Haible  <bruno@clisp.org>
44708
44709         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
44710
44711 2003-09-10  Jim Meyering  <jim@meyering.net>
44712
44713         * lib/error.c: Correct indentation of cpp directives.
44714
44715 2003-09-10  Bruno Haible  <bruno@clisp.org>
44716
44717         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
44718         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
44719         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
44720         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
44721         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
44722         <stdlib.h> and <string.h> checks.
44723         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
44724         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
44725
44726 2003-09-10  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/strcspn.c: Include <string.h> unconditionally.
44729         * lib/strpbrk.c: Include <string.h> unconditionally.
44730         * lib/strstr.c: Include <string.h> unconditionally.
44731         * lib/unicodeio.c: Include <string.h> unconditionally.
44732         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
44733         * lib/unsetenv.c: Likewise.
44734         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
44735         * lib/yesno.c: Include <stdlib.h> unconditionally.
44736         (rpmatch): Add prototype.
44737
44738 2003-09-09  Paul Eggert  <eggert@twinsun.com>
44739
44740         More patches to assume C89 or better.
44741         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
44742         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
44743         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
44744         or for string.h.
44745         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
44746         stdlib.h.
44747         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
44748         C headers.
44749         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
44750         string.h.
44751         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
44752         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
44753         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
44754         or for string.h.
44755         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
44756         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
44757         C headers.
44758         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
44759         memcpy.
44760         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
44761         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
44762         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
44763         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
44764         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
44765         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
44766         string.h, free.
44767         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
44768         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
44769         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
44770         C headers, or for string.h.
44771         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
44772         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
44773         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
44774         headers, memory.h, stdlib.h, string.h, strings.h.
44775         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
44776         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
44777         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
44778         strchr.
44779         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
44780         headers, memory.h, string.h.
44781         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
44782         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
44783         free.
44784         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
44785         headers.
44786         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
44787         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
44788         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
44789         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
44790         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
44791
44792 2003-09-09  Paul Eggert  <eggert@twinsun.com>
44793
44794         More K&R removal.
44795
44796         * lib/acosl.c (main): Use a prototype.
44797         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
44798         tanl.c: Likewise.
44799
44800         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
44801
44802         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
44803         (getopt, etopt_long, getopt_long_only, _getopt_internal)
44804         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
44805         with a prototype.
44806         * lib/getopt.c (const): Remove macro.
44807         Include <string.h> unconditionally.
44808         (my_index): Remove; all uses changed to strchr.
44809         (strlen): Remove decl.
44810         (exchange): Remove forward decl; no longer needed.
44811         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
44812         Define with prototype.
44813         * lib/getopt1.c (const): Remove macro.
44814         (getopt_long, getopt_long_only, main): Define with prototype.
44815
44816         * lib/getugroups.c: Include <string.h> unconditionally.
44817
44818         * lib/getusershell.c: Include <stdlib.h> unconditionally.
44819         (getusershell, setusershell, endusershell, readname, main):
44820         Define with prototypes.
44821
44822         * lib/group-member.c: Include group-member.h first.
44823         Include <stdlib.h> unconditionally.
44824
44825         * lib/hard-locale.c: Include hard-locale.h first.
44826         Include <stdlib.h>, <string.h> unconditionally.
44827
44828         * lib/hash.c (free, malloc): Remove decls.
44829         Include <stdlib.h> unconditionally.
44830
44831         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
44832         (getenv): Do not declare.
44833
44834         * lib/idcache.c: Include <string.h> unconditionally.
44835
44836         * lib/long-options.c: Include long-options.h first, to test interface.
44837         Include <stdlib.h> unconditionally.
44838
44839         * lib/makepath.c: Include makepath.h first, to test interface.
44840         Include <stdlib.h> and <string.h> unconditionally.
44841
44842         * lib/linebuffer.c: Include <stdlib.h>.
44843         (free): Remove decl.
44844
44845         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
44846         stddef.h. rpl_malloc returns void *, not char *.
44847         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
44848         prototype.
44849
44850         * lib/md5.h: Include <limits.h> unconditionally.
44851         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
44852         (__P): Remove; all uses removed.
44853         * lib/md5.c: Include "md5.h" first.
44854         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
44855         md5_buffer, md5_process_bytes, md5_process_block):
44856         Define with prototypes.
44857         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
44858         * lib/sha.c: Include "sha.h" first.
44859         Include <stdlib.h>, <string.h> unconditionally.
44860
44861         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
44862         * lib/memcmp.c (__ptr_t): Likewise.
44863         * lib/memrchr.c (__ptr_t): Likewise.
44864         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
44865         Include <string.h> unconditionally.
44866         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
44867         * lib/memchr.c: Include <stdlib.h> unconditionally.
44868         * lib/memchr.c (LONG_MAX): Remove.
44869         * lib/memrchr.c (LONG_MAX): Likewise.
44870         * lib/memchr.c (__memchr): Define via a prototype.
44871         * lib/memrchr.c (__memrchr): Likewise.
44872         * lib/memcmp.c (__P): Remove, and remove all uses.
44873         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
44874         Remove forward decls; no longer needed.
44875         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
44876         Use types required by C89 in prototype.
44877
44878         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
44879         * lib/savedir.c: Likewise.
44880         * lib/mkdir.c (free): Remove decl.
44881         * lib/rmdir.c (rmdir): Define with a prototype.
44882         * lib/savedir.c: Include savedir.h first, to test interface.
44883
44884         * lib/mktime.c (STDC_HEADERS): Remove.
44885         Include <stdlib.h>, <string.h> unconditionally.
44886
44887         * lib/modechange.c: Include <stdlib.h> unconditionally.
44888         (malloc): Remove decl.
44889
44890         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
44891         (free): Remove decl.
44892
44893         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
44894         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
44895         (This type really should be intptr_t, but that's a C99ism.)
44896         (_obstack_memcpy): Remove: all uses changed to memcpy.
44897         Include <string.h> unconditionally.
44898         (struct obstack): Assume __STDC__ for types of members
44899         chunkfun, freefun, extra_arg.
44900         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
44901         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
44902         obstack_begin, obstack_specify_allocation,
44903         obstack_specify_allocation_with_arg, obstack_chunkfun,
44904         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
44905         Remove unprototyped decls and the macros that use them.
44906         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
44907         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
44908         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
44909         (defined __STDC__ && __STDC__)]:
44910         Remove nonprototyped code.
44911         Include <stdlib.h> unconditionally.
44912         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
44913         _obstack_allocated_p, _obstack_free, obstack_free,
44914         _obstack_memory_used, print_and_abort):
44915         Define using prototypes.
44916         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
44917         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
44918         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
44919         obstack_next_free, obstack_object_size, obstack_room) [0]:
44920         Remove unused, unprototyped code.
44921
44922         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
44923
44924         * lib/physmem.c (physmem_total, physmem_available, main): Define
44925         with prototypes.
44926
44927         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
44928         (main): Define with a prototype.
44929
44930         * lib/posixver.c (getenv): Remove decl.
44931
44932         * lib/putenv.c (malloc): Returns void *, not char *.
44933         Include <string.h> unconditionally.
44934         (strchr, memcpy, NULL): Do not define.
44935
44936         * lib/readtokens.c: Include readtokens.h first, to test interface.
44937         Include <stdlib.h>, <string.h> unconditionally.
44938         (init_tokenbuffer): Define with a prototype.
44939
44940         * lib/regex.c (PARAMS): Remove.  All uses removed.
44941         All uses of _RE_ARGS removed, too.
44942         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
44943         unconditionally.
44944         (bzero): Assume memset exists.
44945         (memcmp, memcpy, NULL): Remove.
44946         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
44947         char, or assignments to local vars of type signed char.
44948         (init_syntax_once, PREFIX(extract_number_and_incr),
44949         PREFIX(print_partial_compiled_pattern),
44950         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
44951         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
44952         PREFIX(regex_grow_registers), PREFIX(regex_compile),
44953         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
44954         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
44955         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
44956         wcs_compile_range, byte_compile_range, truncate_wchar,
44957         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
44958         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
44959         count_mbs_length, wcs_re_match_2_internal,
44960         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
44961         PREFIX(alt_match_null_string_p),
44962         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
44963         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
44964         regfree, PREFIX(extract_number)): Define with prototype.  Remove
44965         now-unnecessary declaration, if any.
44966         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
44967         regcomp, regexec):
44968         Remove now-unnecessary casts among pointer types.
44969         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
44970
44971         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
44972         (free): Remove decl.
44973
44974         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
44975
44976         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
44977         (free): Remove decl.
44978
44979         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
44980         * lib/xgetcwd.c: Likewise.
44981
44982         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
44983         (free): Remove decl.
44984
44985         * lib/strchrnul.c (strchrnul): Define with a prototype.
44986         Fix bug: c_in was not converted to char before searching.
44987
44988         The following changes are not K&R related:
44989
44990         * lib/group-member.h: Include <sys/types.h>, so that this file is
44991         self-contained.
44992         * lib/makepath.h: Likewise.
44993
44994         * lib/getusershell.c (readname, default_index, line_size, readname):
44995         Use size_t, not int, for sizes.
44996         (readname): If the size overflows, report an error instead of
44997         looping forever.
44998
44999 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45000
45001         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
45002         libc.
45003
45004 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45005
45006         * README: New section: portability guidelines.
45007
45008 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45009
45010         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
45011         C89 spec.
45012
45013 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45014
45015         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
45016
45017 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45018
45019         Assume C89 or better; remove K&R cruft.
45020         A few of these changes were first proposed by Derek Robert Price
45021         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
45022
45023         * lib/addext.c: Include <string.h> unconditionally.
45024         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
45025         Don't declare getenv or malloc.
45026
45027         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
45028         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
45029         (NULL): Remove.
45030         (find_stack_direction, alloca): Use prototypes.
45031
45032         * lib/atexit.c (atexit): Define using a prototype.
45033
45034         * lib/basename.c, dirname.c, stripslash.c:
45035         Include <string.h> unconditionally.
45036
45037         * lib/bcopy.c: Include <stddef.h>.
45038         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
45039
45040         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
45041
45042         * lib/error.h (error, error_at_line, error_print_progname)
45043         [! (defined (__STDC__) && __STDC__)]: Remove decls.
45044         * lib/error.c: Include error.h first, to check interface.
45045         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45046         (VA_START): Remove; all uses changeed to va_start.
45047         (exit, strerror): Remove decls.
45048         (error_print_progname): Prototype uncondionally.
45049         Don't include <errno.h>; no longer needed.
45050         (private_strerror): Remove.
45051         (error_tail): Always define.
45052         (error, error_at_line): Assume C89 or better; always use prototypes.
45053         * lib/fatal.c: Include "fatal.h" first, to test interface.
45054         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45055         (VA_START): Remove; all uses changed to va_start.
45056         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
45057         this case.
45058         (exit): Remove decl.
45059         (fatal): Prototype unconditionally.  Assume va_start works.
45060         Abort at end, to pacify gcc.
45061
45062         * lib/euidaccess.c (main): Define with a prototype.
45063
45064         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
45065
45066         * lib/exitfail.c: Include <stdlib.h> unconditionally.
45067
45068         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
45069         prototypes.
45070         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
45071         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
45072         (getenv): Remove decl.
45073         (fnmatch): Define using a prototype.
45074         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
45075         (FCT): Define using a prototype.
45076
45077         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
45078
45079         * lib/gethostname.c: Include <stddef.h>.
45080         (gethostname): Define with prototype.  Length is size_t, not int.
45081
45082 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45083
45084         Assume C89 or better; remove K&R cruft.
45085         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
45086         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
45087         string.h, getenv, malloc.
45088         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
45089         headers.
45090         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
45091         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
45092         do not check for strerror.
45093         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
45094         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
45095         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
45096         do not check for doprnt or vprintf.
45097         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
45098         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
45099
45100 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45101
45102         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
45103         getversion.c should have been removed then, but was accidentally
45104         preserved.
45105
45106         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
45107         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
45108
45109 2003-09-08  Karl Berry  <karl@gnu.org>
45110
45111         * config/config.sub, config.guess, srclistvars.sh: update from savannah
45112                 config, forget about prep.
45113
45114         * config/depcomp, missing: update from automake.
45115
45116 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45117
45118         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
45119         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45120
45121 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45122
45123         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
45124         copy_tm_result.  Bug reported by Simon Josefsson in
45125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45126
45127 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45128
45129         * m4/time_r.m4: New file.
45130         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
45131         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
45132         is. Check for timegm declaration.
45133         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
45134         Do not check for gmtime_r.
45135         Replace mktime if __mktime_internal does not exist and if mktime
45136         hasn't been replaced already.
45137
45138 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45139
45140         * lib/time_r.c, lib/time_r.h: New files.
45141
45142         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
45143         __localtime_r.
45144         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
45145         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
45146
45147         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
45148         __gmtime_r.
45149         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
45150         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
45151         Include <time_r.h>.
45152
45153         * lib/timegm.c: Switch to glibc implementation, with the following
45154         changes:
45155         [defined HAVE_CONFIG_H]: Include <config.h>.
45156         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
45157         (__mktime_internal) [!defined _LIBC]: New decl.
45158         (__gmtime_r) [!defined _LIBC]: New macro and function.
45159         (timegm): Use a prototype, since gnulib assumes C89.
45160         Do not bother declaring tmp to be const, as it's not really usefu.
45161         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
45162         (timegm): Declare only if HAVE_DECL_TIMEGM.
45163
45164 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45165
45166         * MODULES.html.sh (func_all_modules): Add time_r.
45167         * modules/time_r: New file.
45168         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
45169         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
45170
45171 2003-09-03  Paul Eggert  <eggert@twinsun.com>
45172
45173         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
45174         Bug reported by Lute Kamstra in
45175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
45176
45177         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
45178         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
45179         course with correspondingly smaller numbers for tomorrow and
45180         yesterday.  From Tadayoshi Funaba.  Originally installed into
45181         sh-utils on 1999-08-07, but the patch got lost (I guess during the
45182         coreutils merge?).
45183
45184 2003-08-31  Simon Josefsson  <jas@extundo.com>
45185
45186         * modules/timegm: New file.
45187         * MODULES.html.sh (func_all_modules): Add timegm.
45188
45189 2003-08-31  Simon Josefsson  <jas@extundo.com>
45190
45191         * m4/timegm.m4: New file.
45192
45193 2003-08-31  Simon Josefsson  <jas@extundo.com>
45194
45195         * lib/timegm.h: New file.
45196         * lib/timegm.c: New file.  Based on
45197         wget-1.8.2/src/http.c:mktime_from_utc.
45198
45199 2003-08-31  Karl Berry  <karl@gnu.org>
45200
45201         * lib/argp.h: update from libc.
45202
45203 2003-08-28  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
45206         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
45207         followed by '#define fnmatch fnmatch_posix' gives an error.
45208
45209 2003-08-28  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
45212         warning on QNX, which defines O_BINARY to 000000.
45213
45214 2003-08-27  Jim Meyering  <jim@meyering.net>
45215
45216         * m4/mkstemp.m4: Require that the system mkstemp be able to create
45217         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
45218         would fail after 32.  Reported by Danny Levinson.  Details here:
45219         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
45220
45221 2003-08-24  Bruno Haible  <bruno@clisp.org>
45222
45223         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
45224         MSVC7 <stdio.h> is included later.
45225
45226 2003-08-22  Simon Josefsson  <jas@extundo.com>
45227
45228         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
45229
45230 2003-08-20  Karl Berry  <karl@gnu.org>
45231
45232         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
45233
45234 2003-08-20  Bruno Haible  <bruno@clisp.org>
45235
45236         * modules/progname: New file.
45237         * MODULES.html.sh (func_all_modules): Add progname.
45238
45239 2003-08-20  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/progname.h: New file, from GNU gettext.
45242         * lib/progname.c: New file, from GNU gettext.
45243         * lib/progreloc.c: New file, from GNU gettext.
45244
45245 2003-08-19  Jim Meyering  <jim@meyering.net>
45246
45247         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
45248         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
45249
45250 2003-08-19  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
45253         more.
45254
45255 2003-08-19  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/xstrdup.c: Assume <string.h> exists.
45258
45259 2003-08-18  Paul Eggert  <eggert@twinsun.com>
45260
45261         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
45262         in makefile rules.
45263
45264 2003-08-18  Jim Meyering  <jim@meyering.net>
45265
45266         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
45267         * m4/lib-ld.m4: Likewise.
45268
45269 2003-08-18  Jim Meyering  <jim@meyering.net>
45270
45271         * lib/setenv.h: Indent nested cpp directive.
45272         * lib/vasnprintf.c: Remove trailing blanks.
45273
45274 2003-08-17  Simon Josefsson  <jas@extundo.com>
45275
45276         * modules/xstrndup: New file.
45277         * MODULES.html.sh (func_all_modules): Add xstrndup.
45278
45279 2003-08-17  Simon Josefsson  <jas@extundo.com>
45280
45281         * modules/argp: Fix autoconf macro name. Add more dependencies.
45282
45283 2003-08-17  Simon Josefsson  <jas@extundo.com>
45284
45285         * m4/xstrndup.m4: New file.
45286
45287 2003-08-17  Simon Josefsson  <jas@extundo.com>
45288
45289         * m4/argp.m4: New file.
45290
45291 2003-08-17  Simon Josefsson  <jas@extundo.com>
45292             Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/xstrndup.h: New file.
45295         * lib/xstrndup.c: New file.
45296
45297 2003-08-17  Bruno Haible  <bruno@clisp.org>
45298
45299         * modules/strndup (Files, Include): Add lib/strndup.h.
45300
45301 2003-08-17  Bruno Haible  <bruno@clisp.org>
45302
45303         * modules/euidaccess (Files): Add lib/euidaccess.h.
45304
45305 2003-08-17  Bruno Haible  <bruno@clisp.org>
45306
45307         * lib/strndup.h: New file.
45308
45309 2003-08-17  Bruno Haible  <bruno@clisp.org>
45310
45311         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
45312         like AC_GNU_SOURCE.
45313         * modules/extensions (configure.ac): Comment out the invocation of
45314         gl_USE_SYSTEM_EXTENSIONS.
45315
45316 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45317
45318         Merges from coreutils, etc.
45319         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
45320         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
45321         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
45322         fixing a typo.
45323         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
45324         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
45325
45326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45327
45328         Document merge from coreutils.
45329         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
45330         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
45331         * modules/utime: Add m4/utimes-null.m4.
45332
45333 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45334
45335         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
45336         space, undoing this 2003-08-12 change:
45337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45338
45339 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45340
45341         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
45342         strtoul.c from libc, undoing this 2003-08-12 change:
45343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45344
45345 2003-08-16  Jim Meyering  <jim@meyering.net>
45346
45347         Merges from coreutils.
45348         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
45349         prefix.  Adjust cache variables similarly.  Create 500 rather than
45350         just 300 files, to exercise bug on Darwin6.5, too.
45351         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
45352         $missing_dir.
45353         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
45354         AM_SYS_POSIX_TERMIOS.
45355         Reported by mkc@mathdogs.com.
45356         Also change use of $am_cv_sys_posix_termios
45357         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
45358         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
45359         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
45360         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
45361         in /proc/mounts until it finds one with matching device number.  This
45362         is unnecessary when the FILE argument *is* a mount point.  No stat call
45363         is necessary in that case.  So, disable the statvfs-testing code on
45364         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
45365         as RedHat bug# 84846.
45366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45367         to 1MB, so as not to render systems with no stack size limit (e.g.,
45368         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45369         Include <unistd.h>.  On some systems,
45370         it is required for the definition of _SC_PAGESIZE.
45371
45372 2003-08-16  Jim Meyering  <jim@meyering.net>
45373
45374         Merge from coreutils.
45375         * lib/xstrtoimax.c: #else #if -> #elif.
45376         * lib/xstrtoumax.c: Likewise.
45377
45378 2003-08-16  Jim Meyering  <jim@meyering.net>
45379
45380         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
45381         * m4/utimes.m4: Removed.
45382         * m4/utimes-null.m4: Renamed from utimes.m4.
45383
45384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45385         to 1MB, so as not to render systems with no stack size limit (e.g.,
45386         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45387         Include <unistd.h>.  On some systems,
45388         it is required for the definition of _SC_PAGESIZE.
45389
45390 2003-08-16  Jim Meyering  <jim@meyering.net>
45391         and Paul Eggert  <eggert@cs.ucla.edu>
45392
45393         Merges from coreutils, etc.
45394
45395         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
45396         using the latest version from cvs.  This avoids problems with #line
45397         directives using a vendor (Sun) compiler.
45398         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
45399         Don't set GETGROUPS_LIB here; now it's
45400         done via getgroups.m4's wrapper function.
45401         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
45402         rather than just in sh-util/configure.in, so that the
45403         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
45404         same.
45405         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
45406         AC_FUNC_GETLOADAVG where to find getloadavg.c.
45407         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
45408         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
45409         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
45410         Remove code that is now done by the newly-required macros.
45411         Append $(EXEEXT) to DF_PROG.
45412         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
45413         Do not invoke or require the following here,
45414         since prereq.m4 or some gnulib .m4 now does this for us:
45415         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
45416         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
45417         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
45418         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
45419         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
45420         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
45421         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
45422         AC_FUNC_OBSTACK.
45423         Do not replace the following functions, as this is now the job
45424         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
45425         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
45426         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
45427         atexit getpass, strdup, getpagesize.
45428         Replace 'raise'.
45429         Do not check for the following functions, as this is now the job
45430         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
45431         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
45432         setregid.
45433         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
45434         Check for sys/sysctl.h.
45435         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
45436         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
45437         of checking for ssize_t ourselves.
45438
45439         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
45440         Require every macro that gnulib/modules/* suggests for us.
45441         (jm_PREREQ_ADDEXT): New macro.
45442         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
45443         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
45444
45445         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
45446         (gl_PHYSMEM): Use it.
45447         Also check for `table' function.
45448         Check for new headers and functions.
45449         Add check for sys/sysmp.h.
45450         With suggestions from Kaveh Ghazi.
45451         Ignore headers that are present but cannot be compiled.  This
45452         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
45453         C 5.4.
45454
45455 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45456
45457         Document merge from coreutils.
45458         * modules/userspec: Depend on posixver.
45459         * modules/strftime: Depend on tzset.
45460
45461 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45462
45463         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
45464         rather than tab, after '#' in shell-script copyright notices.
45465         Suggested by Bruno Haible.
45466
45467 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45468
45469         * config/srclist-update: Use three spaces, rather than tab, after '#'
45470         in shell-script copyright notices.  Suggested by Bruno Haible.
45471         Remove unnecessary parenthesization in regular expression.
45472
45473 2003-08-15  Jim Meyering  <jim@meyering.net>
45474
45475         Merge from coreutils.
45476         * lib/xgethostname.c: Include <stdlib.h>.
45477         (xghostname): Don't exit for anything other than memory-related
45478         failure; just return NULL.
45479         * lib/userspec.c: Include "posixver.h".
45480         (parse_user_spec): Accept `.' as a separator only
45481         in pre-POSIX-200112 mode.
45482         * lib/strtoimax.c: Use #elif rather than #else #if.
45483         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
45484         Remove function, now that we can rely on a working tzset function.
45485         [!_LIBC]: Ensure that the required autoconf test has been run.
45486         [!defined _NL_CURRENT && HAVE_STRFTIME]:
45487         Use underlying_strftime for %r.
45488         * lib/sha.c: Merge in some clean-up and optimization changes from
45489         glibc.
45490         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
45491         Ensure that it is a multiple of 64.
45492         Rearrange loop exit tests so as to avoid performing an
45493         additional fread after encountering an error or EOF.
45494         * lib/realloc.c: Update copyright date.
45495
45496 2003-08-15  Jim Meyering  <jim@meyering.net>
45497         and Paul Eggert  <eggert@twinsun.com>
45498
45499         Merge from coreutils.
45500         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
45501         member but strut utmpx does not.  Needed for AIX 4.3.3.
45502         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
45503
45504 2003-08-15  Jim Meyering  <jim@meyering.net>
45505         and Paul Eggert  <eggert@cs.ucla.edu>
45506
45507         Merges from coreutils, etc.
45508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
45509         Require gl_FUNC_TZSET_CLOBBER.
45510         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
45511         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
45512         members.
45513
45514 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45515
45516         Help the merge from coreutils.
45517         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
45518         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
45519         * m4/tzset.m4: Use it too.
45520
45521 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45522
45523         * modules/tzset: New file.
45524
45525 2003-08-14  Jim Meyering  <jim@meyering.net>
45526
45527         Merges from coreutils.
45528         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
45529         variable names, rather than @FNMATCH_H@.
45530         * modules/alloca: Likewise for $(ALLOCA_H).
45531
45532         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
45533         the three copies of the literal target, `fnmatch.h'.
45534         * modules/alloca (alloca.h): Likewise.
45535
45536 2003-08-14  Jim Meyering  <jim@meyering.net>
45537
45538         Merge from coreutils.
45539         * m4/tzset.m4: New file.
45540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
45541         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
45542         otherwise, AIX 5.1 systems would end up using the latter.
45543         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
45544         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
45545         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
45546         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
45547
45548 2003-08-14  Jim Meyering  <jim@meyering.net>
45549
45550         Merge from coreutils.
45551         * lib/obstack.h: Whitespace changes.
45552         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
45553         and xcalloc return values.
45554         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
45555         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
45556         hang on OSF/1 5.1 for DIR on both local and remote file systems.
45557         Reported by (and fix confirmed by) Nelson H. F. Beebe.
45558         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45559         error from mntctl.
45560         Use mntctl's return value to drive the entry-processing loop, since
45561         we can't rely on the value of the vmt_length member in the last
45562         entry.  On some systems doing so could result in exhausting
45563         virtual memory.  Based in part on a patch from Mike Jetzer.
45564
45565 2003-08-14  Jim Meyering  <jim@meyering.net>
45566         and Paul Eggert  <eggert@twinsun.com>
45567
45568         Merges from coreutils, plus other fixes.
45569         * lib/physmem.c: Merge in portability changes from gcc/libiberty
45570         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
45571         for credits and details.  Thanks to Kaveh Ghazi for helping
45572         to keep these files in sync.
45573         (ARRAY_SIZE): Define it.
45574         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
45575         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
45576         (memcasecmp): Don't assume size_t fits in unsigned int.
45577         Remove casts and duplicate code.
45578         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
45579         (memcpy): Remove definition.
45580         Merge in some clean-up and optimization changes from glibc.
45581         [BLOCKSIZE]: Move definition to top of file.
45582         Ensure that it is a multiple of 64.
45583         Rearrange loop exit tests so as to avoid performing an
45584         additional fread after encountering an error or EOF.
45585         * lib/md5.h (md5_uintptr): Define.
45586         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
45587         return to the initial working directory.  Preserve errno
45588         for caller.
45589         * lib/idcache.c: Include "xalloc.h".
45590         (xmalloc, xrealloc): Remove decls.
45591         (getuser): Remove casts no longer required in C89.
45592         * lib/human.c: Include stdio.h, for sprintf.
45593         * lib/group-member.c: Include "xalloc.h".
45594         (xmalloc, xrealloc): Remove decls.
45595         (get_group_info): Remove casts no longer required in C89.
45596         * lib/getusershell.c (readname): Remove casts no longer required in
45597         C89.
45598         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
45599         * lib/getline.c: Whitespace fix, from coreutils.
45600
45601 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45602
45603         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
45604         Check for isascii.
45605
45606         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45607         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45608         Undo previous (whitespace-only) change.
45609
45610 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45611
45612         * lib/exclude.c: Include <ctype.h>
45613         (IN_CTYPE_DOMAIN): New macro.
45614         (is_space): New fn.
45615         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
45616         and empty lines.
45617
45618         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45619         Undo previous (whitespace-only) change.
45620
45621 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45622
45623         * config/srclist-update: Change update back to the old behavior,
45624         leaving whitespace alone.  Use one 'sed' command rather than a
45625         pipeline.
45626         (fixlicense): Now a variable, not a function.
45627         (remove_trailing_blanks): Remove.
45628         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
45629         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45630         Undo previous (whitespace-only) change.
45631
45632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45633
45634         Merge from coreutils.
45635         * modules/euidaccess: Add lib_SOURCES, include for new
45636         file euidaccess.h
45637
45638 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45639
45640         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45641         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45642         Normalize leading white space and remove trailing white space.
45643
45644         Merge from coreutils
45645         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
45646
45647         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
45648         0.12.1.  These files are now being upgraded automatically by
45649         ../config/srclist-update.
45650
45651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45652
45653         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45654         Normalize leading white space and remove trailing white space.
45655         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
45656         notice, as per ../config/srclist-update.
45657
45658         Merge from coreutils.
45659         * lib/euidaccess.h: New file.
45660         * lib/euidaccess.c: Include it.
45661         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
45662         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
45663         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
45664
45665 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45666
45667         * config/srclist-update: Add copyright notice.
45668         (remove_id_lines, remove_trailing_blanks): New constants.
45669         (fixfile): Use them to normalize spacing a bit in copied files.
45670         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45671         Normalize leading white space and remove trailing white space.
45672
45673         * config/texinfo.tex: Sync with texinfo.
45674
45675         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
45676         strtoul.c from libc, to merge coreutils whitespace changes.
45677
45678         * config/srclist.txt: Get the following m4 files from gettext:
45679         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
45680         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
45681         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
45682         wint_t.m4.
45683
45684 2003-08-12  Karl Berry  <karl@gnu.org>
45685
45686         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
45687         been made.
45688
45689 2003-08-11  Paul Eggert  <eggert@twinsun.com>
45690
45691         * modules/gnu-source, m4/gnu-source.m4:
45692         Remove; we're assuming Autoconf 2.54 or later now.
45693         Suggested by Bruno Haible.
45694         * MODULES.html.sh (func_all_modules): Remove gnu-source.
45695
45696 2003-08-11  Bruno Haible  <bruno@clisp.org>
45697
45698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
45699
45700 2003-08-11  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
45703         (vasnprintf): Use it instead of wcslen.
45704
45705 2003-08-11  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
45708         value to ensure that _Bool promotes to int. Use #define for _Bool when
45709         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
45710
45711 2003-08-10  Karl Berry  <karl@gnu.org>
45712
45713         * lib/regex.h: update from libc (whitespace fix).
45714
45715 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45716
45717         Merge some files from coreutils.  These changes were
45718         originally made by Jim Meyering.
45719         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
45720         many older Unixes require this.
45721         * lib/alloca.c (alloca): Remove cast to argument of free;
45722         no longer needed in C89.
45723         * lib/alloca_.h, regex.h: Fix white space to match
45724         what GNU indent does.
45725
45726 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45727
45728         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
45729         apparently Emacs's Unicode mode got confused before my 2003-08-05
45730         checkin.
45731
45732 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45733
45734         * m4/extensions.m4: New file.
45735         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
45736         Require gl_USE_SYSTEM_EXTENSIONS.
45737         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
45738         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
45739
45740 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45741
45742         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
45743         * modules/extensions, modules/gnu-source: New files.
45744         * modules/timespec, modules/unlocked-io: Depend on extensions.
45745
45746 2003-08-07  Paul Eggert  <eggert@twinsun.com>
45747
45748         * modules/restrict: New file.
45749         * MODULES.html.sh (func_all_modules): Add restrict.
45750         * modules/regex: Depend on restrict.
45751
45752 2003-08-07  Paul Eggert  <eggert@twinsun.com>
45753
45754         * m4/restrict.m4: New file.
45755         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
45756
45757 2003-08-07  Bruno Haible  <bruno@clisp.org>
45758
45759         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
45760         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
45761
45762 2003-08-07  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
45765         makes the module 'getndelim2' compatible with the module 'getline'.
45766
45767 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45768
45769         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
45770         byte with "\201" to avoid glitches when editing that source file
45771         with multi-gnome-terminal.
45772
45773 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45774
45775         * lib/bumpalloc.h: Remove.
45776
45777 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45778
45779         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
45780         * modules/bumpalloc: Remove.
45781
45782 2003-08-04  Paul Eggert  <eggert@twinsun.com>
45783
45784         * lib/getloadavg.c: Change copyright notice and spacing to conform to
45785         GNU coding style.
45786
45787         Merge from coreutils.
45788         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
45789         1. From glibc.
45790         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
45791         from Karl Berry, implemented by Jim Meyering.
45792         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
45793         from Dmitry V. Levin.
45794         Remove anachronistic cast of xrealloc.
45795         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
45796         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
45797         type. Otherwise, it wouldn't compile with at least /bin/cc on
45798         ymp-cray-unicos9.0.2.X.
45799         Combine two mostly-identical uses of alloca into one.
45800         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
45801
45802 2003-08-04  Dave Love  <d.love@dl.ac.uk>
45803
45804         [From Emacs.]
45805
45806         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
45807         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
45808         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
45809         obsolete NLIST_NAME_UNION.
45810         [__GNU__]: Undef BSD and FSCALE.
45811         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
45812
45813 2003-08-03  Paul Eggert  <eggert@twinsun.com>
45814
45815         * lib/stdbool_.h (_Bool): Make it signed char, instead of
45816         an enum type, so that it's guaranteed to promote to int.  See:
45817         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
45818
45819 2003-08-03  Karl Berry  <karl@gnu.org>
45820
45821         * config/depcomp: update from automake.
45822
45823 2003-07-31  Paul Eggert  <eggert@twinsun.com>
45824
45825         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
45826         (strerror): Don't assume that a printable int fits in 14 bytes.
45827
45828 2003-07-31  Bruno Haible  <bruno@clisp.org>
45829
45830         * modules/getpass-gnu: New file.
45831         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
45832
45833 2003-07-31  Bruno Haible  <bruno@clisp.org>
45834
45835         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
45836
45837 2003-07-24  Karl Berry  <karl@gnu.org>
45838
45839         * config/missing: update from automake.
45840
45841 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
45842             Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
45845         * lib/getline.c (getline, getdelim): Likewise.
45846         Remove _GNU_SOURCE define; now it's defined in config.h through
45847         m4/getline.m4.
45848
45849 2003-07-23  Karl Berry  <karl@gnu.org>
45850
45851         * config/config.sub: update from prep.
45852
45853 2003-07-22  Paul Eggert  <eggert@twinsun.com>
45854
45855         * modules/xalloc (Depends-on): Add exitfail.
45856         * modules/xmemcoll: Likewise.
45857
45858 2003-07-22  Paul Eggert  <eggert@twinsun.com>
45859
45860         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
45861         over-parenthesization in macros.
45862
45863         Sync with coreutils.
45864
45865         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
45866         required by C99.
45867
45868         Use `exit_failure' for xalloc and xmemcoll instead of their own
45869         private exit-failure variables.
45870         * lib/xalloc.h (xalloc_exit_failure): Remove.
45871         * lib/xmalloc.c: Likewise.  Include exitfail.h.
45872         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
45873         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
45874         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
45875         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
45876
45877 2003-07-20  Jim Meyering  <jim@meyering.net>
45878
45879         * modules/closeout (Depends-on): Add exitfail.
45880         Suggestion from Bruno Haible.
45881
45882 2003-07-19  Karl Berry  <karl@gnu.org>
45883
45884         * config/config.sub: update from prep.
45885
45886 2003-07-18  Paul Eggert  <eggert@twinsun.com>
45887
45888         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
45889         Remove.
45890         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
45891         to test that it can stand by itself.  Include "exitfail.h".
45892         Clients should set exit_failure instead.
45893         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
45894
45895 2003-07-18  Bruno Haible  <bruno@clisp.org>
45896
45897         * modules/getndelim2: New file.
45898         * modules/getline: Share files with module getndelim2.
45899         * modules/getnline: Depend on getndelim2 instead of sharing files with
45900         it. Add getnline.c to lib_SOURCES.
45901         * MODULES.html.sh (func_all_modules): Add getndelim2.
45902
45903 2003-07-18  Bruno Haible  <bruno@clisp.org>
45904
45905         * m4/getndelim2.m4: New file.
45906         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
45907         invoke gl_PREREQ_GETNDELIM2.
45908         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
45909         gl_PREREQ_GETNDELIM2.
45910         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
45911         gl_GETNDELIM2.
45912
45913 2003-07-18  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/getndelim2.h: New file.
45916         * lib/getndelim2.c: Make into a module of its own. Include config.h,
45917         getndelim2.h.
45918         (getndelim2): Make non-static. Change return type to ssize_t.
45919         * lib/getline.h: Change argument names.
45920         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
45921         * lib/getnline.c: Include getndelim2.h.
45922
45923 2003-07-18  Andreas Schwab  <schwab@suse.de>
45924
45925         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
45926
45927 2003-07-17  Karl Berry  <karl@gnu.org>
45928
45929         * config/config.sub: update from prep.
45930
45931 2003-07-17  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/getnline: New file.
45934         * modules/getline: Add lib/getndelim2.c to source file list.
45935         * MODULES.html.sh (func_all_modules): Add getnline.
45936
45937 2003-07-17  Bruno Haible  <bruno@clisp.org>
45938
45939         * m4/getnline.m4: New file.
45940
45941 2003-07-17  Bruno Haible  <bruno@clisp.org>
45942
45943         * m4/Makefile.am.in: Remove file.
45944         * m4/Makefile.am: Remove file.
45945         * m4/Makefile.in: Remove file.
45946
45947 2003-07-17  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/getnline.h: New file.
45950         * lib/getnline.c: New file.
45951         * lib/getndelim2.c: New file, extracted from getline.c.
45952         (getndelim2): Renamed from getdelim2, with added nmax argument.
45953         * lib/getline.c: Include getndelim2.c.
45954         (getdelim2): Moved out to getndelim2.c.
45955         (getline, getdelim): Update.
45956
45957 2003-07-17  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/Makefile.am: Remove file.
45960         * lib/Makefile.in: Remove file.
45961
45962 2003-07-17  Bruno Haible  <bruno@clisp.org>
45963
45964         * configure.in: Remove file.
45965         * Makefile.in: Remove file.
45966
45967 2003-07-17  Bruno Haible  <bruno@clisp.org>
45968
45969         * MODULES.html.sh: Put the </BODY> right before </HTML>.
45970
45971 2003-07-16  Karl Berry  <karl@gnu.org>
45972
45973         * config/srclist-update: was running fixlicense twice, which caused
45974                 texinfo.tex to be nullified for some reason.  Simplify,
45975                 $gplsrc is no longer needed as far as I can see?
45976
45977 2003-07-16  Jim Meyering  <jim@meyering.net>
45978
45979         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
45980
45981 2003-07-15  Paul Eggert  <eggert@twinsun.com>
45982
45983         * config/srclist.txt: Get the following files from gettext-runtime/intl
45984         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
45985         ref-del.sin.  From Bruno Haible.
45986         * config/srclist-update (fixfile): Change grep pattern again, since the
45987         previous fix didn't work (there was another trailing $).  Use
45988         '[$]' to escape the $s.
45989
45990 2003-07-15  Karl Berry  <karl@gnu.org>
45991
45992         * lib/vasnprintf.c: update from gettext.
45993
45994 2003-07-15  Karl Berry  <karl@gnu.org>
45995
45996         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
45997         gets expanded when surrounded by '$'.
45998
45999 2003-07-15  Jim Meyering  <jim@meyering.net>
46000
46001         * modules/save-cwd: Don't depend on error.  From Derek Price.
46002
46003 2003-07-15  Jim Meyering  <jim@meyering.net>
46004
46005         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
46006
46007 2003-07-14  Simon Josefsson  <jas@extundo.com>
46008
46009         * modules/mempcpy: New file.
46010         * MODULES.html.sh (func_all_modules): Add mempcpy.
46011
46012 2003-07-14  Simon Josefsson  <jas@extundo.com>
46013
46014         * m4/mempcpy.m4: New file.
46015
46016 2003-07-14  Simon Josefsson  <jas@extundo.com>
46017
46018         * lib/mempcpy.h: New file.
46019         * lib/mempcpy.c: New file.
46020
46021 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46022
46023         * modules/getdate, modules/posixtm: Depend on mktime.
46024
46025 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46026
46027         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
46028         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
46029         unicodeio.c, unicodeio.h, unlocked-io.h:
46030         Switch from LGPL to GPL.
46031
46032 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46033
46034         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
46035         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
46036         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
46037         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
46038         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
46039         updated automatically by ../config/srclist-update.  This changes
46040         their license from LPGL to GPL.
46041
46042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46043
46044         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
46045         assumed to refer to the root of the most recent stable gettext version.
46046         * config/srclistvars.sh: Add defaults for eggert.
46047         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
46048         Match "This program" as well as "The program".  This is needed
46049         for gettext.
46050
46051 2003-07-14  Jim Meyering  <jim@meyering.net>
46052
46053         Don't emit diagnostics.  Let callers do that.
46054         * lib/save-cwd.c: Don't include "error.h".
46055         (save_cwd): Don't call error.  Ensure that errno is valid
46056         when returning nonzero.
46057
46058         * lib/save-cwd.h (restore_cwd): Update prototype.
46059         * lib/save-cwd.c (restore_cwd): Remove two parameters.
46060         Simplify.  Don't call error upon failure.  Let callers do that.
46061         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
46062         when auditing is enabled.  But don't bother updating the #if.
46063
46064 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
46065
46066         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
46067         it breaks C++ compilation.
46068         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
46069
46070 2003-07-10  Simon Josefsson  <jas@extundo.com>
46071
46072         * modules/strchrnul (Makefile.am): Add strchrnul.h.
46073
46074 2003-07-10  Jim Meyering  <jim@meyering.net>
46075
46076         * m4/clock_time.m4: Remove trailing blank.
46077         * m4/intmax_t.m4: Likewise.
46078
46079 2003-07-10  Jim Meyering  <jim@meyering.net>
46080
46081         * lib/vasnprintf.c: Remove trailing blanks.
46082         Make cpp indentation consistent.
46083
46084 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46085
46086         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
46087         posixver.c, strftime.c, strnlen.c, strverscmp.c:
46088         Switch from LGPL to GPL.
46089
46090 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46091
46092         * config/srclist.txt: Sort sublists.  Add
46093         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
46094         that differ from gnulib for one reason or another; we'd like this list
46095         to be smaller but for now let's document what we have.
46096
46097 2003-07-08  Paul Eggert  <eggert@twinsun.com>
46098
46099         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
46100         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
46101         and sweeter "eval x=$x".
46102         * config/srclist.txt: Get lib/argp* from glibc.
46103
46104 2003-07-07  Paul Eggert  <eggert@twinsun.com>
46105
46106         * lib/mktime.c: Fix some boundary cases and remove need for floating
46107         point.
46108
46109         Issue a compile-time diagnostic if time_t is floating point, or if
46110         two's complement arithmetic is not in effect, or if arithmetic
46111         right shift does not propagate the sign.  These assumptions were
46112         all in the original code but they weren't checked.
46113
46114         (TIME_T_MIDPOINT, verify): New macros.
46115         (__isleap): Remove; it has integer overflow problems.
46116         (leapyear): New function, without those problems.
46117         (ydhms_tm_diff): Remove; splitting into two parts.
46118         (ydhms_diff): New function, containing the arithmetic part of
46119         the old ydhms_tm_diff function.  Issue a compile-time
46120         diagnostic if we are not using C99 integer division.
46121         Avoid casts when possible.
46122         (guess_time_tm): New function, containing the checking part of
46123         the old ydhms_tm_diff function.  Return the new value, rather than
46124         the difference between it and the old.  Accept a new argument T
46125         so that *T specifies the old value.  Check for overflow in the result.
46126
46127         (__mktime_internal): Use a time_t offset, not a long int offset.
46128         This undoes the 2003-06-04 change, which is no longer needed now
46129         that we have better overflow checking.
46130         (localtime_offset): Likewise.
46131
46132         (__mktime_internal): Avoid harmful overflow on hosts where time_t
46133         and long are 64-bit but int is only 32-bit.
46134         (ydhms_diff): Use long int to store year1 and yday1.
46135         Issue a compile-time diagnostic if long int is not wide enough.
46136
46137         (__mktime_internal): Use long int to store adjusted year and yday.
46138         Use plain C rather than preprocessor commands, if that doesn't
46139         affect efficiency.
46140         Check for overflow (and try to repair) after each probe
46141         rather than checking only at the very end.  This avoids some bugs
46142         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
46143         does not equal GMT offset at maximum time).
46144         Use integer to check for overflow rather than floating point; this
46145         is more portable to non-IEEE hosts, and is a tad faster.
46146         When we detect that we are oscillating between two values,
46147         don't check whether tm_isdst has the requested value, since
46148         we already know the answer.  When tm_isdst has the wrong value,
46149         use a different heuristic to find the right one, based on the
46150         extreme values actually observed in practice in tz2003a,
46151         rather than the (overly optimistic) "previous 3 calendar quarters".
46152
46153         (not_equal_tm, print_tm, check_result): Use "const T" rather than
46154         "T const" to accommodate glibc style.
46155         (check_result): Use less-confusing report format.  "long" -> "long int.
46156         (main): Likewise.
46157         Don't loop if the iteration overflows time_t.
46158         Allow a negative step in the iteration.
46159
46160 2003-07-06  Karl Berry  <karl@gnu.org>
46161
46162         * config/depcomp: update from automake.
46163         * config/config.sub: update from prep.
46164
46165 2003-07-03  Karl Berry  <karl@gnu.org>
46166
46167         * config/config.guess: update from prep.
46168
46169 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46170
46171         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
46172         xreadlink.c now includes it unconditionally.
46173
46174 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46175
46176         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
46177         having it depend on HAVE_SYS_TYPES_H.
46178
46179 2003-07-01  Bruno Haible  <bruno@clisp.org>
46180
46181         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
46182         <sys/types.h> should be sufficient.
46183         Reported by Paul Eggert.
46184
46185 2003-06-26  Karl Berry  <karl@gnu.org>
46186
46187         * config/depcomp: update from automake.
46188
46189 2003-06-26  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/human: Depend on module stdbool.
46192
46193 2003-06-25  Bruno Haible  <bruno@clisp.org>
46194
46195         * modules/readlink: New file.
46196         * modules/xreadlink: Depend on it.
46197         * MODULES.html.sh (func_all_modules): Add readlink.
46198
46199 2003-06-25  Bruno Haible  <bruno@clisp.org>
46200
46201         * m4/readlink.m4: New file.
46202
46203 2003-06-25  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/readlink.c: New file.
46206
46207 2003-06-22  Karl Berry  <karl@gnu.org>
46208
46209         * config/srclist.txt: update mkinstalldirs from automake.
46210         * config/mkinstalldirs: update.
46211
46212 2003-06-22  Bruno Haible  <bruno@clisp.org>
46213
46214         Portability to mingw32.
46215         * m4/ssize_t.m4: New file, from GNU gettext.
46216         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
46217         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
46218
46219 2003-06-22  Bruno Haible  <bruno@clisp.org>
46220
46221         * modules/safe-read: Add m4/ssize_t.m4.
46222         * modules/xreadlink: Add m4/ssize_t.m4.
46223
46224 2003-06-20  Bruno Haible  <bruno@clisp.org>
46225
46226         Assume C89, so PARAMS isn't needed.
46227         * lib/unicodeio.h (PARAMS): Remove.
46228         * lib/unicodeio.c: Don't use PARAMS.
46229
46230 2003-06-18  Karl Berry  <karl@gnu.org>
46231
46232         * config/config.{guess,sub}: update from prep.
46233
46234 2003-06-18  Jim Meyering  <jim@meyering.net>
46235
46236         Merge changes from coreutils.
46237         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
46238         Remove explicit declarations of xmalloc and realloc.
46239         Include xalloc.h.
46240         (read_utmp): Remove anachronistic cast of xmalloc.
46241
46242 2003-06-17  Paul Eggert  <eggert@twinsun.com>
46243
46244         Assume C89, so PARAMS isn't needed.
46245         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
46246         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
46247         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
46248         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
46249         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
46250         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
46251         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
46252         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
46253         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
46254         lib/xstrtod.h, lib/xstrtol.h: Likewise.
46255         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
46256         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
46257         no longer needed. Anyway, config.h should always be included before any
46258         other file.
46259
46260 2003-06-11  Simon Josefsson  <jas@extundo.com>
46261
46262         * modules/sysexits: New file.
46263         * MODULES.html.sh (func_all_modules): Add sysexits.
46264
46265 2003-06-11  Simon Josefsson  <jas@extundo.com>
46266
46267         * lib/sysexit_.h: New file.
46268
46269 2003-06-11  Derek Price  <derek@ximbiot.com>
46270
46271         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
46272         necessary.
46273
46274 2003-06-11  Bruno Haible  <bruno@clisp.org>
46275
46276         * m4/sysexits.m4: New file.
46277
46278 2003-06-10  Simon Josefsson  <jas@extundo.com>
46279
46280         * lib/argp.h: New file, from glibc.
46281         * lib/argp-ba.c: New file, from glibc.
46282         * lib/argp-eexst.c: New file, from glibc.
46283         * lib/argp-fmtstream.c: New file, from glibc.
46284         * lib/argp-fmtstream.h: New file, from glibc.
46285         * lib/argp-fs-xinl.c: New file, from glibc.
46286         * lib/argp-help.c: New file, from glibc.
46287         * lib/argp-namefrob.h: New file, from glibc.
46288         * lib/argp-parse.c: New file, from glibc.
46289         * lib/argp-pv.c: New file, from glibc.
46290         * lib/argp-pvh.c: New file, from glibc.
46291         * lib/argp-xinl.c: New file, from glibc.
46292
46293 2003-06-10  Simon Josefsson  <jas@extundo.com>
46294
46295         * modules/strchrnul: New file.
46296
46297 2003-06-10  Simon Josefsson  <jas@extundo.com>
46298
46299         * modules/argp: New file.
46300
46301 2003-06-10  Simon Josefsson  <jas@extundo.com>
46302
46303         * m4/strchrnul.m4: New file.
46304
46305 2003-06-10  Simon Josefsson  <jas@extundo.com>
46306
46307         * lib/strchrnul.h: New file.
46308         * lib/strchrnul.c: New file.
46309
46310 2003-06-10  Bruno Haible  <bruno@clisp.org>
46311
46312         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
46313
46314 2003-06-07  Karl Berry  <karl@gnu.org>
46315
46316         * config/config.{guess,sub}: update from prep.
46317
46318 2003-06-07  Jim Meyering  <jim@meyering.net>
46319
46320         * modules/strtod: Use $(...) notation, not @...@ for
46321         AC_REPLACE'd variables.
46322         * modules/localcharset: Likewise.
46323
46324 2003-06-07  Jim Meyering  <jim@meyering.net>
46325
46326         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
46327         in place of my name in the copyright comment.
46328         Remove definition and uses of __P.
46329
46330         From coreutils.
46331         * lib/stat.c: Don't declare xmalloc explicitly.
46332         Instead, include "xalloc.h".
46333         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
46334         xrealloc, and xcalloc return values.
46335         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
46336         Improve comment.
46337         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
46338
46339 2003-06-07  Bruno Haible  <bruno@clisp.org>
46340
46341         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
46342         avoid AC_CONFIG_LINKS.
46343         * modules/fnmatch (Makefile.am): Use explicit creation rule for
46344         fnmatch.h, to avoid AC_CONFIG_LINKS.
46345         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
46346
46347 2003-06-07  Bruno Haible  <bruno@clisp.org>
46348
46349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
46350         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
46351         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46352         directory.
46353         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
46354         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46355         directory.
46356
46357 2003-06-06  Jim Meyering  <jim@meyering.net>
46358
46359         Merge from coreutils.
46360         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
46361         Consolidate declarations and initializations of *_base* locals.
46362
46363         Merge from coreutils.
46364         This avoids a core dump on systems without GNU putenv,
46365         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
46366         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
46367         (unsetenv): New static function, from GNU libc.
46368         (rpl_putenv): Use it.
46369
46370         * lib/modechange.c: Remove trailing blanks.
46371
46372         Merge from coreutils.
46373         * lib/fsusage.c: Remove declaration of statfs.
46374         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
46375
46376         * lib/posixtm.c: Include <stdbool.h> unconditionally.
46377
46378 2003-06-06  Jim Meyering  <jim@meyering.net>
46379
46380         * lib/stdbool_.h: Renamed from stdbool.h.in.
46381
46382 2003-06-06  Jim Meyering  <jim@meyering.net>
46383             Bruno Haible  <bruno@clisp.org>
46384
46385         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
46386         Adjust Makefile.am snippet not to redirect directly to target.
46387         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
46388
46389 2003-06-05  Paul Eggert  <eggert@twinsun.com>
46390
46391         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
46392         mismatch, look in future quarters as well as past.  This fixes a
46393         bug when processing fall-backwards gaps immediately after a long
46394         period of daylight-saving time.
46395
46396         * lib/mktime.c: Assume freestanding C89 or better.
46397         (HAVE_LIMITS_H): Remove.  Assume it's 1.
46398         (__P): Remove; not used.
46399         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
46400         (mktime, not_equal_tm, print_tm, check_result,
46401         main): Use prototypes.  Use const * where appropriate.
46402         (main): Fix typo in testing code that uncovered by above changes.
46403         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
46404
46405 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46406
46407         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
46408         locale.h, localeconv.  This merges changes from coreutils.
46409
46410         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
46411         It can be removed after the next Autoconf is released.
46412         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
46413         needed.
46414
46415 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46416
46417         * lib/mktime.c: Fix Debian bug 177940
46418         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
46419         (localtime_offset): Now long int, not time_t, because we want it
46420         to be guaranteed to be signed.  All uses changed.
46421         (__mktime_internal): If overflow would occur when adding offset,
46422         don't add it.
46423
46424         Merge 'human' changes from coreutils.  Rewrite to support
46425         locale-specific notations like thousands separators.
46426         * lib/human.c: Simplify authorship notice.
46427         Include human.h immediately after config.h.
46428         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
46429         <limits.h>: Do not include, since human.h does.
46430         (SIZE_MAX, UINTMAX_MAX): New macros.
46431         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
46432         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
46433         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
46434         (power_letter): Renamed from suffixes.
46435         (generate_suffix_backwards): Remove.
46436         (adjust_value): Now takes int style (because of human.h changes)
46437         and long double value (for greater precision on some platforms).
46438         (group_number): New function.
46439         (human_readable): Use it.  Use integer options, not enum.
46440         Put the options before the sizes in the arg list.
46441         Support all the new options.
46442         The old human_readable function has been removed;
46443         use inttostr.h instead.
46444         (human_readable, default_block_size, humblock):
46445         Use uintmax_t, not int, for block sizes.
46446         (human_readable_inexact, block_size_types): Remove.
46447         (block_size_opts): New constant.
46448         (human_options): Renamed from human_block_size, with new signature
46449         that allows block sizes up to UINTMAX_MAX.  All callers changed.
46450         * lib/human.h: Add copyright and authorship notice.
46451         Include <limits.h> and <stdbool.h> unconditionally.
46452         (PARAMS): Remove.  All uses removed.
46453         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
46454         (enum human_inexact_style): Remove tag; now a nameless enum.
46455         (human_floor, human_ceiling, human_round_to_even): Now have
46456         values 2, 0, 1 rather than -1, 1, 0.
46457         (human_group_digits, human_suppress_point_zero, human_autoscale,
46458         human_base_1024, human_SI, human_B): New constants.
46459         (human_readable_inexact, human_block_size): Remove.
46460         (human_readable): Size args are now uintmax_t, not int.
46461         (human_options): New decl.
46462
46463         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
46464         unnecessary now that we assume C89 or better.  This change
46465         imported from coreutils.
46466
46467         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46468         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
46469         in the 2003-05-30 sync from glibc.
46470
46471         .h files should stand alone, but we shouldn't include <sys/types.h>
46472         if we can get away with just <stddef.h>.
46473
46474         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
46475         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
46476         rather than <sys/types.h>, as we merely need size_t.
46477         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
46478         to get size_t.
46479         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
46480         Include <stdio.h>, to get FILE.
46481         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
46482         memcasecmp.h has included <stddef.h> and all we need is size_t.
46483         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
46484         our interface, instead of including <sys/types.h>
46485
46486 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46487
46488         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
46489         now, as glibc mktime is buggy on non-glibc systems.
46490
46491 2003-06-03  Karl Berry  <karl@gnu.org>
46492
46493         * config/config.sub: update from prep.
46494
46495 2003-06-02  Paul Eggert  <eggert@twinsun.com>
46496
46497         [from coreutils]
46498         Fix some minor time-related bugs with POSIX time arguments.
46499         Some valid time stamps were being rejected (notably -1, and
46500         time stamps before 1900 on 64-bit hosts).  And some invalid
46501         time stamps were being accepted, e.g. September 31.
46502
46503         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
46504         that we can return (time_t) -1 successfully.
46505         * lib/posixtm.c: Likewise.
46506         [HAVE_STDBOOL_H]: Include <stdbool.h>.
46507         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
46508         (t): Remove static var.
46509         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
46510         of static var.  All uses changed.
46511         (year): Do not reject years before 1900; they can occur with
46512         64-bit time_t.
46513         (posix_time_parse): Do not check for out-of-range components;
46514         that is now the caller's responsibility, since our checks were
46515         only approximations.
46516         (posixtime): Use mktime to check for out-of-range components,
46517         since it knows them exactly.
46518         If mktime returns (time_t) -1, check whether an error actually occurred
46519         by invoking localtime on -1.
46520         (main) [TEST_POSIXTIME]: Check for input data errors, and report
46521         posixtime failures better.
46522         Improve the test data (in comments only).
46523
46524 2003-06-02  Karl Berry  <karl@gnu.org>
46525
46526         * config/mkinstalldirs (version): new variable.
46527         (--version): new option.
46528         (usage): improve message.
46529
46530 2003-05-30  Karl Berry  <karl@gnu.org>
46531
46532         * lib/mktime.c: update from libc.
46533
46534 2003-05-30  Bruno Haible  <bruno@clisp.org>
46535
46536         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
46537         * config/config.rpath: Upgrade to gettext-0.12.1.
46538
46539 2003-05-30  Bruno Haible  <bruno@clisp.org>
46540
46541         * m4/gettext.m4: Upgrade to gettext-0.12.1.
46542         * m4/nls.m4: New file, from gettext-0.12.1.
46543         * m4/po.m4: New file, from gettext-0.12.1.
46544         * m4/progtest.m4: Upgrade to gettext-0.12.1.
46545
46546 2003-05-30  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
46549         * lib/localcharset.h: Likewise.
46550         * lib/localcharset.c: Likewise.
46551
46552 2003-05-29  Karl Berry  <karl@gnu.org>
46553
46554         * config/config.rpath: update from gettext.
46555
46556 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46557
46558         Assume the headers required for C89 freestanding compilers.
46559         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
46560         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
46561         * m4/human.m4 (gl_HUMAN): Likewise.
46562         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
46563         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
46564         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46565         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
46566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46567         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
46568
46569 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46570
46571         Assume the headers required for C89 freestanding compilers.
46572         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
46573         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
46574         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
46575         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
46576         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
46577         define, since <limits.h> is guaranteed to do that.
46578         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
46579         * lib/exclude.c: Include <stdbool.h> unconditionally.
46580         * lib/tempname.c: Include <stddef.h> unconditionally.
46581         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
46582         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
46583         <stddef.h> does that.
46584         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
46585         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
46586         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
46587         needed.
46588         * lib/xstrtol.c: Likewise.
46589         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
46590         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
46591
46592         * lib/addext.c (addext): Use assignment rather than cast, to avoid
46593         warnings on some platforms.
46594
46595         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46596         arbitrarily.
46597
46598 2003-05-26  Jim Meyering  <jim@meyering.net>
46599
46600         Merge in a change from coreutils:
46601         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
46602         that is guaranteed to be `no'.  Use `no_such_member' to indicate
46603         that condition, rather than `-1' which is slightly misleading.
46604         Change the name of the cache variable to have the gl_ prefix.
46605         Prompted by a patch from Richard Dawe for DJGPP.
46606
46607 2003-05-24  Karl Berry  <karl@gnu.org>
46608
46609         * config/config.guess: update from prep.
46610
46611 2003-05-22  Karl Berry  <karl@gnu.org>
46612
46613         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
46614
46615 2003-05-20  Karl Berry  <karl@gnu.org>
46616
46617         * config/config.guess: update from prep.
46618
46619 2003-05-18  Karl Berry  <karl@gnu.org>
46620
46621         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
46622         might actually be set by the user.
46623
46624         * config/depcomp, install-sh, mdate-sh: update from automake.
46625
46626 2003-05-17  Bruno Haible  <bruno@clisp.org>
46627
46628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
46629         invalid expansion for AC_EGREP_CPP.
46630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
46631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46632         Suggested by Akim Demaille <akim@epita.fr> in
46633         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
46634
46635 2003-05-12  Jim Meyering  <jim@meyering.net>
46636
46637         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
46638         the space-padded-by-default conversion specifiers, %e, %k, %l.
46639
46640 2003-05-12  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
46643         the string is longer than 4 KB.
46644
46645 2003-05-11  Karl Berry  <karl@gnu.org>
46646
46647         * config/config.{guess,sub}: update from prep.
46648
46649 2003-05-09  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/error: Add m4/strerror_r.m4 to file list.
46652
46653 2003-05-03  Bruno Haible  <bruno@clisp.org>
46654
46655         Upgrade to Unicode-4.0.
46656         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
46657         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
46658         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
46659         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
46660         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
46661         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
46662         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
46663         Change width of U+E0100..U+E01EF from 1 to 0.
46664
46665 2003-04-25  Jim Meyering  <jim@meyering.net>
46666
46667         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
46668         of type size_t, not int.
46669
46670 2003-04-25  Bruno Haible  <bruno@clisp.org>
46671
46672         * lib/copy-file.c: Include <stddef.h>, for size_t.
46673
46674 2003-04-21  Paul Eggert  <eggert@twinsun.com>
46675
46676         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
46677         code which expansion is under static control.  Patch imported from
46678         Akim Demaille's patch to Bison; see
46679         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
46680
46681 2003-04-14  Bruno Haible  <bruno@clisp.org>
46682
46683         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
46684
46685 2003-04-11  Jim Meyering  <jim@meyering.net>
46686
46687         Merge changes from Coreutils.
46688
46689         2003-03-22  Jim Meyering  <jim@meyering.net>
46690
46691         * lib/strftime.c (widen): Cast alloca return value to proper type.
46692
46693         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
46694
46695         From GNU libc.
46696         * lib/strftime.c (my_strftime): Handle very large width
46697         specifications for numeric values correctly.  Improve checks for
46698         overflow.
46699
46700         2003-01-19  Jim Meyering  <jim@meyering.net>
46701
46702         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
46703         definitions.
46704         (nl_get_alt_digit) [! defined my_strftime]: Define.
46705         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
46706         _nl_get_alt_digit and _nl_get_walt_digit.
46707
46708         * lib/strftime.c (my_strftime): Merge in locale-related changes from
46709         libc. These changes have no effect outside of _LIBC.
46710
46711 2003-04-10  Bruno Haible  <bruno@clisp.org>
46712
46713         * modules/findprog: New file.
46714         * MODULES.html.sh (func_all_modules): Add it.
46715
46716 2003-04-10  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/findprog.m4: New file.
46719         * m4/eaccess.m4: New file.
46720
46721 2003-04-10  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/findprog.h: New file, from GNU gettext.
46724         * lib/findprog.c: New file, from GNU gettext.
46725
46726 2003-04-05  Jim Meyering  <jim@meyering.net>
46727
46728         Merge changes from Coreutils.
46729
46730         * lib/exclude.h (PARAMS): Remove definition and uses.
46731         * lib/exclude.c: Remove uses of `PARAMS'.
46732
46733         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
46734         Add test-cases for DOS filenames. Declare program_name.
46735         (main): Set up program_name.  Patch by Rich Dawe.
46736
46737         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46738         error from mntctl.
46739         Use mntctl's return value to drive the entry-processing loop, since
46740         we can't rely on the value of the vmt_length member in the last
46741         entry.  On some systems doing so could result in exhausting
46742         virtual memory.  Based in part on a patch from Mike Jetzer.
46743
46744 2003-04-04  Bruno Haible  <bruno@clisp.org>
46745
46746         * modules/linebreak: New file.
46747         * MODULES.html.sh (func_all_modules): Add it.
46748
46749 2003-04-04  Bruno Haible  <bruno@clisp.org>
46750
46751         * m4/linebreak.m4: New file.
46752
46753 2003-04-04  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/linebreak.h: New file, from GNU gettext.
46756         * lib/linebreak.c: New file, from GNU gettext with slight
46757         modifications.
46758         * lib/lbrkprop.h: New file, from GNU gettext.
46759
46760 2003-04-03  Bruno Haible  <bruno@clisp.org>
46761
46762         * modules/utf8-ucs4: New file.
46763         * modules/utf16-ucs4: New file.
46764         * modules/ucs4-utf8: New file.
46765         * modules/ucs4-utf16: New file.
46766         * MODULES.html.sh (func_all_modules): Add them.
46767
46768 2003-04-03  Bruno Haible  <bruno@clisp.org>
46769
46770         * m4/utf-ucs4.m4: New file.
46771         * m4/ucs4-utf.m4: New file.
46772
46773 2003-04-03  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/utf8-ucs4.h: New file, from GNU gettext.
46776         * lib/utf16-ucs4.h: New file, from GNU gettext.
46777         * lib/ucs4-utf8.h: New file, from GNU gettext.
46778         * lib/ucs4-utf16.h: New file, from GNU gettext.
46779
46780 2003-04-02  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/binary-io: New file.
46783         * MODULES.html.sh (func_all_modules): Add it.
46784
46785 2003-04-02  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/binary-io.h: New file, from GNU gettext.
46788
46789 2003-04-01  Bruno Haible  <bruno@clisp.org>
46790
46791         * modules/pathname: New file.
46792         * MODULES.html.sh (func_all_modules): Add it.
46793
46794 2003-04-01  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/pathname.h: New file, from GNU gettext.
46797         * lib/concatpath.c: New file, from GNU gettext.
46798
46799 2003-03-30  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
46802
46803 2003-03-30  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
46806         function chown() doesn't exist.
46807
46808 2003-03-28  Bruno Haible  <bruno@clisp.org>
46809
46810         * modules/copy-file: New file.
46811         * MODULES.html.sh (func_all_modules): Add it.
46812
46813 2003-03-28  Bruno Haible  <bruno@clisp.org>
46814
46815         * m4/copy-file.m4: New file.
46816
46817 2003-03-28  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/copy-file.h: New file, from GNU gettext.
46820         * lib/copy-file.c: New file, from GNU gettext.
46821
46822 2003-03-18  Jim Meyering  <jim@meyering.net>
46823
46824         * lib/quote.c (quote_n): Fix typo in comment.
46825
46826 2003-03-18  Bruno Haible  <bruno@clisp.org>
46827
46828         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
46829         checking.
46830         * m4/onceonly_2_57.m4: Likewise.
46831
46832 2003-03-17  Bruno Haible  <bruno@clisp.org>
46833
46834         * m4/onceonly.m4: Require autoconf 2.54 or newer.
46835         (m4_quote): Remove macro.
46836         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
46837
46838 2003-03-14  Jim Meyering  <jim@meyering.net>
46839
46840         Merge changes from Coreutils.
46841         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
46842         to be const, in order to avoid warnings.
46843         (obstack_room): Likewise.
46844         (obstack_empty_p): Likewise.
46845
46846 2003-03-14  Bruno Haible  <bruno@clisp.org>
46847
46848         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
46849         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
46850
46851 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46852
46853         Merge changes from Bison.
46854         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
46855         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
46856         when compiling Bison 1.875's `bitset bset = obstack_alloc
46857         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
46858         * lib/hash.c: Include <stdbool.h> unconditionally.
46859
46860 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46861
46862         * m4/onceonly.m4 (m4_quote): New macro.
46863         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
46864         Quote AC_FOREACH variable-expansions properly.
46865
46866 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46867
46868         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
46869
46870 2003-03-09  Paul Eggert  <eggert@twinsun.com>
46871
46872         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
46873         Reported by Bruce Becker; see:
46874         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
46875
46876 2003-03-03  Paul Eggert  <eggert@twinsun.com>
46877             Bruno Haible  <bruno@clisp.org>
46878
46879         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
46880         Reported by John Hughes, see
46881         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
46882
46883 2003-02-20  Bruno Haible  <bruno@clisp.org>
46884
46885         * MODULES.html.sh (func_all_modules): Add poll.
46886
46887 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46888
46889         * modules/poll: New file.
46890
46891 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46892
46893         * lib/poll_.h: New file.
46894         * lib/poll.c: New file.
46895
46896 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46897
46898         * m4/poll.m4: New file.
46899
46900 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46901
46902         * modules/mathl: New file.
46903
46904 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46905
46906         * lib/mathl.h: New file.
46907         * lib/acosl.c: New file.
46908         * lib/asinl.c: New file.
46909         * lib/atanl.c: New file.
46910         * lib/ceill.c: New file.
46911         * lib/cosl.c: New file.
46912         * lib/expl.c: New file.
46913         * lib/floorl.c: New file.
46914         * lib/frexpl.c: New file.
46915         * lib/ldexpl.c: New file.
46916         * lib/logl.c: New file.
46917         * lib/sincosl.c: New file.
46918         * lib/sinl.c: New file.
46919         * lib/sqrtl.c: New file.
46920         * lib/tanl.c: New file.
46921         * lib/trigl.c: New file.
46922         * lib/trigl.h: New file.
46923
46924 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46925
46926         * m4/mathl.m4: New file.
46927
46928 2003-02-18  Bruno Haible  <bruno@clisp.org>
46929
46930         * MODULES.html.sh (func_all_modules): Add mathl.
46931
46932 2003-02-17  Bruno Haible  <bruno@clisp.org>
46933
46934         * modules/mkdtemp: New module.
46935         * MODULES.html.sh (func_all_modules): Add it.
46936
46937 2003-02-17  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
46940
46941 2003-02-17  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/mkdtemp.h: New file, from GNU gettext.
46944         * lib/mkdtemp.c: New file, from GNU gettext.
46945
46946 2003-02-02  Jim Meyering  <jim@meyering.net>
46947
46948         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
46949         e.g. glibc-2.2.93.
46950
46951 2003-01-31  Bruno Haible  <bruno@clisp.org>
46952
46953         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
46954         'rpl_rename'.
46955         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
46956         'rpl_strnlen'.
46957         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
46958         'rpl_strtod'.
46959         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
46960         'rpl_utime'.
46961
46962 2003-01-31  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/rename.c: #undef rename before defining rpl_rename.
46965         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
46966
46967 2003-01-30  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/vasnprintf, modules/vasprintf: New modules.
46970         * MODULES.html.sh (func_all_modules): Add them.
46971
46972 2003-01-30  Bruno Haible  <bruno@clisp.org>
46973
46974         * m4/signed.m4: New file, from GNU gettext.
46975         * m4/longdouble.m4: New file, from GNU gettext.
46976         * m4/wchar_t.m4: New file, from GNU gettext.
46977         * m4/wint_t.m4: New file, from GNU gettext.
46978         * m4/vasnprintf.m4: New file.
46979         * m4/vasprintf.m4: New file.
46980
46981 2003-01-30  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/printf-args.h: New file, from GNU gettext.
46984         * lib/printf-args.c: New file, from GNU gettext.
46985         * lib/printf-parse.h: New file, from GNU gettext.
46986         * lib/printf-parse.c: New file, from GNU gettext.
46987         * lib/vasnprintf.h: New file, from GNU gettext.
46988         * lib/vasnprintf.c: New file, from GNU gettext.
46989         * lib/asnprintf.c: New file, from GNU gettext.
46990         * lib/vasprintf.h: New file, from GNU gettext with modifications.
46991         * lib/vasprintf.c: New file, from GNU gettext.
46992         * lib/asprintf.c: New file, from GNU gettext.
46993
46994 2003-01-29  Bruno Haible  <bruno@clisp.org>
46995
46996         * modules/stpncpy: New module.
46997         * MODULES.html.sh (func_all_modules): Add it.
46998
46999 2003-01-29  Bruno Haible  <bruno@clisp.org>
47000
47001         * m4/stpncpy.m4: New file.
47002
47003 2003-01-29  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/stpncpy.h: New file, from GNU gettext with modifications.
47006         * lib/stpncpy.c: New file, from GNU gettext with modifications.
47007
47008 2003-01-28  Bruno Haible  <bruno@clisp.org>
47009
47010         * modules/c-ctype: New module.
47011         * MODULES.html.sh (func_all_modules): Add it.
47012
47013 2003-01-28  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
47016         Paul Eggert.
47017         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
47018         Paul Eggert.
47019
47020 2003-01-27  Bruno Haible  <bruno@clisp.org>
47021
47022         * modules/xsetenv: New module.
47023         * MODULES.html.sh (func_all_modules): Add it.
47024
47025 2003-01-27  Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/xsetenv.h: New file, from GNU gettext.
47028         * lib/xsetenv.c: New file, from GNU gettext.
47029
47030 2003-01-23  Jim Meyering  <jim@meyering.net>
47031
47032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
47033         from working on systems without dirfd (at least Irix and OSF1/Tru64).
47034
47035 2003-01-23  Bruno Haible  <bruno@clisp.org>
47036
47037         * modules/minmax: New module.
47038         * MODULES.html.sh (func_all_modules): Add it.
47039
47040 2003-01-23  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
47043         Eggert.
47044
47045 2003-01-22  Bruno Haible  <bruno@clisp.org>
47046
47047         * modules/exit: New module.
47048         * MODULES.html.sh (func_all_modules): Add it.
47049
47050 2003-01-22  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/exit.h: New file, from GNU gettext.
47053
47054 2003-01-19  Bruno Haible  <bruno@clisp.org>
47055
47056         * gnulib-tool: Recognize option --extract-maintainer.
47057         (func_get_maintainer): New function.
47058         * modules/*: Add Maintainer entry.
47059
47060 2003-01-16  Jim Meyering  <jim@meyering.net>
47061
47062         * m4/regex.m4: The `regex' struct is both input and output.
47063         Initialize it before each use.  Patch by Tim Waugh.
47064
47065 2003-01-16  Bruno Haible  <bruno@clisp.org>
47066
47067         * MODULES.html.sh: Add a table of contents. Add the module name as
47068         leftmost column. Add hyperlinks.
47069
47070 2003-01-15  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
47073
47074 2003-01-15  Bruno Haible  <bruno@clisp.org>
47075
47076         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
47077         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
47078         suffix.
47079
47080 2003-01-15  Bruno Haible  <bruno@clisp.org>
47081
47082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
47083
47084 2003-01-15  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
47087         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
47088
47089 2003-01-14  Jim Meyering  <jim@meyering.net>
47090
47091         * lib/same.c (same_name): Tweak a comment.
47092
47093 2003-01-14  Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
47096         when a string comparison is sufficient.
47097
47098 2003-01-14  Bruno Haible  <bruno@clisp.org>
47099
47100         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
47101         'unsigned int'.
47102
47103 2003-01-14  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/hash-pjw.c: Add comment about low quality of this function.
47106
47107 2003-01-13  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/stpcpy: Distribute lib/stpcpy.h.
47110         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
47111
47112 2003-01-13  Bruno Haible  <bruno@clisp.org>
47113
47114         * modules/*: Add a description.
47115         * modules/strpbrk: Fix Makefile.am snippet.
47116         * modules/strtoimax: Fix dependencies.
47117         * modules/strtoumax: Likewise.
47118
47119 2003-01-13  Bruno Haible  <bruno@clisp.org>
47120
47121         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
47122         * modules/alloca (Makefile.am): All object files depend on alloca.h.
47123         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
47124
47125 2003-01-13  Bruno Haible  <bruno@clisp.org>
47126
47127         * gnulib-tool (func_create_testdir): Store config/* files in the main
47128         directory.
47129         * config.rpath: Move to ...
47130         * config/config.rpath: ... here.
47131         * modules/gettext: Contains config/config.rpath, not config.rpath.
47132         * modules/iconv: Likewise.
47133
47134 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47135
47136         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47137         to avoid collisions with libcurses and libreadline.
47138
47139         * m4/getstr.m4: Remove.
47140         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
47141
47142 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47143
47144         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47145         to avoid collisions with libcurses and libreadline.
47146
47147         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
47148         * lib/getstr.h, getstr.c: Remove.
47149         * lib/getline.c: Include "getline.h", to check interface.
47150         Move body of old getstr.c here: this defines MIN_CHUNK and
47151         declares getdelim2, which is renamed from getstr.
47152         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
47153
47154         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
47155         All uses changed.
47156         * lib/linebuffer.h: Likewise.
47157         (readline): Remove backward-compatibility macro.
47158
47159 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47160
47161         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47162         to avoid collisions with libcurses and libreadline.
47163         * getstr: Remove.
47164         * MODULES.html.sh: Remove getstr.
47165         * modules/getline: Depend on unlocked-io, not getstr.
47166
47167 2003-01-12  Jim Meyering  <jim@meyering.net>
47168
47169         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
47170
47171 2003-01-10  Bruno Haible  <bruno@clisp.org>
47172
47173         * modules/alloca: Change Makefile.am requirements. Simplify Include
47174         requirements. Add lib/alloca_.h to file list.
47175
47176 2003-01-10  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
47179
47180 2003-01-10  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/alloca_.h: New file.
47183         * lib/getdate.y: Unconditionally include alloca.h.
47184         * lib/makepath.c: Likewise.
47185         * lib/setenv.c: Likewise.
47186         * lib/userspec.c: Likewise.
47187
47188 2003-01-09  Karl Berry  <karl@gnu.org>
47189
47190         * MODULES.html.sh: include `dirname $0` in PATH, to find
47191         gnulib-tool.
47192
47193 2003-01-09  Bruno Haible  <bruno@clisp.org>
47194
47195         * modules/stdbool: Change configure.ac, Makefile.am requirements.
47196         Simplify Include requirements. Add lib/stdbool.h.in to file list.
47197
47198 2003-01-09  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
47201
47202 2003-01-09  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/stdbool.h.in: New file.
47205
47206 2003-01-09  Bruno Haible  <bruno@clisp.org>
47207
47208         * gnulib-tool (func_all_modules): Ignore files ending in ~.
47209         * MODULES.html.sh: Likewise.
47210
47211 2003-01-08  Jim Meyering  <jim@meyering.net>
47212
47213         * lib/full-write.c: Undefine and define-away `const' after inclusion
47214         of errno.h, not before.  Suggestion from Bruno Haible.
47215
47216 2003-01-08  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/full-read: Depend on full-write.
47219
47220 2003-01-08  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/safe-read.c: Include specification header first, to ensure its
47223         selfcontainedness.
47224         * lib/full-write.c: Likewise.
47225
47226 2003-01-07  Jim Meyering  <jim@meyering.net>
47227
47228         * lib/full-write.c: Rework so that it may serve to define full_read,
47229         too.
47230         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
47231
47232 2003-01-07  Bruno Haible  <bruno@clisp.org>
47233
47234         * lib/strtoimax.c: Include <stdint.h> as an alternative to
47235         <inttypes.h>.
47236         * lib/xstrtol.h: Likewise.
47237         * lib/xstrtoimax.c: Likewise.
47238         * lib/xstrtoumax.c: Likewise.
47239         * lib/human.h: Likewise.
47240
47241         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
47242         on systems that have <inttypes.h> but not <stdint.h>.
47243
47244 2003-01-07  Bruno Haible  <bruno@clisp.org>
47245
47246         * MODULES.html.sh: Add copyright notice.
47247         (missed_files): Omit CVS directory entries.
47248         (func_module): Make it work with sed-3.02.
47249         * MODULES.txt: Remove file.
47250
47251 2003-01-06  Jim Meyering  <jim@meyering.net>
47252
47253         * lib/version-etc.c: Update year in translatable copyright string.
47254
47255 2003-01-03  Karl Berry  <karl@gnu.org>
47256
47257         * config/config.{guess,sub}: update from prep.
47258
47259 2003-01-02  Karl Berry  <karl@gnu.org>
47260
47261         * doc/COPYING.DOC: belatedly updated to 1.2.
47262
47263 2003-01-01  Karl Berry  <karl@gnu.org>
47264
47265         * gnulib-tool (func_verify_module): report module name $module in
47266         error message, not $1.
47267         * gnulib-tool (create-testdir): don't complain if destdir couldn't
47268         be created, only if it doesn't exist.
47269         * gnulib-tool (last_checkin_date): don't expand the $Date here.
47270
47271 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47272
47273         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
47274
47275 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47276
47277         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
47278         memcmp if strcoll doesn't work.
47279
47280 2002-12-31  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/utime.c (utime_null): No need to call ftruncate if the file was
47283         nonempty.
47284
47285 2002-12-31  Bruno Haible  <bruno@clisp.org>
47286
47287         * lib/memcoll.c (STRCOLL): New macro.
47288         (memcoll): Use it.
47289
47290 2002-12-31  Bruno Haible  <bruno@clisp.org>
47291
47292         * lib/localcharset.h: New file.
47293         * lib/localcharset.c: Include it.
47294         * lib/unicodeio.c: Likewise.
47295
47296 2002-12-31  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
47299         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
47300
47301 2002-12-31  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/getline.h: Include <stddef.h>, for size_t.
47304
47305         * lib/unicodeio.h: Include <stddef.h>, for size_t.
47306         * lib/unicodeio.c: Don't include <stddef.h>.
47307
47308 2002-12-31  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
47311         HAVE_TM_ZONE.
47312
47313 2002-12-24  Karl Berry  <karl@gnu.org>
47314
47315         * config/config.guess: update from prep.
47316
47317 2002-12-24  Bruno Haible  <bruno@clisp.org>
47318
47319         General infrasructure.
47320         * m4/README: Rewritten.
47321         * m4/onceonly.m4: New file.
47322         * m4/onceonly_2_57.m4: New file.
47323
47324         Module atexit.
47325         * m4/atexit.m4: New file.
47326
47327         Module strtod.
47328         * m4/strtod.m4: New file.
47329
47330         Module strtol.
47331         * m4/strtol.m4: New file.
47332
47333         Module strtoul.
47334         * m4/strtoul.m4: New file.
47335
47336         Module memchr.
47337         * m4/memchr.m4: New file.
47338
47339         Module memcmp.
47340         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
47341         (jm_FUNC_MEMCMP): Invoke it.
47342
47343         Module memcpy.
47344         * m4/memcpy.m4: New file.
47345
47346         Module memmove.
47347         * m4/memmove.m4: New file.
47348
47349         Module memset.
47350         * m4/memset.m4: New file.
47351
47352         Module strcspn.
47353         * m4/strcspn.m4: New file.
47354
47355         Module strpbrk.
47356         * m4/strpbrk.m4: New file.
47357
47358         Module strstr.
47359         * m4/strstr.m4: New file.
47360
47361         Module strerror.
47362         * m4/strerror.m4: New file.
47363
47364         Module mktime.
47365         * m4/mktime.m4: Renamed from jm-mktime.m4.
47366         (gl_PREREQ_MKTIME): New macro.
47367         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
47368
47369         Module malloc.
47370         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
47371         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
47372         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
47373
47374         Module realloc.
47375         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
47376         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
47377         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
47378
47379         Module strftime.
47380         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
47381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
47382         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
47383         gl_TM_GMTOFF.
47384         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
47385
47386         Module xalloc.
47387         * m4/xalloc.m4: New file.
47388
47389         Module alloca.
47390         * m4/alloca.m4: New file.
47391
47392         Module putenv.
47393         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
47394         (jm_FUNC_PUTENV): Invoke it.
47395
47396         Module setenv.
47397         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
47398         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
47399         when invoked twice.
47400         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
47401         gt_FUNC_SETENV.
47402
47403         Module memrchr.
47404         * m4/memrchr.m4: New file.
47405
47406         Module stpcpy.
47407         * m4/stpcpy.m4: New file.
47408
47409         Module strcase.
47410         * m4/strcase.m4: New file.
47411
47412         Module strdup.
47413         * m4/strdup.m4: New file.
47414
47415         Module strnlen.
47416         * m4/strnlen.m4: New file.
47417
47418         Module strndup.
47419         * m4/strndup.m4: New file.
47420
47421         Module xstrtod.
47422         * m4/xstrtod.m4: New file.
47423
47424         Module xstrtol.
47425         * m4/xstrtol.m4: New file.
47426
47427         Module getdate.
47428         * m4/getdate.m4: New file.
47429
47430         Module unlocked-io.
47431         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
47432         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
47433         * m4/jm-glibc-io.m4n: Remove file.
47434
47435         Module long-options.
47436         * m4/long-options.m4: New file.
47437
47438         Module md5.
47439         * m4/md5.m4: New file.
47440
47441         Module sha.
47442         * m4/sha.m4: New file.
47443
47444         Module getstr.
47445         * m4/getstr.m4: New file.
47446
47447         Module getline.
47448         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
47449         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
47450         <sys/types.h>, for size_t. Use the function name gnu_getline, not
47451         simply getline. Infoke gl_PREREQ_GETLINE.
47452
47453         Module obstack.
47454         * m4/obstack.m4: New file.
47455
47456         Module hash.
47457         * m4/hash.m4: New file.
47458
47459         Module readtokens.
47460         * m4/readtokens.m4: New file.
47461
47462         Module strverscmp.
47463         * m4/strverscmp.m4: New file.
47464
47465         Module stdbool.
47466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
47467         OSF/1.
47468
47469         Module strtoll.
47470         * m4/strtoll.m4: New file.
47471
47472         Module strtoull.
47473         * m4/strtoull.m4: New file.
47474
47475         Module strtoimax.
47476         * m4/strtoimax.m4: New file.
47477
47478         Module strtoumax.
47479         * m4/strtoumax.m4: New file.
47480
47481         Module xstrtoimax.
47482         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
47483         jm_AC_PREREQ_XSTRTOIMAX.
47484         Moved the strtol prerequisites to strtol.m4.
47485         Moved the strtoll prerequisites to strtoll.m4.
47486         Moved the strtoimax prerequisites to strtoimax.m4.
47487
47488         Module xstrtoumax.
47489         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
47490         jm_AC_PREREQ_XSTRTOUMAX.
47491         Moved the strtoul prerequisites to strtoul.m4.
47492         Moved the strtoull prerequisites to strtoull.m4.
47493         Moved the strtoumax prerequisites to strtoumax.m4.
47494
47495         Module chown.
47496         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
47497         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
47498
47499         Module dup2.
47500         * m4/dup2.m4: New file.
47501
47502         Module ftruncate.
47503         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
47504         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
47505
47506         Module getgroups.
47507         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
47508         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
47509
47510         Module gettimeofday.
47511         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
47512         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
47513         gl_PREREQ_GETTIMEOFDAY.
47514
47515         Module mkdir.
47516         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
47517         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
47518
47519         Module mkstemp.
47520         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
47521         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
47522         jm_AC_TYPE_UINTMAX_T.
47523         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
47524
47525         Module stat.
47526         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
47527         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
47528
47529         Module lstat.
47530         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
47531         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
47532
47533         Module timespec.
47534         * m4/timespec.m4 (gl_TIMESPEC): New macro.
47535         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
47536         * m4/st_mtim.m4: Indentation.
47537
47538         Module nanosleep.
47539         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
47540         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
47541         gl_PREREQ_NANOSLEEP.
47542
47543         Module regex.
47544         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
47545         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
47546         (gl_REGEX): New macro.
47547
47548         Module rename.
47549         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
47550         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
47551
47552         Module rmdir.
47553         * m4/rmdir.m4: New file.
47554
47555         Module utime.
47556         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
47557         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
47558         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
47559
47560         Module dirname.
47561         * m4/dirname.m4: New file.
47562
47563         Module getopt.
47564         * m4/getopt.m4: New file.
47565
47566         Module unistd-safer.
47567         * m4/unistd-safer.m4: New file.
47568
47569         Module fnmatch.
47570         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
47571         declaration.
47572         (gl_PREREQ_FNMATCH_EXTRA): New macro.
47573         (gl_FUNC_FNMATCH_POSIX): New macro.
47574         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
47575         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
47576         simply fnmatch.
47577
47578         Module exclude.
47579         * m4/exclude.m4: New file.
47580
47581         Module human.
47582         * m4/human.m4: New file.
47583
47584         Module acl.
47585         * m4/acl.m4: Nop.
47586
47587         Module backupfile.
47588         * m4/backupfile.m4: New file.
47589         * m4/d-ino.m4: Indentation.
47590
47591         Module fsusage.
47592         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
47593         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
47594         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
47595
47596         Module dirfd.
47597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
47598         requirements.
47599
47600         Module euidaccess.
47601         * m4/euidaccess.m4: New file.
47602
47603         Module file-type.
47604         * m4/file-type.m4: New file.
47605
47606         Module fileblocks.
47607         * m4/fileblocks.m4: New file.
47608
47609         Module filemode.
47610         * m4/filemode.m4: New file.
47611
47612         Module isdir.
47613         * m4/isdir.m4: New file.
47614
47615         Module lchown.
47616         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
47617         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
47618
47619         Module makepath.
47620         * m4/makepath.m4: New file.
47621
47622         Module modechange.
47623         * m4/modechange.m4: New file.
47624
47625         Module mountlist.
47626         * m4/mountlist.m4: New file.
47627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
47628         Indentation.
47629
47630         Module path-concat.
47631         * m4/path-concat.m4: New file.
47632
47633         Module pathmax.
47634         * m4/pathmax.m4: New file.
47635
47636         Module same.
47637         * m4/same.m4: New file.
47638
47639         Module save-cwd.
47640         * m4/save-cwd.m4: New file.
47641
47642         Module savedir.
47643         * m4/savedir.m4: New file.
47644
47645         Module xgetcwd.
47646         * m4/xgetcwd.m4: New file.
47647         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
47648
47649         Module xreadlink.
47650         * m4/xreadlink.m4: New file.
47651
47652         Module safe-read.
47653         * m4/safe-read.m4: New file.
47654
47655         Module safe-write.
47656         * m4/safe-write.m4: New file.
47657
47658         Module closeout.
47659         * m4/closeout.m4: New file.
47660
47661         Module stdio-safer.
47662         * m4/stdio-safer.m4: New file.
47663
47664         Module getpass.
47665         * m4/getpass.m4: New file.
47666
47667         Module getugroups.
47668         * m4/getugroups.m4: New file.
47669
47670         Module group-member.
47671         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
47672         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
47673
47674         Module idcache.
47675         * m4/idcache.m4: New file.
47676
47677         Module userspec.
47678         * m4/userspec.m4: New file.
47679
47680         Module gettime.
47681         * m4/clock_time.m4: New file.
47682         * m4/gettime.m4: New file.
47683
47684         Module settime.
47685         * m4/settime.m4: New file.
47686
47687         Module posixtm.
47688         * m4/posixtm.m4: New file.
47689
47690         Module gethostname.
47691         * m4/gethostname.m4: New file.
47692
47693         Module canon-host.
47694         * m4/canon-host.m4: New file.
47695
47696         Module gettext.
47697         * m4/codeset.m4: New file, from gettext-0.11.5.
47698         * m4/gettext.m4: New file, from gettext-0.11.5.
47699         * m4/glibc21.m4: New file, from gettext-0.11.5.
47700         * m4/iconv.m4: New file, from gettext-0.11.5.
47701         * m4/intdiv0.m4: New file, from gettext-0.11.5.
47702         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
47703         * m4/inttypes.m4: New file, from gettext-0.11.5.
47704         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
47705         * m4/isc-posix.m4: New file, from gettext-0.11.5.
47706         * m4/lcmessage.m4: New file, from gettext-0.11.5.
47707         * m4/lib-ld.m4: New file, from gettext-0.11.5.
47708         * m4/lib-link.m4: New file, from gettext-0.11.5.
47709         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
47710         * m4/progtest.m4: New file, from gettext-0.11.5.
47711         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
47712         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
47713         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
47714
47715         Module localcharset.
47716         * m4/localcharset.m4: New file.
47717
47718         Module hard-locale.
47719         * m4/hard-locale.m4: New file.
47720
47721         Module mbswidth.
47722         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
47723         onceonly macros.
47724         * m4/mbrtowc.m4: Add comment.
47725
47726         Module memcasecmp.
47727         * m4/memcasecmp.m4: New file.
47728
47729         Module memcoll.
47730         * m4/memcoll.m4: New file.
47731
47732         Module unicodeio.
47733         * m4/unicodeio.m4: New file.
47734
47735         Module rpmatch.
47736         * m4/rpmatch.m4: New file.
47737
47738         Module yesno.
47739         * m4/yesno.m4: New file.
47740
47741         Module exitfail.
47742         * m4/exitfail.m4: New file.
47743
47744         Module c-stack.
47745         * m4/c-stack.m4 (gl_C_STACK): New macro.
47746         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
47747
47748         Module error.
47749         * m4/error.m4 (gl_ERROR): New macro.
47750         (jm_PREREQ_ERROR): Use onceonly macros.
47751
47752         Module fatal.
47753         * m4/fatal.m4: New file.
47754
47755         Module getloadavg.
47756         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
47757         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
47758
47759         Module getpagesize.
47760         * m4/getpagesize.m4: New file.
47761
47762         Module getusershell.
47763         * m4/getusershell.m4: New file.
47764
47765         Module physmem.
47766         * m4/physmem.m4: New file.
47767
47768         Module posixver.
47769         * m4/posixver.m4: New file.
47770
47771         Module quotearg.
47772         * m4/quotearg.m4: New file.
47773
47774         Module quote.
47775         * m4/quote.m4: New file.
47776
47777         Module readutmp.
47778         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
47779
47780         Module sig2str.
47781         * m4/sig2str.m4: New file.
47782
47783         Other.
47784         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
47785         ulonglong.m4.
47786         * m4/intmax_t.m4: New file.
47787         * m4/d-type.m4: Indentation.
47788         * m4/jm-macros.m4: Update.
47789         * m4/prereq.m4 (jm_PREREQ): Update.
47790         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
47791         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
47792         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
47793         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
47794         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
47795         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
47796         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
47797         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
47798         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
47799         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
47800         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
47801         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
47802         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
47803         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
47804         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
47805         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
47806         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
47807         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
47808         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
47809
47810 2002-12-24  Bruno Haible  <bruno@clisp.org>
47811
47812         * MODULES.txt: Update according to m4/ changes.
47813
47814         Module gettext.
47815         * config.rpath: New file, from gettext-0.11.5.
47816
47817         * modules/*: New module descriptions.
47818         * gnulib-tool: New file.
47819         * MODULES.html.sh: New file.
47820
47821 2002-12-21  Karl Berry  <karl@gnu.org>
47822
47823         * doc/fdl.texi: update to version 1.2.
47824
47825 2002-12-19  Karl Berry  <karl@gnu.org>
47826
47827         * config/config.guess: update from prep.
47828
47829 2002-12-18  Bruno Haible  <bruno@clisp.org>
47830
47831         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
47832         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
47833
47834 2002-12-17  Bruno Haible  <bruno@clisp.org>
47835
47836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
47837         stdlib.h, string.h.
47838
47839 2002-12-17  Bruno Haible  <bruno@clisp.org>
47840
47841         * lib/canon-host.c (strdup): Remove unused declaration.
47842
47843         * lib/fsusage.c: Include full_read.h.
47844         (get_fs_usage): Use full_read instead of safe_read.
47845
47846         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
47847
47848 2002-12-12  Karl Berry  <karl@gnu.org>
47849
47850         * config/config.guess: update from prep.
47851
47852 2002-12-11  Bruno Haible  <bruno@clisp.org>
47853
47854         * m4/setenv.m4: New file, from gettext-0.11.5.
47855
47856 2002-12-11  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
47859         not unsetenv().
47860         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
47861         modifications:
47862
47863         2002-12-11  Bruno Haible  <bruno@clisp.org>
47864
47865                 * setenv.c (alloca): Fall back to malloc.
47866                 (freea): New macro.
47867                 (setenv): Use freea() to free memory allocated with alloca().
47868
47869         2002-11-13  Bruno Haible  <bruno@clisp.org>
47870
47871                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
47872                 function declarations.
47873                 * unsetenv.c (unsetenv): Likewise.
47874
47875         2002-03-04  Bruno Haible  <bruno@clisp.org>
47876
47877                 Portability to AIX 4.3.3.
47878                 * unsetenv.c: New file, extracted from setenv.c.
47879                 * setenv.c: Move the unsetenv() function to unsetenv.c.
47880
47881         2001-12-20  Bruno Haible  <bruno@clisp.org>
47882
47883                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
47884                 use malloc instead. For SunOS 4.
47885
47886         2001-12-11  Bruno Haible  <bruno@clisp.org>
47887
47888                 * setenv.c: Declare alloca.
47889                 (compar_fn_t): New typedef.
47890                 (KNOWN_VALUE, STORE_VALUE): Use it.
47891
47892         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
47893         setenv.h.
47894
47895 2002-12-10  Paul Eggert  <eggert@twinsun.com>
47896
47897         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
47898         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
47899         Choose values that are less likely to collide with system fnmatch
47900         options.
47901         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
47902         defined (e.g., a pure POSIX system).
47903         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
47904         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
47905
47906 2002-12-06  Paul Eggert  <eggert@twinsun.com>
47907
47908         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
47909         a pain in practice to deal with generated m4 files.  This change
47910         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
47911
47912         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
47913         and jm-glibc-io.m4, as they are no longer a special case.
47914         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
47915         kludge and the auto-generation stuff.  Check only whether the
47916         functions are declared, not whether they exist, since older hosts
47917         that don't declare the functions can't use the optimization anyway.
47918
47919 2002-12-06  Jim Meyering  <jim@meyering.net>
47920
47921         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
47922
47923         Merge in changes from libc's misc/error.c, in preparation
47924         for the merge of gnulib's changes back into libc.
47925
47926         * lib/error.c (_): Define only if not already defined.
47927         Move definition to follow all #include directives.
47928         Include unlocked-io.h only if !_LIBC.
47929         [_LIBC]: Include <libio/libioP.h>.
47930         [USE_IN_LIBIO]: Include <libio/iolibio.h>
47931         (fflush): Tweak definition to use INTUSE.
47932         (putc): Define.
47933
47934 2002-12-05  Paul Eggert  <eggert@twinsun.com>
47935
47936         * lib/alloca.c [defined emacs]: Include "lisp.h".
47937         (xalloc_die) [defined emacs]: New macro.
47938         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
47939         [! defined emacs]: Include <xalloc.h>.
47940         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
47941         (pointer): Typedef to POINTER_TYPE *.
47942         (malloc): Remove decl; we now always use xmalloc.
47943         (alloca): Use old-style definition, since Emacs needs this.
47944         Check for arithmetic overflow when computing combined size.
47945
47946 2002-12-04  Paul Eggert  <eggert@twinsun.com>
47947
47948         Do not generate unlocked-io.h automatically, since it's easier to
47949         maintain it by hand.
47950
47951         * lib/unlocked-io.h: New file, from GNU diffutils,
47952         but with proper copyright notice and attribution.
47953         * lib/gen-uio: Remove.
47954         * lib/Makefile.am: Add copyright notice.
47955         (libfetish_a_SOURCES): Add unlocked-io.h.
47956         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
47957         (DISTCLEANFILES, io_functions): Remove macros.
47958         (EXTRA_DIST): Remove gen_uio.
47959         (unlocked-io.h): Remove rule.
47960
47961 2002-12-04  Jim Meyering  <jim@meyering.net>
47962
47963         Reflect the fact that stat.c and lstat.c are no longer generated.
47964         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
47965         (DISTCLEANFILES): Likewise.
47966         (EXTRA_DIST): Likewise.
47967         (all_local): Don't depend on stat.c or lstat.c.
47968         (stat.c, lstat.c): Remove rules.
47969         (EXTRA_DIST): Remove xstat.in.
47970
47971         * lib/xstat.in: Remove file.  Contents moved into stat.c.
47972         * lib/stat.c: New file.  Contents mostly from xstat.in.
47973         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
47974         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
47975
47976         * lib/safe-read.c: Rework so that it may serve to define safe_write,
47977         too.
47978         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
47979
47980 2002-12-03  Jim Meyering  <jim@meyering.net>
47981
47982         * lib/safe-read.c, safe-write.c: Change variable names and comments,
47983         but not semantics, to minimize the differences between these two files.
47984         (safe_read): Change comment to mention SAFE_READ_ERROR.
47985
47986         * lib/safe-read.c (IS_EINTR): Define.
47987         (safe_read): Use IS_EINTR in place of in-function cpp directives.
47988
47989 2002-12-02  Jim Meyering  <jim@meyering.net>
47990
47991         * lib/safe-read.c (EINTR): Define.
47992         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
47993         (INT_MAX): Provide fallback.
47994         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
47995
47996         * lib/safe-read.h (SAFE_READ_ERROR): Define.
47997
47998 2002-12-02  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
48001         Define, taken from safe-read.c.
48002         (INT_MAX): Provide fallback.
48003         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
48004         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
48005
48006         * lib/safe-read.c (EINTR): Remove definition.
48007         (safe_read): Don't use EINTR if it is absent.
48008
48009 2002-12-01  Jim Meyering  <jim@meyering.net>
48010
48011         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
48012         zero.
48013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
48014
48015 2002-11-27  Paul Eggert  <eggert@twinsun.com>
48016
48017         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
48018         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
48019         with `if (! (value < limit)) abort ();', for readability.
48020
48021 2002-11-26  Karl Berry  <karl@gnu.org>
48022
48023         * lib/strdup.c: copy from libc again, with jim's ok.
48024         * lib/.cppi-disable: re-add strdup.c
48025
48026 2002-11-25  Karl Berry  <karl@gnu.org>
48027
48028         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
48029         instead of "strtol.c".
48030
48031 2002-11-25  Karl Berry  <karl@gnu.org>
48032
48033         * config/install-sh: update from automake for variable quoting, $0 in
48034         error msgs, etc.
48035
48036         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
48037         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
48038         entry.
48039
48040 2002-11-25  Jim Meyering  <jim@meyering.net>
48041
48042         * lib/mktime.c: Sync from libc, now that it has the latest fix.
48043
48044 2002-11-24  Karl Berry  <karl@gnu.org>
48045
48046         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
48047         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
48048
48049 2002-11-24  Jim Meyering  <jim@meyering.net>
48050
48051         Update from coreutils:
48052
48053         * lib/mktime.c: Merge in changes from libc.
48054
48055         Avoid a link-time failure on some Linux systems.
48056         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
48057         (otherwise).
48058         (__mon_yday): Declare with the STATIC attribute.
48059         (__mktime_internal): Likewise.
48060         Based on a report from Greg Schafer.
48061
48062 2002-11-23  Jim Meyering  <jim@meyering.net>
48063
48064         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
48065         Use `unsigned', not `int', as type of index.
48066
48067         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
48068
48069         * lib/fsusage.c: Remove unneeded parentheses around operands of
48070         `defined'.
48071
48072 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48073
48074         * lib/quotearg.h: Allow multiple inclusion by surrounding with
48075         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
48076         so that we can be included first.
48077         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
48078         * lib/quotearg.c: Include quotearg.h immediately after config.h.
48079         No need to include stddef.h or sys/types.h any more.
48080         Surround local include files with "", not "<>".
48081         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
48082         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
48083         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
48084         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
48085         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
48086         (ISPRINT): Remove; no longer needed now that we assume C89.
48087
48088         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
48089         Preserve errno.
48090
48091         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
48092         quotearg_char): Use SIZE_MAX rather than
48093         (size_t) -1 when we are talking about "infinity".
48094
48095         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
48096
48097 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48098
48099         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
48100         hint that one should use `if (! x) abort ();' rather than `assert
48101         (x);', and anyway it's one less thing to worry about configuring.
48102         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
48103         hash_rehash, hash_insert): Use abort rather than assert.
48104
48105 2002-11-22  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/safe-read.h: Assume C89. Add comments.
48108         (safe_read): Change return type to size_t.
48109         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
48110         byte counts > SSIZE_MAX correctly.
48111         * lib/safe-write.h: New file.
48112         * lib/safe-write.c: New file.
48113         * lib/full-read.h: New file.
48114         * lib/full-read.c: New file.
48115         * lib/full-write.h: Assume C89. Add comments.
48116         * lib/full-write.c: Include safe-write.h.
48117         (full_write): Rewritten to use safe_write.
48118         Suggested by Jim Meyering and Paul Eggert.
48119
48120 2002-11-21  Jim Meyering  <jim@meyering.net>
48121
48122         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
48123
48124         Merge in changes from the coreutils.
48125
48126         2002-09-25  Paul Eggert  <eggert@twinsun.com>
48127         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
48128         <stdint.h>.
48129         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
48130         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
48131         int.  Work more efficiently if X is the same width as uintmax_t.
48132         Do not compare X to -1, to avoid bogus compiler warning.
48133         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
48134         Don't assume that f_frsize and f_bsize are the same type.
48135
48136         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
48137         warning on FreeBSD.
48138
48139         * lib/makepath.c (make_path): Restore umask *before* creating the final
48140         component.
48141         (make_path): Minor reformatting.
48142
48143         * lib/xmalloc.c: Adjust to work with new autoconf macros,
48144         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
48145         HAVE_MALLOC/HAVE_REALLOC.
48146
48147         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
48148         dummy ones.  At least on GNU/Linux systems, `auto' means something
48149         else.
48150         From Michael Stone.
48151
48152 2002-11-21  Bruno Haible  <bruno@clisp.org>
48153
48154         Remove case insensitive option matching.
48155         * lib/argmatch.h (argcasematch): Remove declaration.
48156         (ARGCASEMATCH): Remove macro.
48157         (__xargmatch_internal): Remove case_sensitive argument.
48158         (XARGMATCH): Update.
48159         (XARGCASEMATCH): Remove macro.
48160         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
48161         case_sensitive argument.
48162         (argcasematch): Remove function.
48163         (__xargmatch_internal): Remove case_sensitive argument.
48164         (main): Use XARGMATCH instead of XARGCASEMATCH.
48165
48166         * lib/xmalloc.c: Change compile-time error message. Add comment about
48167         required autoconf version.
48168
48169 2002-11-20  Paul Eggert  <eggert@twinsun.com>
48170
48171         Merge argmatch cleanups from Bison.  Assume C89.
48172
48173         * lib/argmatch.c: Include config.h here, not in argmatch.h.
48174         Include stdlib.h, for EXIT_FAILURE.
48175         Always include <string.h>, since we assume C89.
48176         (EXIT_FAILURE): Remove pre-C89 bug workaround.
48177         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
48178         Include <stddef.h> instead, since it's all we need for size_t.
48179         (PARAMS): Remove.  All uses removed.
48180         (ARRAY_CARDINALITY): Do not bother to #undef.
48181         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
48182         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48183         Remove unnecessary parentheses.
48184         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48185         Insert necessary parentheses.
48186         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
48187         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
48188
48189 2002-11-19  Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
48192         * lib/mbswidth.h: Include <stddef.h>, for size_t.
48193
48194         * lib/mbswidth.h (PARAMS): Remove macro.
48195         (mbswidth, mbsnwidth): Use ANSI C function declarations.
48196         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
48197
48198         * lib/gcd.h (PARAMS): Remove macro.
48199         (gcd): Use ANSI C function declarations.
48200         * lib/gcd.c (gcd): Likewise.
48201
48202 2002-11-15  Bruno Haible  <bruno@clisp.org>
48203
48204         * lib/strcspn.c: Include <stddef.h>.
48205         (strcspn): Use ANSI C function declaration. Change return type to
48206         size_t. Use NULL.
48207         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
48208         (strpbrk): Use NULL.
48209         * lib/strpbrk.h (PARAMS): Remove macro.
48210         (strpbrk): Use ANSI C function declaration.
48211         * lib/strstr.c: Don't include <sys/types.h>.
48212         * lib/strstr.h (PARAMS): Remove macro.
48213         (strstr): Use ANSI C function declarations.
48214
48215 2002-11-14  Karl Berry  <karl@gnu.org>
48216
48217         * config/mkinstalldirs: `do' on separate line, instead of
48218         `for var; do'.
48219
48220 2002-11-06  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
48223         * lib/gcd.c (gcd): Likewise.
48224
48225 2002-11-05  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/gcd.h: New file, from gettext-0.11.5.
48228         * lib/gcd.c: New file, from gettext-0.11.5.
48229
48230 2002-11-05  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48233         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48234         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48235         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48236
48237         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
48238         <libintl.h>.
48239         * lib/makepath.c: Include gettext.h instead of <locale.h> and
48240         <libintl.h>.
48241
48242         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
48243         * lib/human.c: Include gettext.h instead of <libintl.h>.
48244         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
48245         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
48246         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
48247         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
48248         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
48249         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
48250         (textdomain): Remove definition.
48251         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
48252
48253         * lib/long-options.c: Remove include of <libintl.h> and definition of
48254         _.
48255         * lib/same.c: Remove include of <libintl.h> and definition of _.
48256
48257 2002-11-04  Owen Taylor  <otaylor@redhat.com>
48258
48259         * lib/config.charset: A few additions for Solaris.
48260
48261 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48262
48263         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
48264         * lib/localcharset.c (locale_charset): Declare as extern "C".
48265
48266 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48267
48268         * lib/config.charset: msdos in uk_UA uses CP1125.
48269
48270 2002-11-04  Bruno Haible  <bruno@clisp.org>
48271
48272         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
48273         * lib/strcase.h: New file, from GNU gettext-0.11.5.
48274         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
48275         * lib/strstr.h: New file, from GNU gettext-0.11.5.
48276         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
48277
48278 2002-11-04  Bruno Haible  <bruno@clisp.org>
48279
48280         * lib/localcharset.c (locale_charset): Don't return an empty string.
48281
48282 2002-11-04  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
48285         aliases.
48286
48287 2002-11-04  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/config.charset: Update for newest glibc. Add canonical names
48290         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
48291
48292 2002-11-04  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/config.charset: Add support for NetBSD.
48295
48296 2002-11-04  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
48299
48300 2002-11-01  Bruno Haible  <bruno@clisp.org>
48301
48302         * configure.in: Add AC_CONFIG_AUX_DIR call.
48303         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
48304         test/Makefile.
48305         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
48306
48307 2002-09-28  Karl Berry  <karl@gnu.org>
48308
48309         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
48310         installed automake until the next release, since changes have been
48311         made.
48312
48313 2002-09-25  Karl Berry  <karl@gnu.org>
48314
48315         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
48316         * lib/getopt*: copy from libc/posix.
48317         * lib/gettext.h: copy from gettext.
48318         * lib/.cppi-disable: add strdup.c, gettext.h.
48319
48320 2002-09-25  Karl Berry  <karl@gnu.org>
48321
48322         * config/srclist.txt: enable gettext.h check.
48323         * config/config.{guess,sub}: update from prep.
48324         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
48325                 from automake 1.6.3.
48326         See srclist*.
48327
48328 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
48329
48330         * regex.c (PATFETCH): Remove the translating fetch.
48331         (PATFETCH_RAW): Rename to PATFETCH.
48332         (set_image_of_range): New fun.
48333         (SET_RANGE_TABLE_WORK_AREA): Use it.
48334         (regex_compile): Don't translate the pattern chars so eagerly.
48335         Only do it when inserting an `exactn' bytecode or when handling
48336         a char-range.
48337         (mutually_exclusive_p): Avoid empty statement.
48338
48339 2002-07-06  Jim Meyering  <meyering@lucent.com>
48340
48341         * m4/README: Don't mention Makefile.am.in.
48342         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
48343
48344 2002-07-01  Jim Meyering  <meyering@lucent.com>
48345
48346         * lib/c-stack.c: Include sys/time.h.
48347         From Volker Borchert.
48348
48349 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48350
48351         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
48352
48353 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48354
48355         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
48356         New macro.  Use it uniformly instead of
48357         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
48358         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
48359         reported by Vin Shelton.
48360
48361 2002-06-22  Paul Eggert  <eggert@twinsun.com>
48362
48363         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
48364         Do not assume SA_SIGINFO behavior.
48365         Bug reported by Jim Meyering on NetBSD 1.5.2.
48366
48367 2002-06-22  Jim Meyering  <meyering@lucent.com>
48368
48369         * m4/c-stack.m4: New file, from diffutils-2.8.2.
48370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
48371
48372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
48373         now that configure.ac uses AC_GNU_SOURCE.
48374         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
48375         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
48376
48377         Update to latest tools.  Suggestions from Paul Eggert.
48378         * m4/stdbool.m4: New file, from diffutils-2.8.2.
48379         * m4/gnu-source.m4: Update from diffutils-2.8.2.
48380         * m4/fnmatch.m4: Likewise.
48381         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
48382         to AC_HEADER_STDBOOL
48383
48384 2002-06-22  Jim Meyering  <meyering@lucent.com>
48385
48386         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
48387         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
48388
48389 2002-06-22  Jim Meyering  <meyering@lucent.com>
48390
48391         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
48392
48393         * lib/exitfail.c, exitfail.h: Likewise.
48394         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
48395
48396         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
48397         of fnmatch.h.
48398         (EXTRA_DIST): Add fnmatch_loop.c.
48399         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
48400
48401         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
48402         * lib/fnmatch.c: Update from diffutils-2.8.2.
48403         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
48404         * lib/fnmatch.h: Remove file.
48405
48406 2002-06-21  Jim Meyering  <meyering@lucent.com>
48407
48408         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
48409         * m4/mbrtowc.m4: Likewise.
48410
48411         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
48412         * m4/mbswidth.m4: Reflect name change:
48413         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
48414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48415
48416         * m4/lib-link.m4: Update from gettext-0.11.2.
48417         * m4/gettext.m4: Likewise.
48418
48419         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
48420         From Alfred M. Szmidt.
48421
48422 2002-06-18  Paul Eggert  <eggert@twinsun.com>
48423
48424         * lib/file-type.h: Report an error if neither S_ISREG nor
48425         S_IFREG is defined, instead of using a test specific to glibc
48426         2.2.  This should be safe, since POSIX requires S_ISREG and
48427         Unix Version 7 had S_IFREG.  We don't need to check for
48428         <sys/types.h> since we don't use any symbols that it defines.
48429
48430 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
48431
48432         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
48433         $@-t, so that each temporary file name is unique and valid in the first
48434         8 characters, for operation under DOS.
48435
48436 2002-06-15  Paul Eggert  <eggert@twinsun.com>
48437
48438         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
48439
48440 2002-06-15  Jim Meyering  <meyering@lucent.com>
48441
48442         Work even with DJGPP 2.03, which lacks support for symlinks.
48443         From Richard Dawe.
48444         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
48445         is defined.
48446         * lib/lchown.c (S_ISLNK): Likewise.
48447
48448 2002-06-15  Jim Meyering  <meyering@lucent.com>
48449
48450         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
48451         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
48452         have been included before this file.
48453
48454 2002-06-14  Jim Meyering  <meyering@lucent.com>
48455
48456         * lib/file-type.h: Use the version from diffutils-2.8.2.
48457         * lib/file-type.c: Likewise.
48458
48459 2002-06-07  Jim Meyering  <meyering@lucent.com>
48460
48461         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
48462         They're needed at least for NetBSD 1.5.2.
48463         ($statxfs_includes): Include those same headers.
48464         ($statxfs_includes): Include sys/vfs.h if available.
48465         ($statxfs_includes): Likewise for sys/statvfs.h.
48466         Check for the following members in both structs statfs and statvfs:
48467         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
48468
48469 2002-06-01  Jim Meyering  <meyering@lucent.com>
48470
48471         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
48472         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
48473
48474 2002-05-28  Jim Meyering  <meyering@lucent.com>
48475
48476         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
48477         Reported by Volker Borchert.
48478
48479 2002-05-27  Jim Meyering  <meyering@lucent.com>
48480
48481         Fix a problem seen only on nonconforming systems whereby ls.c's
48482         use of localtime, and then of gettimeofday would cause trouble:
48483         the localtime call used to initialize rpl_gettimeofday's save
48484         mechanism would clobber ls's current local time information so
48485         that in any long listing the first file would always be listed
48486         with date 1970-01-01.  Analysis by Volker Borchert.
48487
48488         * lib/gettimeofday.c (localtime): Undefine.
48489         (rpl_localtime): New function.
48490
48491 2002-05-27  Jim Meyering  <meyering@lucent.com>
48492
48493         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
48494         localtime.
48495
48496         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
48497         use the replacement function; it wouldn't resolve at link time.
48498         Reported by Volker Borchert.
48499
48500 2002-05-22  Jim Meyering  <meyering@lucent.com>
48501
48502         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
48503         file-type.h.
48504         * lib/file-type.h: New file.
48505         * lib/file-type.c (file_type): New file/function.  Extracted from
48506         diffutils.
48507
48508 2002-04-30  Jim Meyering  <meyering@lucent.com>
48509
48510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
48511
48512 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48513
48514         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
48515
48516 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48517
48518         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
48519         Do not check for alloca.h (no longer used) or stdbool.h (was never
48520         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
48521
48522 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48523
48524         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
48525
48526 2002-04-29  Jim Meyering  <meyering@lucent.com>
48527
48528         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
48529         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
48530         Use AC_FUNC_STRNLEN here instead.
48531
48532         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
48533         With autoconf-2.53a, it's part of AC_PROG_CC.
48534
48535 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48536
48537         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
48538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
48539
48540 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48541
48542         * lib/sig2str.h, lib/sig2str.c: New files.
48543         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
48544
48545 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48546
48547         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
48548         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
48549         of 127, since 64 is the largest conceivable number for ancient
48550         nonstandard hosts.
48551         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
48552
48553 2002-04-28  Jim Meyering  <meyering@lucent.com>
48554
48555         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
48556
48557 2002-04-24  Jim Meyering  <meyering@lucent.com>
48558
48559         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
48560         (jm_PREREQ): Use it.
48561
48562         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
48563         mach/mach.h fcntl.h.
48564         Check for this function: setlocale.
48565
48566 2002-04-24  Jim Meyering  <meyering@lucent.com>
48567
48568         * lib/gettext.h: New file, from Gettext.
48569         * lib/Makefile.am (INCLUDES): Remove -I../intl.
48570         (libfetish_a_SOURCES): Add gettext.h.
48571
48572 2002-04-16  Jim Meyering  <meyering@lucent.com>
48573
48574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
48575         ut_pid, ut_id, ut_exit.
48576
48577 2002-04-16  Jim Meyering  <meyering@lucent.com>
48578
48579         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
48580         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
48581         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
48582
48583 2002-04-12  Jim Meyering  <meyering@lucent.com>
48584
48585         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
48586         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
48587         existence of the getmntinfo function.  Needed for Darwin 5.3.
48588
48589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
48590         This is necessary at least on Darwin 5.3.
48591
48592         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
48593         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
48594         strnlen.o in the library, and that makes some versions of ranlib
48595         object.
48596
48597 2002-04-12  Jim Meyering  <meyering@lucent.com>
48598
48599         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
48600
48601 2002-04-09  Jim Meyering  <meyering@lucent.com>
48602
48603         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
48604         to be more precise.  Rather than saying we're checking whether the
48605         function `works', say what we're testing.
48606         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
48607         Reported by Bruno Haible.
48608
48609 2002-03-10  Jim Meyering  <meyering@lucent.com>
48610
48611         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
48612         Suggestion from Santiago Vila.
48613
48614 2002-03-08  Jim Meyering  <meyering@lucent.com>
48615
48616         * lib/rename.c: Mention that this wrapper is needed also on
48617         mips-dec-ultrix4.4 systems.
48618
48619 2002-03-02  Jim Meyering  <meyering@lucent.com>
48620
48621         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
48622         not HAVE_CLOCK_SETTIME.
48623
48624 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48625
48626         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
48627         Check for clock_settime.
48628
48629 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48630
48631         * lib/nanosleep.h: Rename to....
48632         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
48633
48634         * lib/gettime.c: New file.
48635         * lib/settime.c: New file.
48636         * lib/stime.c: Remove.
48637
48638         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
48639         timespec.h.  Remove nanosleep.h.
48640
48641 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48642
48643         * m4/acl.m4: New file.
48644         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
48645         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
48646
48647 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48648
48649         * lib/acl.c, lib/acl.h: New files.
48650         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
48651
48652 2002-02-24  Jim Meyering  <meyering@lucent.com>
48653
48654         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
48655         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
48656         cause trouble.  Reported by Nelson Beebe.
48657
48658 2002-02-23  Paul Eggert  <eggert@twinsun.com>
48659
48660         * lib/path-concat.c (xpath_concat): Reorder code to pacify
48661         compilers that don't know that xalloc_die never returns.
48662
48663 2002-02-20  Jim Meyering  <meyering@lucent.com>
48664
48665         * lib/getdate.c: Regenerate using bison-1.33.
48666
48667 2002-02-17  Jim Meyering  <meyering@lucent.com>
48668
48669         * config/config.guess (main): Don't use `head -1'; it's no longer
48670         portable. Use `sed 1q' instead.
48671
48672 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
48673
48674         * m4/codeset.m4: Upgrade to gettext-0.11.
48675         * m4/gettext.m4: Upgrade to gettext-0.11.
48676         * m4/glibc21.m4: Upgrade to gettext-0.11.
48677         * m4/iconv.m4: Upgrade to gettext-0.11.
48678         * m4/isc-posix.m4: Upgrade to gettext-0.11.
48679         * m4/lcmessage.m4: Upgrade to gettext-0.11.
48680         * m4/lib-ld.m4: New file, from gettext-0.11.
48681         * m4/lib-link.m4: New file, from gettext-0.11.
48682         * m4/lib-prefix.m4: New file, from gettext-0.11.
48683         * m4/progtest.m4: Upgrade to gettext-0.11.
48684
48685 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48686
48687         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
48688         (jm_PREREQ): Use it.
48689
48690 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48691
48692         * lib/posixver.c, lib/posixver.h: New files.
48693         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48694
48695 2002-02-02  Paul Eggert  <eggert@twinsun.com>
48696             Bruno Haible  <bruno@clisp.org>
48697
48698         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
48699         (fwrite_success_callback): New declaration.
48700         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
48701         print_unicode_char. Call failure callback instead of error.
48702         (fwrite_success_callback): New function.
48703         (exit_failure_callback): New function.
48704         (fallback_failure_callback): New function.
48705         (print_unicode_char): Call unicode_to_mb.
48706
48707 2002-01-26  Jim Meyering  <meyering@lucent.com>
48708
48709         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
48710         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
48711
48712 2002-01-26  Jim Meyering  <meyering@lucent.com>
48713
48714         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
48715
48716 2002-01-22  Paul Eggert  <eggert@twinsun.com>
48717
48718         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
48719
48720 2002-01-22  Jim Meyering  <meyering@lucent.com>
48721
48722         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
48723         Otherwise, some versions of automake would omit the rule that makes
48724         Makefile from Makefile.in.
48725
48726 2002-01-21  Paul Eggert  <eggert@twinsun.com>
48727
48728         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
48729         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48730         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
48731         (memcoll): Set errno to zero if there is no error.
48732
48733         * lib/quotearg.c (quotearg_buffer_restyled):
48734         Fix bug with quoting buffers containing NUL when backslashing escapes.
48735         This bug was exposed by the other changes in this patch.
48736         (quotearg_n_options): New arg ARGSIZE.
48737         All callers changed.
48738         (quoting_options_from_style): New function.
48739         (quotearg_n_style): Use it.
48740         (quotearg_n_style_mem): New function.
48741
48742         * lib/quotearg.h (quotearg_n_style_mem): New function.
48743
48744 2002-01-19  Jim Meyering  <meyering@lucent.com>
48745
48746         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
48747         Remove useless quotes: DF_PROG="df".
48748         * m4/strnlen.m4: New file.
48749
48750 2002-01-16  Paul Eggert  <eggert@twinsun.com>
48751
48752         * lib/backupfile.c (ISDIGIT): Comment fix.
48753         * lib/getdate.y (ISDIGIT): Likewise.
48754         * lib/posixtm.c (ISDIGIT, year): Likewise.
48755         * lib/strverscmp.c (ISDIGIT): Likewise.
48756         * lib/userspec.c (ISDIGIT): Likewise.
48757
48758 2002-01-16  Jim Meyering  <meyering@lucent.com>
48759
48760         * lib/getdate.y: Add three semicolons, each just before a closing
48761         brace. Bison (as of version 1.31) no longer papers over that mistake.
48762
48763 2002-01-05  Jim Meyering  <meyering@lucent.com>
48764
48765         * lib/version-etc.c (version_etc_copyright): Update copyright year.
48766
48767 2001-12-19  Paul Eggert  <eggert@twinsun.com>
48768
48769         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
48770         not silently exit merely because the output buffer happens to
48771         have nothing pending.
48772
48773 2001-12-18  Paul Eggert  <eggert@twinsun.com>
48774
48775         See the big note in ../ChangeLog.
48776         * lib/human.c (suffixes): Prefer K to k for 1024.
48777         (generate_suffix_backwards): New function.
48778         (human_readable_inexact): Use it.
48779         * lib/xstrtol.c (__xstrtol): If there is no number but there
48780         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
48781         Accept 'K' as well as 'k'.
48782
48783 2001-12-15  Jim Meyering  <meyering@lucent.com>
48784
48785         * lib/regex.h (__restrict_arr): Update from libc.
48786
48787         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
48788         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
48789         (STREQ): Define.
48790
48791 2001-12-14  Jim Meyering  <meyering@lucent.com>
48792
48793         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
48794         Suggestion from Bruno Haible.
48795
48796 2001-12-10  Jim Meyering  <meyering@lucent.com>
48797
48798         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
48799         xrealloc, Instead, include "xalloc.h".
48800         (initbuffer): Don't cast xmalloc return value to char*.
48801         (readline): Reword comment.
48802         Don't cast xrealloc return value to char*
48803         Return NULL, not 0.
48804
48805 2001-12-09  Jim Meyering  <meyering@lucent.com>
48806
48807         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
48808         about `signed and unsigned type in conditional expression'.
48809         * lib/posixtm.c (posix_time_parse): Likewise.
48810
48811         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
48812
48813         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
48814         to avoid a pedantic warning.
48815
48816         * lib/getstr.c: Don't include assert.h.
48817         (getstr): Remove warning-evoking assertions.
48818         Return -1 if offset parameter is out of bounds.
48819         Change the type of a local from int to size_t.
48820
48821         * lib/strftime.c (my_strftime_localtime_r): Include this function
48822         definition in the `#if ! HAVE_TM_GMTOFF' block.
48823
48824         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
48825         Include xalloc.h instead.
48826
48827 2001-12-02  Jim Meyering  <meyering@lucent.com>
48828
48829         * lib/tempname.c: Don't declare getenv, thus reverting the change of
48830         2001-11-18.  It's no longer necessary, now that stdlib.h is always
48831         included.
48832
48833         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
48834         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
48835
48836 2001-11-30  Akim Demaille  <akim@epita.fr>
48837
48838         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
48839         before being defined.
48840
48841 2001-11-27  Paul Eggert  <eggert@twinsun.com>
48842
48843         * lib/quotearg.h (quotearg_n, quotearg_n_style):
48844         First arg is int, not unsigned.
48845         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
48846         (SIZE_MAX, UINT_MAX): New macros.
48847         (quotearg_n_options): Abort if N is negative.
48848         Avoid overflow check on hosts where size_t is 64 bits and int
48849         is 32 bits, as overflow is impossible there.
48850         Fix off-by-one typo that caused unnecessary reallocation.
48851
48852 2001-11-27  Jim Meyering  <meyering@lucent.com>
48853
48854         * lib/tempname.c: Merge with version from libc.
48855         * lib/regex.c: Likewise.
48856
48857         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
48858         systems for which STDC_HEADERS is 0, it was not included, resulting in
48859         a warning about an integer-to-pointer conversion problem with getenv.
48860         Reported by Volker Borchert.
48861
48862 2001-11-26  Jim Meyering  <meyering@lucent.com>
48863
48864         * lib/gtod.h: Remove file.
48865         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
48866         * lib/gettimeofday.c: Don't include gtod.h.
48867         (GTOD_init): Remove function.
48868         (rpl_gettimeofday): Do its job here instead, rather than aborting.
48869         Suggestion from Volker Borchert.
48870
48871 2001-11-23  Jim Meyering  <meyering@lucent.com>
48872
48873         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
48874         it.
48875         * lib/hash.c (struct hash_table): Define it here instead.
48876
48877 2001-11-22  Jim Meyering  <meyering@lucent.com>
48878
48879         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
48880
48881 2001-11-20  Jim Meyering  <meyering@lucent.com>
48882
48883         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
48884         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
48885
48886 2001-11-19  Jim Meyering  <meyering@lucent.com>
48887
48888         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
48889         directory.  Use "conftestXXXXXX" as the template.
48890         Suggestion from Paul Eggert.
48891
48892         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
48893         immediately, so the test doesn't mistakenly hit the max-open-files
48894         limit.
48895
48896 2001-11-18  Paul Eggert  <eggert@twinsun.com>
48897
48898         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
48899         (TEMPORARIES): New macro.
48900         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
48901         removes an artificial limitation (e.g. HP-UX 10.20, where
48902         TMP_MAX is 17576).
48903
48904 2001-11-18  Jim Meyering  <meyering@lucent.com>
48905
48906         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
48907
48908 2001-11-18  Jim Meyering  <meyering@lucent.com>
48909
48910         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
48911         on SunOS 4.
48912
48913         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
48914         files will be created before anything else.
48915
48916 2001-11-17  Paul Eggert  <eggert@twinsun.com>
48917
48918         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
48919         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
48920
48921 2001-11-17  Jim Meyering  <meyering@lucent.com>
48922
48923         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
48924         Prompted by a report from Bob Proulx.
48925
48926         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
48927         Instead, require UTILS_FUNC_MKSTEMP.
48928
48929 2001-11-17  Jim Meyering  <meyering@lucent.com>
48930
48931         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
48932         Now, that's done as part of AC_FUNC_STRTOD.
48933
48934 2001-11-17  Jim Meyering  <meyering@lucent.com>
48935
48936         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
48937         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
48938         rather than group writable.  Patch by Juan F. Codagnone.
48939
48940         * lib/readtokens.c: Remove explicit declarations of xmalloc and
48941         xrealloc, Instead, include "xalloc.h".
48942
48943         * lib/mountlist.c: Include unlocked-io.h after all system headers.
48944         Remove explicit declarations of xmalloc, xrealloc,
48945         and xstrdup.  Instead, include "xalloc.h".
48946
48947         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
48948         unlocked-io.h.
48949         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
48950         Likewise.
48951         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
48952
48953         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
48954         Reported by Padraig Brady.
48955
48956         * lib/mkstemp.c: #undef mkstemp.
48957         Include config.h.
48958         (rpl_mkstemp): Rename from mkstemp.
48959         Protoize.
48960
48961 2001-11-16  Jim Meyering  <meyering@lucent.com>
48962
48963         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
48964         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
48965         determine the amount of total physical memory, use pstat_getstatic.
48966         HPUX-11 doesn't define _SC_PHYS_PAGES.
48967         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
48968         If sysconf couldn't be used to determine the amount of available
48969         physical memory, use both pstat_getstatic and pstat_getdynamic.
48970         Based on a patch from Bob Proulx.
48971
48972 2001-11-10  Jim Meyering  <meyering@lucent.com>
48973
48974         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
48975         (jm_PREREQ): Use it.
48976
48977 2001-11-09  Jim Meyering  <meyering@lucent.com>
48978
48979         * m4/jm-macros.m4: Require autoconf-2.52f.
48980         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
48981         Use these AC_-prefixed names, not the AM_-prefixed ones.
48982
48983         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
48984
48985 2001-11-05  Jim Meyering  <meyering@lucent.com>
48986
48987         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
48988
48989 2001-11-04  Jim Meyering  <meyering@lucent.com>
48990
48991         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
48992         $DEFS.
48993
48994 2001-11-03  Jim Meyering  <meyering@lucent.com>
48995
48996         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
48997         of AC_DEFUN.
48998
48999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
49000         know the name of the variable in the macro definition.
49001
49002 2001-11-03  Jim Meyering  <meyering@lucent.com>
49003
49004         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
49005         in argmatch_to_argument call.
49006
49007         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
49008         argument.
49009
49010         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
49011         e.g., a fault due to an attempt to free a NULL pointer.
49012
49013 2001-11-01  Jim Meyering  <meyering@lucent.com>
49014
49015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
49016         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
49017
49018 2001-11-01  Jim Meyering  <meyering@lucent.com>
49019
49020         * lib/dirfd.c, lib/dirfd.h: New files.
49021         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
49022
49023         * lib/hash.c (hash_print) [TESTING]: Clean up.
49024
49025 2001-10-22  Paul Eggert  <eggert@twinsun.com>
49026
49027         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
49028         to avoid a warning if -Wall.
49029
49030 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
49031
49032         * README: New file
49033         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
49034         (per RMS's instructions, this is now the canonical source)
49035         * lgpl/, gpl/: New directories.
49036
49037 2001-10-21  Paul Eggert  <eggert@twinsun.com>
49038
49039         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
49040
49041 2001-10-21  Jim Meyering  <meyering@lucent.com>
49042
49043         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
49044         this code would end up calling gettext even in packages built
49045         with --disable-nls.
49046         * lib/getopt.c (_): Likewise.
49047         * lib/regex.c (_): Likewise.
49048
49049 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49050
49051         * m4/error.m4 (jm_PREREQ_ERROR):
49052         Do not invoke AC_CHECK_FUNCS with strerror_r, as
49053         AC_FUNC_STRERROR_R does that.
49054         Check for strerror declaration.
49055
49056         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
49057         are supposed to have them these days.
49058         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
49059         Merge changes from latest Autoconf CVS.
49060         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
49061         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
49062         POSIX decided to standardize on the int flavor of strerror_r.
49063
49064 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49065
49066         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
49067         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
49068         Use strerror_r that is only a macro, even if it is not a function.
49069         (strerror): Check for HAVE_DECL_STRERROR before declaring.
49070         (private_strerror): Use prototypes, not old-style function definition.
49071         (print_errno_message): New function.
49072         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
49073         char*-flavored one.
49074         (error_tail, error, error_at_line): Use it.
49075
49076 2001-10-11  Jim Meyering  <meyering@lucent.com>
49077
49078         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
49079         and quote_n (1, ... to avoid clobbering a buffer.
49080
49081 2001-10-05  Jim Meyering  <meyering@lucent.com>
49082
49083         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
49084         hash-pjw.h.
49085         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
49086         * lib/hash-pjw.h: New file.
49087
49088 2001-09-30  Jim Meyering  <meyering@lucent.com>
49089
49090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
49091         `struct fsstat' has the `f_fstypename' member.
49092         Use that to define FS_TYPE, which is now used to make
49093         the getfsstat link test tighter.
49094
49095 2001-09-30  Jim Meyering  <meyering@lucent.com>
49096
49097         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
49098         Include <sys/ucred.h>, for Apple Darwin.
49099         Include sys/mount.h and sys/fs_types.h only if available.
49100         (FS_TYPE): Define.
49101         (read_filesystem_list): Use FS_TYPE.
49102
49103 2001-09-29  Paul Eggert  <eggert@twinsun.com>
49104
49105         * lib/exclude.c (excluded_filename): 0 -> false, since it's
49106         a boolean context.
49107
49108 2001-09-29  Jim Meyering  <meyering@lucent.com>
49109
49110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49111         [one-argument getmntent function]): Include stdio.h before mntent.h.
49112         SunOS 4.1.x needs it for the declaration of `FILE'.
49113         Patch by Volker Borchert.
49114
49115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49116         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
49117         sys/fs_types.h, and make the link-test for getfsstat guard #include
49118         directives with appropriate #if HAVE_*_H tests so that we can
49119         detect getfsstat on Apple Darwin1.3.7 systems.
49120         Reported by Nelson Beebe.
49121         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
49122
49123 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49124
49125         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49126         #defines strtoimax.  Also treat the other strto* functions
49127         like strtoimax.
49128
49129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49130         Check for strtoul and strtoumax,
49131         as those declarations are made even in the signed case.
49132         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
49133         Likewise, for strtol and strtoimax.
49134
49135 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49136
49137         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49138         #defines strtoimax.  Also treat the other strto* functions
49139         like strtoimax.
49140
49141         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
49142         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
49143         (strtoimax, strtoumax): Do not declare if already defined as a macro.
49144
49145 2001-09-26  Jim Meyering  <meyering@lucent.com>
49146
49147         Most macros in unlocked-io.h had the wrong number of arguments.
49148         * lib/gen-uio: New script.
49149         (USE_UNLOCKED_IO): Define to 1 if not already defined.
49150         * lib/unlocked-io.hin: Remove file.
49151         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
49152         rather than trying to embed it here.
49153         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
49154         Reported by Padraig Brady.
49155
49156 2001-09-25  Volker Borchert  <bt@teknon.de>
49157
49158         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
49159         `result'.
49160
49161 2001-09-24  Jim Meyering  <meyering@lucent.com>
49162
49163         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
49164
49165 2001-09-23  Jim Meyering  <meyering@lucent.com>
49166
49167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
49168         instead of the mere test for existence of mntent.h.  The latter
49169         would get a false-positive on AIX 3.4 systems.
49170         In the outer getmntent if-block, don't die if neither of the getmntent
49171         tests succeeds.  Instead, just fall through and continue with the
49172         remaining tests.
49173
49174 2001-09-23  Jim Meyering  <meyering@lucent.com>
49175
49176         * lib/mountlist.c: Remove useless parentheses in #if directives.
49177         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
49178         the deprecated MOUNTED symbol is no longer defined in mntent.h.
49179
49180 2001-09-22  Jim Meyering  <meyering@lucent.com>
49181
49182         * m4/gettext.m4: New file.  From gettext.
49183         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
49184         * m4/progtest.m4: Likewise
49185         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
49186         * m4/glibc21.m4: Likewise.
49187
49188         * m4/libintl.m4: Remove.  No longer used.
49189
49190 2001-09-22  Jim Meyering  <meyering@lucent.com>
49191
49192         * lib/localcharset.c: Update from latest gettext.
49193         * lib/config.charset: Likewise.
49194
49195 2001-09-20  Jim Meyering  <meyering@lucent.com>
49196
49197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
49198         strtoimax.
49199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
49200         strtoumax.
49201
49202 2001-09-20  Jim Meyering  <meyering@lucent.com>
49203
49204         * lib/xstrtol.c (strtoimax): Guard declaration with
49205         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
49206         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
49207         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
49208         (strtoumax): Likewise, for completeness (it wasn't necessary).
49209
49210 2001-09-17  Paul Eggert  <eggert@twinsun.com>
49211
49212         * lib/strtoimax.c (HAVE_LONG_LONG):
49213         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
49214         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
49215         to work around bug in IBM C compiler.
49216
49217 2001-09-17  Jim Meyering  <meyering@lucent.com>
49218
49219         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
49220         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
49221         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
49222         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
49223         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
49224         whenever the right hand side need not be expanded by the shell.
49225
49226 2001-09-16  Paul Eggert  <eggert@twinsun.com>
49227
49228         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
49229         library.  It's not correct, as some older glibcs are buggy.
49230         fnmatch wasn't fixed until glibc 2.2.
49231
49232         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
49233         special shell magic here.
49234
49235 2001-09-16  Jim Meyering  <meyering@lucent.com>
49236
49237         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
49238         * m4/jm-macros.m4: Require it.
49239
49240 2001-09-16  Jim Meyering  <meyering@lucent.com>
49241
49242         * lib/mkdir.c: New file.
49243
49244 2001-09-15  Jim Meyering  <meyering@lucent.com>
49245
49246         * m4/jm-macros.m4: Check for help2man.
49247
49248 2001-09-11  Jim Meyering  <meyering@lucent.com>
49249
49250         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
49251         The body, by Paul Eggert, was moved here from configure.in.
49252         * m4/jm-macros.m4: Require UTILS_HOST_OS.
49253
49254 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49255
49256         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
49257         (jm_PREREQ): Use it.
49258
49259 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49260
49261         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
49262         Use ssize_t, not int, to store result of readlink.
49263         Check for ssize_t overflow as well as size_t overflow,
49264         as POSIX says the result of readlink is implementation-defined
49265         when ssize_t overflows.
49266         Remove unnecessary cast to char*.
49267         Use free+malloc instead of realloc, as the storage doesn't need
49268         to be preserved and it's clearer and can be more efficient that way.
49269         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
49270         * lib/xreadlink.h (xreadlink): Update prototype.
49271
49272 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49273
49274         * lib/xgetcwd.c: Revert some of the previous change; intead,
49275         fix the HAVE_GETCWD_NULL code to behave more like the
49276         !HAVE_GETCWD_NULL code used to.
49277
49278         Include "xalloc.h".
49279         (xgetcwd): Do not return NULL when memory is exhausted; instead,
49280         invoke xalloc_die.
49281
49282 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49283
49284         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
49285         sys/param.h, as pathmax.h includes them.
49286
49287 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49288
49289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
49290         (jm_PREREQ_XGETCWD): New macro.
49291
49292         * m4/getcwd.m4: New file.
49293
49294 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49295
49296         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
49297         like the HAVE_GETCWD_NULL code.
49298         Include pathmax.h if not HAVE_GETCWD.
49299         Do not include xalloc.h.
49300         (INITIAL_BUFFER_SIZE): New symbol.
49301         Do not use xmalloc / xrealloc, since the caller is responsible for
49302         handling errors.  Preserve errno around `free' during failure.
49303         Do not overrun buffer when using getwd.
49304
49305 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49306
49307         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
49308         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
49309         getcwd (NULL, 0).
49310
49311 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49312
49313         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
49314         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
49315         spotted by Jim Meyering.
49316
49317 2001-09-03  Jim Meyering  <meyering@lucent.com>
49318
49319         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
49320         failure.
49321
49322 2001-09-02  Jim Meyering  <meyering@lucent.com>
49323
49324         * lib/error.c: Update from GNU libc.
49325
49326 2001-09-01  Jim Meyering  <meyering@lucent.com>
49327
49328         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
49329         Used by df.
49330
49331 2001-09-01  Jim Meyering  <meyering@lucent.com>
49332
49333         * lib/xreadlink.c: New file.
49334         * lib/xreadlink.h: New file.
49335         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
49336         xreadlink.h.
49337
49338         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
49339         doesn't conflict with sparc Solaris 7's definition in
49340         /usr/include/sys/int_types.h.
49341
49342         * lib/exclude.c: Use `""', not `<>' to #include non-system header
49343         files.
49344         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
49345         and strncasecmp as r-values.  Unixware didn't have declarations.
49346
49347 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49348
49349         * lib/xstrtol.h: Add copyright notice.
49350         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
49351         LONGINT_INVALID_SUFFIX_CHAR.
49352
49353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49354
49355         * lib/xstrtol.c (strtoimax): New decl.
49356
49357 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49358
49359         * lib/xgetcwd.c: Don't include pathmax.h.
49360         Include stdlib.h and unistd.h if available.
49361         Include xalloc.h.
49362         (xmalloc, xstrdup, free): Remove decls.
49363         (xgetcwd): Don't assume sizes fit in unsigned.
49364         Check for overflow when computing sizes.
49365         Simplify reallocation code.
49366
49367 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49368
49369         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
49370         a directory's st_size can have an arbitrary value, so the old
49371         usage could waste an arbitrary amount of memory.  All uses
49372         changed.
49373         * lib/savedir.h: Update prototype.
49374
49375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49376
49377         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
49378
49379         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
49380         old strtoimax.c.
49381
49382         Also, make the following further changes to make this file's
49383         configuration more similar to that of strtol.c:
49384         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
49385         (strtoumax, uintmax_t, strtoull, strtol): Remove.
49386         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
49387         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
49388         changed to signed values.
49389
49390         And make the following changes as well:
49391         Fix copyright notice, as 1999 was missing.
49392         (verify): New macro.
49393         (strtoimax): Check sizes at compile-time, not run-time.
49394         Prefer strtol to strtoll if both work.
49395         (main): Remove; it was not that useful and was a pain to maintain.
49396
49397         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
49398
49399 2001-08-31  Jim Meyering  <meyering@lucent.com>
49400
49401         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
49402         Use an initial, malloc'd, buffer of length 128 rather than
49403         a statically allocated one of length 1024.
49404
49405 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49406
49407         Simplify code, partly by assuming autoconf 2.52 semantics.
49408
49409         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
49410
49411         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
49412         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
49413         All uses removed.
49414         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
49415         Move AC_REQUIRE to next-to-top level, to avoid confusion.
49416         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
49417         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
49418         jm_AC_HEADER_INTTYPES_H.
49419         * m4/jm-macros.m4 (jm_MACROS): Likewise.
49420
49421         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
49422
49423         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49424         Quote first arg of AC_DEFUN.
49425         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
49426         since they are needed to parse the include file even if we need
49427         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
49428         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
49429         but with opposite signedness.
49430
49431 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49432
49433         Merge 'exclude' changes from tar 1.13.22.
49434         This fixes one or two unlikely storage allocation overflow bugs,
49435         but doesn't change user-visible behavior otherwise.
49436
49437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49438
49439         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
49440         (jm_PREREQ_EXCLUDE): New macro.
49441
49442 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49443
49444         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
49445         tm to be declared.
49446
49447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49448
49449         * lib/hash.c: Remove '2001' from copyright notice.
49450
49451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49452
49453         * lib/full-write.h: New file.
49454         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
49455         * lib/full-write.c: Correct credits, as cccp.c no longer
49456         exists and anyway it was so heavily changed from the old cccp
49457         code as to be unrecognizable.  Include full-write.h.
49458         (full_write) Return size_t, with short writes meaning failure.
49459         All callers changed.  This fixes a bug with large buffers
49460         on 64-bit hosts.
49461         * lib/utime.c: Include full-write.h.
49462
49463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49464
49465         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
49466         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
49467         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
49468         Include if available.
49469         (<xalloc.h>): Include
49470         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
49471         (verify): New macro.  Use it to verify that EXCLUDE macros do not
49472         collide with FNM macros.
49473         (struct patopts): New struct.
49474         (struct exclude): Use it, as exclude patterns now come with options.
49475         (new_exclude): Support above changes.
49476         (new_exclude, add_exclude_file):
49477         Initial size must now be a power of two to simplify overflow checking.
49478         (free_exclude, fnmatch_no_wildcards): New function.
49479         (excluded_filename): No longer requires options arg, as the options
49480         are determined by add_exclude.  Now returns bool, not int.
49481         (excluded_filename, add_exclude):
49482         Add support for the fancy new exclusion options.
49483         (add_exclude, add_exclude_file): Now takes int options arg.
49484         Check for arithmetic overflow when computing sizes.
49485         (add_exclude_file): xrealloc might modify errno, so don't
49486         realloc until after errno might be used.
49487
49488         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
49489         New macros.
49490         (free_exclude): New decl.
49491         (add_exclude, add_exclude_file): Now takes int options arg.
49492         (excluded_filename): No longer requires options arg, as the options
49493         are determined by add_exclude.  Now returns bool, not int.
49494
49495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49496
49497         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
49498
49499 2001-08-27  Jim Meyering  <meyering@lucent.com>
49500
49501         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
49502
49503         * lib/version-etc.c (N_): Remove definition.
49504         Revert most of last change.
49505         Instead, simply don't mark the `Copyright...' string for translation.
49506         Based on advice from Paul Eggert.
49507
49508         * lib/strtoxmax.c: Tweak comment.
49509
49510 2001-08-26  Jim Meyering  <meyering@lucent.com>
49511
49512         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
49513
49514         * m4/xstrtoimax.m4: New file.
49515         * m4/xstrtoumax.m4: Add comments explaining why we
49516         AC_REPLACE_FUNCS(strtol).
49517
49518 2001-08-26  Jim Meyering  <meyering@lucent.com>
49519
49520         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
49521         of copyright with `%s' so translators don't get an untranslated
49522         message in 2002.
49523         (COPYRIGHT_YEAR): Define.
49524         (version_etc): Use fprintf rather than fputs.
49525         Suggestion from Ulrich Drepper.
49526
49527         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
49528
49529         * lib/strtoll.c: New file, from GNU libc.
49530         * lib/xstrtoimax.c: New file.
49531
49532         * lib/xstrtol.h: Add xstrtoimax.
49533         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
49534         * lib/strtoimax.c: New file.  Likewise, but first define
49535         STRTOUXMAX_SIGNED.
49536
49537         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
49538         ...
49539         * lib/strtoxmax.c: ... then renamed to this.
49540
49541 2001-08-18  Paul Eggert  <eggert@twinsun.com>
49542
49543         * m4/inttypes.m4: Add AC_PREREQ(2.13).
49544         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
49545         (jm_AC_TYPE_INTMAX_T): New macro.
49546         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
49547
49548         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
49549
49550         * m4/longlong.m4: Renamed from ulonglong.m4.
49551         * m4/inttypes.m4: Renamed from inttypes_h.m4.
49552         * m4/uintmax_t.m4: Removed.
49553
49554 2001-08-13  Paul Eggert  <eggert@twinsun.com>
49555
49556         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
49557         Port to Solaris 8, where 'sed' requires a space after the 'r'
49558         command, and where sh dislikes "$/".  Clean up the spacing a bit.
49559         Redirect output to $tmp just once.
49560
49561 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
49562
49563         * lib/addext.c (<errno.h>): Include.
49564         (errno): Declare if not defined.
49565         (addext): Work correctly when pathconf returns -1 and leaves
49566         errno alone because there is no limit.  Also, work even if
49567         pathconf returns a value greater than SIZE_MAX.
49568
49569 2001-08-12  Jim Meyering  <meyering@lucent.com>
49570
49571         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
49572         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
49573         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
49574         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
49575         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
49576         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
49577         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
49578         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
49579         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
49580         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
49581         utime.m4, utimes.m4, xstrtoumax.m4:
49582         Quote the first argument in each use of AC_DEFUN.
49583
49584 2001-08-12  Jim Meyering  <meyering@lucent.com>
49585
49586         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
49587         Simply `return getcwd (NULL, 0);'.
49588         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
49589         Use 1300 as initial value for length, not PATH_MAX.
49590
49591         * lib/pathmax.h: Clean up cpp syntax.
49592
49593 2001-08-12  Jim Meyering  <meyering@lucent.com>
49594
49595         * lib/gettimeofday.c: New file.
49596         * lib/gtod.h: New file.
49597         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
49598
49599 2001-08-05  Jim Meyering  <meyering@lucent.com>
49600
49601         * m4/jm-macros.m4: Require autoconf-2.52.
49602
49603 2001-08-04  Jim Meyering  <meyering@lucent.com>
49604
49605         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
49606         stmt, to get in sync with glibc.
49607
49608 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49609
49610         The following changes are from gettext 0.10.39 as maintained by
49611         Bruno Haible.
49612
49613         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
49614         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
49615         with inverted sense.  All uses changed.
49616
49617         * lib/mbswidth.c: Don't include <limits.h>.
49618         Include <stdlib.h> and <string.h> unconditionally.
49619         (iswcntrl, mbsinit, ISCNTRL): New macros.
49620         (mbsnwidth): Use K&R style function declarations.
49621         Don't bother checking for MB_LEN_MAX == 1, since the compiler
49622         can optimize it when MB_CUR_MAX == 1.
49623         The width of control characters is zero, not 1.
49624
49625 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49626
49627         The following changes are from gettext 0.10.39 as maintained by
49628         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
49629
49630         * m4/codeset.m4: Upgrade to serial AM1.
49631         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
49632         all uses changed.  Quote first arg of AC_DEFUN.
49633         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
49634
49635         * m4/iconv.m4: Upgrade to serial AM2.
49636         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
49637         Add --with-libconv-prefix.
49638         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
49639         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
49640         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
49641         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
49642         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
49643
49644         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
49645         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
49646         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
49647         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
49648         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
49649         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
49650         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49651         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
49652         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
49653
49654         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
49655         string.h any more.
49656
49657         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
49658         not the default value.
49659
49660         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
49661         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
49662         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
49663         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
49664         Also check for iswcntrl, used for wcwidth fallback.
49665         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
49666         to Autoconf 2.13.
49667
49668 2001-08-03  Jim Meyering  <meyering@lucent.com>
49669
49670         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
49671         as it was in the original.  Reported by Paul Eggert.
49672
49673 2001-07-16  Jim Meyering  <meyering@lucent.com>
49674
49675         * m4/gettimeofday.m4: New file.
49676         Prompted by a report from Bernhard Baehr.
49677
49678 2001-07-15  Jim Meyering  <meyering@lucent.com>
49679
49680         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
49681         stuff. Now it's in ../Makefile.cfg.
49682
49683 2001-07-15  Jim Meyering  <meyering@lucent.com>
49684
49685         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
49686         (BUILT_SOURCES): Add unlocked-io.h.
49687         (io_functions): Define.
49688         (unlocked-io.h): New rule.
49689         (DISTCLEANFILES): Add unlocked-io.h.
49690         (all-local): Depend on unlocked-io.h, to ensure it is created.
49691
49692         * lib/unlocked-io.hin: New file
49693
49694         * lib/regex.c: Update from glibc.
49695
49696 2001-07-05  Jim Meyering  <meyering@lucent.com>
49697
49698         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
49699         recommendation.
49700         (libfetish_a_SOURCES): Put all .h files here instead.
49701         Remove a thus-exposed (better checks in automake) duplicate and
49702         two unnecessary .h files.
49703
49704 2001-07-04  Jim Meyering  <meyering@lucent.com>
49705
49706         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
49707         that generates jm-glibc-io.m4 so that it doesn't trigger any make
49708         distcheck failure.
49709
49710 2001-07-02  Jim Meyering  <meyering@lucent.com>
49711
49712         The following changes were prompted by suggestions from Bruno Haible.
49713
49714         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
49715         is now generated.
49716         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
49717         definition of EXTRA_DIST.
49718         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
49719         ensure that the generated file is created/updated whenever the list
49720         of $(unlocked_functions) is changed.
49721         (jm-glibc-io.m4): New rule.
49722         (unlocked-io.h): New rule -- currently unused.
49723
49724 2001-06-24  Jim Meyering  <meyering@lucent.com>
49725
49726         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
49727         unmatched right bracket, rather than kludging it with an extra,
49728         falsely-matching quote in a comment.  Patch by Akim Demaille.
49729
49730 2001-06-11  Jim Meyering  <meyering@lucent.com>
49731
49732         * lib/regex.c: Update from GNU libc.
49733
49734 2001-05-27  Jim Meyering  <meyering@lucent.com>
49735
49736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
49737         Check for ut_type in struct utmp.
49738
49739 2001-05-27  Jim Meyering  <meyering@lucent.com>
49740
49741         * lib/readutmp.h (UT_TYPE): Define.
49742
49743 2001-05-24  Jim Meyering  <meyering@lucent.com>
49744
49745         * lib/argmatch.c: Include "quote.h".
49746         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
49747         quote function.  Reported by Göran Uddeborg.
49748
49749 2001-05-22  Jim Meyering  <meyering@lucent.com>
49750
49751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
49752         now that we use the package-supplied version unconditionally.
49753         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
49754
49755 2001-05-21  Jim Meyering  <meyering@lucent.com>
49756
49757         * m4/regex.m4: Change a couple backticks to single quotes to avoid
49758         shell syntax errors.
49759
49760 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
49761
49762         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
49763
49764 2001-05-20  Paul Eggert  <eggert@twinsun.com>
49765
49766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
49767         Don't bother to check library strftime, since
49768         we'll be using our own my_strftime function anyway.
49769         Define my_strftime instead of strftime.
49770
49771 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
49772
49773         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
49774         which is not yet declared.
49775
49776 2001-05-15  Jim Meyering  <meyering@lucent.com>
49777
49778         * m4/regex.m4: Use proper quoting so brackets appear in the test
49779         program.
49780         Reported by, and with help from, Bruno Haible.
49781
49782 2001-05-13  Jim Meyering  <meyering@lucent.com>
49783
49784         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
49785         undefined.
49786
49787 2001-05-11  Paul Eggert  <eggert@twinsun.com>
49788
49789         dirname code cleanup.  base_name now behaves more compatibly
49790         with POSIX basename when given file names that have trailing
49791         slashes, and similarly for dir_name.  Add new primitives
49792         base_len and dir_len.  Put the directory-name-related decls
49793         into dirname.h.
49794
49795         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
49796         * lib/backupfile.c (base_name): Likewise.
49797         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
49798         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
49799         * lib/makepath.c (strip_trailing_slashes): Likewise.
49800         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
49801         ISSLASH): Likewise.
49802         * lib/rename.c (strip_trailing_slashes): Likewise.
49803         * lib/same.c (base_name): Likewise.
49804         * lib/stripslash.c (ISSLASH): Likewise.
49805
49806         * lib/addext.c: Include <dirname.h> after size_t is defined.
49807         * lib/backupfile.c: Likewise.
49808
49809         * lib/addext.c (addext): Use base_len to trim redundant
49810         trailing slashes instead of doing it ourselves.
49811         But do not trim the last slash if it is not redundant.
49812
49813         * lib/backupfile.c (find_backup_file_name,
49814         max_backup_version): Use base_len instead of rolling it ourselves.
49815         Handle the case of "" and (on DOS) "C:" correctly.
49816
49817         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
49818         needed. Include <string.h>, <dirname.h>.
49819         (base_name): Allow file names ending in slashes, other than names
49820         that are all slashes.  In this case, return the basename followed
49821         by the slashes.  This is more general, and can be used in places
49822         where the original base_name purposely had an assertion failure.
49823         (base_len): New function.
49824
49825         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
49826         Do not include <assert.h>; no longer needed.
49827         Include xalloc.h.
49828         (memrchr): Remove decl.
49829         (dir_name_r): Remove.
49830         (dir_len): Renamed from dirlen.  All callers changed.
49831         Rewrite in terms of base_name, for simplicity and consistency.
49832         (dir_name): Never return NULL.  All callers changed.
49833         Do not include <stdlib.h> in test program; no longer needed.
49834         return 0; is fine for test program.
49835
49836         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
49837         New macros.
49838         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
49839
49840         * lib/path-concat.c (path_concat): Use base_len to compute
49841         base length, not strlen; this means we cannot rely on memcpy
49842         to null-terminate.
49843
49844         * lib/same.c (STREQ): Remove.
49845         (same_name): Handle the case where the basename ends in trailing '/'.
49846
49847         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
49848         a slash was stripped.  Do not strip the last slash after a
49849         file system prefix.
49850
49851 2001-05-11  Paul Eggert  <eggert@twinsun.com>
49852
49853         * lib/Makefile.am (libfetish_a_SOURCES):
49854         Add strftime.c, since we now compile it on all hosts.
49855
49856         * lib/strftime.c (my_strftime):
49857         Define to nstrftime if emacs, but only if my_strftime is not defined.
49858         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
49859         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
49860         Add one more extra argument: a nanoseconds value.
49861         All uses changed.
49862         (ns): New macro.
49863         (my_strftime function): Add %N format.
49864         (emacs_strftimeu): Renamed from emacs_strftime,
49865         with extra ut argument.
49866
49867 2001-05-09  Paul Eggert  <eggert@twinsun.com>
49868
49869         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
49870
49871 2001-04-21  Jim Meyering  <meyering@lucent.com>
49872
49873         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
49874         doesn't interfere.
49875
49876 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
49877
49878         * m4/ftruncate.m4: Check for chsize.
49879         Link with ftruncate.o unconditionally if ftruncate is missing.
49880         This was required when cross-compiling to i586-mingw32msvc.
49881
49882 2001-04-08  Jim Meyering  <meyering@lucent.com>
49883
49884         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
49885         recomputed; that's necessary when the offset spans a DST transition.
49886         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
49887
49888 2001-04-02  Jim Meyering  <meyering@lucent.com>
49889
49890         * lib/regex.h, regex.c: Update from GNU libc.
49891
49892 2001-03-24  Jim Meyering  <meyering@lucent.com>
49893
49894         * m4/jm-macros.m4: Require autoconf-2.49d.
49895
49896 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
49897
49898         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
49899
49900 2001-03-19  Paul Eggert  <eggert@twinsun.com>
49901
49902         * lib/version-etc.c (version_etc_copyright): Update to 2001.
49903
49904 2001-03-17  Jim Meyering  <meyering@lucent.com>
49905
49906         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
49907         now that the version in autoconf is equivalent.
49908         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
49909
49910         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
49911         Suggestion from Akim Demaille.
49912
49913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
49914         (jm_PREREQ_TEMPNAME): New function.
49915
49916 2001-03-16  Paul Eggert  <eggert@twinsun.com>
49917
49918         * lib/tempname.c (uint64_t): Define to uintmax_t if
49919         not defined, and if UINT64_MAX is not defined.
49920         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
49921         Reported by John David Anglin.
49922
49923 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
49924
49925         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
49926         resolve alias if codeset is empty.
49927         * lib/config.charset (BeOS): Use wildcard syntax.
49928
49929 2001-03-13  Jim Meyering  <meyering@lucent.com>
49930
49931         * lib/path-concat.c (path_concat)
49932         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
49933         concatenating e.g., `C:' and `foo'.
49934         From Bruno Haible.
49935
49936 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
49937
49938         * lib/localcharset.c (locale_charset): Don't use
49939         setlocale(LC_CTYPE,NULL). Don't return NULL.
49940         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
49941
49942 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
49943
49944         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
49945         support for DOS/DJGPP.
49946
49947 2001-03-01  Paul Eggert  <eggert@twinsun.com>
49948
49949         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
49950         lacks mkstemp.  Compile our own tempname.c if we compile our own
49951         mkstemp.c, as mkstemp relies on tempname.
49952
49953 2001-03-01  Jim Meyering  <meyering@lucent.com>
49954
49955         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
49956         AH_VERBATIM really does output its argument verbatim.
49957
49958 2001-02-28  Paul Eggert  <eggert@twinsun.com>
49959
49960         * lib/Makefile.am (libfetish_a_SOURCES):
49961         Add dup-safer.c, fopen-safer.c.
49962         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
49963
49964         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
49965         * lib/unistd-safer.h: New files.
49966
49967 2001-02-25  Paul Eggert  <eggert@twinsun.com>
49968
49969         The mkstemp replacement is taken from glibc 2.2.2, with some
49970         portability fixes for use outside glibc, as follows:
49971
49972         * lib/tempname.c (struct_stat64): New macro.
49973         (direxists, __gen_tempname): Use it.
49974         This avoids a portability problem with Solaris 8.
49975
49976         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
49977         (<stddef.h>, <stdint.h>, <string.h>):
49978         Include only if STDC_HEADERS || _LIBC.
49979         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
49980         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
49981         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
49982         (__set_errno): Define this macro if <errno.h> doesn't.
49983         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
49984         Define these macros if <stdio.h> doesn't.
49985         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
49986         Define these macros if <sys/stat.h>
49987         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
49988         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
49989         __xstat64): Define if not _LIBC.
49990         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
49991         (__gen_tempname): Invoke gettimeofday only if
49992         HAVE_GETTIMEOFDAY || _LIBC;
49993         otherwise, fall back on plain "time".
49994         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
49995
49996         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
49997
49998         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
49999
50000 2001-02-18  Paul Eggert  <eggert@twinsun.com>
50001
50002         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
50003
50004 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50005
50006         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
50007         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
50008         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
50009         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50010
50011 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50012
50013         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
50014         Remove workaround macros for hosts that have mbrtowc but not
50015         mbstate_t, as we now insist on proper declarations for both
50016         before using mbrtowc.
50017
50018 2001-02-17  Jim Meyering  <meyering@lucent.com>
50019
50020         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
50021         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
50022         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
50023         UnixWare 7.1.1.
50024
50025         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
50026         rather than AC_CACHE_VAL.
50027
50028 2001-02-17  Jim Meyering  <meyering@lucent.com>
50029
50030         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
50031         around included file name.
50032
50033         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
50034
50035         * lib/strftime.c: Update from GNU libc (the only changes were to
50036         comments).
50037
50038 2001-02-17  Jim Meyering  <meyering@lucent.com>
50039
50040         * lib/regex.c: Update from libc.
50041
50042 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
50043
50044         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
50045         clash.
50046
50047 2001-02-16  Paul Eggert  <eggert@twinsun.com>
50048
50049         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
50050         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
50051         Reported by Mark Hounschell via Paul Eggert.
50052
50053 2001-02-07  Jim Meyering  <meyering@lucent.com>
50054
50055         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
50056
50057 2001-02-05  Jim Meyering  <meyering@lucent.com>
50058
50059         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
50060         it includes the patch required for `large file' support with at least
50061         HP-UX's 10.20 /bin/cc.
50062
50063 2001-02-03  Jim Meyering  <meyering@lucent.com>
50064
50065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
50066         AS_IF, now that it works once again (mysteriously).
50067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50068
50069 2001-01-30  Jim Meyering  <meyering@lucent.com>
50070
50071         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
50072         * m4/chown.m4: Rename conftestchown to conftest.chown.
50073         * m4/rename.m4: s/conftestdir/conftest.d1/ and
50074         s/conftestdir2/conftest.d2/.
50075         * m4/utimes.m4: s/conftestdata/conftest.data/
50076         Inspired by Pavel Roskin's change in autoconf.
50077
50078 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
50079
50080         * lib/config.charset: Update for FreeBSD 4.2.
50081
50082 2001-01-27  Jim Meyering  <meyering@lucent.com>
50083
50084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
50085         a use of AS_IF.
50086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50087
50088 2001-01-26  Jim Meyering  <meyering@lucent.com>
50089
50090         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
50091         quotearg.c includes it.
50092
50093 2001-01-26  Jim Meyering  <meyering@lucent.com>
50094
50095         * lib/quotearg.c: Include stddef.h.
50096         * lib/quote.c: Include stddef.h.
50097         Reported by Axel Kittenberger.
50098
50099         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
50100         line in double quotes so that it evokes a better diagnostic.
50101         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
50102         Reported by Axel Kittenberger.
50103
50104 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
50105
50106         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
50107         as if it was a `charset'.
50108
50109 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50110
50111         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
50112         has const.
50113
50114 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50115
50116         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
50117         to avoid a warning.  Add back 'const' to inptr.
50118
50119 2001-01-20  Jim Meyering  <meyering@lucent.com>
50120
50121         Be sure that headers are checked before used in code compiled
50122         for the type checks.
50123         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
50124         In place of that, invoke jm_CHECK_ALL_TYPES.
50125         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
50126         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
50127         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
50128         The check for ssize_t was mistakenly run before the test for unistd.h.
50129
50130         The configure-time check for stdbool.h was missing.
50131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
50132         (jm_PREREQ_HASH): New function.
50133
50134 2001-01-17  Jim Meyering  <meyering@lucent.com>
50135
50136         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
50137         for autoconf-2.49c.
50138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
50139
50140 2001-01-16  Jim Meyering  <meyering@lucent.com>
50141
50142         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
50143         From Bruno Haible.
50144
50145 2001-01-14  Jim Meyering  <meyering@lucent.com>
50146
50147         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
50148         foo and bar.  Create conftestdir/ in the script, not in the C code.
50149         Remove directories in the script, not in the C code.
50150         Remove conftestdir{,2} before trying to create the directory.
50151         Make the entire configure script fail if the mkdir fails.
50152
50153 2001-01-14  Jim Meyering  <meyering@lucent.com>
50154
50155         * lib/rename.c: New file.  From Volker Borchert.
50156         Include stdlib.h, string.h or strings.h, and xalloc.h.
50157         Use strip_trailing_slashes rather than open-coding it.
50158
50159 2001-01-03  Paul Eggert  <eggert@twinsun.com>
50160
50161         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
50162
50163 2001-01-03  Jim Meyering  <meyering@lucent.com>
50164
50165         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
50166         of local `inptr' to avoid warning with some system declarations of
50167         iconv.
50168
50169 2001-01-02  Volker Borchert  <bt@teknon.de>
50170
50171         * m4/rename.m4: New file.
50172         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
50173
50174 2001-01-01  Jim Meyering  <meyering@lucent.com>
50175
50176         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
50177         even on systems with utmpx.h.  It's necessary for the declaration of
50178         utmp's ut_user member.  Reported by Andreas Jaeger.
50179
50180         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
50181         available. They are required for the declarations of getgrgid and
50182         getpwuid resp.
50183         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
50184         Reported by Andreas Jaeger.
50185
50186 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
50187
50188         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
50189         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
50190         so `make install' also works in VPATH builds.
50191
50192 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
50193
50194         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
50195         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
50196         can be used in subdirectories.
50197
50198 2000-12-29  Paul Eggert  <eggert@twinsun.com>
50199
50200         * lib/modechange.c: Do not assume that mode_t uses the
50201         traditional octal encoding.  E.g. "chmod 1 FOO" should set
50202         the other-execute bit of FOO even if S_IXOTH != 1.
50203
50204         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
50205         WOTH, XOTH, ALLM): New macros.
50206         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
50207          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
50208         Use them.
50209         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
50210         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
50211         (mode_compile):
50212         No need to use uintmax_t; unsigned long is long enough.
50213         Don't bother to get suffix since we don't use it.
50214
50215 2000-12-26  Jim Meyering  <meyering@lucent.com>
50216
50217         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
50218         better with autoheader.
50219
50220 2000-12-24  Jim Meyering  <meyering@lucent.com>
50221
50222         * lib/hash.c (is_prime): Return explicit boolean values.
50223         (hash_get_first): Return NULL to appease Irix5.6's 89.
50224         Reported by Nelson Beebe.
50225
50226 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
50227
50228         * lib/localcharset.c (locale_charset): Add support for Win32.
50229
50230 2000-12-18  Paul Eggert  <eggert@twinsun.com>
50231
50232         * lib/physmem.h, lib/physmem.c: New files.
50233
50234         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
50235         (noinst_HEADERS): Add physmem.h.
50236
50237         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
50238         't' for compatibility with Solaris 8 sort.
50239
50240 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
50241
50242         * lib/config.charset: Add support for BeOS.
50243
50244 2000-12-17  Jim Meyering  <meyering@lucent.com>
50245
50246         * m4/dos.m4 (jm_AC_DOS): New file and macro.
50247         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
50248
50249 2000-12-16  Jim Meyering  <meyering@lucent.com>
50250
50251         This bug had a serious impact on chown: `chown N:M FILE' (for integer
50252         N and M) would have treated it like `chown N:N FILE'.
50253
50254         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
50255
50256 2000-12-16  Jim Meyering  <meyering@lucent.com>
50257
50258         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
50259         SHELLS_FILE to a file name that's useful on djgpp systems.
50260         Include stdlib.h.
50261         (ADDITIONAL_DEFAULT_SHELLS): Define.
50262         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
50263         Based mostly on a patch from Prashant TR.
50264
50265 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
50266
50267         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
50268         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
50269         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
50270
50271 2000-12-08  Andreas Schwab  <schwab@suse.de>
50272
50273         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
50274         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
50275
50276 2000-12-07  Jim Meyering  <meyering@lucent.com>
50277
50278         * lib/stripslash.c (ISSLASH): Define.
50279         (strip_trailing_slashes): Use ISSLASH rather than comparing against
50280         `/'.
50281         From Prashant TR.
50282
50283         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
50284         (dir_name_r): Declare this function as static.
50285         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
50286         manifest itself on a name containing a mix of slashes and
50287         backslashes.
50288         Make this function work with names starting with a DOS-style
50289         drive letter and colon prefix.
50290         (dir_name): Append `.' if necessary.
50291         Based mostly on patches from Prashant TR and Eli Zaretskii.
50292
50293         * lib/dirname.h (dir_name_r): Remove prototype.
50294
50295 2000-12-06  Paul Eggert  <eggert@twinsun.com>
50296
50297         * m4/off_t-format.m4: Remove this file.
50298         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
50299
50300 2000-12-06  Jim Meyering  <meyering@lucent.com>
50301
50302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
50303         replacement strtoull, we may well need the replacement strtoul, too.
50304         Check for declarations of strtoul and strtoull.
50305         Check for strtol.  Mainly as a cue to cause automake to include
50306         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
50307         Check for limits.h -- strtol.c needs it.
50308
50309 2000-12-05  Jim Meyering  <meyering@lucent.com>
50310
50311         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
50312
50313 2000-12-04  Jim Meyering  <meyering@lucent.com>
50314
50315         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
50316         Also include memory.h, stdlib.h, unistd.h if appropriate.
50317         Reported by Andreas Jaeger (conflicting declaration of malloc).
50318
50319 2000-12-02  Jim Meyering  <meyering@lucent.com>
50320
50321         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
50322         * m4/jm-macros.m4 (jm_MACROS): require it.
50323
50324 2000-12-02  Jim Meyering  <meyering@lucent.com>
50325
50326         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
50327
50328 2000-12-01  Paul Eggert  <eggert@twinsun.com>
50329
50330         * lib/memrchr.c: Include <config.h> before any system include file.
50331
50332 2000-11-30  Jim Meyering  <meyering@lucent.com>
50333
50334         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
50335
50336 2000-11-30  Jim Meyering  <meyering@lucent.com>
50337
50338         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
50339
50340 2000-11-29  Paul Eggert  <eggert@twinsun.com>
50341
50342         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
50343
50344 2000-11-26  Jim Meyering  <meyering@lucent.com>
50345
50346         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
50347
50348 2000-11-22  Paul Eggert  <eggert@twinsun.com>
50349
50350         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
50351         size of (size_t) -1; it's not portable.
50352
50353 2000-11-17  Jim Meyering  <meyering@lucent.com>
50354
50355         * lib/strstr.c: Update from GNU libc.
50356
50357 2000-11-17  Akim Demaille  <akim@epita.fr>
50358
50359         * lib/obstack.h: Formatting changes.
50360         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
50361         prevent type checking.
50362         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
50363         cast the value to (void *): assigning a `foo *' to a `void *'
50364         variable is valid.
50365         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
50366
50367 2000-11-16  Jim Meyering  <meyering@lucent.com>
50368
50369         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
50370
50371 2000-11-11  Jim Meyering  <meyering@lucent.com>
50372
50373         * lib/error.c: Add a couple #includes, merging from GNU libc version.
50374
50375 2000-11-10  Jim Meyering  <meyering@lucent.com>
50376
50377         * lib/obstack.h: Update from GNU libc.
50378         * lib/obstack.c: Likewise.
50379
50380 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
50381
50382         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
50383
50384 2000-11-06  Paul Eggert  <eggert@twinsun.com>
50385
50386         * lib/getusershell.c (setusershell): Use rewind rather than
50387         fseek/fseeko, to avoid configuration hassles with fseeko.
50388         Don't bother opening SHELLS_FILE if shellstream is NULL;
50389         it's not necessary.
50390
50391 2000-11-05  Jim Meyering  <meyering@lucent.com>
50392
50393         * lib/makepath.h (make_dir): Declare.
50394         * lib/makepath.c (make_dir): Remove `static' attribute.
50395         Tweak a comment.
50396
50397 2000-11-04  Jim Meyering  <meyering@lucent.com>
50398
50399         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
50400
50401 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
50402
50403         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
50404         last one in a bucket, advance to the next bucket.
50405
50406 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
50407
50408         * lib/fnmatch.c: Do not comment out all the code if we are using
50409         the GNU C library, because in some cases we are replacing buggy
50410         code in the GNU C library itself.
50411
50412 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
50413
50414         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
50415         (regex_compile): Catch bogus \(\1\).
50416
50417 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50418
50419         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
50420         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
50421         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
50422
50423 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50424
50425         * lib/error.h, getline.h, modechange.h:
50426         Remove "2000" from Copyright line, as the file hasn't been
50427         changed this year other than in the copyright notice.
50428
50429         * lib/xalloc.h: Add "2000" to Copyright line, as this file
50430         was changed this year.
50431
50432 2000-10-29  Jim Meyering  <meyering@lucent.com>
50433
50434         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
50435         renaming.
50436         * m4/ls-mntd-fs.m4: Likewise
50437
50438 2000-10-29  Jim Meyering  <meyering@lucent.com>
50439
50440         * lib/xstat.in: Fix grammar in comment.
50441
50442 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
50443
50444         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
50445         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
50446         doesn't define __restrict_arr.
50447
50448 2000-10-28  Jim Meyering  <meyering@lucent.com>
50449
50450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
50451         (jm_PREREQ_MEMCHR): New function.
50452
50453 2000-10-28  Jim Meyering  <meyering@lucent.com>
50454
50455         * lib/memchr.c: Update from libc.
50456         Adjust for portability:
50457         [HAVE_STDLIB_H]: Include stdlib.h.
50458         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
50459         Undef __memchr, too.
50460         [!weak_alias]: Define __memchr to memchr.
50461
50462         * lib/regex.c: Update from libc.
50463         * lib/regex.h: Likewise.
50464         * lib/getopt1.c: Likewise.
50465         * lib/memcmp.c: Likewise.
50466
50467         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
50468         Avoid using fseek, when possible -- it's broken by design.
50469         Patch by Ulrich Drepper.
50470
50471 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
50472
50473         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
50474         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
50475         Giving in to popular pressure to shut up the compiler with casts.
50476
50477 2000-10-26  Jim Meyering  <meyering@lucent.com>
50478
50479         * lib/strftime.c: Update from libc.
50480
50481 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
50482
50483         * regex.c: More `unsigned char' -> `re_char' changes.
50484         Also change several `int' into `re_wchar_t'.
50485         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
50486         (PUSH_FAILURE_POINTER): Don't cast any more.
50487         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
50488         We want GCC to complain, since this piece of code makes
50489         re_match non-reentrant, which *should* be fixed.
50490         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
50491         (EXTEND_BUFFER): Use RETALLOC.
50492         (SET_LIST_BIT): Don't cast.
50493         (re_wchar_t): New type.
50494         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
50495         that those two functions will always properly return.
50496         (IMMEDIATE_QUIT_CHECK): Cast to void.
50497         (analyse_first): Use recursion rather than an explicit stack.
50498         (re_compile_fastmap): Can't fail anymore.
50499         (re_search_2): Don't check re_compile_fastmap for failure.
50500         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
50501         Now also sets the new value (passed in a new argument).
50502         (re_match_2_internal): Use it.
50503         Also, use a new var `reg' of type size_t when looping through regs
50504         rather than reuse the inappropriate `mcnt'.
50505
50506 2000-10-25  Jim Meyering  <meyering@lucent.com>
50507
50508         * lib/obstack.c: Update from libc.
50509
50510 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
50511
50512         * regex.c (regex_compile): Change the way of handling a range from
50513         a char less than 256 to a char not less than 256.
50514
50515 2000-10-24  Andrew Innes  <andrewi@gnu.org>
50516
50517         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
50518         NT-Emacs only.
50519         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
50520         so that re_search functions only quit when callers expect them to.
50521
50522 2000-10-23  Jim Meyering  <meyering@lucent.com>
50523
50524         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
50525         wrong.  That set_locale call must not have any side effects.
50526         From Paul Eggert.
50527
50528 2000-10-22  Jim Meyering  <meyering@lucent.com>
50529
50530         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
50531         [CYCLIC]: Remove now-unused definition.
50532
50533         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
50534         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
50535         Suggestion from Ulrich Drepper.
50536
50537 2000-10-21  Jim Meyering  <meyering@lucent.com>
50538
50539         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
50540         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
50541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
50542
50543 2000-10-21  Jim Meyering  <meyering@lucent.com>
50544
50545         * lib/dirname.c (memrchr): Declare if necessary.
50546         (dir_name): Remove the restriction that there be no
50547         trailing slashes.  Now, this code skips past them, effectively
50548         ignoring them.
50549         [TEST_DIRNAME] (main): New unit tests.
50550
50551         * lib/memrchr.c: New file from GNU libc.
50552         Undef __memrchr, too.
50553         [!weak_alias]: Define __memrchr to memrchr.
50554         Guard weak_alias use with `#ifdef weak_alias'.
50555
50556 2000-10-21  Jim Meyering  <meyering@lucent.com>
50557
50558         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
50559         (dir_name): Use dir_name_r.
50560         * lib/dirname.h (dir_name_r): Declare it.
50561
50562 2000-10-17  Jim Meyering  <meyering@lucent.com>
50563
50564         * lib/quote.h (PARAMS): Define and use.
50565         Reported by Akim Demaille.
50566
50567         * lib/getopt.c: Update from libc.
50568
50569 2000-10-16  Jim Meyering  <meyering@lucent.com>
50570
50571         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
50572         setlocale.
50573         From Jan Fedak.
50574
50575 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
50576
50577         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
50578
50579 2000-09-25  Jim Meyering  <meyering@lucent.com>
50580
50581         * lib/md5.h (rol): Define (from GnuPG).
50582
50583         * lib/sha.c: Give credit (GnuPG) where due.
50584         (M): Use rol rather than open-coding it.
50585         Add a FIXME comment.
50586
50587 2000-09-21  Jim Meyering  <meyering@lucent.com>
50588
50589         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
50590         Reported by Michael Stone.
50591
50592 2000-09-20  Jim Meyering  <meyering@lucent.com>
50593
50594         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
50595         (noinst_HEADERS): Add sha.h.
50596         Based on code from Scott G. Miller and from GnuPG.
50597
50598 2000-09-18  Jim Meyering  <meyering@lucent.com>
50599
50600         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
50601         LIBS. Otherwise, everyone ends up linking with -lelf for some
50602         configurations.
50603         Reported by Mike Stone.
50604
50605 2000-09-15  Jim Meyering  <meyering@lucent.com>
50606
50607         * lib/regex.c: Update from libc.
50608
50609 2000-09-10  Jim Meyering  <meyering@lucent.com>
50610
50611         * lib/getopt.c (_getopt_internal): Update from glibc.
50612
50613 2000-09-09  Jim Meyering  <meyering@lucent.com>
50614
50615         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
50616         think it should be used as a general replacement for isascii.
50617         * lib/fnmatch.c: Likewise.
50618         * lib/mbswidth.c: Likewise
50619         * lib/regex.c: Likewise.
50620
50621         Don't use atoi.
50622         * lib/userspec.c: Include sys/param.h and limits.h.
50623         Include xstrtol.h.
50624         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50625         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
50626         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
50627         UID, GID.  Check range.
50628
50629 2000-09-06  Jim Meyering  <meyering@lucent.com>
50630
50631         * lib/getopt.c (_getopt_internal): Update from glibc.
50632
50633 2000-08-30  Jim Meyering  <meyering@lucent.com>
50634
50635         * lib/strftime.c: Merge in changes from GNU libc.
50636
50637 2000-08-26  Jim Meyering  <meyering@lucent.com>
50638
50639         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
50640         * m4/fpending.m4: New file.
50641
50642 2000-08-26  Jim Meyering  <meyering@lucent.com>
50643
50644         * lib/closeout.c: Include "__fpending.h".
50645         (close_stdout_status): Return right away if there's nothing to flush.
50646
50647         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
50648         * lib/__fpending.c: New file.
50649         * lib/__fpending.h: New file.
50650
50651 2000-08-20  Jim Meyering  <meyering@lucent.com>
50652
50653         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
50654         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
50655         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
50656
50657 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
50658
50659         Improve fileutils installation on systems where running
50660         programs (like install) can't be unlinked.
50661         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
50662         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
50663
50664 2000-08-07  Paul Eggert  <eggert@twinsun.com>
50665
50666         Standardize on "memory exhausted" instead of "Memory exhausted"
50667         or "virtual memory exhausted".
50668         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
50669         "virtual memory exhausted".
50670         * lib/same.c (same_name): Invoke xalloc_die instead of printing
50671         our own message.
50672         * lib/userspec.c (parse_user_spec): Likewise.
50673         * lib/bumpalloc.h: comment fix
50674         * lib/same.c, userspec.c: Include xalloc.h.
50675
50676         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
50677         not char *const and pointing to a constant array.
50678         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
50679         (xrealloc): Comment fix.
50680
50681         * lib/userspec.c (parse_user_spec):
50682         Don't translate a message until just before returning,
50683         to avoid unnecessary translation.
50684
50685 2000-08-07  Jim Meyering  <meyering@lucent.com>
50686
50687         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
50688         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
50689         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
50690         getgroups.c, gethostname.c, getopt.h, group-member.c,
50691         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
50692         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
50693         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
50694         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
50695         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
50696         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
50697         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
50698         yesno.c: Back out Copyright date changes for each file with no change
50699         this year.  This eases coordination with other programs using the same
50700         source code modules.  From Paul Eggert.
50701
50702 2000-08-06  Paul Eggert  <eggert@twinsun.com>
50703
50704         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
50705         not char, for compatibility with glibc 2.1.3 strftime.c.
50706
50707 2000-08-03  Greg McGary  <greg@mcgary.org>
50708
50709         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
50710         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
50711         (EXTEND_BUFFER): Use them.
50712
50713 2000-08-01  Jim Meyering  <meyering@lucent.com>
50714
50715         * lib/dirname.c (ISSLASH): Define.
50716         (BACKSLASH_IS_PATH_SEPARATOR): Define.
50717         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
50718         both `\' and `/' may be use as path separators.
50719         Based on a patch from Prashant TR.
50720
50721 2000-07-31  Paul Eggert  <eggert@twinsun.com>
50722
50723         * lib/quotearg.c (quotearg_n_options): Don't make the initial
50724         slot vector a constant, since it might get modified.
50725
50726 2000-07-31  Jim Meyering  <meyering@lucent.com>
50727
50728         * lib/xmalloc.c: Use `virtual memory exhausted', not
50729         `Memory exhausted'.
50730         * lib/obstack.c (print_and_abort): Likewise.
50731
50732 2000-07-30  Paul Eggert  <eggert@twinsun.com>
50733
50734         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
50735         buffer, so that the caller can always quote one small
50736         component of a "memory exhausted" message in slot 0.
50737         From a suggestion by Jim Meyering.
50738
50739 2000-07-30  Jim Meyering  <meyering@lucent.com>
50740
50741         * lib/makepath.c (make_path): Quote the other instance, too.
50742
50743         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
50744         (STATIC_BUF_SIZE): Define.
50745         (quotearg_n_options): Use only statically allocated storage when
50746         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
50747         than STATIC_BUF_SIZE.
50748
50749 2000-07-29  Jim Meyering  <meyering@lucent.com>
50750
50751         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
50752         * lib/dirname.c (dir_name): Likewise.
50753
50754         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
50755         `/'.
50756
50757         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
50758         (dir_name): Assert that there are no trailing slashes.
50759
50760 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
50761
50762         * lib/mbswidth.h (mbswidth): Add a flags argument.
50763         (mbswidth): New declaration.
50764         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
50765         * lib/mbswidth.c (mbswidth): Add a flags argument.
50766         (mbsnwidth): New function.
50767
50768 2000-07-24  Jim Meyering  <meyering@lucent.com>
50769
50770         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
50771
50772 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50773
50774         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
50775
50776 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50777
50778         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
50779         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
50780         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
50781         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
50782         invoke multibyte primitives.
50783
50784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50785
50786         * lib/quotearg.c:
50787         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
50788         so that mbstate_t is always defined.
50789
50790         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
50791         be 1 in at least one GCC installation, and this configuration
50792         error is likely to be common.  Ignoring MB_LEN_MAX hurts
50793         performance on hosts that have mbrtowc but have only unibyte
50794         locales, but I assume these hosts are rare.
50795
50796 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50797
50798         * lib/mbswidth.c (_XOPEN_SOURCE):
50799         Don't define; this causes problems on Solaris 7.
50800         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
50801
50802 2000-07-23  Jim Meyering  <meyering@lucent.com>
50803
50804         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
50805         too: getgrgid, getpwuid, getuid.
50806
50807 2000-07-23  Jim Meyering  <meyering@lucent.com>
50808
50809         * lib/basename.c (base_name): Add an assertion.
50810
50811 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
50812
50813         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
50814         shadow its mbsinit function.
50815
50816 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
50817
50818         * lib/mbswidth.h: New file.
50819         * lib/mbswidth.c: New file.
50820         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
50821         (noinst_HEADERS): Add mbswidth.h.
50822
50823 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
50824
50825         * lib/config.charset: Add support for FreeBSD. Improve support for
50826         HP-UX and IRIX 6.
50827
50828 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
50829
50830         * m4/mbswidth.m4: New file.
50831         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
50832
50833 2000-07-15  Jim Meyering  <meyering@lucent.com>
50834
50835         * lib/makepath.c: Include quote.h.
50836         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
50837         corresponding argument in a `quote (...)' call.
50838         Give better diagnostics.
50839
50840         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
50841         (noinst_HEADERS): Add quote.h.
50842
50843         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
50844         from tar's src/misc.c.
50845         * lib/quote.h: New file.  Prototypes for same.
50846
50847 2000-07-14  Paul Eggert  <eggert@twinsun.com>
50848
50849         From a suggestion by Bruno Haible.
50850         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
50851         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
50852         to decide whether to define the BeOS workaround macro;
50853         this adjusts to the change to AC_MBSTATE_T.
50854
50855 2000-07-14  Jim Meyering  <meyering@lucent.com>
50856
50857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
50858         jm_AC_TYPE_UINTMAX_T.
50859
50860 2000-07-13  Paul Eggert  <eggert@twinsun.com>
50861
50862         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
50863
50864         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
50865         quotearg_buffer_restyled): Add support for
50866         clocale_quoting_style.  Undo previous change to
50867         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
50868         and "{RIGHT QUOTATION MARK}" msgids.
50869
50870 2000-07-10  Paul Eggert  <eggert@twinsun.com>
50871
50872         From a suggestion by Bruno Haible.
50873         * m4/mbstate_t.m4 (AC_MBSTATE_T):
50874         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
50875         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
50876         and mbstate_t, to a single-part test that simply defines mbstate_t.
50877         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
50878         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
50879
50880 2000-07-10  Jim Meyering  <meyering@lucent.com>
50881
50882         * m4/strerror_r.m4: Mirror the correction made in autoconf.
50883
50884         * m4/gnu-source.m4: Output to confdefs.h directly.
50885         Suggestion from Akim Demaille.
50886
50887 2000-07-09  Paul Eggert  <eggert@twinsun.com>
50888
50889         The old behavior of quoting `like this' doesn't look good with
50890         newer, ISO-style fonts.  See:
50891         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
50892
50893         Instead, quote "like this" by default.  Let the translator
50894         tailor the locale-specific quoting behavior by providing
50895         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
50896
50897         * lib/quotearg.c (N_): New macro.
50898         (gettext_default): New function.
50899         (quotearg_buffer_restyled): Use
50900         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
50901         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
50902
50903 2000-07-09  Jim Meyering  <meyering@lucent.com>
50904
50905         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
50906         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
50907
50908         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
50909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
50910
50911 2000-07-09  Jim Meyering  <meyering@lucent.com>
50912
50913         * lib/Most files: Update copyright dates to include 2000.
50914
50915 2000-07-08  Jim Meyering  <meyering@lucent.com>
50916
50917         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
50918         if not defined.
50919         (xgethostname): Remove now-unnecessary #ifdef.
50920         Move declaration of `err' into loop where it's used.
50921
50922 2000-07-05  Paul Eggert  <eggert@twinsun.com>
50923         and Bruno Haible  <haible@clisp.cons.org>
50924
50925         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
50926         only if the test for an object-type mbstate_t fails.  This
50927         prevents us from mistakenly reporting that mbstate_t is a
50928         system object type after we "#define mbstate_t int" to work
50929         around its lack.
50930
50931 2000-07-05  Paul Eggert  <eggert@twinsun.com>
50932         and Bruno Haible  <haible@clisp.cons.org>
50933
50934         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
50935
50936 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
50937
50938         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
50939         to strerror_r.
50940         Include <ctype.h> for use of isalpha.
50941
50942 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
50943
50944         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
50945         by allocating a larger buffer. Test the gethostname return value for
50946         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
50947         returns an error and ENAMETOOLONG isn't defined.
50948
50949 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
50950
50951         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
50952         dimension.
50953
50954 2000-07-04  Jim Meyering  <meyering@lucent.com>
50955
50956         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
50957         of the deprecated AC_CHECKING.
50958
50959 2000-07-04  Jim Meyering  <meyering@lucent.com>
50960
50961         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
50962         Reported by Bruno Haible.
50963
50964 2000-07-04  Jim Meyering  <meyering@lucent.com>
50965
50966         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
50967         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
50968         lacks mbrtowc.
50969
50970 2000-07-03  Paul Eggert  <eggert@twinsun.com>
50971
50972         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
50973         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
50974
50975 2000-07-03  Paul Eggert  <eggert@twinsun.com>
50976         and Bruno Haible  <haible@clisp.cons.org>
50977
50978         * lib/quotearg.c (mbrtowc):
50979         Assign to *pwc, and return 1 only if result is nonzero.
50980         (iswprint): Use ISPRINT when substituting our own mbrtowc.
50981
50982 2000-07-03  Jim Meyering  <meyering@lucent.com>
50983
50984         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
50985
50986 2000-07-03  Jim Meyering  <meyering@lucent.com>
50987
50988         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
50989         This is necessary to get a definition of e.g., UTMP_FILE on
50990         HP-UX 10.20.
50991         From Bob Proulx.
50992
50993 2000-07-02  Jim Meyering  <meyering@lucent.com>
50994
50995         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
50996
50997         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
50998         AC_LIBOBJ(function_name).
50999         * m4/chown.m4: Likewise.
51000         * m4/fnmatch.m4: Likewise.
51001         * m4/ftruncate.m4: Likewise.
51002         * m4/getgroups.m4: Likewise.
51003         * m4/getline.m4: Likewise.
51004         * m4/group-member.m4: Likewise.
51005         * m4/jm-macros.m4: Likewise.
51006         * m4/lstat.m4: Likewise.
51007         * m4/malloc.m4: Likewise.
51008         * m4/memcmp.m4: Likewise.
51009         * m4/nanosleep.m4: Likewise.
51010         * m4/putenv.m4: Likewise.
51011         * m4/realloc.m4: Likewise.
51012         * m4/regex.m4: Likewise.
51013         * m4/stat.m4: Likewise.
51014         * m4/strftime.m4: Likewise.
51015
51016 2000-07-02  Jim Meyering  <meyering@lucent.com>
51017
51018         * lib/quotearg.c (mbstate_t): Don't define here.
51019
51020 2000-07-02  Jim Meyering  <meyering@lucent.com>
51021
51022         * lib/nanosleep.c (SIGCONT): Define if not already defined.
51023
51024 2000-07-01  Jim Meyering  <meyering@lucent.com>
51025
51026         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
51027
51028 2000-07-01  Jim Meyering  <meyering@lucent.com>
51029
51030         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
51031         problem.
51032
51033 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51034
51035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
51036         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
51037
51038 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51039
51040         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
51041         per change in ../m4/ls-mntd-fs.m4.
51042         (read_filesystem_list): Ignore symbolic links.
51043
51044 2000-06-29  Jim Meyering  <meyering@lucent.com>
51045
51046         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
51047         for declaration of strcmp.
51048
51049         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
51050
51051         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
51052         Avoid warning by casting result to `char *' to remove `const'.
51053
51054 2000-06-28  Jim Meyering  <meyering@lucent.com>
51055
51056         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
51057         included by quotearg.c, for which we perform this test.  From
51058         Bruno Haible.
51059
51060 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51061
51062         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
51063         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
51064         <utmpx.h> exists, put readutmp.o into LIBOBJS.
51065
51066 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51067
51068         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
51069
51070 2000-06-26  Paul Eggert  <eggert@twinsun.com>
51071
51072         savedir now sets errno on failure and invokes xmalloc to get memory.
51073         Fix a couple of other minor bugs while we're at it.
51074
51075         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
51076         (NAMLEN): Remove macro.
51077         (malloc, realloc): Remove decls.
51078         (stpcpy): Likewise.
51079         ("xalloc.h"): Include.
51080         (NAME_SIZE_DEFAULT): New macro.
51081         (savedir): Use xmalloc / xrealloc to allocate memory.
51082         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
51083         Skip "" directory entries.
51084         Use strlen to calculate directory entry length, since the old method
51085         is rarely used these days and isn't worth supporting.
51086         Don't use a pointer after freeing it.
51087         Check for integer overflow when calculating allocation size.
51088         Use memcpy to copy entries, instead of stpcpy.
51089         Set errno properly when returning NULL.
51090         Check for readdir error.
51091
51092 2000-06-26  Jim Meyering  <meyering@lucent.com>
51093
51094         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
51095
51096 2000-06-25  Jim Meyering  <meyering@lucent.com>
51097
51098         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
51099         Linux header bug when _XOPEN_SOURCE is defined to 500.
51100
51101 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51102
51103         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
51104         deficiency.
51105
51106 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51107
51108         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
51109         Include xalloc.h.
51110         Don't include <stdlib.h>.  Don't declare malloc, realloc.
51111
51112 2000-06-24  Jim Meyering  <meyering@lucent.com>
51113
51114         * m4/strerror_r.m4: Revive this file -- to try out an experimental
51115         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
51116         for which strerror does return char*, but which lacks a conveniently
51117         accessible declaration of the function.  If the compile-test says
51118         strerror_r doesn't work, then resort to a `run'-test that works on
51119         BeOS and segfaults on DEC Unix.
51120
51121 2000-06-24  Jim Meyering  <meyering@lucent.com>
51122
51123         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
51124
51125 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51126
51127         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
51128         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
51129
51130 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51131
51132         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
51133         (mbrtowc, mbstate_t): Define substitutes if
51134         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
51135         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
51136         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
51137
51138 2000-06-23  Jim Meyering  <meyering@lucent.com>
51139
51140         * m4/afs.m4: Add missing AC_MSG_RESULT.
51141         Reported by Bruno Haible.
51142
51143         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
51144         Suggestion from Bruno Haible.
51145
51146 2000-06-23  Jim Meyering  <meyering@lucent.com>
51147
51148         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
51149
51150 2000-06-21  Jim Meyering  <meyering@lucent.com>
51151
51152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
51153
51154 2000-06-21  Jim Meyering  <meyering@lucent.com>
51155
51156         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
51157         (noinst_HEADERS): Add getstr.h.
51158
51159         * lib/getline.c (getstr): Move into a separate file.
51160         * lib/getstr.c (getstr): New file, extracted from getline.c, with
51161         the following changes: new parameter, delim2; both delim[12]
51162         parameters have type `int', not `char'.  The latter would lose
51163         with 8-bit delimiters.
51164         * lib/getstr.h: New file.
51165
51166 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51167
51168         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
51169         than 1024, return a memory chunk of least possible size, instead
51170         of size PATH_MAX + 2. In the loop, increment the size proportionally.
51171         Use free/xmalloc instead of xrealloc to avoid copying for very long
51172         paths.
51173
51174 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51175
51176         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
51177         the empty string.
51178
51179 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51180
51181         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
51182         address, not strdup.  Include <stdlib.h> and don't declare free().
51183
51184 2000-06-19  Jim Meyering  <meyering@lucent.com>
51185
51186         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
51187
51188 2000-06-18  Jim Meyering  <meyering@lucent.com>
51189
51190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
51191
51192         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
51193         `checking whether...' message to be consistent with that of the
51194         lstat test.
51195
51196 2000-06-18  Jim Meyering  <meyering@lucent.com>
51197
51198         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
51199         Besides, these days every porting target provides a mkdir function.
51200
51201         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
51202         needed. (this snippet comes from src/system.h).
51203
51204 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
51205
51206         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
51207
51208 2000-06-15  Paul Eggert  <eggert@twinsun.com>
51209
51210         * lib/human.c (adjust_value): New function.
51211         (human_readable_inexact): Apply rounding style even when
51212         printing approximate values.
51213
51214 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51215
51216         * lib/human.c (human_readable_inexact): Allow an input block
51217         size that is not a multiple of the output block size, and vice versa.
51218         Reported by Piergiorgio Sartor.
51219
51220 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51221
51222         * lib/getdate.y (get_date): Apply relative times after time
51223         zone indicator, not before.  Reported by Todd A. Jacobs.
51224
51225 2000-06-13  Jim Meyering  <meyering@lucent.com>
51226
51227         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
51228
51229         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
51230
51231 2000-06-12  Paul Eggert  <eggert@twinsun.com>
51232
51233         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
51234
51235 2000-06-12  Jim Meyering  <meyering@lucent.com>
51236
51237         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
51238         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
51239         optional argument.
51240         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
51241         the optional argument, `lib'.
51242
51243 2000-06-08  Jim Meyering  <meyering@lucent.com>
51244
51245         * m4/largefile.m4: Remove file (now that it's part of autoconf).
51246
51247 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51248
51249         Rewrite largefile configuration so that we don't need to run
51250         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
51251         AC_CANONICAL_HOST in configure.in -- jmm]
51252
51253         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
51254         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
51255         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
51256         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
51257         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
51258         All uses changed.
51259         Instead of inspecting the output of getconf, try to compile the
51260         test program without and with the macro definition.
51261         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
51262         for getconf.  Instead, check for the needed flags by compiling
51263         test programs.
51264
51265 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51266
51267         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
51268
51269 2000-06-04  Jim Meyering  <meyering@lucent.com>
51270
51271         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
51272         SunOS 4.1.4 for which gid_t is an unsigned type.
51273
51274 2000-06-03  Jim Meyering  <meyering@lucent.com>
51275
51276         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
51277         now that autoconf requires that.
51278
51279         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
51280         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
51281         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
51282
51283 2000-06-03  Jim Meyering  <meyering@lucent.com>
51284
51285         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
51286
51287 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51288
51289         * m4/glibc21.m4: New file.
51290         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
51291
51292 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51293
51294         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
51295         newer, don't install charset.alias.
51296         * lib/config.charset: Change the Linux/glibc rules so they become empty
51297         on glibc-2.1 or newer.
51298
51299 2000-06-02  Jim Meyering  <meyering@lucent.com>
51300
51301         * lib/mountlist.c: Back out last change.  Instead, do this...
51302         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
51303         me_dummy member using the same `ignore'-testing code.
51304         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
51305         fs_type strings.
51306         From Mark D. Roth.
51307
51308 2000-05-29  Jim Meyering  <meyering@lucent.com>
51309
51310         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
51311         mounts with the `ignore' attribute.  Based on a patch from
51312         Mark D. Roth.
51313
51314 2000-05-28  Jim Meyering  <meyering@lucent.com>
51315
51316         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
51317         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51318         * m4/stat.m4: Likewise.
51319         * m4/lstat.m4: Likewise.
51320         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
51321
51322         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
51323         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
51324
51325 2000-05-26  Jim Meyering  <meyering@lucent.com>
51326
51327         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
51328
51329 2000-05-24  Jim Meyering  <meyering@lucent.com>
51330
51331         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
51332         autoconf requires that.
51333         * m4/lib-check.m4: Likewise.
51334         * m4/jm-macros.m4: Likewise.
51335         * m4/strftime.m4: Likewise.
51336
51337         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
51338         AC_CHECK_DECLS, now that autoconf requires that.
51339
51340 2000-05-22  Jim Meyering  <meyering@lucent.com>
51341
51342         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51343         * m4/lstat.m4: Likewise.
51344
51345 2000-05-22  Jim Meyering  <meyering@lucent.com>
51346
51347         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
51348
51349 2000-05-20  Jim Meyering  <meyering@lucent.com>
51350
51351         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
51352         (jm_PREREQ): Use it.
51353
51354 2000-05-18  Jim Meyering  <meyering@lucent.com>
51355
51356         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
51357         back, too, since it may have been modified by allocate_entry.
51358         (hash_delete): Rewrite to use neither the assignment operator
51359         nor the comma operator in an if-expression.
51360
51361 2000-05-15  Paul Eggert  <eggert@twinsun.com>
51362
51363         * lib/closeout.c:
51364         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
51365         Remove; no longer needed.
51366         "quotearg.h": Add include.
51367         (file_name): Do not bother to explicitly initialize to NULL; it's less
51368         efficient on some hosts.
51369         (close_stdout_status): Remove test as to whether stdout was already
51370         closed; it breaks for the case "echo x | sort >&-".
51371         Quote file name colons.
51372         Do not assume that _("write error") lacks format strings.
51373
51374 2000-05-15  Jim Meyering  <meyering@lucent.com>
51375
51376         * lib/version-etc.c (version_etc_copyright): Update the copyright
51377         string used in all --version output.
51378
51379 2000-05-14  Jim Meyering  <meyering@lucent.com>
51380
51381         * lib/closeout.c (close_stdout_set_file_name): New function.
51382         (close_stdout_status): Use new file-scoped global.
51383         Return right away if fstat says the stdout file descriptor is invalid.
51384         * lib/closeout.h (close_stdout_set_file_name): Declare.
51385
51386 2000-05-10  Jim Meyering  <meyering@lucent.com>
51387
51388         * lib/closeout.c [default_exit_status]: New file-scoped variable.
51389         (close_stdout_set_status): New function.
51390         * lib/closeout.h (close_stdout_set_status): Declare.
51391
51392 2000-05-09  Jim Meyering  <meyering@lucent.com>
51393
51394         * m4/gettext.m4: Rename this...
51395         * m4/libintl.m4: ...to this.
51396
51397 2000-05-08  Jim Meyering  <meyering@lucent.com>
51398
51399         * lib/long-options.c: Don't include closeout.h.
51400         (parse_long_options): Don't call close_stdout for --version.
51401
51402 2000-05-06  Paul Eggert  <eggert@twinsun.com>
51403
51404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
51405         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
51406         2.1.3 bug.  This avoids a clash when files like regex.c define
51407         _GNU_SOURCE.
51408
51409 2000-05-06  Jim Meyering  <meyering@lucent.com>
51410
51411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
51412         (AC_REPLACE_FUNCS): Add strnlen.
51413
51414         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
51415         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
51416
51417         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
51418         AC_SEARCH_LIBS call for nanosleep.
51419         (LIB_NANOSLEEP): Set and AC_SUBST.
51420
51421 2000-05-06  Jim Meyering  <meyering@lucent.com>
51422
51423         * lib/strnlen.c: Undefine __strnlen and strnlen.
51424         [!weak_alias]: Define __strnlen to strnlen.
51425
51426         * lib/atexit.c: New file, from libiberty.
51427
51428 2000-05-06  Jim Meyering  <meyering@lucent.com>
51429
51430         * lib/closeout.c (close_stdout_status): Also check for errors on the
51431         stderr stream.
51432
51433 2000-05-05  Jim Meyering  <meyering@lucent.com>
51434
51435         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
51436         AC_SEARCH_LIBS call for clock_gettime.
51437         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
51438
51439         * m4/search-libs.m4: Update from autoconf.
51440
51441         su doesn't work on Solaris 2.6.
51442         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
51443         <shadow.h>.  Reported by Dragos Harabor.
51444
51445 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
51446
51447         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
51448         memcpy instead of xmalloc, xrealloc, path_concat.
51449         (locale_charset): Treat empty environment variables as absent.
51450         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
51451
51452 2000-05-04  Jim Meyering  <meyering@lucent.com>
51453
51454         * lib/getopt.c: Update from glibc.
51455         * lib/obstack.c: Likewise.
51456         * lib/obstack.h: Likewise.
51457         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
51458         file
51459
51460         * lib/regex.h: Likewise.
51461         * lib/strndup.c: Likewise.
51462         * lib/strnlen.c: New file, from glibc.
51463
51464 2000-05-03  Jim Meyering  <meyering@lucent.com>
51465
51466         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
51467
51468 2000-05-02  Paul Eggert  <eggert@twinsun.com>
51469
51470         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
51471         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
51472         compile-time test, rather than inspecting host and OS, to
51473         decide whether to define _LARGEFILE_SOURCE.
51474
51475 2000-05-01  Jim Meyering  <meyering@lucent.com>
51476
51477         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
51478
51479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
51480         Based on a patch from Bruno Haible.
51481
51482 2000-05-01  Jim Meyering  <meyering@lucent.com>
51483
51484         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
51485
51486 2000-04-29  Jim Meyering  <meyering@lucent.com>
51487
51488         * lib/path-concat.c: Declare strdup only if it's not defined.
51489         * lib/canon-host.c: Likewise.
51490
51491 2000-04-28  Jim Meyering  <meyering@lucent.com>
51492
51493         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
51494         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
51495         is included first, then limits.h is included by locale.h by libintl.h.
51496         From John David Anglin.
51497
51498 2000-04-25  Jim Meyering  <meyering@lucent.com>
51499
51500         * lib/makepath.c (S_IRWXUGO): Define.
51501         (make_path): Always perform explicit chmod if MODE specifies any
51502         of the `special' permission bits.  Prompted by a bug report against
51503         install from Mate Wierdl and Joost van Baal.
51504
51505 2000-04-18  Jim Meyering  <meyering@lucent.com>
51506
51507         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
51508         (jm_PREREQ): Use it.
51509
51510 2000-04-18  Jim Meyering  <meyering@lucent.com>
51511
51512         * lib/README: New file.
51513
51514         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
51515         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
51516
51517 2000-04-17  Jim Meyering  <meyering@lucent.com>
51518
51519         Get it right :-)
51520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
51521         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
51522         Suggestion from Akim Demaille.
51523
51524 2000-04-17  Jim Meyering  <meyering@lucent.com>
51525
51526         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
51527         the definition of it to rpl_strftime also defined-away the system's
51528         declaration.
51529
51530 2000-04-15  Jim Meyering  <meyering@lucent.com>
51531
51532         Use `C' to denote so-called `contiguous' files, the same way
51533         that tar does.
51534         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
51535         (ftypelet): Use S_ISCTG.
51536         From Michael Deutschmann.
51537
51538 2000-04-14  Jim Meyering  <meyering@lucent.com>
51539
51540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
51541         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
51542         clobbered.
51543
51544 2000-04-14  Jim Meyering  <meyering@lucent.com>
51545
51546         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
51547
51548 2000-04-13  Jim Meyering  <meyering@lucent.com>
51549
51550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
51551         AH_VERBATIM to insert required #ifndef into config.h.in.
51552         Suggestion from Akim Demaille.
51553
51554 2000-04-12  Jim Meyering  <meyering@lucent.com>
51555
51556         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
51557         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
51558         Christian Krackowizer.
51559
51560         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
51561         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
51562         (AC_SYS_LARGEFILE): Require.
51563         (AM_C_PROTOTYPES): Require.
51564
51565 2000-04-08  Jim Meyering  <meyering@lucent.com>
51566
51567         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
51568         names don't conflict.  Reported by Eli Zaretskii.
51569
51570 2000-04-07  Jim Meyering  <meyering@lucent.com>
51571
51572         * lib/putenv.c: Move inclusion of errno.h so it follows that of
51573         sys/types.h, to work around system header problems on AIX 3.2.5.
51574         From Bruno Haible.
51575
51576 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
51577
51578         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
51579         bug.  Deal with the different error behavior of Irix iconv.
51580
51581 2000-04-05  Paul Eggert  <eggert@twinsun.com>
51582
51583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
51584         IRIX if the installer said otherwise.
51585
51586 2000-04-05  Jim Meyering  <meyering@lucent.com>
51587
51588         Portability tweaks required for ultrix4.3.
51589         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
51590         (jm_CHECK_DECLS): Add getutent to the list of functions.
51591         (_jm_DECL_HEADERS): Add utmpx.h.
51592         From John David Anglin.
51593
51594         * m4/strftime.m4: Back out the 2000-04-02 change.
51595         Instead of that change, simply undefine putenv in the test program.
51596
51597 2000-04-05  Jim Meyering  <meyering@lucent.com>
51598
51599         Portability tweaks required for ultrix4.3.
51600         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
51601         getutent.
51602         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
51603         * lib/canon-host.c: Declare strdup.
51604         * lib/path-concat.c: Likewise.
51605         From John David Anglin.
51606
51607 2000-04-04  Jim Meyering  <meyering@lucent.com>
51608
51609         Be more DOS 8.3-friendly.
51610         * lib/ref-add.sin: Renamed from ref-add.sed.in.
51611         * lib/ref-del.sin: Renamed from ref-del.sed.in.
51612         * lib/Makefile.am: Reflect renaming.
51613         Reported by Eli Zaretskii.
51614
51615         Use a temporary file name that won't clash with `charset.alias'
51616         in the DOS 8.3 name space.
51617         * lib/Makefile.am (charset_tmp): Define.
51618         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
51619         (uninstall-local): Likewise.
51620         Reported by Eli Zaretskii.
51621
51622 2000-04-03  Jim Meyering  <meyering@lucent.com>
51623
51624         * m4/gettext.m4: Fix typo in comment.
51625
51626         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
51627         textutils/configure.in).  Suggestion from Paul Eggert.
51628         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
51629
51630 2000-04-02  Paul Eggert  <eggert@twinsun.com>
51631
51632         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
51633         variable in the shell rather than using putenv, which isn't
51634         portable.  This avoids the configure-time inter-test dependency
51635         on the potentially-renamed putenv function.
51636
51637 2000-03-30  Paul Eggert  <eggert@twinsun.com>
51638
51639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
51640         before checking struct stat.st_blksize, so that
51641         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
51642
51643 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51644
51645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
51646         since strftime.c uses HAVE_STRFTIME to decide whether to use
51647         the underlying strftime.
51648
51649 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51650
51651         * lib/time/strftime.c (my_strftime): Make sure we call the system
51652         strftime, not ourselves, when invoking the underlying strftime.
51653
51654 2000-03-24  Jim Meyering  <meyering@lucent.com>
51655
51656         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
51657         (charset_alias): Define.
51658         (install-exec-local): Factor out common code.
51659         (uninstall-local): Split lines longer than 80.
51660         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
51661         (SUFFIXES): Define.
51662         (.sed.in.sed): New rule.  Don't redirect directly to $@.
51663         (CLEANFILES): Add ref-add.sed and ref-del.sed.
51664
51665 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
51666
51667         * lib/config.charset: Output a line containing "Packages using this
51668         file".
51669         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
51670         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
51671         ref-del.sed): New rules.
51672
51673 2000-03-17  Jim Meyering  <meyering@lucent.com>
51674
51675         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
51676         Otherwise, include <strings.h>
51677
51678 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
51679
51680         * lib/unicodeio.c (utf8_wctomb): New function.
51681         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
51682         format instead of in UCS-4 with platform dependent endianness.
51683
51684 2000-03-10  Jim Meyering  <meyering@lucent.com>
51685
51686         * m4/lib-check.m4: Look for getspnam in -lgen, too.
51687         From Marco Franzen.
51688
51689 2000-03-07  Paul Eggert  <eggert@twinsun.com>
51690
51691         * lib/savedir.c (savedir): Work even if directory size is
51692         negative; this can happen with some screwy NFS configurations.
51693
51694 2000-03-06  Jim Meyering  <meyering@lucent.com>
51695
51696         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
51697         if it's NULL (because we ran out of memory).  From Bruno Haible.
51698
51699 2000-03-05  Jim Meyering  <meyering@lucent.com>
51700
51701         * lib/localcharset.c ("path-concat.h"): Include.
51702         (get_charset_aliases): Use path_concat instead of ANSI string
51703         concatenation.
51704
51705         * lib/unicodeio.h (PARAMS): Define.
51706         Use it to guard prototype.
51707
51708 2000-03-04  Jim Meyering  <meyering@lucent.com>
51709
51710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
51711         for lib/localcharset.c.
51712
51713 2000-03-04  Jim Meyering  <meyering@lucent.com>
51714
51715         * lib/Makefile.am (install-exec-local): Create $(libdir) before
51716         installing into it.
51717         (uninstall-local): Uncomment this rule so `make distcheck' works
51718         once again.
51719
51720         * lib/unicodeio.c (<errno.h>): Include it.
51721         (errno): Declare if not defined.
51722
51723         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
51724
51725         * lib/config.charset: New version, incorporating remarks from a linux
51726         i18n mailing list.  From Bruno Haible.
51727
51728 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
51729
51730         * m4/codeset.m4: New file.
51731         * m4/iconv.m4: New file.
51732         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
51733
51734 2000-03-03  Jim Meyering  <meyering@lucent.com>
51735
51736         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
51737
51738 2000-03-02  Jim Meyering  <meyering@lucent.com>
51739
51740         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
51741         the messages come out on separate lines.
51742
51743         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
51744         rather than jm_CHECK_DECLARATIONS.
51745         * m4/decl.m4: Remove now-unused file.
51746
51747         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
51748         geteuid.
51749
51750 2000-03-02  Jim Meyering  <meyering@lucent.com>
51751
51752         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
51753
51754 2000-03-01  Jim Meyering  <meyering@lucent.com>
51755
51756         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
51757         * lib/unicodeio.c: Likewise.
51758
51759 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
51760
51761         * lib/config.charset: New file.
51762         * lib/localcharset.c: New file.
51763         * lib/unicodeio.h, lib/unicodeio.c: New files.
51764         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
51765         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
51766         (noinst_HEADERS): Add unicodeio.h.
51767         (all-local, install-exec-local, charset.alias): New targets.
51768
51769 2000-02-28  Paul Eggert  <eggert@twinsun.com>
51770
51771         * lib/quotearg.c (ALERT_CHAR): New macro.
51772         (quotearg_buffer_restyled): Use it.
51773
51774 2000-02-27  Jim Meyering  <meyering@lucent.com>
51775
51776         * m4/check-decl.m4: Add getenv to the list.
51777
51778 2000-02-27  Jim Meyering  <meyering@lucent.com>
51779
51780         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
51781         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
51782
51783         * lib/backupfile.c: Guard inclusion of stdlib.h with
51784         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
51785         Declare malloc if needed.
51786
51787         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
51788         `#ifndef HAVE_DECL..'
51789         now that autoconf always defines the HAVE_DECL_ symbols.
51790         * lib/human.c: Likewise.
51791         * lib/same.c: Likewise.
51792         * lib/strtoumax.c: Likewise.
51793
51794         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
51795         declaration check was not run.
51796         * lib/hash.c: Likewise.
51797         * lib/human.c: Likewise.
51798         * lib/same.c: Likewise.
51799         * lib/strtoumax.c: Likewise.
51800
51801         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
51802         `.', then first look up the entire `.'-containing string as a login
51803         name.
51804
51805 2000-02-23  Jim Meyering  <meyering@lucent.com>
51806
51807         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
51808         in place of my hack.
51809
51810 2000-02-18  Paul Eggert  <eggert@twinsun.com>
51811
51812         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
51813         (textint): New typedef.
51814         (parser_control): Member year changed from int to textint.
51815         All uses changed.
51816         (YYSTYPE): Removed; replaced by %union with int and textint members.
51817         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
51818         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
51819         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
51820         (tSNUMBER, tUNUMBER): Now of type <textintval>.
51821         (date, number, to_year): Use width of number in digits, not its value,
51822         to determine whether it's a 2-digit year, or a 2-digit time.
51823         (yylex): Store number of digits of numeric tokens.
51824         Reported by John Kendall.
51825
51826         (parser_control): Changed from struct parser_control to typedef (for
51827         consistency).  All uses changed.
51828
51829         (tID): Removed; not used.
51830         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
51831
51832 2000-02-14  Paul Eggert  <eggert@twinsun.com>
51833
51834         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
51835         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
51836
51837 2000-02-12  Jim Meyering  <meyering@lucent.com>
51838
51839         * lib/userspec.c (ISDIGIT): Define it.
51840         (isdigit): Remove definition.
51841         (is_number): Use ISDIGIT, not isdigit.
51842         <libintl.h>: Include.
51843         (_ and N_): Define.
51844         (parse_user_spec): Mark translatable strings.
51845
51846 2000-02-10  Jim Meyering  <meyering@lucent.com>
51847
51848         With these changes, nanosleep.[ch] are finally enough like the other
51849         lib/* replacement files to compile on a few more losing systems.
51850
51851         * lib/nanosleep.h: Don't include config.h.
51852         Remove prototype from declaration of nanosleep.
51853         (PARAMS): Remove now-unneeded definition.
51854         * lib/nanosleep.c: #undef nanosleep.
51855         (rpl_nanosleep): Rename from nanosleep.
51856
51857 2000-02-10  Jim Meyering  <meyering@lucent.com>
51858
51859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
51860         gnu_nanosleep to rpl_nanosleep.
51861
51862 2000-02-09  Jim Meyering  <meyering@lucent.com>
51863
51864         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
51865         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
51866
51867 2000-02-08  Akim Demaille  <akim@epita.fr>
51868
51869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
51870         `[' and `]' and remove uses of `changequote'.
51871         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
51872         (AC_SYS_LARGEFILE): Likewise.
51873         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51874         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
51875         of changequote.
51876         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
51877         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
51878         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
51879         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
51880
51881 2000-02-05  Jim Meyering  <meyering@lucent.com>
51882
51883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
51884         Remove explicit use of AC_HEADER_TIME.  It is required by
51885         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
51886         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
51887         in autoconf whereby the expansion of the latter ended up preceding
51888         the expansion of its prerequisite, AC_HEADER_TIME.
51889         Reported by Volker Borchert.
51890
51891 2000-02-03  Jim Meyering  <meyering@lucent.com>
51892
51893         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
51894
51895 2000-02-03  Jim Meyering  <meyering@lucent.com>
51896
51897         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
51898         rather than with `#if HAVE_UTMPNAME'.
51899
51900 2000-02-02  Jim Meyering  <meyering@lucent.com>
51901
51902         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
51903         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
51904         Reported by Eli Zaretskii.
51905
51906 2000-02-01  Jim Meyering  <meyering@lucent.com>
51907
51908         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
51909
51910 2000-01-31  Jim Meyering  <meyering@lucent.com>
51911
51912         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
51913         functions.  Add the time.h and sys/time.h headers along with the
51914         AC_REQUIRE'ment of AC_HEADER_TIME.
51915
51916 2000-01-31  Jim Meyering  <meyering@lucent.com>
51917
51918         * lib/nanosleep.h (nanosleep): Guard declaration with
51919         `#if ! HAVE_DECL_NANOSLEEP'.
51920         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
51921         the declaration in that vendor's sys/timers.h.
51922         Reported by Christian Krackowizer.
51923
51924         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
51925         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
51926         (ISPRINT): Likewise.
51927         Reported by Tom Tromey.
51928
51929 2000-01-30  Jim Meyering  <meyering@lucent.com>
51930
51931         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
51932
51933         * m4/prereq.m4 (utmp_includes): Define.
51934         Check for ut_user and ut_name members in both struct utmpx
51935         and struct utmp.
51936
51937 2000-01-30  Jim Meyering  <meyering@lucent.com>
51938
51939         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
51940         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
51941         header files where only utmpx.ut_user is declared.
51942
51943         * lib/readutmp.h (UT_USER): Define.
51944
51945 2000-01-29  Jim Meyering  <meyering@lucent.com>
51946
51947         * m4/lib-check.m4: New file containing library-related checks from
51948         fileutils and sh-utils (textutils had none).
51949
51950 2000-01-28  Jim Meyering  <meyering@lucent.com>
51951
51952         * m4/perl.m4: Change format of warning message to look more like that
51953         from the missing script.  Suggestion from François Pinard.
51954
51955 2000-01-25  Jim Meyering  <meyering@lucent.com>
51956
51957         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
51958         well as time.h in the compile check.
51959         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
51960         Fix typo in cross-compiling case: s/yes/no/.
51961
51962 2000-01-23  Jim Meyering  <meyering@lucent.com>
51963
51964         * m4/jm-macros.m4: Move df-related tests here from
51965         fileutils/configure.in
51966
51967         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
51968         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
51969
51970         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
51971         s/space/ac_fsusage_space/.
51972         (jm_FILE_SYSTEM_USAGE): Take two parameters.
51973
51974         * m4/ftruncate.m4: New file (derived from part of
51975         fileutils/configure.in).
51976         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
51977         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
51978
51979         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
51980         AC_SUBST these here, rather than just in sh-util/configure.in, so
51981         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
51982         all the same.
51983         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
51984         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
51985         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
51986         (AC_SUBST(POW_LIBM)): Likewise.
51987         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
51988
51989 2000-01-23  Jim Meyering  <meyering@lucent.com>
51990
51991         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
51992         obstack.c.
51993
51994 2000-01-22  Jim Meyering  <meyering@lucent.com>
51995
51996         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
51997
51998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
51999
52000         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
52001         configure.in
52002         (AC_CHECK_HEADERS): Likewise for sh-utils.
52003         (AC_CHECK_HEADERS): Likewise for textutils.
52004         Merge the three lists of headers.
52005
52006         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
52007         from fileutils' configure.in.
52008
52009         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
52010         code. Moved tests into their own function (_jm_DECL_HEADERS) in
52011         check-decl.m4.
52012
52013         * m4/check-decl.m4: Use #if rather than #ifdef.
52014         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
52015         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
52016         (_jm_DECL_HEADERS): Define new function.
52017         (jm_CHECK_DECLARATIONS): Require it.
52018
52019 2000-01-22  Jim Meyering  <meyering@lucent.com>
52020
52021         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
52022         [! HAVE_DECL_STRTOULL]: Declare strtoull.
52023         Required for some AIX systems.  Reported by Christian Krackowizer.
52024         [TESTING] (main): New function.
52025
52026         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
52027         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
52028         letters.
52029
52030         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
52031         iswprint.
52032
52033         * lib/strverscmp.c (ISDIGIT): Define.
52034         (strverscmp): Use ISDIGIT, not isdigit.
52035
52036 2000-01-19  Jim Meyering  <meyering@lucent.com>
52037
52038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
52039         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
52040         defines `struct timespec' in <sys/time.h>
52041
52042         * m4/c-bs-a.m4: Remove uses of changequote altogether.
52043         Thanks to Akim for explaining.
52044
52045 2000-01-17  Paul Eggert  <eggert@twinsun.com>
52046
52047         * lib/nanosleep.c (nanosleep):
52048         Don't use SA_INTERRUPT to decide whether to call sigaction, as
52049         POSIX.1 doesn't require SA_INTERRUPT and some systems
52050         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
52051         it's been part of POSIX.1 since day 1 (in 1988).
52052
52053 2000-01-17  Jim Meyering  <meyering@lucent.com>
52054
52055         * lib/interlock: Remove unused file.  Reported by François Pinard.
52056
52057 2000-01-16  Paul Eggert  <eggert@twinsun.com>
52058
52059         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
52060         alert, backslash, formfeed, and vertical tab unnecessarily in
52061         shell quoting style.
52062
52063 2000-01-16  Jim Meyering  <meyering@lucent.com>
52064
52065         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
52066         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
52067         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
52068         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
52069
52070 2000-01-16  Jim Meyering  <meyering@lucent.com>
52071
52072         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
52073         because the latter didn't work.
52074
52075 2000-01-15  Jim Meyering  <meyering@lucent.com>
52076
52077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
52078         (AC_REPLACE_FUNCS): Add memcpy and memset.
52079         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
52080         Add strpbrk.
52081         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
52082
52083 2000-01-12  Jim Meyering  <meyering@lucent.com>
52084
52085         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
52086         (jm_PREREQ): Use it.
52087         (jm_PREREQ_READUTMP): New macro.
52088         (jm_PREREQ): Use it.
52089
52090 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52091
52092         Quote multibyte characters correctly.
52093         * m4/c-bs-a.m4: New file.
52094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
52095         (jm_PREREQ): Use it.
52096
52097 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52098
52099         * m4/uintmax_t.m4: Port to autoconf 2.13.
52100
52101 2000-01-08  Jim Meyering  <meyering@ascend.com>
52102
52103         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
52104         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
52105
52106 2000-01-04  Jim Meyering  <meyering@ascend.com>
52107
52108         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
52109         jm_STRUCT_DIRENT_D_TYPE.
52110         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
52111         jm_STRUCT_DIRENT_D_INO.
52112         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
52113         jm_STRUCT_UTIMBUF.
52114         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
52115         renamings.
52116         * m4/utime.m4: Likewise.
52117
52118         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
52119         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
52120
52121 2000-01-03  Paul Eggert  <eggert@twinsun.com>
52122
52123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
52124         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
52125
52126 2000-01-02  Jim Meyering  <meyering@ascend.com>
52127
52128         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
52129         remember if this is necessary.
52130
52131 1999-12-26  Jim Meyering  <meyering@ascend.com>
52132
52133         * m4/jm-macros.m4: Use it here.
52134         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
52135
52136 1999-12-23  Jim Meyering  <meyering@ascend.com>
52137
52138         * m4/jm-macros.m4: Check for clock_gettime (moved from
52139         fileutils/configure.in)
52140         Check for gettimeofday.
52141
52142 1999-12-20  Jim Meyering  <meyering@ascend.com>
52143
52144         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
52145         autoconf-2.14a-1999-12-20.
52146
52147 1999-12-19  Jim Meyering  <meyering@ascend.com>
52148
52149         * m4/lstat-slash.m4: New file.
52150         * m4/jm-macros.m4: Use the new macro:
52151         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52152
52153 1999-12-07  Jim Meyering  <meyering@ascend.com>
52154
52155         * m4/perl.m4: Require that File::Compare be available, too.
52156         Too many systems seem to lack it.
52157
52158         * m4/strftime.m4: Add checks for most of the cpp macros tested in
52159         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
52160
52161 1999-11-18  Paul Eggert  <eggert@twinsun.com>
52162
52163         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
52164         problem with the QNX 4.25 shell, which doesn't propagate exit
52165         status of failed commands inside shell assignments.
52166
52167 1999-11-17  Jim Meyering  <meyering@ascend.com>
52168
52169         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
52170
52171 1999-11-07  Jim Meyering  <meyering@ascend.com>
52172
52173         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
52174
52175 1999-11-06  Jim Meyering  <meyering@ascend.com>
52176
52177         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
52178         * m4/jm-macros.m4 (jm_MACROS): Use it here.
52179
52180 1999-11-05  Jim Meyering  <meyering@ascend.com>
52181
52182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
52183         configure.in of textutils, fileutils, and sh-utils into this one
52184         (shared between those packages) file.
52185         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
52186         AC_STRUCT_ST_BLKSIZE.
52187
52188 1999-11-03  Jim Meyering  <meyering@ascend.com>
52189
52190         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
52191         of AC_CHECK_TYPE checks includes unistd.h.
52192         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
52193         Suggestion from Akim Demaille.
52194
52195 1999-10-30  Jim Meyering  <meyering@ascend.com>
52196
52197         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
52198         m4-quoted string.
52199         * m4/ls-mntd-fs.m4: Likewise.
52200         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
52201         * m4/jm-winsz1.m4: Likewise.
52202
52203         * m4/const.m4: Remove file, since the fix made it into the experimental
52204         version of autoconf.
52205         * m4/mktime.m4: Likewise.
52206
52207         * m4/check-type.m4: Remove file, now that the latest version of
52208         AC_CHECK_TYPE takes a third arg to specify additional #includes.
52209
52210         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
52211         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
52212         AC_CHECK_TYPE.
52213
52214 1999-10-04  Jim Meyering  <meyering@ascend.com>
52215
52216         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
52217
52218 1999-09-22  Paul Eggert  <eggert@twinsun.com>
52219
52220         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
52221         2.95.1 bug with HP-UX 10.20.
52222
52223 1999-09-17  Jim Meyering  <meyering@ascend.com>
52224
52225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
52226         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
52227         due to missing strdup (against sh-utils-2.0).
52228
52229 1999-08-29  Jim Meyering  <meyering@ascend.com>
52230
52231         * m4/jm-macros.m4: Require jm_BISON.
52232         * m4/bison.m4: New file.
52233
52234 1999-08-17  Paul Eggert  <eggert@twinsun.com>
52235
52236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
52237         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
52238
52239 1999-08-05  Jim Meyering  <meyering@ascend.com>
52240
52241         * m4/getline.m4: Rename test file from conftestdata to conftest.data
52242         to avoid conflicts with `conftest' on 8+3 filesystems.
52243         Suggestion from Eli Zaretskii.
52244
52245 1999-08-04  Jim Meyering  <meyering@ascend.com>
52246
52247         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
52248         fileutils and sh-utils (textutils's getline test was inadequate).
52249         (AM_FUNC_GETLINE): Run this test.
52250         (AC_CHECK_FUNCS): Check for getdelim.
52251         Reported by Bob Proulx.
52252
52253 1999-08-02  Jim Meyering  <meyering@ascend.com>
52254
52255         * m4/jm-macros.m4: Add a comment.
52256
52257 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52258
52259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
52260         <inttypes.h> defines strtoumax as a macro (and not as a
52261         function).
52262
52263 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52264
52265         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
52266         that we can shift, multiply and divide unsigned long long
52267         values; Ultrix cc can't do it.
52268
52269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52270
52271         * m4/mktime.m4: New file, which is a preview of what should appear
52272         in the next public autoconf release.
52273
52274 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52275
52276         * m4/lfs.m4: Remove this file.
52277         * m4/largefile.m4: New file.  It contains the old contents of
52278         lfs.m4, except that all names with prefix AC_LFS have been
52279         changed to use the prefix AC_SYS_LARGEFILE instead, to be
52280         compatible with future autoconf versions.  Also, some minor m4
52281         quoting problems have been fixed.
52282
52283 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52284
52285         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
52286         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
52287         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
52288         and simplify the shell code.
52289
52290 1999-08-01  Jim Meyering  <meyering@ascend.com>
52291
52292         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
52293         m4.
52294
52295 1999-07-20  Jim Meyering  <meyering@ascend.com>
52296
52297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
52298
52299 1999-07-15  Jim Meyering  <meyering@ascend.com>
52300
52301         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
52302
52303 1999-05-22  Jim Meyering  <meyering@ascend.com>
52304
52305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
52306
52307 1999-05-20  Jim Meyering  <meyering@ascend.com>
52308
52309         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
52310         Add a colon after each `then' in case $4 is empty.
52311
52312 1999-05-16  Jim Meyering  <meyering@ascend.com>
52313
52314         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
52315
52316 1999-05-10  Jim Meyering  <meyering@ascend.com>
52317
52318         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
52319
52320         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
52321         AC_FUNC_MKTIME.
52322
52323 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
52324
52325         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
52326
52327 1999-05-04  Paul Eggert  <eggert@twinsun.com>
52328
52329         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
52330         not CPPFLAGS, so that linking works correctly in IRIX.
52331
52332 1999-04-30  Paul Eggert  <eggert@twinsun.com>
52333
52334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
52335
52336 1999-04-20  Paul Eggert  <eggert@twinsun.com>
52337
52338         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
52339         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
52340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
52341         jm_AC_TYPE_UNSIGNED_LONG_LONG.
52342         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
52343
52344         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
52345
52346 1999-04-20  Jim Meyering  <meyering@ascend.com>
52347
52348         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
52349         AC_REPLACE xstroull if necessary.  From Paul Eggert.
52350         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
52351
52352 1999-04-18  Jim Meyering  <meyering@ascend.com>
52353
52354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
52355         * m4/jm-macros.m4: Use it.
52356
52357 1999-04-06  Jim Meyering  <meyering@ascend.com>
52358
52359         * m4/strftime.m4: Remove test for %f.
52360
52361 1999-03-29  Jim Meyering  <meyering@ascend.com>
52362
52363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
52364         superset of the AC_TYPE_* checks in the textutils, fileutils,
52365         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
52366         AC_TYPE_PID_T.
52367
52368 1999-03-28  Jim Meyering  <meyering@ascend.com>
52369
52370         * m4/jm-macros.m4: Define GNU_PACKAGE here.
52371         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
52372         replaced e.g., in the *.sh files of the sh-utils.
52373
52374 1999-03-20  Jim Meyering  <meyering@ascend.com>
52375
52376         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
52377         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
52378         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
52379
52380 1999-03-19  Jim Meyering  <meyering@ascend.com>
52381
52382         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
52383
52384 1999-03-12  Jim Meyering  <meyering@ascend.com>
52385
52386         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
52387
52388 1999-03-07  Jim Meyering  <meyering@ascend.com>
52389
52390         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
52391         declared.
52392
52393 1999-02-17  Jim Meyering  <meyering@ascend.com>
52394
52395         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
52396         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
52397
52398 1999-02-07  Jim Meyering  <meyering@ascend.com>
52399
52400         * m4/group-member.m4: New file -- extracted from sh-utils'
52401         configure.in.
52402
52403         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
52404         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
52405
52406 1999-02-06  Jim Meyering  <meyering@ascend.com>
52407
52408         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
52409         * m4/fnmatch.m4: Likewise.
52410         * m4/getgroups.m4: Likewise.
52411         * m4/lstat.m4: Likewise.
52412         * m4/malloc.m4: Likewise.
52413         * m4/putenv.m4: Likewise.
52414         * m4/realloc.m4: Likewise.
52415         * m4/regex.m4: Likewise.
52416         * m4/stat.m4: Likewise.
52417         * m4/strftime.m4: Likewise.
52418         Suggestion from Alain Magloire.
52419
52420         * m4/chown.m4: Use `.$ac_objext', not `.o'.
52421         * m4/fnmatch.m4: Likewise.
52422         * m4/getgroups.m4: Likewise.
52423         * m4/getline.m4: Likewise.
52424         * m4/lstat.m4: Likewise.
52425         * m4/malloc.m4: Likewise.
52426         * m4/memcmp.m4: Likewise.
52427         * m4/putenv.m4: Likewise.
52428         * m4/realloc.m4: Likewise.
52429         * m4/regex.m4: Likewise.
52430         * m4/stat.m4: Likewise.
52431         * m4/strftime.m4: Likewise.
52432         Suggestion from Alain Magloire.
52433
52434         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
52435         an argument.
52436
52437         * m4/regex.m4: Add a run-time Test for proper operation of
52438         re_compile_pattern.
52439
52440 1999-01-31  Jim Meyering  <meyering@ascend.com>
52441
52442         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
52443
52444 1999-01-30  Jim Meyering  <meyering@ascend.com>
52445
52446         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
52447
52448         * m4/jm-mktime.m4: Make this a wrapper around the official
52449         AM_FUNC_MKTIME rather than my private copy, now that the official one
52450         is up to date.
52451         * m4/mktime.m4: Remove file.
52452
52453         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
52454         * m4/uptime.m4: Likewise.
52455         * m4/uintmax_t.m4: Likewise.
52456
52457 1999-01-28  Jim Meyering  <meyering@ascend.com>
52458
52459         * m4/jm-macros.m4: Use jm_AFS.
52460         * m4/afs.m4: New file (from fileutils' configure.in).
52461
52462         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
52463         * m4/chown.m4: Likewise.
52464         * m4/d-ino.m4: Likewise.
52465         * m4/d-type.m4: Likewise.
52466         * m4/fnmatch.m4: Likewise.
52467         * m4/getgroups.m4: Likewise.
52468         * m4/gettext.m4: Likewise.
52469         * m4/jm-mktime.m4: Likewise.
52470         * m4/jm-winsz2.m4: Likewise.
52471         * m4/lcmessage.m4: Likewise.
52472         * m4/ls-mntd-fs.m4: Likewise.
52473         * m4/malloc.m4: Likewise.
52474         * m4/memcmp.m4: Likewise.
52475         * m4/putenv.m4: Likewise.
52476         * m4/realloc.m4: Likewise.
52477         * m4/st_mtim.m4: Likewise.
52478         * m4/strftime.m4: Likewise.
52479
52480 1999-01-16  Jim Meyering  <meyering@ascend.com>
52481
52482         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
52483         (ARGMATCH_DIE_DECL): Define.
52484
52485 1999-01-12  Jim Meyering  <meyering@ascend.com>
52486
52487         * m4/Makefile.am.in: Rewrite to avoid using fmt.
52488         Reported by Lars Hecking.
52489
52490 1999-01-10  Jim Meyering  <meyering@ascend.com>
52491
52492         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
52493         gross kludge.
52494         * m4/inttypes_h.m4: Likewise.
52495         * m4/lstat.m4: Likewise.
52496         * m4/malloc.m4: Likewise.
52497         * m4/readdir.m4: Likewise.
52498         * m4/realloc.m4: Likewise.
52499         * m4/st_dm_mode.m4: Likewise.
52500         * m4/stat.m4: Likewise.
52501         * m4/utimbuf.m4: Likewise.
52502         * m4/utimes.m4: Likewise.
52503
52504         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
52505         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
52506         comments in config.h.in are meaningful.
52507
52508         * m4/jm-macros.m4: Require autoconf-2.13 here.
52509
52510         * m4/regex.m4: By default, don't use the included regex.c on systems
52511         with glibc 2.  Suggestion from Uli Drepper.
52512
52513 1999-01-02  Jim Meyering  <meyering@ascend.com>
52514
52515         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
52516
52517 1998-12-18  Jim Meyering  <meyering@ascend.com>
52518
52519         * m4/Makefile.am.in (Makefile.am): Simplify rule.
52520         Based on a suggestion from Lars Hecking.
52521
52522 1998-11-16  Paul Eggert  <eggert@twinsun.com>
52523
52524         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
52525
52526 1998-11-16  Jim Meyering  <meyering@ascend.com>
52527
52528         * m4/lfs.m4: Double-quote the `uname...` expression.
52529
52530 1998-11-14  Jim Meyering  <meyering@ascend.com>
52531
52532         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
52533         * m4/stat.m4: Likewise.
52534
52535 1998-11-03  Jim Meyering  <meyering@ascend.com>
52536
52537         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
52538         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
52539
52540 1998-10-18  Jim Meyering  <meyering@ascend.com>
52541
52542         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
52543
52544 1998-10-17  Jim Meyering  <meyering@ascend.com>
52545
52546         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
52547         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
52548         calls for those previously hard-coded headers.  Instead, take a new
52549         parameter.
52550         (jm_CHECK_DECLARATIONS): Reflect interface change.
52551         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
52552         (jm_CHECK_DECL_LOCALTIME_R): New macro.
52553
52554         * m4/mktime.m4: Test for spring-forward gap before long-running test.
52555
52556 1998-10-14  Jim Meyering  <meyering@ascend.com>
52557
52558         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
52559         instead of "TZ=America/Vancouver".  From Paul Eggert.
52560
52561 1998-10-11  Jim Meyering  <meyering@ascend.com>
52562
52563         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
52564         This adds a test for a recently added compatibility fix for mktime.c.
52565         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
52566
52567 1998-09-27  Jim Meyering  <meyering@ascend.com>
52568
52569         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
52570
52571         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
52572         ../configure.in, including a change from Gordon Matzigkeit to allow
52573         cross-compiling for the Hurd.
52574
52575         * m4/glibc.m4: New file/macro to test for the GNU C Library
52576         versions 1 and 2.  From Gordon Matzigkeit.
52577         Indent.
52578
52579 1998-09-21  Jim Meyering  <meyering@ascend.com>
52580
52581         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
52582
52583 1998-08-18  Paul Eggert  <eggert@twinsun.com>
52584
52585         Port nanosecond-resolution times to UnixWare 2.1.2 and
52586         pedantic Solaris 2.6.
52587
52588         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
52589         AC_STRUCT_ST_MTIM.
52590         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
52591         Generate name of ns member, instead of just 1 or undef.
52592         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
52593
52594 1998-08-15  Jim Meyering  <meyering@ascend.com>
52595
52596         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
52597         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
52598         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
52599         instead of jm_TYPE_SSIZE_T.
52600
52601 1998-08-12  Jim Meyering  <meyering@ascend.com>
52602
52603         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
52604
52605 1998-08-02  Jim Meyering  <meyering@ascend.com>
52606
52607         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
52608         in acconfig.h manually.
52609
52610 1998-07-31  Paul Eggert  <eggert@twinsun.com>
52611
52612         * m4/st_mtim.m4: New file.
52613
52614 1998-07-28  Jim Meyering  <meyering@ascend.com>
52615
52616         * m4/utimes.m4: Undef stat.
52617
52618 1998-07-25  Jim Meyering  <meyering@ascend.com>
52619
52620         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
52621         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
52622
52623 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
52624
52625         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
52626         uid and gid actually remain unchanged.
52627
52628 1998-07-07  Jim Meyering  <meyering@ascend.com>
52629
52630         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
52631
52632 1998-07-04  Jim Meyering  <meyering@ascend.com>
52633
52634         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
52635         to prove that this macro can be used in packages without regex.c.
52636
52637 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
52638
52639         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
52640         is to be used.
52641
52642 1998-07-03  Jim Meyering  <meyering@ascend.com>
52643
52644         * m4/gettext.m4: Add -lintl if it's found to be necessary.
52645
52646         * m4/gettext.m4: New file -- from gettext-0.10.35.
52647         * m4/lcmessage.m4: Likewise.
52648         * m4/progtest.m4: Likewise.
52649
52650         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
52651         * m4/jm-macros.m4: Require the new macro.
52652
52653 1998-06-29  Jim Meyering  <meyering@ascend.com>
52654
52655         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
52656         for the definition of NGROUPS (used in a system header included
52657         by sys/mount.h).
52658
52659 1998-06-28  Jim Meyering  <meyering@ascend.com>
52660
52661         * m4/ls-mntd-fs.m4: New file.
52662         * m4/fstypename.m4: New file.
52663
52664         * m4/jm-macros.m4: Require the new macro.
52665         * m4/jm-glibc-io.m4: New file.
52666
52667 1998-05-19  Jim Meyering  <meyering@ascend.com>
52668
52669         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
52670         * m4/lchown.m4: New file.
52671
52672         * m4/Makefile.am.in: New file.
52673         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
52674
52675 1998-05-14  Jim Meyering  <meyering@ascend.com>
52676
52677         * m4/Makefile.am (EXTRA_DIST): Add them.
52678         * m4/jm-macros.m4: New file.
52679         * m4/utimbuf.m4: New file.
52680
52681 1998-05-12  Jim Meyering  <meyering@ascend.com>
52682
52683         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
52684
52685 1998-05-11  Jim Meyering  <meyering@ascend.com>
52686
52687         * m4/isc-posix.m4: New file.
52688
52689 1998-05-10  Jim Meyering  <meyering@ascend.com>
52690
52691         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
52692
52693 1998-05-09  Jim Meyering  <meyering@ascend.com>
52694
52695         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
52696         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
52697         with automake.
52698
52699         * m4/ssize_t.m4: New file.
52700         * m4/mktime.m4: Remove file -- the new automake has this now.
52701
52702 1998-04-26  Jim Meyering  <meyering@ascend.com>
52703
52704         * m4/assert.m4: New file.
52705         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
52706
52707 1998-04-05  Jim Meyering  <meyering@ascend.com>
52708
52709         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
52710         (jm_PREREQ): Use it here.
52711
52712 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
52713
52714         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
52715         in acconfig.h.
52716
52717 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
52718
52719         * m4/prereq.m4: New file.
52720         * m4/error.m4: New file.
52721         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
52722
52723 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
52724
52725         * m4/getline.m4: Don't set am_cv_func_working_getline before the
52726         cache-check for the same variable -- that defeated the purpose of
52727         the test; the test program was never run.  This was a problem only
52728         on systems with losing getline functions -- HP-UX 10.20 is one.
52729         Reported by Bjorn Helgaas.
52730
52731 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
52732
52733         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
52734
52735 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
52736
52737         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
52738
52739         * m4/const.m4: New file.  Use an initializer in this declaration
52740         typedef int charset[2]; const charset x;
52741         Reported by Bob Glickstein.
52742
52743 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
52744
52745         * m4/chown.m4: Fix reversed types on -1 args to chown.
52746         From Kaveh Ghazi.
52747
52748 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
52749
52750         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
52751         Add lseek and memchr.
52752
52753         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
52754         T.E.Dickey <dickey@clark.net> said that some older preprocessors
52755         have a 20-character limit on names.
52756
52757 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
52758
52759         * m4/inttypes_h.m4: New file.
52760         * m4/uintmax_t.m4: New file.
52761         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
52762
52763
52764         -----
52765
52766         Local Variables:
52767         coding: utf-8
52768         End:
52769
52770         Copyright (C) 1997-2009 Free Software Foundation, Inc.
52771
52772         Copying and distribution of this file, with or without
52773         modification, are permitted provided the copyright notice
52774         and this notice are preserved.