selinux-at: fix typo in a comment
[gnulib.git] / ChangeLog
1 2009-08-07  Jim Meyering  <meyering@redhat.com>
2
3         selinux-at: fix typo in a comment
4         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
5         Spotted by Paolo Bonzini.
6
7         selinux-at: remove redundant m4 code, add documentation
8         * modules/selinux-at (configure.ac): Remove redundant code.
9         LIB_SELINUX is already set via the dependent module, selinux-h.
10         (Include): Add quotes around selinux-at.h.
11         * lib/selinux-at.h: Add documentation.
12         Reported by Bruno Haible in
13         http://marc.info/?l=gnulib-bug&m=124958988300749
14
15 2009-08-07  Bruno Haible  <bruno@clisp.org>
16
17         Avoid link error on MacOS X 10.3 and 10.4.
18         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19         on non-ELF systems.
20         * lib/argp-pv.c (argp_program_version): Likewise.
21         Reported by Simon Josefsson.
22
23 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24
25         * tests/test-version-etc.sh: Use $EXEEXT.
26
27 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28
29         update-copyright: update documentation to point to maint.mk
30         * build-aux/update-copyright: Here.
31
32 2009-08-06  Jim Meyering  <meyering@redhat.com>
33
34         maint.mk: support update-copyright-local
35         * top/maint.mk (update-copyright-local): Define place-holder.
36         (update-copyright): Depend on $(update-copyright-local).
37
38 2009-08-06  Jim Meyering  <meyering@redhat.com>
39
40         selinux-at: new module
41         Initially written for coreutils, this module will soon be
42         used by findutils, too.
43         * MODULES.html.sh [Misc]: Add selinux-at.
44         * lib/selinux-at.h: New file, from coreutils.
45         * lib/selinux-at.c: Likewise.
46         * modules/selinux-at: Likewise.
47         (License): Change from LGPL to GPL, since it depends
48         on the GPL'd openat module.
49
50         doc: update README
51         * README: Remove references to cogito.
52         Remove cvs-repo-updating instructions from 2007.
53         Don't imply that CVS is better if you have limited disk space.
54
55 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
56
57         update-copyright: support C-style comments
58         * build-aux/update-copyright: Implement and document.
59         * tests/test-update-copyright.sh: Test.
60
61 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62
63         update-copyright: support omitted "(C)"
64         * build-aux/update-copyright: Implement and document.  Also,
65         allow variable whitespace before "(C)".
66         * tests/test-update-copyright.sh: Test.
67
68 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
69
70         update-copyright: don't trip on non-FSF copyright statements
71         * build-aux/update-copyright: Fix so that the first correctly
72         formatted FSF copyright statement is recognized no matter what
73         appears before it.  Update documentation.
74         * tests/test-update-copyright.sh: Test that.
75
76 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77
78         update-copyright: clean up code a little
79         * build-aux/update-copyright: Append "_re" to the name of any
80         variable holding a regular expression.
81         Replace "old" and "new" with "stmt" in variable names.
82         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
83         handled correctly.
84         Format code more consistently.
85
86 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
87
88         update-copyright-tests: improve portability
89         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
90         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
91
92 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
93
94         update-copyright: support @copyright{} and &copy;
95         * build-aux/update-copyright: Implement and document.
96         * tests/test-update-copyright.sh: Test.
97
98 2009-08-04  Jim Meyering  <meyering@redhat.com>
99
100         update-copyright-tests: correctly test EOL=\r\n handling
101         * tests/test-update-copyright.sh: Put \r at the end of some lines
102         for the dos-eol tests.  Based on a patch by Joel E. Denny.
103
104         maint.mk: make update-copyright exclusion list more configurable
105         * top/maint.mk (update-copyright): Default to excluding COPYING,
106         but allow an override, in case someone does want to update that file.
107
108         maint.mk: don't update copyright date in COPYING
109         * top/maint.mk (update-copyright): Exclude COPYING.
110
111         maint.mk: add a copyright-updating rule
112         * top/maint.mk (update-copyright): New rule.
113         Derived from coreutils/Makefile.am.
114
115         update-copyright: rename some variables
116         * build-aux/update-copyright: Rename a few variables for clarity.
117         Tweak syntax.  List Joel E. Denny as coauthor.
118
119 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
120
121         update-copyright: fix bug for 2-digit last year and add tests
122         * build-aux/update-copyright: Fix bug.
123         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
124         specified.
125         * modules/update-copyright-tests: New
126         * tests/test-update-copyright.sh: New.
127
128 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
129
130         update-copyright: handle leading tabs in line prefix
131         * build-aux/update-copyright: Count leading tabs as 8 spaces
132         when computing margin.  This helps with the formatting of
133         ChangeLogs, for example.
134         Fix documentation a little.
135
136 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
137
138         update-copyright: support EOL=\r\n
139         * build-aux/update-copyright: Implement that.
140
141 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
142
143         update-copyright: automatically format copyright statements
144         * build-aux/update-copyright: Implement that.
145         Also, be a little more predictable and safer by always failing
146         when the full copyright format is not perfectly recognized as an
147         unbroken whole.  Discussed at
148         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
149         Rewrite documentation.
150
151 2009-08-03  Bruno Haible  <bruno@clisp.org>
152
153         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
154
155 2009-08-02  Bruno Haible  <bruno@clisp.org>
156
157         Tests for module 'uname'.
158         * modules/uname-tests: New file.
159         * tests/test-uname.c: New file.
160
161         New module 'uname'.
162         * lib/uname.c: New file.
163         * m4/uname.m4: New file.
164         * modules/uname: New file.
165         * doc/posix-functions/uname.texi: Mention the new module.
166
167 2009-08-02  Bruno Haible  <bruno@clisp.org>
168
169         Tests for module 'sys_utsname'.
170         * modules/sys_utsname-tests: New file.
171         * tests/test-sys_utsname.c: New file.
172
173         New module 'sys_utsname'.
174         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
175         * m4/sys_utsname_h.m4: New file.
176         * modules/sys_utsname: New file.
177         * doc/posix-headers/sys_utsname.texi: Mention the new module.
178
179 2009-08-02  Bruno Haible  <bruno@clisp.org>
180
181         Implicitly initialize the sockets library.
182         * lib/gethostname.c: Include sockets.h.
183         (rpl_gethostname): Invoke gl_sockets_startup.
184         * lib/socket.c: Include sockets.h.
185         (rpl_socket): Invoke gl_sockets_startup.
186         * modules/gethostname (Depends-on): Add sockets.
187         * modules/socket (Depends-on): Likewise.
188         * tests/test-poll.c: Don't include sockets.h.
189         (main): Don't invoke gl_sockets_startup.
190         * tests/test-select.c: Don't include sockets.h.
191         (main): Don't invoke gl_sockets_startup.
192
193 2009-08-02  Bruno Haible  <bruno@clisp.org>
194
195         Allow multiple calls to gl_sockets_startup.
196         * lib/sockets.c (initialized_sockets_version): New variable.
197         (gl_sockets_startup): Do nothing if already called for this or a higher
198         version.
199         (gl_sockets_cleanup): Reset initialized_sockets_version.
200
201 2009-08-03  Simon Josefsson  <simon@josefsson.org>
202
203         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
204         different project/version.
205
206 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
207             Bruno Haible  <bruno@clisp.org>
208
209         Tests for module 'pipe-filter-gi'.
210         * modules/pipe-filter-gi-tests: New file.
211         * tests/test-pipe-filter-gi1.sh: New file.
212         * tests/test-pipe-filter-gi1.c: New file.
213         * tests/test-pipe-filter-gi2.sh: New file.
214         * tests/test-pipe-filter-gi2-main.c: New file.
215         * tests/test-pipe-filter-gi2-child.c: New file.
216
217         New module 'pipe-filter-gi'.
218         * lib/pipe-filter-gi.c: New file.
219         * modules/pipe-filter-gi: New file.
220
221 2009-08-02  Bruno Haible  <bruno@clisp.org>
222             Paolo Bonzini  <bonzini@gnu.org>
223
224         Tests for module 'pipe-filter-ii'.
225         * modules/pipe-filter-ii-tests: New file.
226         * tests/test-pipe-filter-ii1.sh: New file.
227         * tests/test-pipe-filter-ii1.c: New file.
228         * tests/test-pipe-filter-ii2.sh: New file.
229         * tests/test-pipe-filter-ii2-main.c: New file.
230         * tests/test-pipe-filter-ii2-child.c: New file.
231
232         New module 'pipe-filter-ii'.
233         * lib/pipe-filter.h: New file.
234         * lib/pipe-filter-ii.c: New file.
235         * lib/pipe-filter-aux.h: New file.
236         * modules/pipe-filter-ii: New file.
237
238 2009-08-02  Simon Josefsson  <simon@josefsson.org>
239
240         * lib/gc-libgcrypt.c: Change copyright to FSF.
241         * lib/gc-gnulib.c: Likewise.
242
243 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
244
245         * lib/gethostname.c: Include limits.h.
246
247 2009-08-02  Simon Josefsson  <simon@josefsson.org>
248             Bruno Haible  <bruno@clisp.org>
249
250         Ensure HOST_NAME_MAX as part of the gethostname module.
251         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
252         define also HOST_NAME_MAX.
253         * tests/test-gethostname.c: Include <limits.h>.
254         (main): Check also HOST_NAME_MAX.
255         * doc/posix-headers/limits.texi: Document the mingw problem.
256
257 2009-08-02  Bruno Haible  <bruno@clisp.org>
258
259         * lib/gethostname.c (gethostname): Fix handling of large len argument.
260         Add comments.
261
262 2009-03-31  Simon Josefsson  <simon@josefsson.org>
263
264         * lib/gethostname.c: Add Windows wrapper.
265         * m4/gethostname.m4: Look for gethostname in -lws2_32.
266         * modules/gethostname: Depend on sys_socket & errno, for also
267         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
268         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
269
270 2009-07-31  Jim Meyering  <meyering@redhat.com>
271
272         getloadavg: fix symbol name in comment
273         * lib/getloadavg.c: Correct a typo I introduced when adding
274         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
275         Matt Kraai spotted the problem.
276
277 2009-07-29  Matt Kraai  <mkraai@beckman.com>
278
279         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
280         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
281         code also if ! defined N_NAME_POINTER.
282         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
283         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
284         but the n_name member is a 12-byte array.
285
286 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
287
288         update-copyright: generalize comment handling
289         * build-aux/update-copyright: Handle copyright statements
290         within more comment styles.
291         Document usage.
292         Report any file with an external copyright holder or parse failure.
293
294 2009-07-29  Jim Meyering  <meyering@redhat.com>
295
296         mktime: correct setting of REPLACE_MKTIME
297         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
298
299         update-copyright: new module
300         * modules/update-copyright: New file.
301         * build-aux/update-copyright: New file.
302         * MODULES.html.sh (maint+release support): Add update-copyright.
303
304 2009-07-27  Bruno Haible  <bruno@clisp.org>
305
306         Fix compilation error when <ctime> is used and mktime is replaced.
307         * lib/time.in.h (mktime): New declaration.
308         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
309         REPLACE_MKTIME instead of defining mktime in config.h.
310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
311         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
312         Reported by Ross McFarland <rwmcfa1@neces.com>.
313
314 2009-07-27  Bruno Haible  <bruno@clisp.org>
315
316         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
317         Reported by Matt Kraai <mkraai@beckman.com>.
318
319 2009-07-25  Jim Meyering  <meyering@redhat.com>
320
321         maint.mk: avoid warnings about missing files
322         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
323         diagnostic when .prev-version does not exist.
324         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
325         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
326         nonexistent cfg.mk.
327         Suggestions from Simon Josefsson.
328
329 2009-07-25  Bruno Haible  <bruno@clisp.org>
330
331         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
332         defined as macros. Needed on QNX 6.4.1.
333         Reported by Matt Kraai <mkraai@beckman.com>.
334
335 2009-07-23  Jim Meyering  <meyering@redhat.com>
336
337         maint.mk: invoke "make dist" with a working value of XZ_OPT
338         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
339
340 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
341
342         Make fseeko.c compile on QNX.
343         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
344
345 2009-07-22  Peter Simons  <simons@cryp.to>
346
347         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
348         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
349         * lib/md4.h: Likewise.
350         * lib/md5.h: Likewise.
351         * lib/sha1.h: Likewise.
352         * lib/sha256.h: Likewise.
353         * lib/sha512.h: Likewise.
354
355         tests-sha1: don't assign literal string to 'char *' variable
356         * tests/test-sha1.c (main): Declare locals with "const" to match
357         attributes of the right hand side.
358
359 2009-07-21  Eric Blake  <ebb9@byu.net>
360
361         dup2: fix more mingw problems
362         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
363         fd to itself.
364         * doc/posix-functions/dup2.texi (dup2): Document the bug.
365         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
366         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
367         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
368         care of mingw bugs.
369
370 2009-07-21  Jim Meyering  <meyering@redhat.com>
371
372         vc-list-files: avoid failure when /bin/sh is dash
373         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
374         On some Debian based systems, /bin/sh is a symlink to dash, and running
375         this command would omit the "/" following each 'tests' prefix:
376           dash -x build-aux/vc-list-files -C . tests
377         That is because bash and dash work differently:
378           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
379           bash ok
380           dash odd
381
382 2009-07-21  Eric Blake  <ebb9@byu.net>
383
384         dup2-tests: test previous patch
385         * modules/dup2-tests: New file.
386         * tests/test-dup2.c: Likewise.
387         * tests/test-open.c (main): Avoid unspecified behavior.
388         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
389         test.
390
391         dup2: work around mingw and cygwin 1.5 bug
392         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
394         * modules/unistd (Makefile.am): Substitute it.
395         * lib/unistd.in.h (dup2): Declare the replacement.
396         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
397         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
398         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
399         * modules/execute (Depends-on): Add dup2.
400         * modules/fseterr (Depends-on): Likewise.
401         * modules/pipe (Depends-on): Likewise.
402         * modules/posix_spawn-internal (Depends-on): Likewise.
403
404 2009-07-21  Bruno Haible  <bruno@clisp.org>
405
406         * modules/.gitattributes: New file.
407
408 2009-07-20  Bruno Haible  <bruno@clisp.org>
409
410         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
411         (main): Use it.
412
413 2009-07-20  Eric Blake  <ebb9@byu.net>
414
415         test-pipe: make a bit more robust.
416         * tests/test-pipe.c (myerr): Allow error messages regardless of
417         what we do to stderr.
418         (test_pipe): Rearrange to avoid deadlock.
419         (child_main): Try a larger read, to ensure we avoided deadlock.
420         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
421         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
422         if misused.
423
424 2009-07-19  Jim Meyering  <meyering@redhat.com>
425
426         fts: avoid false-positive cycle-detection
427         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
428         for each new command line argument.
429
430 2009-07-19  Bruno Haible  <bruno@clisp.org>
431
432         Fix build error on mingw with the modules sys_select and unistd.
433         * modules/acl-tests (Depends-on): Add close.
434         * modules/binary-io-tests (Depends-on): Likewise.
435         * modules/closein-tests (Depends-on): Likewise.
436         * modules/flock-tests (Depends-on): Likewise.
437         * modules/fsync-tests (Depends-on): Likewise.
438         * modules/lseek-tests (Depends-on): Likewise.
439         * modules/pipe-tests (Depends-on): Likewise.
440         * modules/posix_spawn-tests (Depends-on): Likewise.
441         * modules/posix_spawnp-tests (Depends-on): Likewise.
442         * modules/stat-time-tests (Depends-on): Likewise.
443         * modules/yesno-tests (Depends-on): Likewise.
444
445 2009-07-19  Bruno Haible  <bruno@clisp.org>
446
447         Unify conditionals.
448         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
449         macros, not at the compiler macros.
450         * lib/pipe.c: Likewise.
451         * lib/execute.c: Likewise.
452         * lib/spawni.c: Likewise.
453
454 2009-07-19  Bruno Haible  <bruno@clisp.org>
455
456         Fix handling of closed stdin/stdout/stderr on mingw.
457         * lib/w32spawn.h: Include unistd.h.
458         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
459         file descriptor with O_NOINHERIT flag.
460         (fd_safer_noinherit): New function, based on fd-safer.c.
461         (dup_safer_noinherit): New function, based on dup-safer.c.
462         (undup_safer_noinherit): New function.
463         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
464         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
465         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
466         instead of fd_safer.
467         * tests/test-pipe.c: Include <windows.h>.
468         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
469
470         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
471         from main.
472         (test_pipe): Pass an extra argument for disambiguation.
473         (main): Invoke parent_main or child_main.
474
475         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
476         consistently.
477
478 2009-07-18  Eric Blake  <ebb9@byu.net>
479
480         test-pipe: fix mingw build
481         * tests/test-pipe.c (main): Avoid fcntl on mingw.
482
483 2009-07-18  Bruno Haible  <bruno@clisp.org>
484
485         * modules/pipe-tests (Makefile.am): Fix typo.
486
487 2009-07-18  Eric Blake  <ebb9@byu.net>
488
489         error: fix mingw build
490         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
491         Reported by Bruno Haible.
492
493         error: avoid undefined use of stdout
494         * lib/error.c (error, error_at_line): Check that fd 1 is open
495         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
496         is handling faults and the close_stdout module wants to report the
497         detection of closed stdout as an error.
498
499 2009-07-17  Eric Blake  <ebb9@byu.net>
500
501         pipe: be robust in face of closed fds
502         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
503         should cause child to misbehave.
504         * modules/pipe-tests: New module.
505         * tests/test-pipe.c: New file.
506         * tests/test-pipe.sh: New file.
507         Reported by Akim Demaille.
508
509 2009-07-14  Bruno Haible  <bruno@clisp.org>
510
511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
512         Reported by anonymous kc.
513
514 2009-07-07  Jim Meyering  <meyering@redhat.com>
515
516         maint.mk: don't look for translatable strings in *.m4 or *.mk
517         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
518         when searching for translatable strings.
519
520 2009-07-05  Jim Meyering  <meyering@redhat.com>
521
522         remove superfluous parentheses in STREQ definition
523         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
524         * lib/getugroups.c (STREQ): Likewise.
525         * lib/fnmatch.c (STREQ): Likewise.
526         Spotted by Bruno Haible.
527
528 2009-07-04  Jim Meyering  <meyering@redhat.com>
529
530         argv-iter: new module
531         * MODULES.html.sh: Add argv-iter.
532         * lib/argv-iter.c, lib/argv-iter.h: New files.
533         * modules/argv-iter: New file.
534         * modules/argv-iter-tests: New file.
535         * tests/test-argv-iter.c: Test it.
536
537 2009-07-04  Bruno Haible  <bruno@clisp.org>
538
539         Fix assertion.
540         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
541         contains more exact copies of a given entry than file2, leave the extra
542         copies unpaired rather than aborting.
543         Reported by Eric Blake.
544
545 2009-07-02  Bruno Haible  <bruno@clisp.org>
546
547         Speedup git-merge-changelog for git cherry-pick.
548         * lib/git-merge-changelog.c (struct entries_mapping): New type.
549         (entries_mapping_get): New function, extracted from compute_mapping.
550         (entries_mapping_reverse_get): New function.
551         (compute_mapping): Add a 'full' argument. Return the result in a
552         'struct entries_mapping'.
553         (main): Update. Access the mappings through entries_mapping_get.
554         Reported by Eric Blake.
555
556 2009-07-02  Bruno Haible  <bruno@clisp.org>
557
558         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
559         best_i.
560
561 2009-07-02  Bruno Haible  <bruno@clisp.org>
562
563         Speed up approximate search for matching ChangeLog entries.
564         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
565         argument. Call fstrcmp_bounded instead of fstrcmp.
566         (compute_mapping, try_split_merged_entry, main): Update callers.
567
568 2009-07-02  Bruno Haible  <bruno@clisp.org>
569
570         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
571
572 2009-06-30  Bruno Haible  <bruno@clisp.org>
573
574         Reduce the number of uc_is_cased calls.
575         * lib/unicase.h (casing_suffix_context_t): Add
576         'first_char_except_ignorable' field.
577         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
578         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
579         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
580         Update initializer.
581         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
582         case-ignorable characters.
583         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
584         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
585         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
586         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
587         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
588
589 2009-06-30  Bruno Haible  <bruno@clisp.org>
590
591         Tests for module 'unicase/ignorable'.
592         * modules/unicase/ignorable-tests: New file.
593         * tests/unicase/test-ignorable.c: New file, generated by
594         gen-uni-tables.
595
596         Tests for module 'unicase/cased'.
597         * modules/unicase/cased-tests: New file.
598         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
599         * tests/unicase/test-predicate-part1.h: New file, derived from
600         tests/unictype/test-predicate-part1.h.
601         * tests/unicase/test-predicate-part2.h: New file, same as
602         tests/unictype/test-predicate-part2.h.
603
604         Fix evaluation of "Before C" condition of FINAL_SIGMA.
605         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
606         (output_casing_properties): New function.
607         (main): Call it.
608         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
609         * lib/unicase/cased.c: Include unictype/bitmap.h.
610         (uc_is_cased): Define through a bitmap lookup.
611         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
612         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
613         (uc_is_case_ignorable): Define through a bitmap lookup.
614         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
615         lib/unictype/bitmap.h.
616         (Depends-on): Add inline. Clean up.
617         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
618         lib/unictype/bitmap.h.
619         (Depends-on): Add inline. Clean up.
620         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
621         recognition.
622         * tests/unicase/test-u16-tolower.c (main): Likewise.
623         * tests/unicase/test-u32-tolower.c (main): Likewise.
624
625 2009-06-30  Bruno Haible  <bruno@clisp.org>
626
627         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
628         * lib/unicase/u16-casemap.c: Likewise.
629         * lib/unicase/u32-casemap.c: Likewise.
630
631 2009-06-29  Bruno Haible  <bruno@clisp.org>
632
633         Define u32_casefold as a wrapper around u32_ct_casefold.
634         * lib/unicase/u32-casefold.c: Update.
635         * modules/unicase/u32-casefold (Depends-on): Add
636         unicase/u32-ct-casefold, unicase/empty-prefix-context,
637         unicase/empty-suffix-context. Clean up.
638
639         Define u16_casefold as a wrapper around u16_ct_casefold.
640         * lib/unicase/u16-casefold.c: Update.
641         * modules/unicase/u16-casefold (Depends-on): Add
642         unicase/u16-ct-casefold, unicase/empty-prefix-context,
643         unicase/empty-suffix-context. Clean up.
644
645         Define u8_casefold as a wrapper around u8_ct_casefold.
646         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
647         * lib/unicase/u8-casefold.c: Update.
648         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
649         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
650
651         Define u32_totitle as a wrapper around u32_ct_totitle.
652         * lib/unicase/u32-totitle.c: Update.
653         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
654         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
655
656         Define u16_totitle as a wrapper around u16_ct_totitle.
657         * lib/unicase/u16-totitle.c: Update.
658         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
659         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
660
661         Define u8_totitle as a wrapper around u8_ct_totitle.
662         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
663         functions.
664         (FUNC): Delegate to U_CT_TOTITLE.
665         * lib/unicase/u8-totitle.c: Update.
666         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
667         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
668
669         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
670         invocation.
671         * modules/unicase/u32-tolower (Depends-on): Add
672         unicase/empty-prefix-context, unicase/empty-suffix-context.
673
674         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
675         invocation.
676         * modules/unicase/u16-tolower (Depends-on): Add
677         unicase/empty-prefix-context, unicase/empty-suffix-context.
678
679         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
680         * modules/unicase/u8-tolower (Depends-on): Add
681         unicase/empty-prefix-context, unicase/empty-suffix-context.
682
683         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
684         invocation.
685         * modules/unicase/u32-toupper (Depends-on): Add
686         unicase/empty-prefix-context, unicase/empty-suffix-context.
687
688         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
689         invocation.
690         * modules/unicase/u16-toupper (Depends-on): Add
691         unicase/empty-prefix-context, unicase/empty-suffix-context.
692
693         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
694         * modules/unicase/u8-toupper (Depends-on): Add
695         unicase/empty-prefix-context, unicase/empty-suffix-context.
696
697         New module 'unicase/u32-ct-casefold'.
698         * lib/unicase/u32-ct-casefold.c: New file.
699         * modules/unicase/u32-ct-casefold: New file.
700
701         New module 'unicase/u16-ct-casefold'.
702         * lib/unicase/u16-ct-casefold.c: New file.
703         * modules/unicase/u16-ct-casefold: New file.
704
705         New module 'unicase/u8-ct-casefold'.
706         * lib/unicase/u8-ct-casefold.c: New file.
707         * lib/unicase/u-ct-casefold.h: New file, derived from
708         lib/unicase/u-casefold.h.
709         * modules/unicase/u8-ct-casefold: New file.
710
711         New module 'unicase/u32-ct-totitle'.
712         * lib/unicase/u32-ct-totitle.c: New file.
713         * modules/unicase/u32-ct-totitle: New file.
714
715         New module 'unicase/u16-ct-totitle'.
716         * lib/unicase/u16-ct-totitle.c: New file.
717         * modules/unicase/u16-ct-totitle: New file.
718
719         New module 'unicase/u8-ct-totitle'.
720         * lib/unicase/u8-ct-totitle.c: New file.
721         * lib/unicase/u-ct-totitle.h: New file, derived from
722         lib/unicase/u-totitle.h.
723         * modules/unicase/u8-ct-totitle: New file.
724
725         New module 'unicase/u32-ct-tolower'.
726         * lib/unicase/u32-ct-tolower.c: New file.
727         * modules/unicase/u32-ct-tolower: New file.
728
729         New module 'unicase/u16-ct-tolower'.
730         * lib/unicase/u16-ct-tolower.c: New file.
731         * modules/unicase/u16-ct-tolower: New file.
732
733         New module 'unicase/u8-ct-tolower'.
734         * lib/unicase/u8-ct-tolower.c: New file.
735         * modules/unicase/u8-ct-tolower: New file.
736
737         New module 'unicase/u32-ct-toupper'.
738         * lib/unicase/u32-ct-toupper.c: New file.
739         * modules/unicase/u32-ct-toupper: New file.
740
741         New module 'unicase/u16-ct-toupper'.
742         * lib/unicase/u16-ct-toupper.c: New file.
743         * modules/unicase/u16-ct-toupper: New file.
744
745         New module 'unicase/u8-ct-toupper'.
746         * lib/unicase/u8-ct-toupper.c: New file.
747         * modules/unicase/u8-ct-toupper: New file.
748
749         Add context arguments to u*_casemap functions.
750         * lib/unicase/unicasemap.h: Include unicase.h.
751         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
752         suffix_context arguments.
753         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
754         functions.
755         (FUNC): Add prefix_context and suffix_context arguments. Use
756         uc_is_cased and uc_is_case_ignorable.
757         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
758         * lib/unicase/u16-casemap.c: Likewise.
759         * lib/unicase/u32-casemap.c: Likewise.
760         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
761         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
762         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
763         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
764         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
765         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
766
767         New module 'unicase/u32-suffix-context'.
768         * lib/unicase/u32-suffix-context.c: New file.
769         * modules/unicase/u32-suffix-context: New file.
770
771         New module 'unicase/u16-suffix-context'.
772         * lib/unicase/u16-suffix-context.c: New file.
773         * modules/unicase/u16-suffix-context: New file.
774
775         New module 'unicase/u8-suffix-context'.
776         * lib/unicase/u8-suffix-context.c: New file.
777         * lib/unicase/u-suffix-context.h: New file.
778         * modules/unicase/u8-suffix-context: New file.
779
780         New module 'unicase/empty-suffix-context'.
781         * lib/unicase/empty-suffix-context.c: New file.
782         * modules/unicase/empty-suffix-context: New file.
783
784         New module 'unicase/u32-prefix-context'.
785         * lib/unicase/u32-prefix-context.c: New file.
786         * modules/unicase/u32-prefix-context: New file.
787
788         New module 'unicase/u16-prefix-context'.
789         * lib/unicase/u16-prefix-context.c: New file.
790         * modules/unicase/u16-prefix-context: New file.
791
792         New module 'unicase/u8-prefix-context'.
793         * lib/unicase/u8-prefix-context.c: New file.
794         * lib/unicase/u-prefix-context.h: New file.
795         * lib/unicase/context.h: New file.
796         * modules/unicase/u8-prefix-context: New file.
797
798         New module 'unicase/empty-prefix-context'.
799         * lib/unicase/empty-prefix-context.c: New file.
800         * modules/unicase/empty-prefix-context: New file.
801
802         New module 'unicase/ignorable'.
803         * lib/unicase/ignorable.c: New file.
804         * modules/unicase/ignorable: New file.
805
806         New module 'unicase/cased'.
807         * lib/unicase/caseprop.h: New file.
808         * lib/unicase/cased.c: New file.
809         * modules/unicase/cased: New file.
810
811         New functions for case mapping of substrings.
812         * lib/unicase.h (casing_prefix_context_t): New type.
813         (unicase_empty_prefix_context): New variable.
814         (u8_casing_prefix_context, u16_casing_prefix_context,
815         u32_casing_prefix_context, u8_casing_prefixes_context,
816         u16_casing_prefixes_context, u32_casing_prefixes_context): New
817         declarations.
818         (casing_suffix_context_t): New type.
819         (unicase_empty_suffix_context): New variable.
820         (u8_casing_suffix_context, u16_casing_suffix_context,
821         u32_casing_suffix_context, u8_casing_suffixes_context,
822         u16_casing_suffixes_context, u32_casing_suffixes_context,
823         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
824         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
825         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
826         declarations.
827
828 2009-06-28  Jim Meyering  <meyering@redhat.com>
829
830         boostrap: indent only with spaces
831         * build-aux/bootstrap: Indent only with spaces, never TABs.
832
833         bootstrap: split long lines
834         * build-aux/bootstrap: Keep line length < 80.
835
836         bootstrap: sync from coreutils
837         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
838         just as autoreconf does.  Verify a list of prerequisite
839         package-name,version-number pairs if defined in bootstrap.conf.
840         Refer to README-prereq, if prerequisites are not satisfied.
841
842 2009-06-27  Eric Blake  <ebb9@byu.net>
843
844         tests: add test for bogus NULL definition
845         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
846         * tests/test-stdlib.c: Likewise.
847         * tests/test-string.c: Likewise.
848         * tests/test-locale.c: Likewise.
849         * tests/test-unistd.c: Likewise.
850         * modules/stdio-tests (Depends-on): Add verify.
851         * modules/stdlib-tests (Depends-on): Likewise.
852         * modules/string-tests (Depends-on): Likewise.
853         * modules/locale-tests (Depends-on): Likewise.
854         * modules/unistd-tests (Depends-on): Likewise.
855
856 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
857
858         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
859         self-explaining comment.
860         * m4/selinux-selinux-h: Update serial.
861         (gl_LIBSELINUX): New macro, adding a warning for missing development
862         packages to code extracted from...
863         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
864         Add warning for missing development packages here, too.
865
866 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
867
868         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
869
870 2009-06-25  Eric Blake  <ebb9@byu.net>
871
872         version-etc: fix regression
873         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
874         gcc.
875         (version_etc): Use it, to catch bugs with trailing NULL.
876         * lib/version-etc.c (version_etc_arn): Delete unused argument.
877         (version_etc_va): Fix logic bug.
878         * modules/version-etc-tests: Add test.
879         * tests/test-version-etc.c: New file.
880         * tests/test-version-etc.sh: Likewise.
881
882 2009-06-25  Sam Steingold  <sds@gnu.org>
883
884         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
885         mbtowc declaration.
886
887 2009-06-25  Eric Blake  <ebb9@byu.net>
888
889         fpurge: migrate into <stdio.h>
890         * lib/fpurge.h: Delete...
891         * lib/stdio.in.h (fpurge): ...and declare here, instead.
892         * lib/fpurge.c (fpurge): Change declaring header.
893         * modules/fpurge (Files): Drop deleted file.
894         (Depends-on): Add stdio.
895         (configure.ac): Set witness.
896         * modules/stdio (Makefile.am): Support fpurge macros.
897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
899         * lib/fflush.c: Update client.
900         * tests/test-fpurge.c: Likewise.
901         * NEWS: Mention the change.
902
903 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
904
905        * lib/argp-version-etc.c (program_authors): Add const
906        qualifier.
907        * lib/version-etc.c: Fix typos in the comments.
908        * modules/argp-version-etc: Depends on version-etc.
909
910 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
911
912         argp-version-etc: new module.
913
914         * lib/argp-version-etc.c: New file.
915         * lib/argp-version-etc.h: New file.
916         * modules/argp-version-etc: New file.
917         * modules/argp-version-etc-tests: New file.
918         * tests/test-argp-version-etc.c: New test.
919         * tests/test-argp-version-etc-1.sh: New test.
920
921 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
922
923         Provide additional interfaces and documentation for version-etc
924         module.
925
926         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
927         interfaces.
928         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
929         prototypes.
930
931 2009-06-24  Bruno Haible  <bruno@clisp.org>
932
933         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
934         HAVE_LIB${NAME} macro.
935         Reported by Sam Steingold <sds@gnu.org>.
936
937 2009-06-23  Simon Josefsson  <simon@josefsson.org>
938
939         * modules/hash-tests (test_hash_LDADD): Link to libintl when
940         needed.
941
942 2009-06-21  Bruno Haible  <bruno@clisp.org>
943
944         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
945         work.
946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
947         together with LIB${NAME}, LTLIB${NAME}.
948         Reported by Sam Steingold <sds@gnu.org>.
949
950 2009-06-20  Jim Meyering  <meyering@redhat.com>
951
952         tests: make sc_require_test_exit_idiom more generic
953         * top/maint.mk (Exit_witness_file): New overridable variable.
954         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
955         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
956
957 2009-06-19  Jim Meyering  <meyering@redhat.com>
958
959         hash: reverse order of src/dst parameters in an internal interface
960         * lib/hash.c (transfer_entries): Reverse order of parameters to
961         put DST before SRC.  Adjust callers.
962
963         tests: test-hash: avoid wholesale duplication
964         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
965         Instead, use a loop and add a single conditional.
966
967         tests: test-hash: allow seed selection via a command line argument
968         * tests/test-hash.c (get_seed): New function.
969         (main): Use it.
970
971 2009-06-19  Eric Blake  <ebb9@byu.net>
972
973         hash: avoid memory leak on allocation failure
974         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
975         failure.  Factor repeated algorithm...
976         (transfer_entries): ...into new helper routine.
977         (hash_delete): React to hash_rehash return value.
978
979         hash: reduce memory pressure in hash_rehash no-op case
980         * lib/hash.c (next_prime): Avoid overflow.
981         (hash_initialize): Factor bucket size computation...
982         (compute_bucket_size): ...into new helper function.
983         (hash_rehash): Use new function and open coding to reduce memory
984         pressure, and avoid a memory leak in USE_OBSTACK code.
985         Reported by Jim Meyering.
986
987 2009-06-18  Eric Blake  <ebb9@byu.net>
988
989         hash: make rotation more obvious
990         * modules/hash (Depends-on): Add bitrotate and stdint.
991         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
992         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
993         (SIZE_MAX): Rely on headers for definition.
994         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
995         (raw_hasher): Use rotr_sz.
996         Suggested by Jim Meyering.
997
998         hash: fix memory leak in last patch
999         * lib/hash.c (hash_rehash): Avoid memory leak.
1000
1001         hash: avoid no-op rehashing
1002         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
1003
1004         hash: provide default callback functions
1005         * lib/hash.c (raw_hasher, raw_comparator): New functions.
1006         (hash_initialize): Use them as defaults.
1007         * tests/test-hash.c (main): Test this.
1008
1009         hash: minor optimization
1010         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
1011         when possible.
1012         (hash_initialize): Document this promise.
1013         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
1014         * tests/test-hash.c (hash_compare_strings): Test this.
1015
1016 2009-06-18  Bruno Haible  <bruno@clisp.org>
1017
1018         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
1019         going to be replaced anyway.
1020
1021 2009-06-18  Bruno Haible  <bruno@clisp.org>
1022
1023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
1024         in one place.
1025         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
1026         be replaced anyway.
1027
1028 2009-06-18  Eric Blake  <ebb9@byu.net>
1029
1030         hash: check for resize before insertion
1031         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
1032         threshold before insertion, so that a pathological hash_rehash
1033         that fills every bucket can still trigger another rehash.
1034
1035 2009-06-18  Jim Meyering  <meyering@redhat.com>
1036
1037         hash-tests: add a loop around the small tests
1038         * tests/test-hash.c (main): Repeat small tests with selected
1039         small initial table sizes.
1040
1041 2009-06-17  Eric Blake  <ebb9@byu.net>
1042
1043         hash: minor cleanups
1044         * lib/hash.h (hash_entry): Make opaque, by moving...
1045         * lib/hash.c (hash_entry): ...here.
1046         (hash_insert): Clarify restrictions on what can be inserted.
1047         (hash_get_next): Clarify when it is safe to remove an element
1048         during traversal.
1049         (check_tuning): Skip verification when tuning is known safe.
1050         (hash_initialize): Clarify restrictions on tuning.
1051
1052 2009-06-17  Jim Meyering  <jim@meyering.net>
1053         and Eric Blake  <ebb9@byu.net>
1054
1055         hash-tests: new module
1056         * modules/hash-tests: New file.
1057         * tests/test-hash.c: New file.
1058
1059 2009-06-17  Eric Blake  <ebb9@byu.net>
1060
1061         strstr-simple: document new module
1062         * MODULES.html.sh: Document new module.
1063
1064         strstr, strcasestr: replace on platforms with broken memchr
1065         * modules/strstr: Split into...
1066         * modules/strstr-simple: ...new module that does not care about
1067         performance, but does care about glibc bug.
1068         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
1069         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
1070         if platform memchr is broken, per Debian bug 521737.
1071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
1072         memchr.
1073         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
1074         * doc/posix-functions/strstr.texi (strstr): Document the fix.
1075         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1076         * modules/mountlist (Depends-on): Add strstr-simple.
1077         * modules/gen-uni-tables (Depends-on): Likewise.
1078         * modules/argz (Depends-on): Add strstr.
1079
1080 2009-06-17  Bruno Haible  <bruno@clisp.org>
1081
1082         * modules/posix_spawn-internal (Depends-on): Add errno.
1083
1084 2009-06-17  Bruno Haible  <bruno@clisp.org>
1085
1086         Define missing ESTALE on Interix 3.5.
1087         * lib/errno.in.h (ESTALE): Assign a value if missing.
1088         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
1089         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
1090         missing.
1091         * doc/posix-headers/errno.texi: Mention the Interix bug.
1092         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
1093
1094 2009-06-15  Eric Blake  <ebb9@byu.net>
1095
1096         memchr, memchr2: add valgrind exception
1097         * lib/memchr.valgrind: New file.
1098         * lib/memchr2.valgrind: New file.
1099         * modules/memchr (Files): Distribute valgrind file.
1100         * modules/memchr2 (Files): Likewise.
1101
1102         docs: memchr is no longer obsolete
1103         * MODULES.html.sh: Move memchr from obsolete to string.h section.
1104         * lib/string.in.h (memchr): Simplify logic.
1105
1106 2009-06-14  Jim Meyering  <meyering@redhat.com>
1107
1108         link-follow: fix the "checking..." message to not mention trailing slash
1109         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
1110         never considered trailing slashes.
1111
1112 2009-06-14  Bruno Haible  <bruno@clisp.org>
1113
1114         * m4/memchr.m4: Mention also the bug on IA-64.
1115         * doc/posix-functions/memchr.texi: Likewise.
1116
1117 2009-06-12  Eric Blake  <ebb9@byu.net>
1118
1119         memchr: detect broken x86_64 and alpha implementations
1120         * modules/memchr-tests (Depends-on): Move mmap detection...
1121         * modules/memchr (Depends-on): ...here.
1122         (configure.ac): Set indicator.
1123         * lib/string.in.h (memchr): Declare replacement.
1124         * modules/string (Makefile.am): Trigger replacement.
1125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1126         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
1127         bugs.
1128         * doc/posix-functions/memchr.texi (memchr): Document the bug.
1129         * modules/getpagesize (License): Relax license.
1130
1131 2009-06-11  Bruno Haible  <bruno@clisp.org>
1132
1133         * lib/idpriv.h: Add more references.
1134
1135 2009-06-08  Bruno Haible  <bruno@clisp.org>
1136
1137         Tests for module 'idpriv-droptemp'.
1138         * modules/idpriv-droptemp-tests: New file.
1139         * tests/test-idpriv-droptemp.sh: New file.
1140         * tests/test-idpriv-droptemp.su.sh: New file.
1141         * tests/test-idpriv-droptemp.c: New file.
1142
1143         New module 'idpriv-droptemp'.
1144         * lib/idpriv-droptemp.c: New file.
1145         * modules/idpriv-droptemp: New file.
1146
1147 2009-06-08  Bruno Haible  <bruno@clisp.org>
1148
1149         Tests for module 'idpriv-drop'.
1150         * modules/idpriv-drop-tests: New file.
1151         * tests/test-idpriv-drop.sh: New file.
1152         * tests/test-idpriv-drop.su.sh: New file.
1153         * tests/test-idpriv-drop.c: New file.
1154
1155         New module 'idpriv-drop'.
1156         * lib/idpriv.h: New file.
1157         * lib-idpriv-drop.c: New file.
1158         * m4/idpriv.m4: New file.
1159         * modules/idpriv-drop: New file.
1160
1161 2009-06-08  Bruno Haible  <bruno@clisp.org>
1162
1163         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
1164         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1165         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1166         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1167         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1168         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1169         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1170
1171 2009-06-08  Eric Blake  <ebb9@byu.net>
1172
1173         test-strstr: use memory fence, when possible
1174         * tests/test-strstr.c (main): Use memory fence, in order to be
1175         more likely to trigger Debian bug 521737.
1176         * modules/strstr-tests (Files): Pull in additional files.
1177
1178         memchr: no longer obsolete, for wider field testing
1179         * modules/memchr (Status, Notice): Delete, this module is no
1180         longer obsolete.
1181         * modules/vasnprintf (Depends-on): Add memchr.
1182
1183 2009-06-07  Jim Meyering  <meyering@redhat.com>
1184
1185         hash: declare some functions with the warn_unused_result attribute
1186         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
1187
1188 2009-06-07  Bruno Haible  <bruno@clisp.org>
1189
1190         * tests/test-alignof.c: Don't test int64_t if it does not exist.
1191         Reported by Eric Blake.
1192
1193 2009-06-06  Eric Blake  <ebb9@byu.net>
1194
1195         test-alignof: fix typo with long double
1196         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
1197         compiler error.
1198
1199 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
1200
1201         Escape non-texinfo { and }s.
1202         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
1203         markup error.
1204
1205 2009-06-04  Jim Meyering  <meyering@redhat.com>
1206
1207         gitlog-to-changelog: don't infloop on an empty commit log
1208         * build-aux/gitlog-to-changelog: Warn about an empty log message.
1209         Reported by Boris Petersen <transacid@centerim.org>.
1210
1211 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
1212
1213         version-etc: extend for packagers
1214         Add three new configure options, intended for packagers:
1215           --with-packager="packager name"
1216           --with-packager-version="packager-specific version"
1217           --with-packager-bug-reports="packager bug reporting"
1218         An example with coreutils:
1219           $ ./configure \
1220             --with-packager=Gentoo \
1221             --with-packager-bug-report=http://bugs.gentoo.org/ \
1222             --with-packager-version="patchset 1.6"
1223           $ ./src/ls --version | head -n3
1224           ls (GNU coreutils) 7.1-dirty
1225           Packaged by Gentoo (patchset 1.6)
1226           Copyright (C) 2009 Free Software Foundation, Inc.
1227         Note that the bug reporting info via --help doesn't show up because
1228         coreutils uses its own custom emit_bug_reporting_address() implementation
1229         in src/system.h.  If it didn't, it'd look like:
1230           $ ./src/ls --help | tail -n4
1231           Report bugs to <bug-coreutils@gnu.org>.
1232           Report Gentoo bugs to <http://bugs.gentoo.org/>.
1233           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
1234           General help using GNU software: <http://www.gnu.org/gethelp/>.
1235         * lib/version-etc.c: Print new information, if provided.
1236         * m4/version-etc.m4: New file.
1237         * modules/version-etc (Files): Add m4/version-etc.m4.
1238         (configure.ac): Add gl_VERSION_ETC.
1239
1240 2009-05-31  Bruno Haible  <bruno@clisp.org>
1241
1242         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
1243         and 'int64_t'.
1244         * modules/alignof-tests (Dependencies): Add stdint.
1245         Reported by Eric Blake.
1246
1247 2009-05-31  Bruno Haible  <bruno@clisp.org>
1248
1249         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
1250         restriction due to compiler bugs.
1251         Reported by Eric Blake.
1252
1253 2009-05-31  Simon Josefsson  <simon@josefsson.org>
1254             Bruno Haible  <bruno@clisp.org>
1255
1256         Fix test-alignof failure.
1257         * lib/alignof.h (alignof_slot): New macro.
1258         (alignof_type): New macro, with the same semantics as the previous
1259         'alignof'.
1260         (alignof): Alias to alignof_slot.
1261         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
1262         check that the results are usable as constant expressions.
1263
1264 2009-05-31  Bruno Haible  <bruno@clisp.org>
1265
1266         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
1267         * tests/test-memchr.c (main): Check that memchr does not read past the
1268         first occurrence of the byte.
1269         * tests/test-strstr.c (main): Update comment.
1270         Suggested by Eric Blake.
1271
1272 2009-05-30  Bruno Haible  <bruno@clisp.org>
1273
1274         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
1275         detail how to use dumpbin.
1276         Reported by David Byron <dbyron@dbyron.com>.
1277
1278 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1279
1280         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
1281
1282 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1283
1284         * m4/manywarnings.m4: Add GCC 4.4 warnings.
1285
1286 2009-05-28  Bruno Haible  <bruno@clisp.org>
1287
1288         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
1289         build-aux/ files.
1290
1291 2009-05-28  Simon Josefsson  <simon@josefsson.org>
1292
1293         * gnulib-tool (func_import): Transform license on build-aux/ files too.
1294
1295 2009-05-27  Simon Josefsson  <simon@josefsson.org>
1296
1297         * gnulib-tool (sed_transform_main_lib_file)
1298         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
1299         regexps.
1300
1301 2009-05-26  Simon Josefsson  <simon@josefsson.org>
1302
1303         * tests/test-strstr.c: Add another self-test.
1304         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
1305         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
1306
1307 2009-05-23  Bruno Haible  <bruno@clisp.org>
1308
1309         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
1310         change.
1311
1312 2009-05-21  Bruno Haible  <bruno@clisp.org>
1313
1314         Simplify use of mode_t varargs.
1315         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
1316         uses 'mode_t' or 'int'.
1317         * lib/openat.c (openat): Likewise.
1318         * lib/open-safer.c (open_safer): Likewise.
1319         * m4/mode_t.m4: New file.
1320         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
1321         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
1322         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
1323         * modules/open (Files): Add m4/mode_t.m4.
1324         * modules/openat (Files): Likewise.
1325         * modules/fcntl-safer (Files): Likewise.
1326         Suggested by Eric Blake.
1327
1328 2009-05-21  Pádraig Brady  <P@draigbrady.com>
1329
1330         * doc/glibc-functions/fallocate.texi: New file.
1331         * doc/gnulib.texi: Include it.
1332
1333 2009-05-21  Eric Blake  <ebb9@byu.net>
1334             Bruno Haible  <bruno@clisp.org>
1335
1336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
1337         invocations.
1338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1339
1340 2009-05-21  Eric Blake  <ebb9@byu.net>
1341             Bruno Haible  <bruno@clisp.org>
1342
1343         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
1344         include_next. Fix of 2008-11-20 commit.
1345         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
1346         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
1347         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
1348         NEXT_MATH_H.
1349         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
1350         instead of NEXT_MATH_H.
1351
1352 2009-05-21  Bruno Haible  <bruno@clisp.org>
1353
1354         Avoid redefinition warnings for SIZE_MAX.
1355         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
1356         Reported by Simon Josefsson.
1357
1358 2009-05-21  Bruno Haible  <bruno@clisp.org>
1359
1360         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
1361         AC_CACHE_VAL.
1362
1363 2009-05-20  Bruno Haible  <bruno@clisp.org>
1364
1365         Make zeroptr.h work on mingw.
1366         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
1367         mprotect.
1368         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
1369         * modules/memchr2-tests (configure.ac): Likewise.
1370         * modules/memcmp-tests (configure.ac): Likewise.
1371         * modules/memmem-tests (configure.ac): Likewise.
1372         * modules/memrchr-tests (configure.ac): Likewise.
1373         Reported by Simon Josefsson.
1374
1375 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1376
1377         * tests/test-glob.c: Include string.h for strcmp prototype.
1378
1379 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1380
1381         * modules/getdelim (Depends-on): Add explicit stdint, although it
1382         was implicitly already pulled in via realloc-posix.
1383         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
1384
1385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1386
1387         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
1388         G. Christensen" <tgc@jupiterrise.com>.
1389         * m4/sys_socket_h.m4: Check for sa_family_t.
1390         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
1391         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
1392         * tests/test-sys_socket.c: Check that sa_family_t works.
1393
1394 2009-05-18  Eric Blake  <ebb9@byu.net>
1395
1396         maint.mk: allow gnulib_dir in VPATH build
1397         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
1398
1399 2009-05-15  Jim Meyering  <meyering@redhat.com>
1400
1401         maint.mk: Give gnulib_dir a default definition.
1402         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
1403         Thus, most packages no longer need to specify this variable in cfg.mk
1404
1405 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
1406
1407         rename.m4: fix typos that would make non-mingw cross-configure fail
1408         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
1409
1410 2009-05-13  Eric Blake  <ebb9@byu.net>
1411
1412         mmap-anon: avoid out-of-order autoconf expansion
1413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
1414         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
1415         * modules/memchr-tests (Depends-on): Add extensions.
1416         * modules/memchr2-tests (Depends-on): Add extensions.
1417         * modules/memcmp-tests (Depends-on): Add extensions.
1418         * modules/memmem-tests (Depends-on): Add extensions.
1419         * modules/memrchr-tests (Depends-on): Add extensions.
1420
1421 2009-05-13  Bruno Haible  <bruno@clisp.org>
1422
1423         Make some tests ISO C 99 compliant.
1424         * tests/zerosize-ptr.h: New file.
1425         * tests/test-memchr.c: Include zerosize-ptr.h.
1426         (main): Use a zero-size object pointer instead of NULL.
1427         * tests/test-memchr2.c: Include zerosize-ptr.h.
1428         (main): Use a zero-size object pointer instead of NULL.
1429         * tests/test-memcmp.c: Include zerosize-ptr.h.
1430         (main): Use a zero-size object pointer instead of NULL.
1431         * tests/test-memmem.c: Include zerosize-ptr.h.
1432         (main): Use a zero-size object pointer instead of NULL.
1433         * tests/test-memrchr.c: Include zerosize-ptr.h.
1434         (main): Use a zero-size object pointer instead of NULL.
1435         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
1436         m4/mmap-anon.m4.
1437         (Depends-on): Add getpagesize.
1438         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1439         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
1440         m4/mmap-anon.m4.
1441         (Depends-on): Add getpagesize.
1442         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1443         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
1444         m4/mmap-anon.m4.
1445         (Depends-on): Add getpagesize.
1446         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1447         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
1448         m4/mmap-anon.m4.
1449         (Depends-on): Add getpagesize.
1450         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1451         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
1452         m4/mmap-anon.m4.
1453         (Depends-on): Add getpagesize.
1454         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
1455
1456 2009-05-12  Bruno Haible  <bruno@clisp.org>
1457
1458         Tests for module 'alignof'.
1459         * modules/alignof-tests: New file.
1460         * tests/test-alignof.c: New file.
1461
1462 2009-05-12  Bruno Haible  <bruno@clisp.org>
1463
1464         Fix alignof macro.
1465         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
1466         vendor compilers that are always correct.
1467
1468 2009-05-12  Bruno Haible  <bruno@clisp.org>
1469
1470         Make the MAP_ANONYMOUS detection work on HP-UX 11.
1471         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
1472         not whether its fully works.
1473
1474 2009-05-12  Bruno Haible  <bruno@clisp.org>
1475
1476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
1477
1478 2009-05-12  Jim Meyering  <meyering@redhat.com>
1479
1480         * top/maint.mk: Adjust backslash alignment.
1481
1482 2009-05-11  Simon Josefsson  <simon@josefsson.org>
1483
1484         * top/maint.mk: Make $(srcdir)/build-aux configurable.
1485
1486 2009-05-11  Eric Blake  <ebb9@byu.net>
1487
1488         argp: avoid undefined behavior
1489         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
1490         macros.
1491
1492 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1493
1494         * tests/test-vc-list-files-git.sh: Do git config of user.email and
1495         user.name to prevent git commit from complaining.
1496
1497 2009-05-10  Bruno Haible  <bruno@clisp.org>
1498
1499         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
1500         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
1501         it rewrites every file name only once.
1502         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
1503
1504 2009-05-08  Bruno Haible  <bruno@clisp.org>
1505
1506         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
1507         instead of 'max'.
1508
1509 2009-05-08  Simon Josefsson  <simon@josefsson.org>
1510
1511         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
1512         sockaddr_storage test.
1513
1514 2009-05-07  Simon Josefsson  <simon@josefsson.org>
1515
1516         * modules/sys_socket (Makefile.am): Substitute
1517         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
1518         * m4/sys_socket_h.m4: Check for sockaddr_storage.
1519         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
1520         * tests/test-sys_socket.c: Check sockaddr_storage.
1521
1522 2009-05-08  Bruno Haible  <bruno@clisp.org>
1523
1524         New module 'alignof'.
1525         * lib/alignof.h: New file.
1526         * modules/alignof: New file.
1527
1528 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1529             Bruno Haible  <bruno@clisp.org>
1530
1531         Fix test-file-has-acl on FreeBSD.
1532         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
1533         mask is implicitly added.
1534         * tests/test-file-has-acl.c: Include <signal.h>.
1535         (main): Terminate the test after 5 seconds.
1536         * modules/acl-tests (configure.ac): Check for alarm function.
1537
1538 2009-05-04  Bruno Haible  <bruno@clisp.org>
1539
1540         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
1541         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
1542         * modules/errno (configure.ac): Drop AC_REQUIRE.
1543         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
1544         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
1545
1546 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1547
1548         * modules/glob-tests: New module.
1549         * tests/test-glob.c: Add.
1550
1551 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1552
1553         * modules/fnmatch-tests: New module.
1554         * tests/test-fnmatch.c: Add.
1555
1556 2009-05-04  Eric Blake  <ebb9@byu.net>
1557
1558         maint: make the new no-submodule-changes rule VPATH-safe
1559         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
1560
1561 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1562             Bruno Haible  <bruno@clisp.org>
1563
1564         acl: Fix infinite loop on FreeBSD.
1565         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
1566         of return value from acl_get_entry.
1567         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
1568         Likewise.
1569
1570 2009-05-03  Bruno Haible  <bruno@clisp.org>
1571
1572         * lib/acl-internal.h (acl_entries): Clarify return value.
1573         * lib/acl_entries.c (acl_entries): Likewise.
1574
1575 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1576
1577         Bug fix in acl module.
1578         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
1579
1580 2009-05-03  Bruno Haible  <bruno@clisp.org>
1581
1582         Create gperf-generated file in the source dir, not in the build dir.
1583         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
1584         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
1585         * modules/unicase/locale-language (unicase/locale-languages.h):
1586         Likewise.
1587         * modules/unicase/special-casing (unicase/special-casing-table.h):
1588         Likewise.
1589         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
1590         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
1591         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
1592         Reported by Ralf Wildenhues.
1593
1594 2009-05-03  Bruno Haible  <bruno@clisp.org>
1595
1596         * modules/fnmatch (Description, configure.ac): Taken from
1597         fnmatch-posix.
1598         * modules/fnmatch-posix: Turn into a symbolic reference to the
1599         'fnmatch' module, and deprecate.
1600         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
1601
1602 2009-05-03  Bruno Haible  <bruno@clisp.org>
1603
1604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
1605         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
1606         Reported by Ralf Wildenhues.
1607
1608 2009-05-04  Simon Josefsson  <simon@josefsson.org>
1609
1610         * m4/fnmatch.m4: Fix fnmatch re-define.
1611
1612 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
1613
1614         priv-set: new module and tests; adapt write-any-file
1615         * lib/priv-set.c: New file.
1616         * lib/priv-set.h: New file.
1617         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
1618         * lib/write-any-file.c: Simplify by using priv-set module.
1619         * m4/priv-set.m4: New file.
1620         * modules/priv-set: New file.
1621         * modules/unlinkdir: Add dependency on priv-set module.
1622         * modules/write-any-file: Likewise.
1623
1624         Tests for module 'priv-set'.
1625         * modules/priv-set-tests: New file.
1626         * tests/test-priv-set.c: New file.
1627
1628 2009-05-03  Jim Meyering  <meyering@redhat.com>
1629             Bruno Haible  <bruno@clisp.org>
1630
1631         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
1632         use the converted UTF-8 variant of the name instead.
1633
1634 2009-05-03  Jim Meyering  <meyering@redhat.com>
1635
1636         tests: tighten some getdate tests
1637         * tests/test-getdate.c (main): Tighten tests: require equality,
1638         not just greater than.  Set TZ envvar to UTC0.
1639
1640 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1641
1642         getdate: correctly interpret "next monday" when run on a Monday
1643         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
1644         that e.g., "next tues" (when run on a tuesday) results in a date
1645         that is one week in the future, and not today's date.
1646         I.e., add a week when the wday is the same as the current one.
1647         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
1648         and earlier by Martin Bernreuther and Jan Minář.
1649         * tests/test-getdate.c (main): Check that "next DAY" is always in
1650         the future and that "last DAY" is always in the past.
1651
1652 2009-05-02  Jim Meyering  <meyering@redhat.com>
1653
1654         build: ensure that a release build fails when a submodule is unclean
1655         * top/maint.mk (no-submodule-changes): New rule.
1656         (alpha beta major): Depend on it.
1657
1658 2009-05-02  Bruno Haible  <bruno@clisp.org>
1659
1660         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
1661         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
1662         shell variable gl_fnmatch_required to detect which variant is
1663         requested.
1664         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
1665         gl_FUNC_FNMATCH_POSIX.
1666         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
1667         exclude fnmatch-posix.
1668
1669 2009-05-02  Bruno Haible  <bruno@clisp.org>
1670
1671         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
1672         * modules/mbsrtowcs (License): Change to LGPLv2+.
1673         * modules/strnlen1 (License): Likewise.
1674         Reported by Simon Josefsson.
1675
1676 2009-05-02  Bruno Haible  <bruno@clisp.org>
1677
1678         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
1679         "cross".
1680         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
1681         gnulib-tool was called with option --source-base=lib.
1682
1683 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1684
1685         Use automake *-local hooks without commands, for extensibility.
1686         * modules/localcharset (Makefile.am): Rename install-exec-local
1687         rule to install-exec-localcharset, and make it a prerequisite of
1688         install-exec-local.  Likewise, rename the uninstall-local rule to
1689         uninstall-localcharset, and make it a prerequisite of the former.
1690
1691 2009-05-01  Bruno Haible  <bruno@clisp.org>
1692
1693         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
1694         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1695         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
1696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
1697         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
1698         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1699         m4/locale-zh.m4, m4/codeset.m4.
1700
1701         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
1702         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
1703         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
1704         m4/locale-zh.m4.
1705
1706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
1707         REPLACE_WCRTOMB if mbstate_t must be replaced.
1708         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
1709         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
1710
1711 2009-05-01  Bruno Haible  <bruno@clisp.org>
1712
1713         Avoid compiler warnings when redefining macros defined by <libintl.h>.
1714         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
1715         dngettext, dcngettext, textdomain, bindtextdomain,
1716         bind_textdomain_codeset): Undefine before redefining.
1717
1718 2009-04-30  Bruno Haible  <bruno@clisp.org>
1719
1720         Fix bug introduced on 2009-04-25.
1721         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
1722         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
1723         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
1724         is defined.
1725         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
1726         is defined.
1727         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
1728         is defined.
1729         Reported by Elbert_Pol <elbert.pol@gmail.com>.
1730
1731 2009-04-28  Bruno Haible  <bruno@clisp.org>
1732
1733         Comment tweaks.
1734         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
1735         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
1736         * lib/unicase.h (u*_casexfrm): Likewise.
1737         Reported by Paolo Bonzini.
1738
1739 2009-04-28  Bruno Haible  <bruno@clisp.org>
1740
1741         Fix a compilation error.
1742         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
1743         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
1744         Reported by Jim Meyering.
1745
1746 2009-04-27  Bruno Haible  <bruno@clisp.org>
1747
1748         New module 'libunistring'.
1749         * modules/libunistring: New file.
1750         * m4/libunistring.m4: New file.
1751         * MODULES.html.sh (Unicode string functions): Add it.
1752
1753 2009-04-27  Eric Blake  <ebb9@byu.net>
1754
1755         maint.mk: allow package-specific header to provide <config.h>
1756         * top/maint.mk (sc_require_config_h): New variable.
1757         (sc_require_config_h, sc_require_config_h_first): Use it.
1758
1759 2009-04-27  Simon Josefsson  <simon@josefsson.org>
1760
1761         * top/maint.mk (sc_avoid_if_before_free): Except
1762         useless-if-before-free script.
1763
1764 2009-04-27  Eric Blake  <ebb9@byu.net>
1765
1766         maintainer-makefile: depend on all required helper scripts
1767         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
1768         useless-if-before-free.
1769         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
1770         version, rather than assuming gnulib checkout is available.
1771         Reported by Simen Josefsson.
1772
1773 2009-04-26  Bruno Haible  <bruno@clisp.org>
1774
1775         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
1776         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
1777         "../" or "..".
1778
1779 2009-04-26  Bruno Haible  <bruno@clisp.org>
1780
1781         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
1782         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
1783         AC_LIB_HAVE_LINKFLAGS.
1784
1785 2009-04-26  Bruno Haible  <bruno@clisp.org>
1786
1787         Simplify calling convention of u*_conv_from_encoding.
1788         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
1789         u32_conv_from_encoding): Expect a resultbuf argument and return the
1790         result directly as a pointer.
1791         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
1792         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
1793         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
1794         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
1795         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
1796         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
1797         Update.
1798         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
1799         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
1800         * lib/vasnprintf.c (VASNPRINTF): Update.
1801         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
1802         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
1803         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
1804         * NEWS: Mention the change.
1805
1806 2009-04-26  Bruno Haible  <bruno@clisp.org>
1807
1808         Simplify calling convention of u*_conv_to_encoding.
1809         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1810         u32_conv_to_encoding): Expect a resultbuf argument and return the
1811         result directly as a pointer.
1812         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1813         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
1814         freeing scaled_offsets if mem_iconveha failed.
1815         * lib/unicase/u-casexfrm.h (FUNC): Update.
1816         * lib/uninorm/u-normxfrm.h (FUNC): Update.
1817         * lib/vasnprintf.c (VASNPRINTF): Update.
1818         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
1819         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
1820         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
1821         * NEWS: Mention the change.
1822
1823 2009-04-26  Bruno Haible  <bruno@clisp.org>
1824
1825         Avoid test failures on AIX and OSF/1.
1826         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
1827         malloc(0).
1828         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
1829         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
1830         Likewise.
1831         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
1832         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
1833         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
1834         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
1835         * doc/posix-functions/malloc.texi: Document the portability problem
1836         related to malloc(0).
1837
1838 2009-04-26  Bruno Haible  <bruno@clisp.org>
1839
1840         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
1841         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
1842         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
1843
1844 2009-04-25  Bruno Haible  <bruno@clisp.org>
1845
1846         Avoid link error when creating a namespace clean library.
1847         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
1848         as macro with arguments if already defined as an alias.
1849         * lib/signbitf.c (gl_signbitf): Don't undefine.
1850         * lib/signbitd.c (gl_signbitd): Don't undefine.
1851         * lib/signbitl.c (gl_signbitl): Don't undefine.
1852
1853 2009-04-25  Jim Meyering  <meyering@redhat.com>
1854
1855         vc-list-files: fix another quoting bug
1856         * build-aux/vc-list-files: Avoid sed backslash expansion
1857         of pathological directory names.
1858
1859 2009-04-25  Eric Blake  <ebb9@byu.net>
1860
1861         vc-list-files: fix shell quoting error
1862         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
1863         timestamp.
1864
1865 2009-04-25  Jim Meyering  <meyering@redhat.com>
1866
1867         vc-list-files: restore lost functionality with subdir argument
1868         * build-aux/vc-list-files: When given a non-"." sub-directory
1869         argument, substitute the $dir/ prefix back onto each resulting name.
1870         Otherwise, coreutils' root_tests check would fail.
1871
1872 2009-04-24  Eric Blake  <ebb9@byu.net>
1873
1874         vc-list-files: ignore git symlinks
1875         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
1876         than ls-files, to ignore git symlinks.
1877
1878         maint.mk: import improvements from m4
1879         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
1880         (move_if_change): Delete unused macro.
1881         (news-date-check, vc-diff-check): Support VPATH builds.
1882         (announcement): Likewise.  Split --bootstrap-tools list...
1883         (boostrap-tools): ...into separate list, which can be overridden
1884         in cfg.mk.
1885         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
1886         requiring dependency on useless-if-before-free module.
1887         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
1888         Support VPATH builds.
1889
1890 2009-04-24  Jim Meyering  <meyering@redhat.com>
1891
1892         maint.mk: remove coreutils-specific rules and variables
1893         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
1894         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
1895         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
1896
1897         maint.mk: remove obsolete rule
1898         * top/maint.mk (rel-check): Remove rule.
1899         (WGET, WGETFLAGS): Remove now-unused variables.
1900
1901 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1902
1903         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
1904         consistency.
1905
1906         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
1907         '$(PATH_SEPARATOR)' instead of ':'.
1908
1909 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1910
1911         * lib/getopt1.c (main): Use 'const' for static array.
1912
1913 2009-04-24  Simon Josefsson  <simon@josefsson.org>
1914
1915         * top/maint.mk: Sync with coreutils.
1916         * NEWS: Explain incompatibilities.
1917
1918 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1919             Bruno Haible  <bruno@clisp.org>
1920
1921         Fix cross-compilation results.
1922         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
1923         statement, as third argument of AC_TRY_RUN.
1924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1925         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1926         Likewise.
1927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1928         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1929         Likewise.
1930         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
1932         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
1933
1934 2009-04-20  Bruno Haible  <bruno@clisp.org>
1935
1936         Avoid test failure on mingw.
1937         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
1938
1939 2009-04-20  Bruno Haible  <bruno@clisp.org>
1940
1941         Avoid compilation error on mingw.
1942         * modules/localename-tests (Depends-on): Add locale.
1943
1944 2009-04-19  Bruno Haible  <bruno@clisp.org>
1945
1946         Support for building a shared library on Windows platforms.
1947         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
1948         (main): Test the presence of UNINORM_NFC here.
1949         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
1950         (main): Test the presence of UNINORM_NFD here.
1951         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
1952         (main): Test the presence of UNINORM_NFKC here.
1953         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
1954         (main): Test the presence of UNINORM_NFKD here.
1955
1956 2009-04-19  Bruno Haible  <bruno@clisp.org>
1957
1958         Avoid a compiler warning.
1959         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
1960         Change type of variable 'sequence'.
1961
1962 2009-04-19  Bruno Haible  <bruno@clisp.org>
1963
1964         * modules/configmake (Makefile.am): When the contents of configmake.h
1965         does not change, arrange to preserve its modification time.
1966
1967 2009-04-17  Simon Josefsson  <simon@josefsson.org>
1968
1969         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
1970         gettext domain.
1971
1972 2009-04-16  Jim Meyering  <meyering@redhat.com>
1973
1974         useless-if-before-free: improve conversion code
1975         * build-aux/useless-if-before-free: Adjust code-in-comment to match
1976         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
1977
1978 2009-04-14  Bruno Haible  <bruno@clisp.org>
1979
1980         * modules/fcntl (Depends-on): Add extensions.
1981         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
1982
1983 2009-04-12  Ben Pfaff  <blp@gnu.org>
1984
1985         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
1986         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
1987
1988 2009-03-20  Ben Pfaff  <blp@gnu.org>
1989
1990         Make rename replace existing destinations on Windows.
1991         * m4/rename.m4: Add test for Mingw.
1992         * lib/rename.c: Add rename replacement that uses MoveFileEx with
1993         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
1994         * doc/posix-functions/rename.texi: Document.
1995
1996 2009-04-10  Bruno Haible  <bruno@clisp.org>
1997
1998         New include file "iconveh.h".
1999         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
2000         * lib/striconveh.h: Include it.
2001         (enum iconv_ilseq_handler): Remove definition.
2002         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
2003         striconveh.h.
2004         * lib/striconveha.c: Include striconveh.h.
2005         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
2006         * modules/striconveh (Files): Add lib/iconveh.h.
2007         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
2008         lib/striconveh.h.
2009
2010 2009-04-10  Bruno Haible  <bruno@clisp.org>
2011
2012         * lib/uniconv.h: Update comment.
2013
2014 2009-04-10  Bruno Haible  <bruno@clisp.org>
2015
2016         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
2017         always.
2018         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
2019         * lib/unistr/u16-mbtouc-aux.c: Likewise.
2020         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
2021         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
2022         "unistring-notinline.h", so that the function gets defined always.
2023         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
2024         * lib/unistr/u8-uctomb.c: Likewise.
2025         * lib/unistr/u16-mbtouc.c: Likewise.
2026         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
2027         * lib/unistr/u16-uctomb.c: Likewise.
2028         * lib/unistr/u32-mbtouc.c: Likewise.
2029         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
2030         * lib/unistr/u32-uctomb.c: Likewise.
2031
2032 2009-04-10  Bruno Haible  <bruno@clisp.org>
2033
2034         Mark 'utime' obsolete.
2035         * modules/utime (Status, Notice): New sections.
2036         Suggested by Jim Meyering.
2037
2038         Fix cross-compile guess for utime test.
2039         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
2040         autoconf.
2041         * doc/posix-functions/utime.texi: Give more precisions.
2042         Reported by Jan <ipif@ymail.com>.
2043
2044 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
2045
2046         filevercmp: correct today's change
2047         * lib/filevercmp.c: Also handle coreutils' test inputs.
2048         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
2049
2050         Fix regression in 'filevercmp' module. Thanks Sven Joachim
2051         for reporting it.
2052         * lib/filevercmp.c: Special handle for "", "." and "..".
2053         * tests/test-filevercmp.c: Enlarge the set suite.
2054
2055 2009-04-07  Jim Meyering  <meyering@redhat.com>
2056
2057         useless-if-before-free: show how to remove braced useless free, too
2058         * build-aux/useless-if-before-free: still only in a comment, though.
2059
2060 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
2061
2062         maint.mk: import changes to syntax-check macros from coreutils
2063         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
2064         Use them in the relevant macros.
2065
2066 2009-04-06  Bruno Haible  <bruno@clisp.org>
2067
2068         Fix unportable use of bit-fields.
2069         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
2070         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
2071         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
2072
2073 2009-04-06  Bruno Haible  <bruno@clisp.org>
2074
2075         Avoid test failures on AIX and OSF/1.
2076         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
2077         that malloc(0) = NULL.
2078         * tests/unicase/test-u8-tolower.c (check): Likewise.
2079         * tests/unicase/test-u8-totitle.c (check): Likewise.
2080         * tests/unicase/test-u8-toupper.c (check): Likewise.
2081         * tests/unicase/test-u16-casefold.c (check): Likewise.
2082         * tests/unicase/test-u16-tolower.c (check): Likewise.
2083         * tests/unicase/test-u16-totitle.c (check): Likewise.
2084         * tests/unicase/test-u16-toupper.c (check): Likewise.
2085         * tests/unicase/test-u32-casefold.c (check): Likewise.
2086         * tests/unicase/test-u32-tolower.c (check): Likewise.
2087         * tests/unicase/test-u32-totitle.c (check): Likewise.
2088         * tests/unicase/test-u32-toupper.c (check): Likewise.
2089         * tests/uninorm/test-u8-nfc.c (check): Likewise.
2090         * tests/uninorm/test-u8-nfd.c (check): Likewise.
2091         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
2092         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
2093         * tests/uninorm/test-u16-nfc.c (check): Likewise.
2094         * tests/uninorm/test-u16-nfd.c (check): Likewise.
2095         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
2096         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
2097         * tests/uninorm/test-u32-nfc.c (check): Likewise.
2098         * tests/uninorm/test-u32-nfd.c (check): Likewise.
2099         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
2100         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
2101
2102 2009-04-05  Bruno Haible  <bruno@clisp.org>
2103
2104         Work around an autoconf limitation.
2105         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
2106         comment line if it would be longer than 3 KB.
2107
2108 2009-04-05  Bruno Haible  <bruno@clisp.org>
2109
2110         Avoid test failure with libiconv-1.13.
2111         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
2112         of the expected test results.
2113
2114 2009-04-05  Bruno Haible  <bruno@clisp.org>
2115
2116         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
2117         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
2118         that it should be installed.
2119
2120 2009-04-05  Bruno Haible  <bruno@clisp.org>
2121
2122         * gnulib-tool: New option --copy-file.
2123         (func_usage): Document it.
2124         (func_dest_tmpfilename): Moved out of func_import.
2125         (func_add_file, func_update_file): New functions, extracted from
2126         func_import.
2127         (func_import): Update.
2128
2129 2009-04-05  Karl Berry  <karl@gnu.org>
2130
2131         * README: prominently mention gnulib-tool.
2132         Rearrange sections so getting the code is near the top.
2133
2134 2009-04-05  Bruno Haible  <bruno@clisp.org>
2135
2136         * lib/unicase.h: Mention u*_cmp2.
2137         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2138         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
2139         * lib/unicase/ulc-casecmp.c: Likewise.
2140         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
2141         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
2142         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
2143         unistr/u8-cmp.
2144         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
2145         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
2146         unistr/u16-cmp.
2147         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
2148         unistr/u32-cmp.
2149
2150         * lib/uninorm.h: Mention u*_cmp2.
2151         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2152         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
2153         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
2154         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
2155         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
2156         unistr/u8-cmp.
2157         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
2158         unistr/u16-cmp.
2159         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
2160         unistr/u32-cmp.
2161
2162         New module 'unistr/u32-cmp2'.
2163         * lib/unistr/u32-cmp2.c: New file.
2164         * modules/unistr/u32-cmp2: New file.
2165
2166         New module 'unistr/u16-cmp2'.
2167         * lib/unistr/u16-cmp2.c: New file.
2168         * modules/unistr/u16-cmp2: New file.
2169
2170         New module 'unistr/u8-cmp2'.
2171         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
2172         * lib/unistr/u8-cmp2.c: New file.
2173         * lib/unistr/u-cmp2.h: New file.
2174         * modules/unistr/u8-cmp2: New file.
2175
2176 2009-04-05  Bruno Haible  <bruno@clisp.org>
2177
2178         * lib/unictype.h (uc_property_is_valid): New macro.
2179         * tests/unictype/test-pr_byname.c (main): Use it.
2180
2181         * lib/unistr.h: Doc fixes.
2182         * lib/uniconv.h: Doc fixes.
2183         * lib/unictype.h: Doc fixes.
2184
2185 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
2186
2187         Port coreutils 7.2 to Solaris 8.
2188
2189         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
2190         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
2191         for Solaris 8.  This is a bit of a hack, as it means it's the
2192         caller's responsibility to add -lnsl if needed, but most likely it
2193         won't be needed since only getaddrinfo uses this and getaddrinfo
2194         isn't needed on Solaris 8.
2195
2196         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
2197         problem to Solaris 8 encountered with coreutils 7.2, which
2198         resulted in a message "fnmatch.c:292: warning: passing argument 4
2199         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
2200         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
2201
2202 2009-04-03  Simon Josefsson  <simon@josefsson.org>
2203
2204         * m4/ld-version-script.m4: Add FIXME comment.
2205
2206 2009-04-02  Simon Josefsson  <simon@josefsson.org>
2207
2208         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
2209         SOVERSION variable.
2210
2211 2009-04-02  Bruno Haible  <bruno@clisp.org>
2212
2213         * Makefile (info, html, dvi, pdf): Combine the rules.
2214         Suggested by Jim Meyering.
2215
2216 2009-04-01  Bruno Haible  <bruno@clisp.org>
2217
2218         * Makefile (info, html, dvi, pdf): New targets.
2219         Reported by Reuben Thomas <rrt@sc3d.org>.
2220
2221 2009-04-01  Bruno Haible  <bruno@clisp.org>
2222
2223         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
2224         can be put into PATH.
2225         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
2226
2227 2009-04-01  Bruno Haible  <bruno@clisp.org>
2228
2229         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
2230
2231 2009-04-01  Bruno Haible  <bruno@clisp.org>
2232
2233         Rename module 'visibility'.
2234         * modules/lib-symbol-visibility: Renamed from modules/visibility.
2235         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
2236         * doc/gnulib.texi: Update.
2237         * MODULES.html.sh (Misc): Update.
2238         * NEWS: Mention the change.
2239
2240 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2241
2242         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
2243         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
2244         Eric Blake <ebb9@byu.net> for review.
2245         * MODULES.html.sh: Add lib-msvc-compat.
2246         * doc/gnulib.texi: Link to new section.
2247         * m4/ld-output-def.m4: New file.
2248         * doc/ld-output-def.texi: New file.
2249
2250 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2251
2252         Rename ld-version-script to lib-symbol-versions.  Suggested by
2253         Bruno Haible <bruno@clisp.org>.
2254         * modules/ld-version-script: Renamed to lib-symbol-versions.
2255         * doc/ld-version-script.texi: Fix module name.
2256         * MODULES.html.sh: Add lib-symbol-versions.
2257
2258 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2259
2260         * modules/u64-tests: New file.
2261         * tests/test-u64.c: New file.
2262
2263 2009-03-04  Simon Josefsson  <simon@josefsson.org>
2264
2265         * MODULES.html.sh: Mention u64.
2266         * modules/u64: New module.
2267         * modules/crypto/sha512: Depend on u64 module instead of providing
2268         u64.h.
2269
2270 2009-03-27  Eric Blake  <ebb9@byu.net>
2271
2272         test-strerror: make debugging EAI_SYSTEM easier
2273         * modules/getaddrinfo-tests (Depends-on): Add strerror.
2274         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
2275         failure was EAI_SYSTEM.
2276
2277 2009-03-25  Bruno Haible  <bruno@clisp.org>
2278
2279         Fix a problem with --enable-relocatable on Solaris 7.
2280         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
2281         since 2008-02-24.
2282
2283 2009-03-25  Eric Blake  <ebb9@byu.net>
2284
2285         test-sockets: avoid gcc warning
2286         * tests/test-sockets.c (main): Silence compiler warning.
2287
2288 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
2289
2290         New modules nproc, pthread, contributed by Glen Lenker.
2291
2292         * MODULES.html.sh: Add pthread, nproc.
2293         * lib/nproc.c: New file.
2294         * lib/nproc.h: New file.
2295         * lib/pthread.in.h: New file.
2296         * m4/pthread.m4: New file.
2297         * modules/nproc: New file.
2298         * modules/pthread: New file.
2299
2300 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2301
2302         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
2303         New variable.
2304
2305 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
2306
2307         filevercmp: handle simple~ and numbered.~3~ backup suffixes
2308         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
2309         * tests/test-filevercmp.c: Add tests for backup suffixes.
2310
2311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2312
2313         * modules/stdlib (Depends-on): Add stdint, needed when defining
2314         struct random_data on, for example, HP-UX 10.20.  Reported by
2315         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2316
2317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2318
2319         * lib/readline.c (readline): Call fflush on stdout after printing
2320         prompt.
2321
2322 2009-03-20  Bruno Haible  <bruno@clisp.org>
2323
2324         Remove dependency from 'close' module to -lws2_32 on native Windows.
2325         * lib/close-hook.h: New file.
2326         * lib/close-hook.c: New file.
2327         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
2328         w32sock.h.
2329         (_gl_close_fd_maybe_socket): Remove function.
2330         (rpl_close): Invoke execute_all_close_hooks instead of
2331         _gl_close_fd_maybe_socket.
2332         * lib/sockets.c: Include close-hook.h, w32sock.h.
2333         (close_fd_maybe_socket): New function, essentially from lib/close.c.
2334         (close_sockets_hook): New variable.
2335         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
2336         (gl_sockets_cleanup): Unregister it.
2337         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
2338         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
2339         * modules/close-hook: New file.
2340         * modules/close (Files): Remove lib/w32sock.h.
2341         (Depends-on): Add close-hook.
2342         (Link): Remove section.
2343         * modules/sockets (Files): Add lib/w32sock.h.
2344         (Depends-on): Add close-hook.
2345         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
2346         invocation.
2347         * NEWS: Mention that LIB_CLOSE is gone.
2348
2349 2009-03-23  Eric Blake  <ebb9@byu.net>
2350
2351         signal-tests: test previous patch
2352         * tests/test-signal.c: New file.
2353         * modules/signal-tests: Likewise.
2354
2355         signal.h: always support 'volatile sig_atomic_t'
2356         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
2357         (gl_SIGNAL_H_DEFAULTS): Add a default.
2358         * modules/signal (Makefile.am): Substitute if needed.
2359         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
2360         users can blindly add volatile.
2361         * doc/posix-headers/signal.texi (signal.h): Document it.
2362         Reported by Matthew Woehlke.
2363
2364 2009-03-23  Jim Meyering  <meyering@redhat.com>
2365
2366         pathmax: PATH_MAX: use pathconf only when available
2367         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
2368         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
2369         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
2370         This avoids a link failure in a PSP cross-compilation environment
2371         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
2372
2373         * lib/vasnprintf.c (divide): Fix typo in comment.
2374
2375 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2376
2377         * gnulib-tool (func_filter_filelist): Fix comment.
2378
2379 2009-03-20  Bruno Haible  <bruno@clisp.org>
2380
2381         Make sockets.h self-contained.
2382         * lib/sockets.c: Include sockets.h first.
2383         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
2384
2385 2009-03-19  Eric Blake  <ebb9@byu.net>
2386
2387         doc: mention more functions added in cygwin 1.7.0
2388         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
2389         addition.
2390         * doc/posix-functions/log2f.texi: Likewise.
2391
2392 2009-03-19  Jim Meyering  <meyering@redhat.com>
2393
2394         fsusage: avoid syntax error due to statement-before-declaration
2395         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
2396         after all declarations.  Reported by Matthew Woehlke in
2397         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
2398
2399 2009-03-18  Eric Blake  <ebb9@byu.net>
2400
2401         build-aux/compile: sync from automake
2402         * build-aux/compile: New file, from automake.
2403         * config/srclist.txt: Mention build-aux/compile.
2404
2405 2009-03-17  Bruno Haible  <bruno@clisp.org>
2406
2407         * lib/git-merge-changelog.c: Fix typo in comment.
2408         Reported by Reuben Thomas <rrt@sc3d.org>.
2409
2410 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
2411
2412         * m4/regex.m4: update and improve help for
2413         --without-included-regex.
2414
2415 2009-03-17  Simon Josefsson  <simon@josefsson.org>
2416
2417         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
2418         failure on missing include files.
2419
2420 2009-03-17  Eric Blake  <ebb9@byu.net>
2421
2422         doc: mention more functions added in cygwin 1.7.0
2423         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
2424         addition.
2425         * doc/posix-functions/fwscanf.texi: Likewise.
2426         * doc/posix-functions/swprintf.texi: Likewise.
2427         * doc/posix-functions/swscanf.texi: Likewise.
2428         * doc/posix-functions/vfwprintf.texi: Likewise.
2429         * doc/posix-functions/vfwscanf.texi: Likewise.
2430         * doc/posix-functions/vswprintf.texi: Likewise.
2431         * doc/posix-functions/vswscanf.texi: Likewise.
2432         * doc/posix-functions/vwprintf.texi: Likewise.
2433         * doc/posix-functions/vwscanf.texi: Likewise.
2434         * doc/posix-functions/wcscasecmp.texi: Likewise.
2435         * doc/posix-functions/wcsdup.texi: Likewise.
2436         * doc/posix-functions/wcsftime.texi: Likewise.
2437         * doc/posix-functions/wcsncasecmp.texi: Likewise.
2438         * doc/posix-functions/wprintf.texi: Likewise.
2439         * doc/posix-functions/wscanf.texi: Likewise.
2440         * doc/glibc-functions/gethostbyname2.texi: Likewise.
2441
2442 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2443
2444         maint.mk: really add $(AM_MAKEFLAGS)
2445         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
2446         was inadvertently omitted in the last commit.
2447         Spotted by Bruno Haible.
2448
2449         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
2450         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
2451         $(AM_MAKEFLAGS)' rather than plain `make'.
2452
2453         gnulib-tool: execute $MAKE not make
2454         * gnulib-tool: Default $MAKE to 'make'.
2455         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
2456         than make.  Initialize $MAKE in the do-autobuild script.
2457
2458         gnulib-tool: use $MAKE not make in generated files
2459         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
2460         make, in generated files.  Initialize $MAKE in the do-autobuild
2461         script.
2462
2463         * top/GNUmakefile (_have-git-version-gen): Fix typo.
2464
2465         GNUmakefile: disable parallelism only for multiple, recursive targets
2466         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
2467         additions in the Makefile.
2468         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
2469         by Automake.
2470         (.NOTPARALLEL): Only disable parallel builds if multiple targets
2471         are listed on the command line and at least one of them is
2472         listed in $(ALL_RECURSIVE_TARGETS).
2473
2474 2009-03-14  Bruno Haible  <bruno@clisp.org>
2475
2476         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
2477         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
2478         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
2479         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
2480         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
2481         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
2482         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
2483         unistr/u8-uctomb.
2484         * modules/unistr/u8-strchr (Depends-on): Likewise.
2485         * modules/unistr/u8-strrchr (Depends-on): Likewise.
2486         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
2487         unistr/u16-uctomb.
2488         * modules/unistr/u16-strchr (Depends-on): Likewise.
2489         * modules/unistr/u16-strrchr (Depends-on): Likewise.
2490
2491 2009-03-12  Bruno Haible  <bruno@clisp.org>
2492
2493         Work around select() bug on Interix 3.5.
2494         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
2495         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
2496         * m4/select.m4: New file.
2497         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
2498         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
2499         * modules/select (Files): Add m4/select.m4.
2500         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
2501         * modules/nanosleep (Depends-on): Add select.
2502         * modules/poll (Depends-on): Likewise.
2503         * doc/posix-functions/select.texi: Mention the Interix bug.
2504         Reported by Markus Duft <mduft@gentoo.org>.
2505
2506         * lib/select.c: Renamed from lib/winsock-select.c.
2507         * modules/select (Files): Add lib/select.c, remove
2508         lib/winsock-select.c.
2509         (configure.ac): Update.
2510
2511 2009-03-12  Jim Meyering  <meyering@redhat.com>
2512
2513         avoid gcc warnings about unused macro definitions
2514         * lib/readtokens.c (STREQ): Remove unused definition.
2515         * lib/xmalloc.c (SIZE_MAX): Likewise.
2516         * lib/openat-die.c (N_): Likewise.
2517         * lib/mountlist.c (SIZE_MAX): Remove definition.
2518         Instead, include <stdint.h>.
2519         * lib/readutmp.c: Likewise.
2520         * modules/readutmp (Depends-on): Add stdint.
2521         * modules/mountlist (Depends-on): Add stdint.
2522         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
2523
2524 2009-03-10  Bruno Haible  <bruno@clisp.org>
2525
2526         Tests for module 'mbmemcasecoll'.
2527         * modules/mbmemcasecoll-tests: New file.
2528         * tests/test-mbmemcasecoll1.sh: New file.
2529         * tests/test-mbmemcasecoll2.sh: New file.
2530         * tests/test-mbmemcasecoll3.sh: New file.
2531         * tests/test-mbmemcasecoll.c: New file.
2532
2533         New module 'mbmemcasecoll'.
2534         * lib/mbmemcasecoll.h: New file.
2535         * lib/mbmemcasecoll.c: New file.
2536         * modules/mbmemcasecoll: New file.
2537
2538         * tests/test-mbmemcasecmp.h: New file, extracted from
2539         tests/test-mbmemcasecmp.c.
2540         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
2541         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
2542         (main): Update.
2543         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
2544
2545 2009-03-09  Bruno Haible  <bruno@clisp.org>
2546
2547         Tests for module 'mbmemcasecmp'.
2548         * modules/mbmemcasecmp-tests: New file.
2549         * tests/test-mbmemcasecmp1.sh: New file.
2550         * tests/test-mbmemcasecmp2.sh: New file.
2551         * tests/test-mbmemcasecmp3.sh: New file.
2552         * tests/test-mbmemcasecmp.c: New file.
2553
2554         New module 'mbmemcasecmp'.
2555         * lib/mbmemcasecmp.h: New file.
2556         * lib/mbmemcasecmp.c: New file.
2557         * modules/mbmemcasecmp: New file.
2558
2559 2009-03-09  Bruno Haible  <bruno@clisp.org>
2560
2561         Tests for module 'unicase/ulc-casecoll'.
2562         * modules/unicase/ulc-casecoll-tests: New file.
2563         * tests/unicase/test-ulc-casecoll1.sh: New file.
2564         * tests/unicase/test-ulc-casecoll2.sh: New file.
2565         * tests/unicase/test-ulc-casecoll.c: New file.
2566
2567         New module 'unicase/ulc-casecoll'.
2568         * lib/unicase.h (ulc_casecoll): New declaration.
2569         * lib/unicase/ulc-casecoll.c: New file.
2570         * modules/unicase/ulc-casecoll: New file.
2571
2572         New module 'unicase/ulc-casexfrm'.
2573         * lib/unicase.h (ulc_casexfrm): New declaration.
2574         * lib/unicase/ulc-casexfrm.c: New file.
2575         * modules/unicase/ulc-casexfrm: New file.
2576
2577 2009-03-09  Bruno Haible  <bruno@clisp.org>
2578
2579         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
2580         invocations.
2581
2582         * m4/mbscasecmp.m4: Remove file.
2583         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
2584         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
2585
2586         * m4/mbscasestr.m4: Remove file.
2587         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
2588         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
2589
2590         * m4/mbschr.m4: Remove file.
2591         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
2592         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
2593
2594         * m4/mbscspn.m4: Remove file.
2595         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
2596         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
2597
2598         * m4/mbslen.m4: Remove file.
2599         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
2600         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
2601
2602         * m4/mbsncasecmp.m4: Remove file.
2603         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
2604         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
2605
2606         * m4/mbsnlen.m4: Remove file.
2607         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
2608         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
2609
2610         * m4/mbspbrk.m4: Remove file.
2611         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
2612         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
2613
2614         * m4/mbspcasecmp.m4: Remove file.
2615         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
2616         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
2617
2618         * m4/mbsrchr.m4: Remove file.
2619         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
2620         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
2621
2622         * m4/mbssep.m4: Remove file.
2623         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
2624         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
2625
2626         * m4/mbsspn.m4: Remove file.
2627         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
2628         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
2629
2630         * m4/mbsstr.m4: Remove file.
2631         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
2632         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
2633
2634         * m4/mbstok_r.m4: Remove file.
2635         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
2636         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
2637
2638         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
2639
2640         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
2641         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
2642
2643         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
2644
2645 2009-03-08  Bruno Haible  <bruno@clisp.org>
2646
2647         Tests for module 'unicase/ulc-casecmp'.
2648         * modules/unicase/ulc-casecmp-tests: New file.
2649         * tests/unicase/test-ulc-casecmp1.sh: New file.
2650         * tests/unicase/test-ulc-casecmp2.sh: New file.
2651         * tests/unicase/test-ulc-casecmp.c: New file.
2652
2653         New module 'unicase/ulc-casecmp'.
2654         * lib/unicase.h (ulc_casecmp): New declaration.
2655         * lib/unicase/ulc-casecmp.c: New file.
2656         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
2657         'const SRC_UNIT *'.
2658         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
2659         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
2660         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
2661         * modules/unicase/ulc-casecmp: New file.
2662
2663         Tests for module 'unicase/u32-is-cased'.
2664         * modules/unicase/u32-is-cased-tests: New file.
2665         * tests/unicase/test-u32-is-cased.c: New file.
2666
2667         Tests for module 'unicase/u16-is-cased'.
2668         * modules/unicase/u16-is-cased-tests: New file.
2669         * tests/unicase/test-u16-is-cased.c: New file.
2670
2671         Tests for module 'unicase/u8-is-cased'.
2672         * modules/unicase/u8-is-cased-tests: New file.
2673         * tests/unicase/test-u8-is-cased.c: New file.
2674         * tests/unicase/test-is-cased.h: New file.
2675
2676         New module 'unicase/u32-is-cased'.
2677         * lib/unicase/u32-is-cased.c: New file.
2678         * modules/unicase/u32-is-cased: New file.
2679
2680         New module 'unicase/u16-is-cased'.
2681         * lib/unicase/u16-is-cased.c: New file.
2682         * modules/unicase/u16-is-cased: New file.
2683
2684         New module 'unicase/u8-is-cased'.
2685         * lib/unicase/u8-is-cased.c: New file.
2686         * lib/unicase/u-is-cased.h: New file.
2687         * modules/unicase/u8-is-cased: New file.
2688
2689         Tests for module 'unicase/u32-is-casefolded'.
2690         * modules/unicase/u32-is-casefolded-tests: New file.
2691         * tests/unicase/test-u32-is-casefolded.c: New file.
2692
2693         Tests for module 'unicase/u16-is-casefolded'.
2694         * modules/unicase/u16-is-casefolded-tests: New file.
2695         * tests/unicase/test-u16-is-casefolded.c: New file.
2696
2697         Tests for module 'unicase/u8-is-casefolded'.
2698         * modules/unicase/u8-is-casefolded-tests: New file.
2699         * tests/unicase/test-u8-is-casefolded.c: New file.
2700         * tests/unicase/test-is-casefolded.h: New file.
2701
2702         New module 'unicase/u32-is-casefolded'.
2703         * lib/unicase/u32-is-casefolded.c: New file.
2704         * modules/unicase/u32-is-casefolded: New file.
2705
2706         New module 'unicase/u16-is-casefolded'.
2707         * lib/unicase/u16-is-casefolded.c: New file.
2708         * modules/unicase/u16-is-casefolded: New file.
2709
2710         New module 'unicase/u8-is-casefolded'.
2711         * lib/unicase/u8-is-casefolded.c: New file.
2712         * modules/unicase/u8-is-casefolded: New file.
2713
2714         Tests for module 'unicase/u32-is-titlecase'.
2715         * modules/unicase/u32-is-titlecase-tests: New file.
2716         * tests/unicase/test-u32-is-titlecase.c: New file.
2717
2718         Tests for module 'unicase/u16-is-titlecase'.
2719         * modules/unicase/u16-is-titlecase-tests: New file.
2720         * tests/unicase/test-u16-is-titlecase.c: New file.
2721
2722         Tests for module 'unicase/u8-is-titlecase'.
2723         * modules/unicase/u8-is-titlecase-tests: New file.
2724         * tests/unicase/test-u8-is-titlecase.c: New file.
2725         * tests/unicase/test-is-titlecase.h: New file.
2726
2727         New module 'unicase/u32-is-titlecase'.
2728         * lib/unicase/u32-is-titlecase.c: New file.
2729         * modules/unicase/u32-is-titlecase: New file.
2730
2731         New module 'unicase/u16-is-titlecase'.
2732         * lib/unicase/u16-is-titlecase.c: New file.
2733         * modules/unicase/u16-is-titlecase: New file.
2734
2735         New module 'unicase/u8-is-titlecase'.
2736         * lib/unicase/u8-is-titlecase.c: New file.
2737         * modules/unicase/u8-is-titlecase: New file.
2738
2739         Tests for module 'unicase/u32-is-lowercase'.
2740         * modules/unicase/u32-is-lowercase-tests: New file.
2741         * tests/unicase/test-u32-is-lowercase.c: New file.
2742
2743         Tests for module 'unicase/u16-is-lowercase'.
2744         * modules/unicase/u16-is-lowercase-tests: New file.
2745         * tests/unicase/test-u16-is-lowercase.c: New file.
2746
2747         Tests for module 'unicase/u8-is-lowercase'.
2748         * modules/unicase/u8-is-lowercase-tests: New file.
2749         * tests/unicase/test-u8-is-lowercase.c: New file.
2750         * tests/unicase/test-is-lowercase.h: New file.
2751
2752         New module 'unicase/u32-is-lowercase'.
2753         * lib/unicase/u32-is-lowercase.c: New file.
2754         * modules/unicase/u32-is-lowercase: New file.
2755
2756         New module 'unicase/u16-is-lowercase'.
2757         * lib/unicase/u16-is-lowercase.c: New file.
2758         * modules/unicase/u16-is-lowercase: New file.
2759
2760         New module 'unicase/u8-is-lowercase'.
2761         * lib/unicase/u8-is-lowercase.c: New file.
2762         * modules/unicase/u8-is-lowercase: New file.
2763
2764         Tests for module 'unicase/u32-is-uppercase'.
2765         * modules/unicase/u32-is-uppercase-tests: New file.
2766         * tests/unicase/test-u32-is-uppercase.c: New file.
2767
2768         Tests for module 'unicase/u16-is-uppercase'.
2769         * modules/unicase/u16-is-uppercase-tests: New file.
2770         * tests/unicase/test-u16-is-uppercase.c: New file.
2771
2772         Tests for module 'unicase/u8-is-uppercase'.
2773         * modules/unicase/u8-is-uppercase-tests: New file.
2774         * tests/unicase/test-u8-is-uppercase.c: New file.
2775         * tests/unicase/test-is-uppercase.h: New file.
2776
2777         New module 'unicase/u32-is-uppercase'.
2778         * lib/unicase/u32-is-uppercase.c: New file.
2779         * modules/unicase/u32-is-uppercase: New file.
2780
2781         New module 'unicase/u16-is-uppercase'.
2782         * lib/unicase/u16-is-uppercase.c: New file.
2783         * modules/unicase/u16-is-uppercase: New file.
2784
2785         New module 'unicase/u8-is-uppercase'.
2786         * lib/unicase/u8-is-uppercase.c: New file.
2787         * modules/unicase/u8-is-uppercase: New file.
2788
2789         New module 'unicase/u32-is-invariant'.
2790         * lib/unicase/u32-is-invariant.c: New file.
2791         * modules/unicase/u32-is-invariant: New file.
2792
2793         New module 'unicase/u16-is-invariant'.
2794         * lib/unicase/u16-is-invariant.c: New file.
2795         * modules/unicase/u16-is-invariant: New file.
2796
2797         New module 'unicase/u8-is-invariant'.
2798         * lib/unicase/u8-is-invariant.c: New file.
2799         * lib/unicase/invariant.h: New file.
2800         * lib/unicase/u-is-invariant.h: New file.
2801         * modules/unicase/u8-is-invariant: New file.
2802
2803         Tests for module 'unicase/u32-casecoll'.
2804         * modules/unicase/u32-casecoll-tests: New file.
2805         * tests/unicase/test-u32-casecoll.c: New file.
2806
2807         Tests for module 'unicase/u16-casecoll'.
2808         * modules/unicase/u16-casecoll-tests: New file.
2809         * tests/unicase/test-u16-casecoll.c: New file.
2810
2811         Tests for module 'unicase/u8-casecoll'.
2812         * modules/unicase/u8-casecoll-tests: New file.
2813         * tests/unicase/test-u8-casecoll.c: New file.
2814
2815         New module 'unicase/u32-casecoll'.
2816         * lib/unicase/u32-casecoll.c: New file.
2817         * modules/unicase/u32-casecoll: New file.
2818
2819         New module 'unicase/u16-casecoll'.
2820         * lib/unicase/u16-casecoll.c: New file.
2821         * modules/unicase/u16-casecoll: New file.
2822
2823         New module 'unicase/u8-casecoll'.
2824         * lib/unicase/u8-casecoll.c: New file.
2825         * lib/unicase/u-casecoll.h: New file.
2826         * modules/unicase/u8-casecoll: New file.
2827
2828         New module 'unicase/u32-casexfrm'.
2829         * lib/unicase/u32-casexfrm.c: New file.
2830         * modules/unicase/u32-casexfrm: New file.
2831
2832         New module 'unicase/u16-casexfrm'.
2833         * lib/unicase/u16-casexfrm.c: New file.
2834         * modules/unicase/u16-casexfrm: New file.
2835
2836         New module 'unicase/u8-casexfrm'.
2837         * lib/unicase/u8-casexfrm.c: New file.
2838         * lib/unicase/u-casexfrm.h: New file.
2839         * modules/unicase/u8-casexfrm: New file.
2840
2841         Tests for module 'unicase/u32-casecmp'.
2842         * modules/unicase/u32-casecmp-tests: New file.
2843         * tests/unicase/test-u32-casecmp.c: New file.
2844
2845         Tests for module 'unicase/u16-casecmp'.
2846         * modules/unicase/u16-casecmp-tests: New file.
2847         * tests/unicase/test-u16-casecmp.c: New file.
2848
2849         Tests for module 'unicase/u8-casecmp'.
2850         * modules/unicase/u8-casecmp-tests: New file.
2851         * tests/unicase/test-u8-casecmp.c: New file.
2852         * tests/unicase/test-casecmp.h: New file.
2853
2854         New module 'unicase/u32-casecmp'.
2855         * lib/unicase/u32-casecmp.c: New file.
2856         * modules/unicase/u32-casecmp: New file.
2857
2858         New module 'unicase/u16-casecmp'.
2859         * lib/unicase/u16-casecmp.c: New file.
2860         * modules/unicase/u16-casecmp: New file.
2861
2862         New module 'unicase/u8-casecmp'.
2863         * lib/unicase/u8-casecmp.c: New file.
2864         * lib/unicase/u-casecmp.h: New file.
2865         * modules/unicase/u8-casecmp: New file.
2866
2867         Tests for module 'unicase/u32-casefold'.
2868         * modules/unicase/u32-casefold-tests: New file.
2869         * tests/unicase/test-u32-casefold.c: New file.
2870
2871         Tests for module 'unicase/u16-casefold'.
2872         * modules/unicase/u16-casefold-tests: New file.
2873         * tests/unicase/test-u16-casefold.c: New file.
2874
2875         Tests for module 'unicase/u8-casefold'.
2876         * modules/unicase/u8-casefold-tests: New file.
2877         * tests/unicase/test-u8-casefold.c: New file.
2878
2879         New module 'unicase/u32-casefold'.
2880         * lib/unicase/u32-casefold.c: New file.
2881         * modules/unicase/u32-casefold: New file.
2882
2883         New module 'unicase/u16-casefold'.
2884         * lib/unicase/u16-casefold.c: New file.
2885         * modules/unicase/u16-casefold: New file.
2886
2887         New module 'unicase/u8-casefold'.
2888         * lib/unicase/u8-casefold.c: New file.
2889         * lib/unicase/u-casefold.h: New file.
2890         * modules/unicase/u8-casefold: New file.
2891
2892         New module 'unicase/tocasefold'.
2893         * lib/unicase/casefold.h: New file.
2894         * lib/unicase/tocasefold.c: New file.
2895         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
2896         * modules/unicase/tocasefold: New file.
2897
2898         Tests for module 'unicase/u32-totitle'.
2899         * modules/unicase/u32-totitle-tests: New file.
2900         * tests/unicase/test-u32-totitle.c: New file.
2901
2902         Tests for module 'unicase/u16-totitle'.
2903         * modules/unicase/u16-totitle-tests: New file.
2904         * tests/unicase/test-u16-totitle.c: New file.
2905
2906         Tests for module 'unicase/u8-totitle'.
2907         * modules/unicase/u8-totitle-tests: New file.
2908         * tests/unicase/test-u8-totitle.c: New file.
2909
2910         New module 'unicase/u32-totitle'.
2911         * lib/unicase/u32-totitle.c: New file.
2912         * modules/unicase/u32-totitle: New file.
2913
2914         New module 'unicase/u16-totitle'.
2915         * lib/unicase/u16-totitle.c: New file.
2916         * modules/unicase/u16-totitle: New file.
2917
2918         New module 'unicase/u8-totitle'.
2919         * lib/unicase/u8-totitle.c: New file.
2920         * lib/unicase/u-totitle.h: New file.
2921         * modules/unicase/u8-totitle: New file.
2922
2923         Tests for module 'unicase/u32-tolower'.
2924         * modules/unicase/u32-tolower-tests: New file.
2925         * tests/unicase/test-u32-tolower.c: New file.
2926
2927         Tests for module 'unicase/u16-tolower'.
2928         * modules/unicase/u16-tolower-tests: New file.
2929         * tests/unicase/test-u16-tolower.c: New file.
2930
2931         Tests for module 'unicase/u8-tolower'.
2932         * modules/unicase/u8-tolower-tests: New file.
2933         * tests/unicase/test-u8-tolower.c: New file.
2934
2935         New module 'unicase/u32-tolower'.
2936         * lib/unicase/u32-tolower.c: New file.
2937         * modules/unicase/u32-tolower: New file.
2938
2939         New module 'unicase/u16-tolower'.
2940         * lib/unicase/u16-tolower.c: New file.
2941         * modules/unicase/u16-tolower: New file.
2942
2943         New module 'unicase/u8-tolower'.
2944         * lib/unicase/u8-tolower.c: New file.
2945         * modules/unicase/u8-tolower: New file.
2946
2947         Tests for module 'unicase/u32-toupper'.
2948         * modules/unicase/u32-toupper-tests: New file.
2949         * tests/unicase/test-u32-toupper.c: New file.
2950
2951         Tests for module 'unicase/u16-toupper'.
2952         * modules/unicase/u16-toupper-tests: New file.
2953         * tests/unicase/test-u16-toupper.c: New file.
2954
2955         Tests for module 'unicase/u8-toupper'.
2956         * modules/unicase/u8-toupper-tests: New file.
2957         * tests/unicase/test-u8-toupper.c: New file.
2958
2959         New module 'unicase/u32-toupper'.
2960         * lib/unicase/u32-toupper.c: New file.
2961         * modules/unicase/u32-toupper: New file.
2962
2963         New module 'unicase/u16-toupper'.
2964         * lib/unicase/u16-toupper.c: New file.
2965         * modules/unicase/u16-toupper: New file.
2966
2967         New module 'unicase/u8-toupper'.
2968         * lib/unicase/u8-toupper.c: New file.
2969         * modules/unicase/u8-toupper: New file.
2970
2971         New module 'unicase/u32-casemap'.
2972         * lib/unicase/u32-casemap.c: New file.
2973         * modules/unicase/u32-casemap: New file.
2974
2975         New module 'unicase/u16-casemap'.
2976         * lib/unicase/u16-casemap.c: New file.
2977         * modules/unicase/u16-casemap: New file.
2978
2979         New module 'unicase/u8-casemap'.
2980         * lib/unicase/unicasemap.h: New file.
2981         * lib/unicase/u8-casemap.c: New file.
2982         * lib/unicase/u-casemap.h: New file.
2983         * modules/unicase/u8-casemap: New file.
2984
2985         New module 'unicase/special-casing'.
2986         * lib/unicase/special-casing.h: New file.
2987         * lib/unicase/special-casing.c: New file.
2988         * lib/unicase/special-casing-table.gperf: New file, generated by
2989         gen-uni-tables.c.
2990         * modules/unicase/special-casing: New file.
2991
2992         Tests for module 'unicase/locale-language'.
2993         * modules/unicase/locale-language-tests: New file.
2994         * tests/unicase/test-locale-language.sh: New file.
2995         * tests/unicase/test-locale-language.c: New file.
2996
2997         New module 'unicase/locale-language'.
2998         * lib/unicase/locale-language.c: New file.
2999         * lib/unicase/locale-languages.gperf: New file.
3000         * modules/unicase/locale-language: New file.
3001
3002         Generate more tables for case conversion and case folding.
3003         * lib/gen-uni-tables.c (SCC_*): New enum items.
3004         (struct special_casing_rule): New type.
3005         (casing_rules, num_casing_rules, allocated_casing_rules): New
3006         variables.
3007         (add_casing_rule, fill_casing_rules): New functions.
3008         (struct casefold_rule): New type.
3009         (casefolding_rules, num_casefolding_rules,
3010         allocated_casefolding_rules): New variables.
3011         (fill_casefolding_rules): New function.
3012         (unicode_casefold): New variable.
3013         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
3014         sort_casing_rules, output_casing_rules): New functions.
3015         (main): Accept to more arguments: SpecialCasing.txt and
3016         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
3017         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
3018         Output mapping for casefolding.
3019
3020         * lib/unicase.h: Include stdbool.h, uninorm.h.
3021         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
3022         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
3023         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
3024         arguments.
3025         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
3026         resultp arguments.
3027         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
3028         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
3029         resultp arguments.
3030         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
3031         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
3032         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
3033         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
3034         declarations.
3035         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
3036
3037 2009-03-08  Bruno Haible  <bruno@clisp.org>
3038
3039         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3040         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
3041         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
3042         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3043
3044 2009-03-07  Bruno Haible  <bruno@clisp.org>
3045
3046         Adjust u*_normcmp, u*_normcoll API.
3047         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3048         u16_normcoll, u32_normcoll): Change failure conventions.
3049         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
3050         errno and return -1.
3051         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3052
3053 2009-03-07  Bruno Haible  <bruno@clisp.org>
3054
3055         Tests for module 'uninorm/u32-normcoll'.
3056         * modules/uninorm/u32-normcoll-tests: New file.
3057         * tests/uninorm/test-u32-normcoll.c: New file.
3058
3059         Tests for module 'uninorm/u16-normcoll'.
3060         * modules/uninorm/u16-normcoll-tests: New file.
3061         * tests/uninorm/test-u16-normcoll.c: New file.
3062
3063         Tests for module 'uninorm/u8-normcoll'.
3064         * modules/uninorm/u8-normcoll-tests: New file.
3065         * tests/uninorm/test-u8-normcoll.c: New file.
3066
3067 2009-03-07  Bruno Haible  <bruno@clisp.org>
3068
3069         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
3070         tests/uninorm/test-u32-normcmp.c.
3071         * tests/uninorm/test-u32-normcmp.c: Include it.
3072         (test_nonascii): New function, extracted from main. Add some more
3073         tests.
3074         (main): Invoke test_ascii and test_nonascii.
3075         * modules/uninorm/u32-normcmp-tests (Files): Add
3076         tests/uninorm/test-u32-normcmp.h.
3077         (Depends-on): Remove uninorm/u32-normcmp.
3078
3079         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
3080         tests/uninorm/test-u16-normcmp.c.
3081         * tests/uninorm/test-u16-normcmp.c: Include it.
3082         (test_nonascii): New function, extracted from main. Add some more
3083         tests.
3084         (main): Invoke test_ascii and test_nonascii.
3085         * modules/uninorm/u16-normcmp-tests (Files): Add
3086         tests/uninorm/test-u16-normcmp.h.
3087         (Depends-on): Remove uninorm/u16-normcmp.
3088
3089         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
3090         tests/uninorm/test-u8-normcmp.c.
3091         * tests/uninorm/test-u8-normcmp.c: Include it.
3092         (test_nonascii): New function, extracted from main. Add some more
3093         tests.
3094         (main): Invoke test_ascii and test_nonascii.
3095         * modules/uninorm/u8-normcmp-tests (Files): Add
3096         tests/uninorm/test-u8-normcmp.h.
3097         (Depends-on): Remove uninorm/u8-normcmp.
3098
3099 2009-03-07  Bruno Haible  <bruno@clisp.org>
3100
3101         New module 'uninorm/u32-normcoll'.
3102         * lib/uninorm/u32-normcoll.c: New file.
3103         * modules/uninorm/u32-normcoll: New file.
3104
3105         New module 'uninorm/u16-normcoll'.
3106         * lib/uninorm/u16-normcoll.c: New file.
3107         * modules/uninorm/u16-normcoll: New file.
3108
3109         New module 'uninorm/u8-normcoll'.
3110         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
3111         declarations.
3112         * lib/uninorm/u8-normcoll.c: New file.
3113         * lib/uninorm/u-normcoll.h: New file.
3114         * modules/uninorm/u8-normcoll: New file.
3115
3116         New module 'uninorm/u32-normxfrm'.
3117         * lib/uninorm/u32-normxfrm.c: New file.
3118         * modules/uninorm/u32-normxfrm: New file.
3119
3120         New module 'uninorm/u16-normxfrm'.
3121         * lib/uninorm/u16-normxfrm.c: New file.
3122         * modules/uninorm/u16-normxfrm: New file.
3123
3124         New module 'uninorm/u8-normxfrm'.
3125         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
3126         declarations.
3127         * lib/uninorm/u8-normxfrm.c: New file.
3128         * lib/uninorm/u-normxfrm.h: New file.
3129         * modules/uninorm/u8-normxfrm: New file.
3130
3131 2009-03-07  Bruno Haible  <bruno@clisp.org>
3132
3133         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
3134         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
3135         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
3136
3137 2009-03-07  Bruno Haible  <bruno@clisp.org>
3138
3139         New module 'memxfrm'.
3140         * lib/memxfrm.h: New file.
3141         * lib/memxfrm.c: New file.
3142         * modules/memxfrm: New file.
3143
3144 2009-03-07  Bruno Haible  <bruno@clisp.org>
3145
3146         New module 'memcmp2'.
3147         * lib/memcmp2.h: New file.
3148         * lib/memcmp2.c: New file.
3149         * modules/memcmp2: New file.
3150
3151 2009-03-07  Bruno Haible  <bruno@clisp.org>
3152
3153         Tests for module 'uninorm/decomposing-form'.
3154         * modules/uninorm/decomposing-form-tests: New file.
3155         * tests/uninorm/test-decomposing-form.c: New file.
3156
3157         New module 'uninorm/decomposing-form'.
3158         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
3159         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
3160         Add 'decomposing_variant' field.
3161         * lib/uninorm/decomposing-form.c: New file.
3162         * lib/uninorm/nfc.c (uninorm_nfc): Update.
3163         * lib/uninorm/nfd.c (uninorm_nfd): Update.
3164         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
3165         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
3166         * modules/uninorm/decomposing-form: New file.
3167         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
3168         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
3169
3170 2009-03-07  Bruno Haible  <bruno@clisp.org>
3171
3172         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
3173         strings.
3174
3175 2009-03-06  Bruno Haible  <bruno@clisp.org>
3176
3177         Tests for module 'uninorm/u32-normcmp'.
3178         * tests/uninorm/test-u32-normcmp.c: New file.
3179         * modules/uninorm/u32-normcmp-tests: New file.
3180
3181         Tests for module 'uninorm/u16-normcmp'.
3182         * tests/uninorm/test-u16-normcmp.c: New file.
3183         * modules/uninorm/u16-normcmp-tests: New file.
3184
3185         Tests for module 'uninorm/u8-normcmp'.
3186         * tests/uninorm/test-u8-normcmp.c: New file.
3187         * modules/uninorm/u8-normcmp-tests: New file.
3188
3189         New module 'uninorm/u32-normcmp'.
3190         * lib/uninorm/u32-normcmp.c: New file.
3191         * modules/uninorm/u32-normcmp: New file.
3192
3193         New module 'uninorm/u16-normcmp'.
3194         * lib/uninorm/u16-normcmp.c: New file.
3195         * modules/uninorm/u16-normcmp: New file.
3196
3197         New module 'uninorm/u8-normcmp'.
3198         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
3199         declarations.
3200         * lib/uninorm/u8-normcmp.c: New file.
3201         * lib/uninorm/u-normcmp.h: New file.
3202         * modules/uninorm/u8-normcmp: New file.
3203
3204 2009-03-06  Bruno Haible  <bruno@clisp.org>
3205
3206         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
3207         Reported by Eric Blake.
3208
3209 2009-03-06  Eric Blake  <ebb9@byu.net>
3210             Bruno Haible  <bruno@clisp.org>
3211
3212         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
3213         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
3214         condition.
3215         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3216         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
3217         condition.
3218         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3219
3220 2009-03-06  Eric Blake  <ebb9@byu.net>
3221
3222         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
3223         to avoid compiler warnings.
3224         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
3225
3226 2009-03-05  Bruno Haible  <bruno@clisp.org>
3227
3228         * tests/test-ftell.c (main): Disable test beyond end of file on
3229         FreeMiNT.
3230         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3231
3232 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
3233
3234         * lib/filevercmp.c: Move hidden files up in ordering.
3235         * tests/test-filevercmp.c: Add tests for hidden files.
3236
3237 2009-03-04  Bruno Haible  <bruno@clisp.org>
3238
3239         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
3240         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
3241         AM_CFLAGS.
3242         Reported by Simon Josefsson.
3243
3244 2009-03-03  Bruno Haible  <bruno@clisp.org>
3245
3246         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
3247         Reported by Simon Josefsson.
3248
3249         * doc/ld-version-script.texi: Update node reference.
3250
3251 2009-03-03  Bruno Haible  <bruno@clisp.org>
3252
3253         * modules/visibility (License): Change to 'unlimited'.
3254         Suggested by Simon Josefsson.
3255
3256 2009-03-03  Jim Meyering  <meyering@redhat.com>
3257
3258         unlinkdir: cannot_unlink_dir may modify process state
3259         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
3260         it's neither thread-safe nor appropriate for use in a library.
3261
3262 2009-03-03  Eric Blake  <ebb9@byu.net>
3263
3264         test-closein: silence test under Darwin
3265         * tests/test-closein.sh: Ignore stderr from cat, since we don't
3266         care if it dies from EPIPE or EBADF.
3267
3268 2009-03-03  Bruno Haible  <bruno@clisp.org>
3269
3270         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
3271         earlier.
3272         * doc/visibility.texi: Fix @node and @section.
3273
3274 2009-03-03  Simon Josefsson  <simon@josefsson.org>
3275
3276         * doc/gnulib.texi: Link to sections for ld version script and
3277         visibility.
3278         * doc/visibility.texi: Add @node and @section.
3279         * modules/ld-version-script: New module.
3280         * m4/ld-version-script.m4: New file.
3281         * doc/ld-version-script.texi: New file.
3282
3283 2009-03-02  David Lutterkort  <lutter@redhat.com>
3284
3285         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
3286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3287
3288 2009-03-02  Bruno Haible  <bruno@clisp.org>
3289
3290         * doc/visibility.texi: Mention libtool's -export-symbols option.
3291
3292 2009-03-02  Jim Meyering  <meyering@redhat.com>
3293
3294         announce-gen: new option: --no-print-checksums
3295         * build-aux/announce-gen (usage): Describe it.
3296         (print_checksums): Print a newline here, not in the [*] footnote.
3297         (main): Honor it.
3298
3299 2009-03-01  Bruno Haible  <bruno@clisp.org>
3300
3301         Use socklen_t in the native Windows replacements prototypes.
3302         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
3303         instead of 'int'.
3304         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3305         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3306         * modules/getsockopt (Depends-on): Add socklen.
3307         * modules/setsockopt (Depends-on): Add socklen.
3308
3309 2009-03-01  Bruno Haible  <bruno@clisp.org>
3310
3311         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
3312         least 4.2.
3313
3314 2009-03-01  Eric Blake  <ebb9@byu.net>
3315             Bruno Haible  <bruno@clisp.org>
3316
3317         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
3318         error messages.
3319         * lib/wait-process.c (wait_subprocess): Omit error message about
3320         deadly signal sent to the child of termsigp != NULL.
3321
3322 2009-03-01  Eric Blake  <ebb9@byu.net>
3323
3324         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
3325
3326 2009-03-01  Bruno Haible  <bruno@clisp.org>
3327
3328         Avoid a gcc warning.
3329         * tests/test-sched.c (b): Make global.
3330         Reported by Eric Blake.
3331
3332 2009-01-19  Martin Lambers  <marlam@marlam.de>
3333
3334         Provide POSIX semantics for socket timeout options on W32.
3335         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
3336         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
3337         * modules/setsockopt: Depend on sys_time module for struct timeval.
3338         * modules/getsockopt: Depend on sys_time module for struct timeval.
3339
3340 2009-03-01  Simon Josefsson  <simon@josefsson.org>
3341
3342         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
3343         __USE_GNU, for consistency with netdb.in.h.
3344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3345
3346 2009-03-01  Bruno Haible  <bruno@clisp.org>
3347
3348         More support for FreeMiNT.
3349         * lib/fseeko.c (rpl_fseeko): Complete last commit.
3350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3351
3352 2009-03-01  Bruno Haible  <bruno@clisp.org>
3353
3354         More support for FreeMiNT.
3355         * lib/fpurge.c (fpurge): Correct last commit.
3356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3357
3358 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3359
3360         Fix unportable awk script in vc-list-files.
3361         * build-aux/vc-list-files: In the replacement awk script, use
3362         substr with a second argument of 1, not zero.
3363         Report by Simon Josefsson.
3364
3365 2009-02-28  Bruno Haible  <bruno@clisp.org>
3366
3367         More support for FreeMiNT.
3368         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
3369         to FreeMiNT today.
3370         * lib/fwriting.c (fwriting): Likewise.
3371         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
3372
3373 2009-02-28  Bruno Haible  <bruno@clisp.org>
3374
3375         * tests/test-freadseek.c (main): Disable test beyond end of file on
3376         FreeMiNT.
3377         * tests/test-ftello.c (main): Likewise.
3378         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3379
3380 2009-02-28  Bruno Haible  <bruno@clisp.org>
3381
3382         Add tentative support for FreeMiNT.
3383         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
3384         * lib/fpurge.c (fpurge): Likewise.
3385         * lib/freadable.c (freadable): Likewise.
3386         * lib/freading.c (freading): Likewise.
3387         * lib/freadptr.c (freadptr): Likewise.
3388         * lib/freadseek.c (freadptrinc): Likewise.
3389         * lib/fseeko.c (rpl_fseeko): Likewise.
3390         * lib/fseterr.c (fseterr): Likewise.
3391         * lib/fwritable.c (fwritable): Likewise.
3392         * lib/fwriting.c (fwriting): Likewise.
3393         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
3394         Hourihane.
3395         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3396
3397 2009-02-28  Bruno Haible  <bruno@clisp.org>
3398
3399         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
3400         SIGCHLD.
3401         Reported by Jim Meyering.
3402
3403 2009-02-28  Bruno Haible  <bruno@clisp.org>
3404
3405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
3406         Mention the results of these tests on various platforms.
3407         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
3408         order.
3409         * doc/posix-functions/printf.texi: Likewise.
3410         * doc/posix-functions/snprintf.texi: Likewise.
3411         * doc/posix-functions/sprintf.texi: Likewise.
3412         * doc/posix-functions/vfprintf.texi: Likewise.
3413         * doc/posix-functions/vprintf.texi: Likewise.
3414         * doc/posix-functions/vsnprintf.texi: Likewise.
3415         * doc/posix-functions/vsprintf.texi: Likewise.
3416         * doc/glibc-functions/obstack_printf.texi: Likewise.
3417         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3418
3419 2009-02-28  Bruno Haible  <bruno@clisp.org>
3420
3421         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
3422         Reported by Loïc Minier <lool@dooz.org>.
3423
3424 2009-02-27  Bruno Haible  <bruno@clisp.org>
3425
3426         * gnulib-tool (func_import): Make the sed expression used to create the
3427         sed script for updating the .gitignore file POSIX compliant.
3428         Reported by Eric Blake.
3429
3430 2009-02-27  Bruno Haible  <bruno@clisp.org>
3431
3432         * gnulib-tool (sed): Don't alias as "sed --posix".
3433         Reported by Eric Blake.
3434
3435 2009-02-27  Bruno Haible  <bruno@clisp.org>
3436
3437         Avoid test link errors.
3438         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
3439         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
3440         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
3441         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
3442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3443
3444 2009-02-27  Bruno Haible  <bruno@clisp.org>
3445
3446         Avoid spurious "(cached)" in configure output.
3447         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
3448         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
3449         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3450         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3451         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3452         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3454         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3455         Reported by Eric Blake.
3456
3457 2009-02-27  Eric Blake  <ebb9@byu.net>
3458
3459         printf: fix regression in previous patch
3460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
3461
3462 2009-02-27  Bruno Haible  <bruno@clisp.org>
3463
3464         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
3465         value.
3466         * lib/stdint.in.h: Likewise.
3467         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
3468
3469 2009-02-27  Eric Blake  <ebb9@byu.net>
3470
3471         doc: mention more functions added in cygwin 1.7.0
3472         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
3473         addition.
3474         * doc/posix-functions/open_wmemstream.texi: Likewise.
3475         * doc/posix-functions/wcsnlen.texi: Likewise.
3476         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3477         * doc/posix-functions/wcstod.texi: Likewise.
3478         * doc/posix-functions/wcstof.texi: Likewise.
3479         * doc/posix-functions/wcstoimax.texi: Likewise.
3480         * doc/posix-functions/wcstok.texi: Likewise.
3481         * doc/posix-functions/wcstoumax.texi: Likewise.
3482
3483         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
3484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
3485         * doc/posix-functions/fprintf.texi: Update.
3486         * doc/posix-functions/printf.texi: Update.
3487         * doc/posix-functions/snprintf.texi: Update.
3488         * doc/posix-functions/sprintf.texi: Update.
3489         * doc/posix-functions/vfprintf.texi: Update.
3490         * doc/posix-functions/vprintf.texi: Update.
3491         * doc/posix-functions/vsnprintf.texi: Update.
3492         * doc/posix-functions/vsprintf.texi: Update.
3493         * doc/glibc-functions/obstack_printf.texi: Update.
3494         * doc/glibc-functions/obstack_vprintf.texi: Update.
3495
3496 2009-02-26  Eric Blake  <ebb9@byu.net>
3497
3498         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
3499         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
3500         compilation bug by using runtime conversion.
3501         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3502         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
3503         * modules/ceill-tests (Files): Use nan.h.
3504         * modules/floorl-tests (Files): Likewise.
3505         * modules/frexpl-tests (Files): Likewise.
3506         * modules/isnanl-tests (Files): Likewise.
3507         * modules/ldexpl-tests (Files): Likewise.
3508         * modules/roundl-tests (Files): Likewise.
3509         * modules/truncl-tests (Files): Likewise.
3510         * tests/test-ceill.c (main): Use a working NaN.
3511         * tests/test-floorl.c (main): Likewise.
3512         * tests/test-frexpl.c (main): Likewise.
3513         * tests/test-isnan.c (test_long_double): Likewise.
3514         * tests/test-isnanl.h (main): Likewise.
3515         * tests/test-ldexpl.h (main): Likewise.
3516         * tests/test-roundl.h (main): Likewise.
3517         * tests/test-truncl.h (main): Likewise.
3518         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
3519
3520 2009-02-26  Eric Blake  <ebb9@byu.net>
3521             Bruno Haible  <bruno@clisp.org>
3522
3523         Work around a *printf bug with %ls on Solaris.
3524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
3525         precision is specified, sprintf stops converting the wide string
3526         argument when the number of bytes that have been produced by this
3527         conversion equals or exceeds the precision.
3528         * doc/posix-functions/fprintf.texi: Update.
3529         * doc/posix-functions/printf.texi: Update.
3530         * doc/posix-functions/snprintf.texi: Update.
3531         * doc/posix-functions/sprintf.texi: Update.
3532         * doc/posix-functions/vfprintf.texi: Update.
3533         * doc/posix-functions/vprintf.texi: Update.
3534         * doc/posix-functions/vsnprintf.texi: Update.
3535         * doc/posix-functions/vsprintf.texi: Update.
3536         * doc/glibc-functions/obstack_printf.texi: Update.
3537         * doc/glibc-functions/obstack_vprintf.texi: Update.
3538
3539 2009-02-26  Eric Blake  <ebb9@byu.net>
3540
3541         stdlib: favor compiler check of random.h
3542         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
3543         to avoid an ObjC random.h installed by Swarm.
3544
3545 2009-02-26  Bruno Haible  <bruno@clisp.org>
3546
3547         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
3548         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
3549         Reported by Gary V. Vaughan <gary@gnu.org>.
3550
3551 2009-02-26  Bruno Haible  <bruno@clisp.org>
3552
3553         Fix *printf behaviour regarding the %ls directive.
3554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
3555         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
3556         NEED_PRINTF_DIRECTIVE_LS.
3557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
3558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3560         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
3561         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
3562         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
3563         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
3564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3568         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
3569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3572         * doc/posix-functions/fprintf.texi: Update.
3573         * doc/posix-functions/printf.texi: Update.
3574         * doc/posix-functions/snprintf.texi: Update.
3575         * doc/posix-functions/sprintf.texi: Update.
3576         * doc/posix-functions/vfprintf.texi: Update.
3577         * doc/posix-functions/vprintf.texi: Update.
3578         * doc/posix-functions/vsnprintf.texi: Update.
3579         * doc/posix-functions/vsprintf.texi: Update.
3580         * doc/glibc-functions/obstack_printf.texi: Update.
3581         * doc/glibc-functions/obstack_vprintf.texi: Update.
3582         Reported by Eric Blake.
3583
3584 2009-02-25  Bruno Haible  <bruno@clisp.org>
3585
3586         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
3587         with known value.
3588         Reported by Gary V. Vaughan <gary@gnu.org>.
3589
3590 2009-02-25  Bruno Haible  <bruno@clisp.org>
3591
3592         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
3593         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
3594         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
3595         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
3596         Reported by Gary V. Vaughan <gary@gnu.org>.
3597
3598 2009-02-25  Bruno Haible  <bruno@clisp.org>
3599
3600         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
3601         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
3602         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
3603         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
3604         Reported by Gary V. Vaughan <gary@gnu.org>.
3605
3606 2009-02-25  Eric Blake  <ebb9@byu.net>
3607
3608         tests: skip fseek/ftell tests if ungetc is broken
3609         * m4/ungetc.m4: New file.
3610         * modules/fseek-tests: Split test, so ungetc dependency is
3611         separate from rest of test.
3612         * modules/fseeko-tests: Likewise.
3613         * modules/ftell-tests: Likewise.
3614         * modules/ftello-tests: Likewise.
3615         * tests/test-fseek.c (main): Isolate ungetc dependency.
3616         * tests/test-fseeko.c (main): Likewise.
3617         * tests/test-ftell.c (main): Likewise.
3618         * tests/test-ftello.c (main): Likewise.
3619         * tests/test-fseek2.sh: New file.
3620         * tests/test-fseeko2.sh: Likewise.
3621         * tests/test-ftell2.sh: Likewise.
3622         * tests/test-ftello2.sh: Likewise.
3623
3624 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
3625
3626         test-getaddrinfo: fix usage of skip return code 77
3627         * tests/test-gettaddrinfo.c: Return skip code 77 only
3628         for first occurance of skip (4x77 is not 77)
3629
3630 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
3631
3632         strtod: avoid C99 decl-after-statement
3633         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
3634
3635 2009-02-24  Eric Blake  <ebb9@byu.net>
3636
3637         strtod: detect HP-UX 11.31 bug
3638         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
3639         Reported by Gary V. Vaughan.
3640
3641 2009-02-23  Bruno Haible  <bruno@clisp.org>
3642
3643         Fix invalid read past end of memory block.
3644         * lib/vasnprintf.c (DCHAR_SET): Define.
3645         (local_wcslen): Define only when needed.
3646         (local_strnlen, local_wcsnlen): New functions.
3647         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
3648         directives that involve a conversion ourselves.
3649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
3650         wcsnlen, mbrtowc, wcrtomb.
3651         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
3652         * tests/test-vasprintf-posix.c (test_function): Likewise.
3653         * tests/test-snprintf-posix.h (test_function): Likewise.
3654         * tests/test-sprintf-posix.h (test_function): Likewise.
3655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3656
3657 2009-02-22  Bruno Haible  <bruno@clisp.org>
3658
3659         Implement new clarified decomposition of Hangul syllables.
3660         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
3661         of type LTV, return only a pairwise decomposition.
3662         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
3663         Likewise.
3664         * tests/uninorm/test-decomposition.c (main): Updated expected result.
3665         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
3666         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
3667
3668 2009-02-22  Bruno Haible  <bruno@clisp.org>
3669
3670         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
3671         zero-length results and shrink excess allocated memory.
3672         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
3673         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
3674         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
3675         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
3676         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
3677         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
3678         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
3679         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
3680         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
3681         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
3682         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
3683         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
3684
3685 2009-02-21  Bruno Haible  <bruno@clisp.org>
3686
3687         * doc/gnulib.texi: Include safe-alloc.texi earlier.
3688         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
3689         spaces after a period. Put a space between a macro name and its
3690         argument list. Trivial rewordings.
3691         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
3692         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
3693         (main): Return 0 explicitly.
3694
3695 2009-02-21  Bruno Haible  <bruno@clisp.org>
3696
3697         Tests for module 'uninorm/filter'.
3698         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
3699         * modules/uninorm/filter-tests: New file.
3700
3701         New module 'uninorm/filter'.
3702         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
3703         uninorm_filter_flush, uninorm_filter_free): New declarations.
3704         * lib/uninorm/uninorm-filter.c: New file.
3705         * modules/uninorm/filter: New file.
3706
3707 2009-02-21  Bruno Haible  <bruno@clisp.org>
3708
3709         Tests for module 'uninorm/nfkc'.
3710         * tests/uninorm/test-nfkc.c: New file.
3711         * tests/uninorm/test-u8-nfkc.c: New file.
3712         * tests/uninorm/test-u16-nfkc.c: New file.
3713         * tests/uninorm/test-u32-nfkc.c: New file.
3714         * tests/uninorm/test-u32-nfkc-big.sh: New file.
3715         * tests/uninorm/test-u32-nfkc-big.c: New file.
3716         * modules/uninorm/nfkc-tests: New file.
3717
3718         New module 'uninorm/nfkc'.
3719         * lib/uninorm/nfkc.c: New file.
3720         * modules/uninorm/nfkc: New file.
3721
3722         Tests for module 'uninorm/nfkd'.
3723         * tests/uninorm/test-nfkd.c: New file.
3724         * tests/uninorm/test-u8-nfkd.c: New file.
3725         * tests/uninorm/test-u16-nfkd.c: New file.
3726         * tests/uninorm/test-u32-nfkd.c: New file.
3727         * tests/uninorm/test-u32-nfkd-big.sh: New file.
3728         * tests/uninorm/test-u32-nfkd-big.c: New file.
3729         * modules/uninorm/nfkd-tests: New file.
3730
3731         New module 'uninorm/nfkd'.
3732         * lib/uninorm/nfkd.c: New file.
3733         * modules/uninorm/nfkd: New file.
3734
3735         Tests for module 'uninorm/nfc'.
3736         * tests/uninorm/test-nfc.c: New file.
3737         * tests/uninorm/test-u8-nfc.c: New file.
3738         * tests/uninorm/test-u16-nfc.c: New file.
3739         * tests/uninorm/test-u32-nfc.c: New file.
3740         * tests/uninorm/test-u32-nfc-big.sh: New file.
3741         * tests/uninorm/test-u32-nfc-big.c: New file.
3742         * modules/uninorm/nfc-tests: New file.
3743
3744         New module 'uninorm/nfc'.
3745         * lib/uninorm/nfc.c: New file.
3746         * modules/uninorm/nfc: New file.
3747
3748         Tests for module 'uninorm/nfd'.
3749         * tests/uninorm/test-nfd.c: New file.
3750         * tests/uninorm/test-u8-nfd.c: New file.
3751         * tests/uninorm/test-u16-nfd.c: New file.
3752         * tests/uninorm/test-u32-nfd.c: New file.
3753         * tests/uninorm/test-u32-nfd-big.sh: New file.
3754         * tests/uninorm/test-u32-nfd-big.c: New file.
3755         * tests/uninorm/test-u32-normalize-big.h: New file.
3756         * tests/uninorm/test-u32-normalize-big.c: New file.
3757         * tests/uninorm/NormalizationTest.txt: New file, created from
3758         Unicode 5.1.0 NormalizationTest.txt.
3759         * modules/uninorm/nfd-tests: New file.
3760
3761         New module 'uninorm/nfd'.
3762         * lib/uninorm/nfd.c: New file.
3763         * modules/uninorm/nfd: New file.
3764
3765         New module 'uninorm/u32-normalize'.
3766         * lib/uninorm/u32-normalize.c: New file.
3767         * modules/uninorm/u32-normalize: New file.
3768
3769         New module 'uninorm/u16-normalize'.
3770         * lib/uninorm/u16-normalize.c: New file.
3771         * modules/uninorm/u16-normalize: New file.
3772
3773         New module 'uninorm/u8-normalize'.
3774         * lib/uninorm/u8-normalize.c: New file.
3775         * lib/uninorm/normalize-internal.h: New file.
3776         * lib/uninorm/u-normalize-internal.h: New file.
3777         * modules/uninorm/u8-normalize: New file.
3778
3779         New module 'uninorm/decompose-internal'.
3780         * lib/uninorm/decompose-internal.c: New file.
3781         * modules/uninorm/decompose-internal: New file.
3782
3783         Tests for module 'uninorm/composition'.
3784         * tests/uninorm/test-composition.c: New file.
3785         * modules/uninorm/composition-tests: New file.
3786
3787         New module 'uninorm/composition'.
3788         * lib/uninorm/composition.c: New file.
3789         * lib/uninorm/composition-table.gperf: New file, generated by
3790         gen-uni-tables.
3791         * modules/uninorm/composition: New file.
3792
3793         Tests for module 'uninorm/compat-decomposition'.
3794         * tests/uninorm/test-compat-decomposition.c: New file.
3795         * modules/uninorm/compat-decomposition-tests: New file.
3796
3797         New module 'uninorm/compat-decomposition'.
3798         * lib/uninorm/decompose-internal.h: New file.
3799         * lib/uninorm/compat-decomposition.c: New file.
3800         * modules/uninorm/compat-decomposition: New file.
3801
3802         Tests for module 'uninorm/canonical-decomposition'.
3803         * tests/uninorm/test-canonical-decomposition.c: New file.
3804         * modules/uninorm/canonical-decomposition-tests: New file.
3805
3806         New module 'uninorm/canonical-decomposition'.
3807         * lib/uninorm/canonical-decomposition.c: New file.
3808         * modules/uninorm/canonical-decomposition: New file.
3809
3810         Tests for module 'uninorm/decomposition'.
3811         * tests/uninorm/test-decomposition.c: New file.
3812         * modules/uninorm/decomposition-tests: New file.
3813
3814         New module 'uninorm/decomposition'.
3815         * lib/uninorm/decomposition.c: New file.
3816         * modules/uninorm/decomposition: New file.
3817
3818         New module 'uninorm/decomposition-table'.
3819         * lib/uninorm/decomposition-table.h: New file.
3820         * lib/uninorm/decomposition-table.c: New file.
3821         * lib/uninorm/decomposition-table1.h: New file, generated by
3822         gen-uni-tables.
3823         * lib/uninorm/decomposition-table2.h: New file, generated by
3824         gen-uni-tables.
3825         * modules/uninorm/decomposition-table: New file.
3826
3827         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
3828         (UC_DECOMP_*): New enumeration items.
3829         (get_decomposition): New function.
3830         (struct decomp_table): New type.
3831         (output_decomposition, output_decomposition_tables): New functions.
3832         (unicode_composition_exclusions): New variable.
3833         (fill_composition_exclusions, debug_output_composition_tables): New
3834         functions.
3835         (main): Accept one more argument. Invoke fill_composition_exclusions.
3836         Output decomposition and composition tables.
3837
3838         New module 'uninorm/base'.
3839         * lib/uninorm.h: New file.
3840         * lib/unictype.h: Update comment.
3841         * modules/uninorm/base: New file.
3842
3843 2009-02-21  David Lutterkort  <lutter@redhat.com>
3844
3845         Tests for module 'safe-alloc'.
3846         * tests/test-safe-alloc.c: New file.
3847         * modules/safe-alloc-tests: New file.
3848
3849         New module 'safe-alloc'.
3850         * lib/safe-alloc.h: New file.
3851         * lib/safe-alloc.c: New file.
3852         * m4/safe-alloc.m4: New file.
3853         * modules/safe-alloc: New file.
3854         * doc/safe-alloc.texi: New file.
3855         * doc/gnulib.texi: Include it.
3856         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3857         safe-alloc.
3858
3859 2009-02-18  Bruno Haible  <bruno@clisp.org>
3860
3861         Fix link error on non-glibc systems.
3862         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
3863         variable.
3864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3865
3866 2009-02-18  Jim Meyering  <meyering@redhat.com>
3867
3868         fts: avoid used-uninitialized error due to recent change
3869         * lib/fts.c (fts_read): Guard uses of the new member,
3870         parent->fts_n_dirs_remaining, since it's not relevant for
3871         the parent of a directory specified on the command-line.
3872
3873 2009-02-17  James Youngman  <jay@gnu.org>
3874             Bruno Haible  <bruno@clisp.org>
3875
3876         * m4/include_next.m4: Reformulate comment.
3877
3878 2009-02-16  Jim Meyering  <meyering@redhat.com>
3879
3880         fts: add #if guards so that the fts_lgpl module still builds
3881         * lib/fts.c: Guard just-added hash-table-using parts with
3882         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
3883         Reported by Simon Josefsson.
3884
3885 2009-02-15  Bruno Haible  <bruno@clisp.org>
3886
3887         * modules/array-mergesort-tests: New file.
3888         * tests/test-array-mergesort.c: New file.
3889
3890         New module 'array-mergesort'.
3891         * modules/array-mergesort: New file.
3892         * lib/array-mergesort.h: New file.
3893
3894 2009-02-15  Bruno Haible  <bruno@clisp.org>
3895
3896         Fix 2009-02-07 commit.
3897         * lib/gen-uni-tables.c (output_predicate, output_category,
3898         output_combclass, output_bidi_category, output_decimal_digit,
3899         output_digit, output_numeric, output_mirror, output_scripts,
3900         output_ident_category, output_simple_mapping): Fix format directives.
3901         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
3902
3903 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
3904
3905         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
3906         fixes are available from IBM.
3907
3908 2009-02-13  Jim Meyering  <meyering@redhat.com>
3909
3910         fts: arrange not to stat non-directories in more cases
3911         This makes GNU find (when it doesn't need to stat each file)
3912         *much* more efficient at traversing reiserfs file systems.
3913         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
3914         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
3915         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
3916         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
3917         (leaf_optimization_applies): New function.
3918         (LCO_hash, LCO_compare): New helper functions.
3919         (link_count_optimize_ok): New function.
3920         (fts_stat): Initialize new member (if dir).
3921         (fts_read): Decrement parent's fts_n_dirs_remaining count if
3922         we've just stat'ed a directory.  Skip the stat call when possible.
3923         ---
3924         Note this AFS-related exchange:
3925         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
3926         and note find's pioctl call in find/fstype.c.
3927         But that is necessary only if you want to enable the
3928         optimization for AFS, and for now, I don't.
3929
3930         fts: move a function definition "up" (no semantic change)
3931         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
3932         "up" to precede upcoming use of a related function.
3933
3934 2009-02-11  Jim Meyering  <meyering@redhat.com>
3935
3936         fts: correct internal computation of nlinks (optimization-related)
3937         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
3938         whether the current entry is a directory, so don't test it.
3939
3940 2009-02-10  Bruno Haible  <bruno@clisp.org>
3941
3942         Tests for module 'uniwbrk/ulc-wordbreaks'.
3943         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
3944         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
3945         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
3946
3947         Tests for module 'uniwbrk/u32-wordbreaks'.
3948         * modules/uniwbrk/u32-wordbreaks-tests: New file.
3949         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
3950
3951         Tests for module 'uniwbrk/u16-wordbreaks'.
3952         * modules/uniwbrk/u16-wordbreaks-tests: New file.
3953         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
3954
3955         Tests for module 'uniwbrk/u8-wordbreaks'.
3956         * modules/uniwbrk/u8-wordbreaks-tests: New file.
3957         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
3958
3959 2009-02-10  Bruno Haible  <bruno@clisp.org>
3960
3961         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
3962         property.
3963         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
3964         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
3965         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
3966
3967 2009-02-10  Simon Josefsson  <simon@josefsson.org>
3968
3969         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
3970         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
3971
3972 2009-02-10  Bruno Haible  <bruno@clisp.org>
3973
3974         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
3975         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
3976         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
3977         * lib/unilbrk/u8-possible-linebreaks.c: Update.
3978         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
3979         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
3980
3981 2009-02-09  Simon Josefsson  <simon@josefsson.org>
3982
3983         * lib/sockets.h (gl_fd_to_handle): New function.
3984
3985         * tests/test-sockets.c: Call gl_fd_to_handle.
3986
3987 2009-02-09  Bruno Haible  <bruno@clisp.org>
3988
3989         * doc/havelib.texi: Document the conventions on bi-arch systems.
3990
3991 2009-02-08  Bruno Haible  <bruno@clisp.org>
3992
3993         Document the AC_LIB_LINKFLAGS macro.
3994         * doc/havelib.texi: New file, mostly written on 2005-05-24.
3995         * doc/gnulib.texi: Include it.
3996
3997 2009-02-08  Bruno Haible  <bruno@clisp.org>
3998
3999         Fix wrong order of sections, compared to TOC.
4000         * doc/gnulib.texi: Include relocatable-maint.texi after the
4001         "Regular expressions" node, not before.
4002
4003 2009-02-08  Bruno Haible  <bruno@clisp.org>
4004
4005         Tests for module 'unicase/totitle'.
4006         * modules/unicase/totitle-tests: New file.
4007
4008         Tests for module 'unicase/tolower'.
4009         * modules/unicase/tolower-tests: New file.
4010
4011         Tests for module 'unicase/toupper'.
4012         * modules/unicase/toupper-tests: New file.
4013         * tests/unicase/test-mapping-part1.h: New file.
4014         * tests/unicase/test-mapping-part2.h: New file.
4015
4016         New module 'unicase/totitle'.
4017         * modules/unicase/totitle: New file.
4018         * lib/unicase/totitle.c: New file.
4019
4020         New module 'unicase/tolower'.
4021         * modules/unicase/tolower: New file.
4022         * lib/unicase/tolower.c: New file.
4023
4024         New module 'unicase/toupper'.
4025         * modules/unicase/toupper: New file.
4026         * lib/unicase/toupper.c: New file.
4027         * lib/unicase/simple-mapping.h: New file.
4028
4029         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
4030         (mapping_table): New structure.
4031         (output_simple_mapping): New function.
4032         (main): Invoke output_simple_mapping_test and output_simple_mapping.
4033         * modules/gen-uni-tables (Description): Update.
4034         * lib/unicase/toupper.h: New file, automatically generated by
4035         gen-uni-tables.
4036         * lib/unicase/tolower.h: New file, automatically generated by
4037         gen-uni-tables.
4038         * lib/unicase/totitle.h: New file, automatically generated by
4039         gen-uni-tables.
4040         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
4041         gen-uni-tables.
4042         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
4043         gen-uni-tables.
4044         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
4045         gen-uni-tables.
4046
4047         New module 'unicase/base'.
4048         * modules/unicase/base: New file.
4049         * lib/unicase.h: New file.
4050
4051 2009-02-08  Bruno Haible  <bruno@clisp.org>
4052
4053         New module 'uniwbrk/ulc-wordbreaks'.
4054         * modules/uniwbrk/ulc-wordbreaks: New file.
4055         * lib/uniwbrk/ulc-wordbreaks.c: New file.
4056
4057         New module 'uniwbrk/u32-wordbreaks'.
4058         * modules/uniwbrk/u32-wordbreaks: New file.
4059         * lib/uniwbrk/u32-wordbreaks.c: New file.
4060
4061         New module 'uniwbrk/u16-wordbreaks'.
4062         * modules/uniwbrk/u16-wordbreaks: New file.
4063         * lib/uniwbrk/u16-wordbreaks.c: New file.
4064
4065         New module 'uniwbrk/u8-wordbreaks'.
4066         * modules/uniwbrk/u8-wordbreaks: New file.
4067         * lib/uniwbrk/u8-wordbreaks.c: New file.
4068         * lib/uniwbrk/u-wordbreaks.h: New file.
4069
4070         New module 'uniwbrk/table'.
4071         * modules/uniwbrk/table: New file.
4072         * lib/uniwbrk/wbrktable.h: New file.
4073         * lib/uniwbrk/wbrktable.c: New file.
4074
4075         New module 'uniwbrk/wordbreak-property'.
4076         * modules/uniwbrk/wordbreak-property: New file.
4077         * lib/uniwbrk/wordbreak-property.c: New file.
4078
4079         * lib/gen-uni-tables.c (WBP_*): New enum items.
4080         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
4081         (unicode_org_wbp): New variable.
4082         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
4083         New functions.
4084         (wbp_table): New structure.
4085         (output_wbp, output_wbrk_tables): New functions.
4086         (main): Accept additional argument. Invoke fill_org_wbp,
4087         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
4088         output_wbrk_tables.
4089         * modules/gen-uni-tables (Description): Update.
4090         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
4091         gen-uni-tables.
4092
4093         New module 'uniwbrk/base'.
4094         * modules/uniwbrk/base: New file.
4095         * lib/uniwbrk.h: New file.
4096
4097 2009-02-08  Bruno Haible  <bruno@clisp.org>
4098
4099         Update to Unicode 5.1.0.
4100         * lib/gen-uni-tables.c (is_property_alphabetic): Include
4101         U+2185..U+2188.
4102         (is_property_default_ignorable_code_point): Don't include characters
4103         of category Cc or Cs and not-a-characters.
4104         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
4105         U+0D79, U+109E, U+109F, U+A60C.
4106         * lib/unictype/bidi_of.h: Regenerated.
4107         * lib/unictype/blocks.h: Regenerated.
4108         * lib/unictype/categ_C.h: Regenerated.
4109         * lib/unictype/categ_Cf.h: Regenerated.
4110         * lib/unictype/categ_Cn.h: Regenerated.
4111         * lib/unictype/categ_L.h: Regenerated.
4112         * lib/unictype/categ_Ll.h: Regenerated.
4113         * lib/unictype/categ_Lm.h: Regenerated.
4114         * lib/unictype/categ_Lo.h: Regenerated.
4115         * lib/unictype/categ_Lu.h: Regenerated.
4116         * lib/unictype/categ_M.h: Regenerated.
4117         * lib/unictype/categ_Mc.h: Regenerated.
4118         * lib/unictype/categ_Me.h: Regenerated.
4119         * lib/unictype/categ_Mn.h: Regenerated.
4120         * lib/unictype/categ_N.h: Regenerated.
4121         * lib/unictype/categ_Nd.h: Regenerated.
4122         * lib/unictype/categ_Nl.h: Regenerated.
4123         * lib/unictype/categ_No.h: Regenerated.
4124         * lib/unictype/categ_P.h: Regenerated.
4125         * lib/unictype/categ_Pd.h: Regenerated.
4126         * lib/unictype/categ_Pe.h: Regenerated.
4127         * lib/unictype/categ_Pf.h: Regenerated.
4128         * lib/unictype/categ_Pi.h: Regenerated.
4129         * lib/unictype/categ_Po.h: Regenerated.
4130         * lib/unictype/categ_Ps.h: Regenerated.
4131         * lib/unictype/categ_S.h: Regenerated.
4132         * lib/unictype/categ_Sk.h: Regenerated.
4133         * lib/unictype/categ_Sm.h: Regenerated.
4134         * lib/unictype/categ_So.h: Regenerated.
4135         * lib/unictype/categ_of.h: Regenerated.
4136         * lib/unictype/combining.h: Regenerated.
4137         * lib/unictype/ctype_alnum.h: Regenerated.
4138         * lib/unictype/ctype_alpha.h: Regenerated.
4139         * lib/unictype/ctype_graph.h: Regenerated.
4140         * lib/unictype/ctype_lower.h: Regenerated.
4141         * lib/unictype/ctype_print.h: Regenerated.
4142         * lib/unictype/ctype_punct.h: Regenerated.
4143         * lib/unictype/ctype_upper.h: Regenerated.
4144         * lib/unictype/decdigit.h: Regenerated.
4145         * lib/unictype/digit.h: Regenerated.
4146         * lib/unictype/mirror.h: Regenerated.
4147         * lib/unictype/numeric.h: Regenerated.
4148         * lib/unictype/pr_alphabetic.h: Regenerated.
4149         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
4150         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
4151         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
4152         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
4153         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
4154         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
4155         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
4156         * lib/unictype/pr_combining.h: Regenerated.
4157         * lib/unictype/pr_dash.h: Regenerated.
4158         * lib/unictype/pr_decimal_digit.h: Regenerated.
4159         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
4160         * lib/unictype/pr_deprecated.h: Regenerated.
4161         * lib/unictype/pr_diacritic.h: Regenerated.
4162         * lib/unictype/pr_extender.h: Regenerated.
4163         * lib/unictype/pr_format_control.h: Regenerated.
4164         * lib/unictype/pr_grapheme_base.h: Regenerated.
4165         * lib/unictype/pr_grapheme_extend.h: Regenerated.
4166         * lib/unictype/pr_grapheme_link.h: Regenerated.
4167         * lib/unictype/pr_id_continue.h: Regenerated.
4168         * lib/unictype/pr_id_start.h: Regenerated.
4169         * lib/unictype/pr_ideographic.h: Regenerated.
4170         * lib/unictype/pr_ignorable_control.h: Regenerated.
4171         * lib/unictype/pr_lowercase.h: Regenerated.
4172         * lib/unictype/pr_math.h: Regenerated.
4173         * lib/unictype/pr_numeric.h: Regenerated.
4174         * lib/unictype/pr_other_alphabetic.h: Regenerated.
4175         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
4176         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
4177         * lib/unictype/pr_other_id_continue.h: Regenerated.
4178         * lib/unictype/pr_other_lowercase.h: Regenerated.
4179         * lib/unictype/pr_other_math.h: Regenerated.
4180         * lib/unictype/pr_punctuation.h: Regenerated.
4181         * lib/unictype/pr_sentence_terminal.h: Regenerated.
4182         * lib/unictype/pr_soft_dotted.h: Regenerated.
4183         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
4184         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
4185         * lib/unictype/pr_unified_ideograph.h: Regenerated.
4186         * lib/unictype/pr_uppercase.h: Regenerated.
4187         * lib/unictype/pr_xid_continue.h: Regenerated.
4188         * lib/unictype/pr_xid_start.h: Regenerated.
4189         * lib/unictype/pr_zero_width.h: Regenerated.
4190         * lib/unictype/scripts.h: Regenerated.
4191         * lib/unictype/scripts_byname.gperf: Regenerated.
4192         * lib/unictype/sy_java_ident.h: Regenerated.
4193         * lib/unilbrk/lbrkprop1.h: Regenerated.
4194         * lib/unilbrk/lbrkprop2.h: Regenerated.
4195         * tests/unictype/test-categ_C.c: Regenerated.
4196         * tests/unictype/test-categ_Cf.c: Regenerated.
4197         * tests/unictype/test-categ_Cn.c: Regenerated.
4198         * tests/unictype/test-categ_L.c: Regenerated.
4199         * tests/unictype/test-categ_Ll.c: Regenerated.
4200         * tests/unictype/test-categ_Lm.c: Regenerated.
4201         * tests/unictype/test-categ_Lo.c: Regenerated.
4202         * tests/unictype/test-categ_Lu.c: Regenerated.
4203         * tests/unictype/test-categ_M.c: Regenerated.
4204         * tests/unictype/test-categ_Mc.c: Regenerated.
4205         * tests/unictype/test-categ_Me.c: Regenerated.
4206         * tests/unictype/test-categ_Mn.c: Regenerated.
4207         * tests/unictype/test-categ_N.c: Regenerated.
4208         * tests/unictype/test-categ_Nd.c: Regenerated.
4209         * tests/unictype/test-categ_Nl.c: Regenerated.
4210         * tests/unictype/test-categ_No.c: Regenerated.
4211         * tests/unictype/test-categ_P.c: Regenerated.
4212         * tests/unictype/test-categ_Pd.c: Regenerated.
4213         * tests/unictype/test-categ_Pe.c: Regenerated.
4214         * tests/unictype/test-categ_Pf.c: Regenerated.
4215         * tests/unictype/test-categ_Pi.c: Regenerated.
4216         * tests/unictype/test-categ_Po.c: Regenerated.
4217         * tests/unictype/test-categ_Ps.c: Regenerated.
4218         * tests/unictype/test-categ_S.c: Regenerated.
4219         * tests/unictype/test-categ_Sk.c: Regenerated.
4220         * tests/unictype/test-categ_Sm.c: Regenerated.
4221         * tests/unictype/test-categ_So.c: Regenerated.
4222         * tests/unictype/test-ctype_alnum.c: Regenerated.
4223         * tests/unictype/test-ctype_alpha.c: Regenerated.
4224         * tests/unictype/test-ctype_graph.c: Regenerated.
4225         * tests/unictype/test-ctype_lower.c: Regenerated.
4226         * tests/unictype/test-ctype_print.c: Regenerated.
4227         * tests/unictype/test-ctype_punct.c: Regenerated.
4228         * tests/unictype/test-ctype_upper.c: Regenerated.
4229         * tests/unictype/test-decdigit.h: Regenerated.
4230         * tests/unictype/test-digit.h: Regenerated.
4231         * tests/unictype/test-numeric.h: Regenerated.
4232         * tests/unictype/test-pr_alphabetic.c: Regenerated.
4233         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
4234         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
4235         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
4236         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
4237         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
4238         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
4239         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
4240         * tests/unictype/test-pr_combining.c: Regenerated.
4241         * tests/unictype/test-pr_dash.c: Regenerated.
4242         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
4243         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
4244         * tests/unictype/test-pr_deprecated.c: Regenerated.
4245         * tests/unictype/test-pr_diacritic.c: Regenerated.
4246         * tests/unictype/test-pr_extender.c: Regenerated.
4247         * tests/unictype/test-pr_format_control.c: Regenerated.
4248         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
4249         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
4250         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
4251         * tests/unictype/test-pr_id_continue.c: Regenerated.
4252         * tests/unictype/test-pr_id_start.c: Regenerated.
4253         * tests/unictype/test-pr_ideographic.c: Regenerated.
4254         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
4255         * tests/unictype/test-pr_lowercase.c: Regenerated.
4256         * tests/unictype/test-pr_math.c: Regenerated.
4257         * tests/unictype/test-pr_numeric.c: Regenerated.
4258         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
4259         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
4260         Regenerated.
4261         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
4262         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
4263         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
4264         * tests/unictype/test-pr_other_math.c: Regenerated.
4265         * tests/unictype/test-pr_punctuation.c: Regenerated.
4266         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
4267         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
4268         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
4269         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
4270         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
4271         * tests/unictype/test-pr_uppercase.c: Regenerated.
4272         * tests/unictype/test-pr_xid_continue.c: Regenerated.
4273         * tests/unictype/test-pr_xid_start.c: Regenerated.
4274         * tests/unictype/test-pr_zero_width.c: Regenerated.
4275
4276         Update to Unicode 5.1.0.
4277         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
4278         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
4279         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
4280         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
4281         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
4282         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
4283         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
4284         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
4285         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
4286         (nonspacing_table_ind): Update.
4287         * tests/uniwidth/test-uc_width2.sh: Update expected result.
4288
4289         Update to Unicode 5.1.0.
4290         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
4291         code transform.
4292         * lib/uniname/uniname.c (unicode_character_name,
4293         unicode_name_character): Add the range 0x1Fxxx to the code transform.
4294         * lib/uniname/uninames.h: Regenerated.
4295         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
4296
4297 2009-02-07  Bruno Haible  <bruno@clisp.org>
4298
4299         Merge gen-ctype and gen-lbrk into a single program.
4300         * lib/gen-uni-tables.c: New file, incorporating
4301         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
4302         Add directory prefixes to the names of the generated files.
4303         * lib/unictype/gen-ctype.c: Remove file.
4304         * lib/unilbrk/gen-lbrk.c: Remove file.
4305         * modules/gen-uni-tables: New file.
4306         * modules/unictype/gen-ctype: Remove file.
4307         * modules/unilbrk/gen-lbrk: Remove file.
4308
4309 2009-02-07  Bruno Haible  <bruno@clisp.org>
4310
4311         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
4312
4313         New module 'unistr/u32-strcoll'.
4314         * modules/unistr/u32-strcoll: New file.
4315         * lib/unistr/u32-strcoll.c: New file.
4316
4317         New module 'unistr/u16-strcoll'.
4318         * modules/unistr/u16-strcoll: New file.
4319         * lib/unistr/u16-strcoll.c: New file.
4320
4321         New module 'unistr/u8-strcoll'.
4322         * modules/unistr/u8-strcoll: New file.
4323         * lib/unistr/u8-strcoll.c: New file.
4324         * lib/unistr/u-strcoll.h: New file.
4325
4326 2009-02-07  Bruno Haible  <bruno@clisp.org>
4327
4328         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
4329         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4330         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4331         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
4332         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
4333         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
4334
4335 2009-02-07  Bruno Haible  <bruno@clisp.org>
4336
4337         Make 64-bit clean.
4338         * lib/unictype/gen-ctype.c (output_predicate, output_category,
4339         output_combclass, output_bidi_category, output_decimal_digit,
4340         output_digit, output_numeric, output_mirror, output_scripts,
4341         output_ident_category): Use proper width specifier in format strings.
4342
4343 2009-02-07  Bruno Haible  <bruno@clisp.org>
4344
4345         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
4346         failure behaviour.
4347
4348 2009-02-07  Jim Meyering  <meyering@redhat.com>
4349
4350         regex: avoid compilation failure with upcoming gcc-4.4
4351         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
4352         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
4353         "... error: integer overflow in preprocessor expression".
4354
4355 2009-02-05  Ben Pfaff  <blp@gnu.org>
4356
4357         Fix link errors on Windows when close module is used.
4358         * modules/close: Add $(LIB_CLOSE) to Link section.
4359         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
4360         $(LIB_CLOSE) on Windows.
4361
4362 2009-02-05  Jim Meyering  <meyering@redhat.com>
4363
4364         still avoid unused-parameter warnings, but do it cleanly
4365         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
4366         (get_fs_usage): Cast to void instead.
4367         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
4368         (dev_from_mount_options, read_file_system_list): Cast to void.
4369         Prompted by Bruno Haible.
4370
4371 2009-02-04  Jim Meyering  <meyering@redhat.com>
4372
4373         fsusage.c: correct copyright year
4374         * lib/fsusage.c: Reflect year in which the change is pushed into
4375
4376         avoid misc. warnings
4377         * lib/fsusage.c (UNUSED_PARAM): Define.
4378         (get_fs_usage): Mark parameter "disk" as unused.
4379         * lib/getugroups.c (getgrent): Use "void" in prototype.
4380         * lib/mountlist.c: Mark unused parameters.
4381         (read_file_system_list): Declare a local with "const".
4382         * lib/nanosleep.c (getnow): Declare static.
4383         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
4384
4385         dirfd: set errno upon failure
4386         * lib/dirfd.c: Include <errno.h>.
4387         Set errno to ENOTSUP when returning -1.
4388         * modules/dirfd (Depends-on): Add errno.
4389         Suggested by John Kodis <kodis@comcast.net>.
4390
4391 2009-02-01  Bruno Haible  <bruno@clisp.org>
4392
4393         Don't assume sizeof (long) >= sizeof (void *).
4394         * lib/memcmp.c: Include stdint.h.
4395         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
4396         srcp2 to 'const byte *'.
4397         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
4398         types to uintptr_t.
4399         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
4400         * modules/memcmp (Depends-on): Add stdint.
4401         Reported by Ozkan Sezer <sezeroz@gmail.com>.
4402
4403 2009-01-30  Eric Blake  <ebb9@byu.net>
4404
4405         fix more require-before-expand issues
4406         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
4407         expand, AC_PROG_AWK.
4408         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
4409
4410 2009-01-28  Eric Blake  <ebb9@byu.net>
4411
4412         version-etc: use consistent URL formatting
4413         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
4414         Improve formatting.  Use fputs for string without %.
4415
4416 2009-01-28  Jim Meyering  <meyering@redhat.com>
4417
4418         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
4419         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
4420         "underquoted definition of NAME" from autoconf-2.59.
4421
4422 2009-01-28  Bruno Haible  <bruno@clisp.org>
4423
4424         * doc/gnulib.texi: Add "Obsolete modules" to index.
4425
4426 2009-01-28  Jim Meyering  <meyering@redhat.com>
4427
4428         useless-if-before-free: recognize more variants
4429         * build-aux/useless-if-before-free: Also recognize e.g.,
4430         if (NULL != p) free (p);
4431
4432 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
4433
4434         test-getaddrinfo: skip (don't fail) this test when there's no network
4435         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
4436         on the presumption that it means you lack network access.
4437
4438 2009-01-26  Jim Meyering  <meyering@redhat.com>
4439
4440         fflush: avoid warnings on modern systems
4441         * lib/fflush.c (rpl_fflush): Move declarations of locals,
4442         pos and result, into scopes where they're used.
4443
4444 2009-01-26  Eric Blake  <ebb9@byu.net>
4445
4446         Silence warning reintroduced by recent extensions patch.
4447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
4448         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
4449         autoconf.
4450
4451         Backport improved autoconf semantics of AC_DEFUN_ONCE.
4452         * m4/00gnulib.m4: New file.
4453         * gnulib-tool (func_get_filelist): Always use it.
4454         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
4455         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
4456
4457 2009-01-25  Bruno Haible  <bruno@clisp.org>
4458
4459         Make test-quotearg work on MacOS X and AIX.
4460         * tests/test-quotearg.sh: New file.
4461         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
4462         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
4463         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
4464         include <libintl.h>.
4465         (fake_locale): Remove variable.
4466         (gettext, dgettext, dcgettext): Remove functions.
4467         (main): Instead of setting a fake locale, set a real locale. Call
4468         textdomain and bindtextdomain.
4469         * modules/quotearg-tests (Files): Add the new files.
4470         (Depends-on): Add gettext, setenv, unsetenv.
4471         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4472         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
4473         Augment TESTS_ENVIRONMENT.
4474
4475 2009-01-25  Bruno Haible  <bruno@clisp.org>
4476
4477         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
4478         fr_FR.ISO8859-1 locale on MacOS X.
4479         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
4480         ja_JP.eucJP locale on MacOS X.
4481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
4482         zh_CN.GB18030 locale on MacOS X.
4483
4484 2009-01-25  Bruno Haible  <bruno@clisp.org>
4485
4486         Avoid link errors on MacOS X 10.3.
4487         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
4488         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4489
4490 2009-01-25  Bruno Haible  <bruno@clisp.org>
4491
4492         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4493         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
4494         * modules/pipe (Files): Remove m4/posix_spawn.m4.
4495         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4496         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
4497         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4498         posix_spawnattr_init, posix_spawnattr_setsigmask,
4499         posix_spawnattr_setflags, posix_spawnattr_destroy.
4500
4501         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
4502         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
4503         * modules/execute (Files): Remove m4/posix_spawn.m4.
4504         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
4505         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
4506         posix_spawnattr_init, posix_spawnattr_setsigmask,
4507         posix_spawnattr_setflags, posix_spawnattr_destroy.
4508
4509 2009-01-25  Bruno Haible  <bruno@clisp.org>
4510
4511         * lib/glthread/threadlib.c: Include <stdlib.h>.
4512
4513 2009-01-25  Bruno Haible  <bruno@clisp.org>
4514
4515         * lib/glthread/threadlib.c (dummy): New declaration.
4516
4517 2009-01-25  Bruno Haible  <bruno@clisp.org>
4518
4519         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
4520         multibyte characters also for the GB18030 encoding. Don't crash when
4521         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
4522
4523 2009-01-25  Bruno Haible  <bruno@clisp.org>
4524
4525         Avoid redefining 'struct random_data' on OSF/1 5.1.
4526         * lib/stdlib.in.h: Include <random.h> if it exists.
4527         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
4528         HAVE_RANDOM_H. Include <random.h> when testing whether
4529         'struct random_data' exists.
4530         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
4531
4532 2009-01-25  Bruno Haible  <bruno@clisp.org>
4533
4534         Don't install charset.alias on MacOS X >= 10.3.
4535         * lib/localcharset.c (DARWIN7): New macro.
4536         (get_charset_aliases): Hardcode the result for Darwin7.
4537         * modules/localcharset (install-exec-local): Don't install
4538         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
4539
4540 2009-01-25  Bruno Haible  <bruno@clisp.org>
4541
4542         Don't install charset.alias on mingw and Cygwin.
4543         * modules/localcharset (install-exec-local): Don't install
4544         charset.alias on mingw and Cygwin, if the file does not yet exist.
4545         The result for these platforms is hardcoded in localcharset.c.
4546
4547 2009-01-25  Bruno Haible  <bruno@clisp.org>
4548
4549         Make it possible again to use AC_GNU_SOURCE together with gnulib.
4550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
4551         before requiring AC_USE_SYSTEM_EXTENSIONS.
4552
4553 2009-01-25  Jim Meyering  <meyering@redhat.com>
4554
4555         c-strtod: avoid warnings
4556         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
4557         "assignment discards qualifiers from pointer target type" warnings.
4558
4559 2009-01-24  Bruno Haible  <bruno@clisp.org>
4560
4561         Add support for non-UTF-8 locales on MacOS X.
4562         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
4563         canonical encodings. For Darwin 7 and newer, don't map traditional
4564         encodings to UTF-8.
4565         Reported by Vincent Lefevre <vincent@vinc17.org>
4566         at <http://savannah.gnu.org/bugs/?25235>.
4567
4568 2009-01-24  Bruno Haible  <bruno@clisp.org>
4569
4570         * doc/gnulib.texi (Obsolete modules): New section.
4571         Reported by Mike Frysinger <vapier@gentoo.org>.
4572
4573 2009-01-24  Bruno Haible  <bruno@clisp.org>
4574
4575         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
4576         (%.dvi): New rule.
4577
4578 2009-01-24  Bruno Haible  <bruno@clisp.org>
4579
4580         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
4581         Reported by Eric Blake.
4582
4583 2009-01-24  Bruno Haible  <bruno@clisp.org>
4584
4585         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
4586         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
4587         Reported by Gary V. Vaughan <gary@gnu.org>.
4588
4589 2009-01-24  Bruno Haible  <bruno@clisp.org>
4590
4591         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
4592
4593 2009-01-23  Bruno Haible  <bruno@clisp.org>
4594
4595         Make c-strtod, c-strtold usable in libraries.
4596         * lib/c-strtod.c: Include string.h instead of xalloc.h.
4597         (C_STRTOD): Call strdup instead of xstrdup.
4598         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
4599         * modules/c-strtold (Depends-on): Likewise.
4600         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
4601         * NEWS: Mention the change.
4602         Reported by Michael Gold <mgold@ncf.ca>.
4603
4604 2009-01-23  Jim Meyering  <meyering@redhat.com>
4605
4606         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
4607         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
4608         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
4609
4610 2009-01-23  Simon Josefsson  <simon@josefsson.org>
4611
4612         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
4613         GNU CoreUtils.
4614         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
4615         * modules/version-etc (Description): Update.
4616
4617 2009-01-22  Bruno Haible  <bruno@clisp.org>
4618
4619         Cache the C locale object.
4620         * lib/c-strtod.c (c_locale_cache): New variable.
4621         (c_locale): New function.
4622         (C_STRTOD): Use it, and don't call freelocale.
4623         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
4624         Suggested by Paolo Bonzini.
4625
4626 2009-01-21  Bruno Haible  <bruno@clisp.org>
4627
4628         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
4629         conditions other than overflow.
4630
4631 2009-01-21  Bruno Haible  <bruno@clisp.org>
4632
4633         * lib/c-strtod.c: Include errno.h.
4634         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
4635         value from STRTOD_L and STRTOD.
4636
4637 2009-01-21  Bruno Haible  <bruno@clisp.org>
4638         and Jim Meyering  <meyering@redhat.com>
4639
4640         nanosleep: skip configure test (fail it) for apple universal builds
4641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
4642         universal builds, assume that nanosleep does not work.
4643         * modules/nanosleep (Depends-on): Add multiarch.
4644
4645         mktime: skip configure test (fail it) for apple universal builds
4646         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
4647         universal builds, assume that mktime does not work.
4648         * modules/mktime (Depends-on): Add multiarch.
4649
4650 2009-01-21  Eric Blake  <ebb9@byu.net>
4651
4652         multiarch: avoid expand-before-require warning
4653         * modules/multiarch (configure.ac): Require, rather than expand,
4654         gl_MULTIARCH.
4655         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
4656         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
4657         enforce that all clients require it.  Partial reversion of
4658         2008-12-29 patch.
4659
4660         error: avoid expand-before-require warning
4661         * modules/errno (configure.ac): Require, rather than expand,
4662         gl_HEADER_ERRNO_H.
4663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
4664         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
4665         enforce that all clients require it.
4666
4667         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
4668         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
4669         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
4670         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
4671
4672 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
4673
4674         Revert:
4675         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4676
4677         regex: do not depend on obsolete modules.
4678         * modules/regex: Remove memcmp and memmove.
4679
4680 2009-01-20  Bruno Haible  <bruno@clisp.org>
4681
4682         Make the 'link' module link on Windows NT 4.
4683         * lib/link.c (_WIN32_WINNT): Don't define.
4684         (CreateHardLinkFuncType): New type.
4685         (CreateHardLinkFunc, initialized): New variables.
4686         (initialize): New function.
4687         (link): Invoke CreateHardLink indirectly through the function pointer.
4688
4689 2009-01-20  Bruno Haible  <bruno@clisp.org>
4690
4691         Fix compilation failure on mingw.
4692         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
4693
4694 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
4695
4696         * doc/c-strtod.texi: Mention a couple of restrictions.
4697
4698 2009-01-20  Jim Meyering  <meyering@redhat.com>
4699
4700         gettimeofday: move more declarations out of functions
4701         * lib/gettimeofday.c: Move extern declarations of tzset and
4702         gmtime out of containing functions.  Prompted by Bruno Haible.
4703
4704 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4705
4706         regex: do not depend on obsolete modules.
4707         * modules/regex: Remove memcmp and memmove.
4708
4709 2009-01-19  Bruno Haible  <bruno@clisp.org>
4710
4711         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4712         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
4713         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4714         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
4715         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
4716
4717 2009-01-19  Bruno Haible  <bruno@clisp.org>
4718
4719         * tests/test-link.c: Include <errno.h>.
4720         (main): Exit with code 77 when a hard link cannot be created due to
4721         the file system.
4722         * tests/test-link.sh: Skip test when a hard link cannot be created due
4723         to the file system.
4724         Suggested by Eric Blake.
4725
4726 2009-01-19  Martin Lambers  <marlam@marlam.de>
4727
4728         * modules/link-tests: New file.
4729         * tests/test-link.sh: New file.
4730         * tests/test-link.c: New file.
4731
4732 2009-01-19  Eric Blake  <ebb9@byu.net>
4733
4734         doc: mention another function added in cygwin 1.7.0
4735         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
4736         Another new function in cygwin 1.7.
4737
4738 2009-01-19  Bruno Haible  <bruno@clisp.org>
4739
4740         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
4741         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
4742         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
4743         gl_BIGENDIAN, not AC_C_BIGENDIAN.
4744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4745         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4746         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4747         * m4/md4.m4 (gl_MD4): Likewise.
4748         * m4/md5.m4 (gl_MD5): Likewise.
4749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
4750         * m4/sha1.m4 (gl_SHA1): Likewise.
4751         * m4/sha256.m4 (gl_SHA256): Likewise.
4752         * m4/sha512.m4 (gl_SHA512): Likewise.
4753
4754 2009-01-19  Bruno Haible  <bruno@clisp.org>
4755
4756         * modules/uniname/uniname-tests (Depends-on): Add progname.
4757         * tests/uniname/test-uninames.c: Include progname.h.
4758         (main): Call set_program_name.
4759
4760         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
4761         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
4762         (main): Call set_program_name.
4763
4764         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
4765         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
4766         (main): Call set_program_name.
4767
4768         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
4769         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
4770         (main): Call set_program_name.
4771
4772         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
4773         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
4774         (main): Call set_program_name.
4775
4776         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
4777         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
4778         (main): Call set_program_name.
4779
4780         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
4781         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
4782         (main): Call set_program_name.
4783
4784         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
4785         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
4786         (main): Call set_program_name.
4787
4788         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
4789         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
4790         (main): Call set_program_name.
4791
4792 2009-01-19  Eric Blake  <ebb9@byu.net>
4793
4794         test-unistd: test previous patch
4795         * tests/test-unistd.c: Test *_FILENO macros.
4796
4797         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
4798         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4799         Guarantee a definition.
4800         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
4801         * modules/unistd-safer (Depends-on): Add dependency on unistd.
4802         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
4803         * lib/dup-safer.c (STDERR_FILENO): Likewise.
4804         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4805         Likewise.
4806         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
4807         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
4808         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
4809         Likewise.
4810         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
4811         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
4812         (STDERR_FILENO): Likewise.
4813         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
4814         (STDERR_FILENO): Likewise.
4815         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
4816         (STDERR_FILENO): Likewise.
4817         Reported by Elbert Pol.
4818
4819 2009-01-19  Eric Blake  <ebb9@byu.net>
4820
4821         doc: mention more functions added in cygwin 1.7.0
4822         * doc/posix-functions/abort.texi (abort): Update wording related
4823         to cygwin.
4824         * doc/posix-functions/daylight.texi (daylight): Likewise.
4825         * doc/posix-functions/optarg.texi (optarg): Likewise.
4826         * doc/posix-functions/optarg.texi (opterr): Likewise.
4827         * doc/posix-functions/optarg.texi (optind): Likewise.
4828         * doc/posix-functions/optarg.texi (optopt): Likewise.
4829         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
4830         worked in 1.5.x, and was withdrawn in 1.7.
4831         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4832         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
4833         cygwin versions.
4834         * doc/posix-functions/perror.texi (perror): Likewise.
4835         * doc/posix-functions/printf.texi (printf): Likewise.
4836         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
4837         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
4838         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4839         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4840         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4841         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
4842         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4843         Likewise.
4844         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4845         Likewise.
4846         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
4847         this function.
4848         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
4849         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
4850         Likewise.
4851         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
4852         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
4853         * doc/posix-functions/confstr.texi (confstr): Likewise.
4854         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
4855         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
4856         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
4857         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
4858         * doc/posix-functions/fputws.texi (fputws): Likewise.
4859         * doc/posix-functions/fwide.texi (fwide): Likewise.
4860         * doc/posix-functions/getwc.texi (getwc): Likewise.
4861         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
4862         * doc/posix-functions/putwc.texi (putwc): Likewise.
4863         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4864         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
4865         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
4866         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4867         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
4868         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
4869         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
4870         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
4871         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
4872         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
4873         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
4874
4875 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
4876
4877         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
4878         * lib/ioctl.c: Include <sys/ioctl.h>.
4879
4880 2009-01-19  Simon Josefsson  <simon@josefsson.org>
4881
4882         * modules/getdate-tests (Depends-on): Add progname.
4883         * tests/test-getdate.c: Use progname module, to avoid link errors
4884         on non-glibc systems.
4885
4886 2009-01-18  Simon Josefsson  <simon@josefsson.org>
4887
4888         * modules/filenamecat-tests (Depends-on): Add progname.
4889         * modules/fstrcmp-tests (Depends-on): Likewise.
4890
4891         * tests/test-filenamecat.c: Use progname module, to avoid link
4892         errors on non-glibc systems.
4893         * tests/test-fstrcmp.c: Likewise.
4894
4895 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
4896
4897         gettimeofday: avoid warning: nested extern declaration of 'localtime'
4898         * lib/gettimeofday.c: Move extern declaration out of function.
4899
4900 2009-01-18  Bruno Haible  <bruno@clisp.org>
4901
4902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
4903         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
4904         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
4905
4906 2009-01-18  Bruno Haible  <bruno@clisp.org>
4907
4908         * lib/strftime.c (MEMPCPY): Remove unused macro.
4909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
4910
4911 2009-01-18  Martin Lambers  <marlam@marlam.de>
4912
4913         New module 'link'.
4914         * lib/unistd.in.h (link): New declaration.
4915         * lib/link.c: New file.
4916         * m4/link.m4: New file.
4917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
4918         HAVE_LINK.
4919         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
4920         * modules/link: New file.
4921         * doc/posix-functions/link.texi: Mention the new module.
4922
4923 2009-01-18  Bruno Haible  <bruno@clisp.org>
4924
4925         * tests/test-avltree_list.c (main): Call set_program_name.
4926         * tests/test-avltree_oset.c (main): Likewise.
4927         * tests/test-obstack-printf.c: Include progname.h.
4928         (main): Call set_program_name.
4929         * tests/test-quotearg.c: Include progname.h.
4930         (main): Call set_program_name.
4931         * tests/test-xmemdup0.c: Include progname.h.
4932         (main): Call set_program_name.
4933
4934 2009-01-18  Bruno Haible  <bruno@clisp.org>
4935
4936         New module 'alphasort'.
4937         * lib/dirent.in.h (alphasort): New declaration.
4938         * lib/alphasort.c: New file, from glibc with modifications.
4939         * m4/alphasort.m4: New file.
4940         * modules/alphasort: New file.
4941         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
4942         HAVE_ALPHASORT.
4943         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
4944         HAVE_ALPHASORT.
4945         * doc/posix-functions/alphasort.texi: Mention the new module and the
4946         portability problems.
4947
4948 2009-01-18  Bruno Haible  <bruno@clisp.org>
4949
4950         New module 'scandir'.
4951         * lib/dirent.in.h (scandir): New declaration.
4952         * lib/scandir.c: New file, from glibc with modifications.
4953         * m4/scandir.m4: New file.
4954         * modules/scandir: New file.
4955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
4956         HAVE_SCANDIR.
4957         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
4958         HAVE_SCANDIR.
4959         * doc/posix-functions/scandir.texi: Mention the new module and the
4960         portability problems.
4961
4962 2009-01-17  Bruno Haible  <bruno@clisp.org>
4963
4964         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
4965         Update documentation.
4966         (func_remove_suffix): Escape all dots in the suffix. Update
4967         documentation.
4968         (func_filter_filelist): Update documentation.
4969         Reported by Ralf Wildenhues.
4970
4971 2009-01-17  Bruno Haible  <bruno@clisp.org>
4972
4973         * modules/dprintf-posix-tests: New file.
4974         * tests/test-dprintf-posix.sh: New file.
4975         * tests/test-dprintf-posix.c: New file.
4976
4977         New modules 'dprintf', 'dprintf-posix'.
4978         * lib/stdio.in.h (dprintf): New declaration.
4979         * lib/dprintf.c: New file.
4980         * m4/dprintf.m4: New file.
4981         * m4/dprintf-posix.m4: New file.
4982         * modules/dprintf: New file.
4983         * modules/dprintf-posix: New file.
4984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
4985         HAVE_DPRINTF, REPLACE_DPRINTF.
4986         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
4987         HAVE_DPRINTF, REPLACE_DPRINTF.
4988         * doc/posix-functions/dprintf.texi: Mention the new modules.
4989
4990 2009-01-17  Bruno Haible  <bruno@clisp.org>
4991
4992         * modules/vdprintf-posix-tests: New file.
4993         * tests/test-vdprintf-posix.sh: New file.
4994         * tests/test-vdprintf-posix.c: New file.
4995
4996         New modules 'vdprintf', 'vdprintf-posix'.
4997         * lib/stdio.in.h (vdprintf): New declaration.
4998         * lib/vdprintf.c: New file.
4999         * m4/vdprintf.m4: New file.
5000         * m4/vdprintf-posix.m4: New file.
5001         * modules/vdprintf: New file.
5002         * modules/vdprintf-posix: New file.
5003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
5004         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5005         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
5006         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5007         * doc/posix-functions/vdprintf.texi: Mention the new modules.
5008
5009 2009-01-17  Bruno Haible  <bruno@clisp.org>
5010
5011         Fix replacement of fopen on mingw.
5012         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
5013         mingw.
5014
5015 2009-01-17  Bruno Haible  <bruno@clisp.org>
5016
5017         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
5018         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
5019
5020 2009-01-17  Bruno Haible  <bruno@clisp.org>
5021
5022         Avoid test-fflush2.sh failure on mingw.
5023         * tests/test-fflush2.c: Include binary-io.h.
5024         (main): Put standard input into binary mode.
5025         * modules/fflush-tests (Depends-on): Add binary-io.
5026
5027 2009-01-17  Bruno Haible  <bruno@clisp.org>
5028
5029         * lib/wchar.in.h: In another particular situation, include only the
5030         system's <wchar.h> file.
5031         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
5032         Reported by Albert Chin-A-Young <china@thewrittenword.com>
5033         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
5034
5035 2009-01-17  Bruno Haible  <bruno@clisp.org>
5036
5037         Support for stripping executables in --enable-relocatable.
5038         * build-aux/install-reloc: Expect one more argument, or an environment
5039         variable RELOC_STRIP_PROG. If set, strip the destination program and
5040         its wrapper.
5041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
5042         RELOC_STRIP_PROG.
5043         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
5044         to set RELOCATABLE_STRIP.
5045         * NEWS: Mention the new Makefile requirement.
5046
5047 2009-01-17  Bruno Haible  <bruno@clisp.org>
5048
5049         * build-aux/install-reloc: Remove debugging information left over by
5050         C compiler on MacOS X.
5051
5052 2009-01-17  Bruno Haible  <bruno@clisp.org>
5053
5054         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
5055         * lib/progreloc.c (find_executable): Fix type of pointer passed to
5056         _NSGetExecutablePath.
5057
5058 2009-01-16  Jim Meyering  <meyering@redhat.com>
5059
5060         strerror: avoid warnings about discarding "const"
5061         * lib/strerror.c (rpl_strerror): Instead of returning a const
5062         string from each and every "case", use a variable, and add a single
5063         cast after the switch.
5064
5065 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
5066
5067         * lib/arpa_inet.in.h: Add extern "C" block for C++.
5068
5069 2009-01-16  Bruno Haible  <bruno@clisp.org>
5070
5071         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
5072         array initializer syntax that also works in C++ mode.
5073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5074
5075 2009-01-16  Jim Meyering  <meyering@redhat.com>
5076
5077         poll: suppress a warning
5078         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
5079         to ignore "...unsigned expression < 0 is always false" warnings.
5080
5081 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
5082
5083         poll: remove declarations of unused variables
5084         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
5085         sockbuf and optlen.
5086
5087 2009-01-15  Bruno Haible  <bruno@clisp.org>
5088
5089         Make fflush-after-ungetc POSIX compliant on BSD systems.
5090         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
5091         (clear_ungetc_buffer): Implement also for other systems.
5092         (rpl_fflush): On glibc systems, invoke
5093         clear_ungetc_buffer_preserving_position. Otherwise, invoke
5094         clear_ungetc_buffer after fetching the stream's position, not before.
5095
5096 2009-01-15  Bruno Haible  <bruno@clisp.org>
5097
5098         Make fflush-after-ungetc POSIX compliant on glibc systems.
5099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
5100         after ungetc.
5101         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
5102         (rpl_fflush): On glibc systems, simply call the system's fflush
5103         function after clearing the ungetc buffer.
5104         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
5105         Instead, lseek only to the end of file, then use the system's fseeko
5106         for the rest. On glibc systems, reset the EOF indicator bit.
5107
5108 2009-01-15  Jim Meyering  <meyering@redhat.com>
5109
5110         openmp.m4: revert quote-adding change, for portability to older autoconf
5111         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
5112         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
5113         Simon Josefsson noticed the problem when using autoconf-2.61.
5114
5115 2009-01-15  Bruno Haible  <bruno@clisp.org>
5116
5117         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
5118         * tests/test-fflush2.c (ASSERT): Always fail.
5119         (main): Add two tests for fflush() after ungetc(), taking into account
5120         the Austin Group's clarification.
5121         Suggested by Eric Blake.
5122
5123 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
5124
5125         mktime.m4: remove K&R-style function prototypes
5126         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
5127         for the Sun C++ compiler.
5128
5129 2009-01-14  Bruno Haible  <bruno@clisp.org>
5130
5131         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
5132         while including <wchar.h>.
5133         * lib/wchar.in.h: In two particular situations on HP-UX, include only
5134         the system's <wchar.h> file.
5135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5136
5137 2009-01-14  Bruno Haible  <bruno@clisp.org>
5138
5139         * m4/csharp.m4: Don't mention gettext on the serial number line.
5140         * m4/csharpexec.m4: Likewise.
5141         * m4/eaccess.m4: Likewise.
5142         * m4/javaexec.m4: Likewise.
5143         * m4/sig_atomic_t.m4: Likewise.
5144         * m4/tmpdir.m4: Likewise.
5145         * m4/intldir.m4: Bump gettext version.
5146         * m4/lib-ld.m4: Likewise.
5147
5148 2009-01-14  Bruno Haible  <bruno@clisp.org>
5149
5150         * lib/progname.c (set_program_name): Add more comments.
5151         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5152
5153 2009-01-14  Simon Josefsson  <simon@josefsson.org>
5154
5155         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
5156         were sys/stat.h does not define it.
5157
5158 2009-01-14  Jim Meyering  <meyering@redhat.com>
5159
5160         many *.m4 files: improve m4 quoting
5161         99% of this change was performed by running the following commands:
5162         git ls-files | grep '\.m4$' | xargs perl -pi \
5163           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
5164           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5165           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5166           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
5167         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
5168         The remainder were to add Copyright dates, increment serial numbers,
5169         undo some changes in comments, exclude m4/intl.m4, and add quotes
5170         around the "1" in ",1" where the unusual spacing prohibited the
5171         above regexps from doing the job.  For more details, see
5172         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
5173         * m4/acl.m4: Modified.
5174         * m4/afs.m4: Likewise.
5175         * m4/alloca.m4: Likewise.
5176         * m4/argp.m4: Likewise.
5177         * m4/argz.m4: Likewise.
5178         * m4/atexit.m4: Likewise.
5179         * m4/bison-i18n.m4: Likewise.
5180         * m4/bison.m4: Likewise.
5181         * m4/byteswap.m4: Likewise.
5182         * m4/c-stack.m4: Likewise.
5183         * m4/c-strtod.m4: Likewise.
5184         * m4/calloc.m4: Likewise.
5185         * m4/canonicalize-lgpl.m4: Likewise.
5186         * m4/chown.m4: Likewise.
5187         * m4/clock_time.m4: Likewise.
5188         * m4/codeset.m4: Likewise.
5189         * m4/copy-file.m4: Likewise.
5190         * m4/csharp.m4: Likewise.
5191         * m4/csharpcomp.m4: Likewise.
5192         * m4/csharpexec.m4: Likewise.
5193         * m4/d-ino.m4: Likewise.
5194         * m4/d-type.m4: Likewise.
5195         * m4/dirfd.m4: Likewise.
5196         * m4/double-slash-root.m4: Likewise.
5197         * m4/eaccess.m4: Likewise.
5198         * m4/eealloc.m4: Likewise.
5199         * m4/environ.m4: Likewise.
5200         * m4/errno_h.m4: Likewise.
5201         * m4/euidaccess.m4: Likewise.
5202         * m4/execute.m4: Likewise.
5203         * m4/fatal-signal.m4: Likewise.
5204         * m4/fchdir.m4: Likewise.
5205         * m4/fcntl_h.m4: Likewise.
5206         * m4/fileblocks.m4: Likewise.
5207         * m4/filenamecat.m4: Likewise.
5208         * m4/findprog.m4: Likewise.
5209         * m4/flexmember.m4: Likewise.
5210         * m4/fnmatch.m4: Likewise.
5211         * m4/fopen.m4: Likewise.
5212         * m4/fpending.m4: Likewise.
5213         * m4/fprintf-posix.m4: Likewise.
5214         * m4/free.m4: Likewise.
5215         * m4/frexp.m4: Likewise.
5216         * m4/frexpl.m4: Likewise.
5217         * m4/fsusage.m4: Likewise.
5218         * m4/ftruncate.m4: Likewise.
5219         * m4/gc-camellia.m4: Likewise.
5220         * m4/gc-random.m4: Likewise.
5221         * m4/gc.m4: Likewise.
5222         * m4/getaddrinfo.m4: Likewise.
5223         * m4/getcwd-abort-bug.m4: Likewise.
5224         * m4/getcwd-path-max.m4: Likewise.
5225         * m4/getdate.m4: Likewise.
5226         * m4/getdomainname.m4: Likewise.
5227         * m4/getgroups.m4: Likewise.
5228         * m4/gethostname.m4: Likewise.
5229         * m4/gethrxtime.m4: Likewise.
5230         * m4/getline.m4: Likewise.
5231         * m4/getloadavg.m4: Likewise.
5232         * m4/getndelim2.m4: Likewise.
5233         * m4/getpass.m4: Likewise.
5234         * m4/gettext.m4: Likewise.
5235         * m4/gettime.m4: Likewise.
5236         * m4/gettimeofday.m4: Likewise.
5237         * m4/gnulib-common.m4: Likewise.
5238         * m4/group-member.m4: Likewise.
5239         * m4/host-os.m4: Likewise.
5240         * m4/iconv.m4: Likewise.
5241         * m4/iconv_open.m4: Likewise.
5242         * m4/inet_ntop.m4: Likewise.
5243         * m4/inet_pton.m4: Likewise.
5244         * m4/inline.m4: Likewise.
5245         * m4/intldir.m4: Likewise.
5246         * m4/intlmacosx.m4: Likewise.
5247         * m4/intmax.m4: Likewise.
5248         * m4/intmax_t.m4: Likewise.
5249         * m4/inttypes.m4: Likewise.
5250         * m4/inttypes_h.m4: Likewise.
5251         * m4/inttypes-pri.m4: Likewise.
5252         * m4/isapipe.m4: Likewise.
5253         * m4/isnand.m4: Likewise.
5254         * m4/isnanf.m4: Likewise.
5255         * m4/isnanl.m4: Likewise.
5256         * m4/javacomp.m4: Likewise.
5257         * m4/javaexec.m4: Likewise.
5258         * m4/jm-winsz1.m4: Likewise.
5259         * m4/jm-winsz2.m4: Likewise.
5260         * m4/lchown.m4: Likewise.
5261         * m4/lcmessage.m4: Likewise.
5262         * m4/ldexpl.m4: Likewise.
5263         * m4/lib-ld.m4: Likewise.
5264         * m4/lib-link.m4: Likewise.
5265         * m4/libsigsegv.m4: Likewise.
5266         * m4/link-follow.m4: Likewise.
5267         * m4/localcharset.m4: Likewise.
5268         * m4/locale-fr.m4: Likewise.
5269         * m4/locale-ja.m4: Likewise.
5270         * m4/locale-tr.m4: Likewise.
5271         * m4/locale-zh.m4: Likewise.
5272         * m4/lock.m4: Likewise.
5273         * m4/longlong.m4: Likewise.
5274         * m4/ls-mntd-fs.m4: Likewise.
5275         * m4/lstat.m4: Likewise.
5276         * m4/malloc.m4: Likewise.
5277         * m4/mathl.m4: Likewise.
5278         * m4/mbrtowc.m4: Likewise.
5279         * m4/mbstate_t.m4: Likewise.
5280         * m4/mbswidth.m4: Likewise.
5281         * m4/memchr.m4: Likewise.
5282         * m4/memcmp.m4: Likewise.
5283         * m4/memcpy.m4: Likewise.
5284         * m4/memmem.m4: Likewise.
5285         * m4/memmove.m4: Likewise.
5286         * m4/mempcpy.m4: Likewise.
5287         * m4/memrchr.m4: Likewise.
5288         * m4/memset.m4: Likewise.
5289         * m4/minmax.m4: Likewise.
5290         * m4/mkdir-slash.m4: Likewise.
5291         * m4/mkdtemp.m4: Likewise.
5292         * m4/mktime.m4: Likewise.
5293         * m4/mmap-anon.m4: Likewise.
5294         * m4/mountlist.m4: Likewise.
5295         * m4/nanosleep.m4: Likewise.
5296         * m4/nls.m4: Likewise.
5297         * m4/nocrash.m4: Likewise.
5298         * m4/open.m4: Likewise.
5299         * m4/openat.m4: Likewise.
5300         * m4/openmp.m4: Likewise.
5301         * m4/pathmax.m4: Likewise.
5302         * m4/perl.m4: Likewise.
5303         * m4/physmem.m4: Likewise.
5304         * m4/pipe.m4: Likewise.
5305         * m4/po.m4: Likewise.
5306         * m4/poll.m4: Likewise.
5307         * m4/posixtm.m4: Likewise.
5308         * m4/posixver.m4: Likewise.
5309         * m4/printf-frexp.m4: Likewise.
5310         * m4/printf-frexpl.m4: Likewise.
5311         * m4/printf-posix.m4: Likewise.
5312         * m4/printf-posix-rpl.m4: Likewise.
5313         * m4/printf.m4: Likewise.
5314         * m4/progtest.m4: Likewise.
5315         * m4/putenv.m4: Likewise.
5316         * m4/readline.m4: Likewise.
5317         * m4/readlink.m4: Likewise.
5318         * m4/readutmp.m4: Likewise.
5319         * m4/realloc.m4: Likewise.
5320         * m4/regex.m4: Likewise.
5321         * m4/relocatable.m4: Likewise.
5322         * m4/relocatable-lib.m4: Likewise.
5323         * m4/rename-dest-slash.m4: Likewise.
5324         * m4/rename.m4: Likewise.
5325         * m4/rmdir-errno.m4: Likewise.
5326         * m4/rmdir.m4: Likewise.
5327         * m4/roundf.m4: Likewise.
5328         * m4/roundl.m4: Likewise.
5329         * m4/rpmatch.m4: Likewise.
5330         * m4/save-cwd.m4: Likewise.
5331         * m4/selinux-selinux-h.m4: Likewise.
5332         * m4/setenv.m4: Likewise.
5333         * m4/settime.m4: Likewise.
5334         * m4/sig2str.m4: Likewise.
5335         * m4/sig_atomic_t.m4: Likewise.
5336         * m4/signalblocking.m4: Likewise.
5337         * m4/signbit.m4: Likewise.
5338         * m4/sigpipe.m4: Likewise.
5339         * m4/sockets.m4: Likewise.
5340         * m4/sockpfaf.m4: Likewise.
5341         * m4/st_dm_mode.m4: Likewise.
5342         * m4/stat-time.m4: Likewise.
5343         * m4/stdbool.m4: Likewise.
5344         * m4/stdint.m4: Likewise.
5345         * m4/stdint_h.m4: Likewise.
5346         * m4/stpcpy.m4: Likewise.
5347         * m4/stpncpy.m4: Likewise.
5348         * m4/strcase.m4: Likewise.
5349         * m4/strchrnul.m4: Likewise.
5350         * m4/strcspn.m4: Likewise.
5351         * m4/strdup.m4: Likewise.
5352         * m4/strftime.m4: Likewise.
5353         * m4/strndup.m4: Likewise.
5354         * m4/strnlen.m4: Likewise.
5355         * m4/strpbrk.m4: Likewise.
5356         * m4/strptime.m4: Likewise.
5357         * m4/strsep.m4: Likewise.
5358         * m4/strtod.m4: Likewise.
5359         * m4/strtoimax.m4: Likewise.
5360         * m4/strtok_r.m4: Likewise.
5361         * m4/strtol.m4: Likewise.
5362         * m4/strtoll.m4: Likewise.
5363         * m4/strtoul.m4: Likewise.
5364         * m4/strtoull.m4: Likewise.
5365         * m4/strtoumax.m4: Likewise.
5366         * m4/strverscmp.m4: Likewise.
5367         * m4/threadlib.m4: Likewise.
5368         * m4/timegm.m4: Likewise.
5369         * m4/tm_gmtoff.m4: Likewise.
5370         * m4/tmpdir.m4: Likewise.
5371         * m4/tmpfile.m4: Likewise.
5372         * m4/tzset.m4: Likewise.
5373         * m4/uintmax_t.m4: Likewise.
5374         * m4/unlinkdir.m4: Likewise.
5375         * m4/unlocked-io.m4: Likewise.
5376         * m4/uptime.m4: Likewise.
5377         * m4/userspec.m4: Likewise.
5378         * m4/utimbuf.m4: Likewise.
5379         * m4/utime.m4: Likewise.
5380         * m4/utimes-null.m4: Likewise.
5381         * m4/utimes.m4: Likewise.
5382         * m4/vararrays.m4: Likewise.
5383         * m4/vasnprintf.m4: Likewise.
5384         * m4/vfprintf-posix.m4: Likewise.
5385         * m4/vprintf-posix.m4: Likewise.
5386         * m4/wait-process.m4: Likewise.
5387         * m4/wchar_t.m4: Likewise.
5388         * m4/wint_t.m4: Likewise.
5389         * m4/write-any-file.m4: Likewise.
5390         * m4/yield.m4: Likewise.
5391
5392 2009-01-13  Bruno Haible  <bruno@clisp.org>
5393
5394         Avoid test-copy-file.sh failures when ACL support insufficient.
5395         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
5396         TESTS_ENVIRONMENT.
5397         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
5398         Reported by Jim Meyering.
5399
5400 2009-01-13  Bruno Haible  <bruno@clisp.org>
5401
5402         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
5403         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
5404         * modules/unistdio/u8-printf-parse (Files): Likewise.
5405         * modules/unistdio/u32-printf-parse (Files): Likewise.
5406         * modules/unistdio/ulc-printf-parse (Files): Likewise.
5407
5408 2009-01-13  Simon Josefsson  <simon@josefsson.org>
5409
5410         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
5411         and m4/inttypes_h.m4 too.
5412
5413 2009-01-12  Eric Blake  <ebb9@byu.net>
5414
5415         tests: IRIX 6.2 cc can't compile -0.0 into .data
5416         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
5417         rather than at compile-time.
5418         * tests/test-floorl.c (minus_zero): Likewise.
5419         * tests/test-frexpl.c (minus_zero): Likewise.
5420         * tests/test-isnan.c (minus_zerol): Likewise.
5421         * tests/test-isnanl.h (minus_zero): Likewise.
5422         * tests/test-ldexpl.c (minus_zero): Likewise.
5423         * tests/test-roundl.c (minus_zero): Likewise.
5424         * tests/test-signbit.c (minus_zerol): Likewise.
5425         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5426         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5427         * tests/test-truncl.c (minus_zero): Likewise.
5428         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5429         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5430         Reported by Tom G. Christensen and Nelson H. F. Beebe.
5431
5432 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5433
5434         regex: fix glibc bug 9697
5435         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
5436         handling.
5437
5438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5439
5440         regex: fix glibc bug 697
5441         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
5442         being NULL also if there are no backreferences.
5443
5444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
5445
5446         regex: merge glibc changes
5447         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
5448         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
5449         re_string_skip_chars, re_string_reconstruct): Likewise.
5450         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
5451
5452 2009-01-07  Jim Meyering  <meyering@redhat.com>
5453
5454         poll: filter through cppi
5455         * lib/poll.c: Indent cpp directives to reflect nesting.
5456
5457 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
5458
5459         poll: don't return uninitialized
5460         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
5461
5462 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
5463
5464         avoid compile failure on AIX 6.1
5465         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
5466         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
5467
5468 2009-01-04  Jim Meyering  <meyering@redhat.com>
5469
5470         remove duplicate inclusion of <stdio.h>
5471         * tests/test-fprintf-posix.c: Likewise.
5472         * tests/test-printf-posix.c: Likewise.
5473         * tests/test-snprintf-posix.c: Likewise.
5474         * tests/test-sprintf-posix.c: Likewise.
5475         * tests/test-vasprintf-posix.c: Likewise.
5476         * tests/test-vfprintf-posix.c: Likewise.
5477         * tests/test-vprintf-posix.c: Likewise.
5478         * tests/test-vsnprintf-posix.c: Likewise.
5479         * tests/test-vsprintf-posix.c: Likewise.
5480
5481 2009-01-03  Jim Meyering  <meyering@redhat.com>
5482
5483         gnulib-tool: fix sed-based filtering
5484         * gnulib-tool (func_filter_filelist): Remove extra backslash
5485         in sed_fff_filter definition.
5486
5487 2009-01-02  Jim Meyering  <meyering@redhat.com>
5488
5489         strftime: avoid compilation failure on Solaris 2.6
5490         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
5491         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
5492         Don't #define mbrlen or mbsinit, since now they're guaranteed to
5493         be available.  Reported by Tom G. Christensen.  Details in
5494         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
5495
5496 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5497             Bruno Haible  <bruno@clisp.org>
5498
5499         Speed up gnulib-tool by doing more string processing through shell
5500         built-ins.
5501         * gnulib-tool (fast_func_append): New variable.
5502         (func_remove_prefix, func_remove_suffix): New functions.
5503         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
5504         (func_filter_filelist): New function.
5505         (func_get_dependencies): Use func_remove_suffix instead of sed.
5506         (func_get_automake_snippet): Use func_filter_filelist instead of a
5507         subshell and sed invocation.
5508
5509 2009-01-01  Bruno Haible  <bruno@clisp.org>
5510
5511         Fix a security bug.
5512         * gnulib-tool (func_import, import, update): Don't allow the characters
5513         '"', '$', '`', '\' in macro arguments that become part of commands that
5514         are evaluated.
5515
5516 2009-01-01  Bruno Haible  <bruno@clisp.org>
5517
5518         * gnulib-tool (func_reset_sigpipe): Add more comments.
5519
5520 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5521
5522         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
5523         func_emit_tests_Makefile_am, func_import): Abort loops early if we
5524         already know the answer.
5525
5526 2009-01-01  Jim Meyering  <meyering@redhat.com>
5527
5528         * lib/version-etc.c (version_etc_va): Update copyright year.
5529
5530 2008-12-30  Bruno Haible  <bruno@clisp.org>
5531
5532         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
5533         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
5534         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
5535
5536 2008-12-29  Eric Blake  <ebb9@byu.net>
5537
5538         multiarch: avoid autoconf AC_REQUIRE bug
5539         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
5540         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
5541         2.63 and older.
5542         Reported by Bruno Haible, and analyzed in
5543         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
5544
5545 2008-12-29  Bruno Haible  <bruno@clisp.org>
5546
5547         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
5548         files in subdirectories correctly.
5549         Reported by Ralf Wildenhues.
5550
5551 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5552
5553         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
5554         rather than 'join FILE -', for Solaris join.
5555
5556 2008-12-29  Bruno Haible  <bruno@clisp.org>
5557
5558         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
5559         quoting.
5560         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5561         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5562         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5563         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
5564         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5565         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5566         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5567         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5568         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5569         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5570         * m4/nls.m4 (AM_NLS): Likewise.
5571         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
5572         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5573         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5574         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5575         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5576         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5577         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
5578         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5579         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5580         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5581         * m4/xsize.m4 (gl_XSIZE): Likewise.
5582         Suggested by Jim Meyering.
5583
5584 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5585
5586         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
5587         * lib/parse-duration.c: use a switch instead of cascading if's.
5588
5589 2008-12-29  Eric Blake  <ebb9@byu.net>
5590
5591         wchar.h: supply WEOF on Irix 5.3
5592         * lib/wchar.in.h (wint_t): Also supply WEOF.
5593         * lib/wctype.in.h (wint_t): Likewise.
5594         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
5595         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
5596         Reported by Tom G. Christensen.
5597
5598 2008-12-26  Bruno Haible  <bruno@clisp.org>
5599
5600         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
5601         i486, i586, i686.
5602
5603 2008-12-26  Bruno Haible  <bruno@clisp.org>
5604
5605         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
5606
5607 2008-12-26  Bruno Haible  <bruno@clisp.org>
5608
5609         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
5610         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
5611         not __STDC_CONSTANT_MACROS.
5612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5613
5614 2008-12-25  Bruno Haible  <bruno@clisp.org>
5615
5616         Add support for universal builds to vasnprintf.
5617         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
5618         universal builds, guess no.
5619         * modules/vasnprintf-posix (Depends-on): Add multiarch.
5620         * modules/vasprintf-posix (Depends-on): Likewise.
5621         * modules/fprintf-posix (Depends-on): Likewise.
5622         * modules/vfprintf-posix (Depends-on): Likewise.
5623         * modules/snprintf-posix (Depends-on): Likewise.
5624         * modules/vsnprintf-posix (Depends-on): Likewise.
5625         * modules/sprintf-posix (Depends-on): Likewise.
5626         * modules/vsprintf-posix (Depends-on): Likewise.
5627         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5628         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5629         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5630         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5631         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5632         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5633         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5634
5635         Add support for universal builds to <inttypes.h>.
5636         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5637         _SCNu64_PREFIX): In Apple
5638         universal builds, define directly, using _LP64.
5639         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
5640         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
5641         * modules/inttypes (Depends-on): Add multiarch.
5642         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5643
5644         Add support for universal builds to <stdint.h>.
5645         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
5646         universal builds, define directly, using _LP64.
5647         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
5648         Apple universal builds, don't test for the size and suffix of ptrdiff_t
5649         and size_t.
5650         * modules/stdint (Depends-on): Add multiarch.
5651         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
5652
5653         New module 'multiarch'.
5654         * modules/multiarch: New file.
5655         * m4/multiarch.m4: New file.
5656
5657 2008-12-25  Bruno Haible  <bruno@clisp.org>
5658
5659         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
5660
5661 2008-12-25  Bruno Haible  <bruno@clisp.org>
5662
5663         * modules/btowc (License): Relicense under LGPLv2+.
5664         * modules/mbsinit (License): Likewise.
5665         * modules/mbrtowc (License): Likewise.
5666         * modules/wcrtomb (License): Likewise.
5667         * modules/streq (License): Likewise.
5668         Reported by David Lutterkort <lutter@redhat.com>.
5669
5670 2008-12-23  Bruno Haible  <bruno@clisp.org>
5671
5672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
5673
5674 2008-12-23  Bruno Haible  <bruno@clisp.org>
5675
5676         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
5677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
5678         GETADDRINFO_LIB, not in LIBS.
5679         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
5680         * modules/canon-host (Link): Likewise.
5681         * NEWS: Mention the change.
5682         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
5683         GETADDRINFO_LIB.
5684
5685 2008-12-22  Bruno Haible  <bruno@clisp.org>
5686
5687         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
5688         * doc/posix-functions/iswalpha_l.texi: Likewise.
5689         * doc/posix-functions/iswblank_l.texi: Likewise.
5690         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5691         * doc/posix-functions/iswctype_l.texi: Likewise.
5692         * doc/posix-functions/iswdigit_l.texi: Likewise.
5693         * doc/posix-functions/iswgraph_l.texi: Likewise.
5694         * doc/posix-functions/iswlower_l.texi: Likewise.
5695         * doc/posix-functions/iswprint_l.texi: Likewise.
5696         * doc/posix-functions/iswpunct_l.texi: Likewise.
5697         * doc/posix-functions/iswspace_l.texi: Likewise.
5698         * doc/posix-functions/iswupper_l.texi: Likewise.
5699         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5700         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
5701         * doc/posix-functions/open_wmemstream.texi: Likewise.
5702         * doc/posix-functions/swscanf.texi: Likewise.
5703         * doc/posix-functions/towctrans_l.texi: Likewise.
5704         * doc/posix-functions/towlower.texi: Likewise.
5705         * doc/posix-functions/towlower_l.texi: Likewise.
5706         * doc/posix-functions/towupper.texi: Likewise.
5707         * doc/posix-functions/towupper_l.texi: Likewise.
5708         * doc/posix-functions/vfwprintf.texi: Likewise.
5709         * doc/posix-functions/vfwscanf.texi: Likewise.
5710         * doc/posix-functions/vswscanf.texi: Likewise.
5711         * doc/posix-functions/vwprintf.texi: Likewise.
5712         * doc/posix-functions/vwscanf.texi: Likewise.
5713         * doc/posix-functions/wcpcpy.texi: Likewise.
5714         * doc/posix-functions/wcpncpy.texi: Likewise.
5715         * doc/posix-functions/wcscasecmp.texi: Likewise.
5716         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
5717         * doc/posix-functions/wcscoll_l.texi: Likewise.
5718         * doc/posix-functions/wcsdup.texi: Likewise.
5719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
5720         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
5721         * doc/posix-functions/wcsnlen.texi: Likewise.
5722         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5723         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5724         * doc/posix-functions/wctrans_l.texi: Likewise.
5725         * doc/posix-functions/wctype_l.texi: Likewise.
5726         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
5727         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
5728         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
5729         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
5730         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
5731         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
5732         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
5733         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
5734         * doc/glibc-functions/wcschrnul.texi: Likewise.
5735         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5736         * doc/glibc-functions/wcstod_l.texi: Likewise.
5737         * doc/glibc-functions/wcstof_l.texi: Likewise.
5738         * doc/glibc-functions/wcstol_l.texi: Likewise.
5739         * doc/glibc-functions/wcstold_l.texi: Likewise.
5740         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5741         * doc/glibc-functions/wcstoq.texi: Likewise.
5742         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5743         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5744         * doc/glibc-functions/wcstouq.texi: Likewise.
5745         * doc/glibc-functions/wmempcpy.texi: Likewise.
5746
5747 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
5748             Eric Blake  <ebb9@byu.net>
5749             Paolo Bonzini  <bonzini@gnu.org>
5750             Bruno Haible  <bruno@clisp.org>
5751
5752         Make c-stack work on Haiku.
5753         * lib/c-stack.c (SA_ONSTACK): Define fallback.
5754         (c_stack_action): Use SA_ONSTACK flag.
5755
5756 2008-12-22  Bruno Haible  <bruno@clisp.org>
5757
5758         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
5759
5760 2008-12-22  Bruno Haible  <bruno@clisp.org>
5761
5762         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
5763         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
5764         being overridden.
5765         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
5766         New macros.
5767         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
5768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
5769         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
5770         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
5771
5772 2008-12-22  Bruno Haible  <bruno@clisp.org>
5773
5774         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
5775         from test code.
5776
5777 2008-12-22  Eric Blake  <ebb9@byu.net>
5778
5779         Avoid gcc warnings on cygwin.
5780         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
5781         Avoid unused variable.
5782         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
5783         Likewise.
5784
5785 2008-12-22  Bruno Haible  <bruno@clisp.org>
5786
5787         Remove HAVE_MBRTOWC conditionals.
5788         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
5789         (mbscasecmp): Assume mbrtowc function.
5790         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
5791         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
5792         * lib/mbschr.c: Include mbuiter.h unconditionally.
5793         (mbschr): Assume mbrtowc function.
5794         * lib/mbscspn.c: Include mbuiter.h unconditionally.
5795         (mbscspn): Assume mbrtowc function.
5796         * lib/mbslen.c: Include mbuiter.h unconditionally.
5797         (mbslen): Assume mbrtowc function.
5798         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
5799         (mbsncasecmp): Assume mbrtowc function.
5800         * lib/mbsnlen.c: Include mbiter.h unconditionally.
5801         (mbsnlen): Assume mbrtowc function.
5802         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
5803         (mbspbrk): Assume mbrtowc function.
5804         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
5805         (mbspcasecmp): Assume mbrtowc function.
5806         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
5807         (mbsrchr): Assume mbrtowc function.
5808         * lib/mbssep.c: Include mbuiter.h unconditionally.
5809         (mbssep): Assume mbrtowc function.
5810         * lib/mbsspn.c: Include mbuiter.h unconditionally.
5811         (mbsspn): Assume mbrtowc function.
5812         * lib/mbsstr.c: Include mbuiter.h unconditionally.
5813         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
5814         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
5815         (mbstok_r): Assume mbrtowc function.
5816         * lib/propername.c: Include mbuiter.h unconditionally.
5817         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
5818         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
5819         (trim2): Assume mbrtowc function.
5820         * lib/mbswidth.c (mbsinit): Remove fallback definition.
5821         (mbsnwidth): Assume mbrtowc function.
5822         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
5823         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
5824         fallback definitions.
5825         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
5826
5827 2008-12-22  Bruno Haible  <bruno@clisp.org>
5828
5829         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
5830
5831 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
5832
5833         * modules/regex: Request emulations for the mb*/wc* functions we need.
5834         * m4/regex.m4: Don't look for those functions here.
5835         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
5836
5837 2008-12-22  Bruno Haible  <bruno@clisp.org>
5838
5839         * modules/fnmatch (Depends-on): Remove duplicated dependency.
5840
5841 2008-12-21  Bruno Haible  <bruno@clisp.org>
5842
5843         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
5844         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
5845         (Include): Remove conditionalization.
5846         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
5847         (Include): Remove conditionalization.
5848         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
5849         (Include): Remove conditionalization.
5850         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
5851         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5852         * NEWS: Mention the change.
5853         Reported by Alan Hourihane <alanh@fairlite.co.uk>
5854         via Sergey Poznyakoff <gray@gnu.org.ua>.
5855
5856 2008-12-21  Bruno Haible  <bruno@clisp.org>
5857
5858         * MODULES.html.sh (Extended multibyte and wide character utilities
5859         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
5860         wcrtomb, wcsrtombs.
5861         (Support for systems lacking POSIX:2008): Add accept, bind, close,
5862         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
5863         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
5864         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
5865
5866 2008-12-21  Bruno Haible  <bruno@clisp.org>
5867
5868         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
5869
5870 2008-12-21  Bruno Haible  <bruno@clisp.org>
5871
5872         * modules/wcsnrtombs-tests: New file.
5873         * tests/test-wcsnrtombs1.sh: New file.
5874         * tests/test-wcsnrtombs2.sh: New file.
5875         * tests/test-wcsnrtombs3.sh: New file.
5876         * tests/test-wcsnrtombs4.sh: New file.
5877         * tests/test-wcsnrtombs.c: New file.
5878
5879         New module 'wcsnrtombs'.
5880         * lib/wchar.in.h (wcsnrtombs): New declaration.
5881         * lib/wcsnrtombs.c: New file.
5882         * lib/wcsrtombs-state.c: New file.
5883         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
5884         (internal_state): Remove variable.
5885         * m4/wcsnrtombs.m4: New file.
5886         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
5887         compilation units.
5888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
5889         HAVE_WCSNRTOMBS.
5890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
5891         HAVE_WCSNRTOMBS.
5892         * modules/wcsnrtombs: New file.
5893         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
5894         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5895
5896 2008-12-21  Bruno Haible  <bruno@clisp.org>
5897
5898         * modules/wcsrtombs-tests: New file.
5899         * tests/test-wcsrtombs1.sh: New file.
5900         * tests/test-wcsrtombs2.sh: New file.
5901         * tests/test-wcsrtombs3.sh: New file.
5902         * tests/test-wcsrtombs4.sh: New file.
5903         * tests/test-wcsrtombs.c: New file.
5904
5905         New module 'wcsrtombs'.
5906         * lib/wchar.in.h (wcsrtombs): New declaration.
5907         * lib/wcsrtombs.c: New file.
5908         * m4/wcsrtombs.m4: New file.
5909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
5910         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
5911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
5912         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
5913         * modules/wcsrtombs: New file.
5914         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
5915         bugs.
5916
5917 2008-12-21  Bruno Haible  <bruno@clisp.org>
5918
5919         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
5920         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
5921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
5922         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
5923         if not correct.
5924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
5925         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
5926         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
5927         m4/locale-zh.m4, m4/codeset.m4.
5928         * doc/posix-functions/wcrtomb.texi: Document the bug.
5929
5930 2008-12-21  Bruno Haible  <bruno@clisp.org>
5931
5932         Work around a btowc() bug on IRIX 6.5.
5933         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
5934         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
5935         REPLACE_WTOBC if not.
5936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
5937         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
5938         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
5939
5940 2008-12-21  Bruno Haible  <bruno@clisp.org>
5941
5942         * modules/wcrtomb-tests: New file.
5943         * tests/test-wcrtomb.sh: New file.
5944         * tests/test-wcrtomb.c: New file.
5945
5946         New module 'wcrtomb'.
5947         * lib/wchar.in.h (wcrtomb): New declaration.
5948         * lib/wcrtomb.c: New file.
5949         * m4/wcrtomb.m4: New file.
5950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
5951         HAVE_WCRTOMB.
5952         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
5953         HAVE_WCRTOMB.
5954         * modules/wcrtomb: New file.
5955         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5956
5957 2008-12-21  Bruno Haible  <bruno@clisp.org>
5958
5959         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
5960         * modules/mbsrtowcs (Files): Likewise.
5961         * modules/wctob (Files): Likewise.
5962         * modules/c-strcase-tests (Files): Likewise.
5963         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5964         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5965         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5966         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5967         * modules/vasnprintf-posix-tests (Files): Likewise.
5968
5969 2008-12-21  William Pursell  <bill.pursell@gmail.com>
5970
5971         gitlog-to-changelog: pass all command-line arguments to git-log
5972         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
5973         it is sometimes convenient to filter the commits in various ways.
5974         gitlog-to-changelog only allows --since to specify a start date,
5975         but git-log itself supports many other filtering mechanisms.
5976         At the moment, I want to filter by branch name.  Rather than
5977         adding a --branch option to gitlog-to-changelog, it seems more
5978         flexible to simply pass all options directly to git-log and let
5979         git do the work.  Notice that this effectively makes --since a
5980         redundant option for gitlog-to-changelog, but removing it would
5981         require current usage to change since calls would then require
5982         an additional '--'.
5983
5984 2008-12-21  Bruno Haible  <bruno@clisp.org>
5985
5986         * modules/mbsnrtowcs-tests: New file.
5987         * tests/test-mbsnrtowcs1.sh: New file.
5988         * tests/test-mbsnrtowcs2.sh: New file.
5989         * tests/test-mbsnrtowcs3.sh: New file.
5990         * tests/test-mbsnrtowcs4.sh: New file.
5991         * tests/test-mbsnrtowcs.c: New file.
5992
5993         New module 'mbsnrtowcs'.
5994         * lib/wchar.in.h (mbsnrtowcs): New declaration.
5995         * lib/mbsnrtowcs.c: New file.
5996         * lib/mbsrtowcs-state.c: New file.
5997         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
5998         (internal_state): Remove variable.
5999         * m4/mbsnrtowcs.m4: New file.
6000         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
6001         compilation units.
6002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
6003         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6004         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
6005         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6006         * modules/mbsnrtowcs: New file.
6007         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
6008         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
6009         portability problem.
6010
6011 2008-12-21  Bruno Haible  <bruno@clisp.org>
6012
6013         Work around mbsrtowcs bug.
6014         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
6015         (gl_FUNC_MBSRTOWCS): Invoke it.
6016         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6017         m4/locale-zh.m4.
6018         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
6019
6020 2008-12-21  Bruno Haible  <bruno@clisp.org>
6021
6022         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
6023
6024 2008-12-21  Bruno Haible  <bruno@clisp.org>
6025
6026         Update doc for AIX.
6027         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
6028         16-bit wchar_t type.
6029         * doc/posix-functions/btowc.texi: Likewise.
6030         * doc/posix-functions/fgetwc.texi: Likewise.
6031         * doc/posix-functions/fgetws.texi: Likewise.
6032         * doc/posix-functions/fputwc.texi: Likewise.
6033         * doc/posix-functions/fputws.texi: Likewise.
6034         * doc/posix-functions/fwide.texi: Likewise.
6035         * doc/posix-functions/fwprintf.texi: Likewise.
6036         * doc/posix-functions/fwscanf.texi: Likewise.
6037         * doc/posix-functions/getwchar.texi: Likewise.
6038         * doc/posix-functions/getwc.texi: Likewise.
6039         * doc/posix-functions/iswalnum.texi: Likewise.
6040         * doc/posix-functions/iswalpha.texi: Likewise.
6041         * doc/posix-functions/iswblank.texi: Likewise.
6042         * doc/posix-functions/iswcntrl.texi: Likewise.
6043         * doc/posix-functions/iswctype.texi: Likewise.
6044         * doc/posix-functions/iswdigit.texi: Likewise.
6045         * doc/posix-functions/iswgraph.texi: Likewise.
6046         * doc/posix-functions/iswlower.texi: Likewise.
6047         * doc/posix-functions/iswprint.texi: Likewise.
6048         * doc/posix-functions/iswpunct.texi: Likewise.
6049         * doc/posix-functions/iswspace.texi: Likewise.
6050         * doc/posix-functions/iswupper.texi: Likewise.
6051         * doc/posix-functions/iswxdigit.texi: Likewise.
6052         * doc/posix-functions/mbrtowc.texi: Likewise.
6053         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6054         * doc/posix-functions/mbstowcs.texi: Likewise.
6055         * doc/posix-functions/mbtowc.texi: Likewise.
6056         * doc/posix-functions/putwchar.texi: Likewise.
6057         * doc/posix-functions/putwc.texi: Likewise.
6058         * doc/posix-functions/swprintf.texi: Likewise.
6059         * doc/posix-functions/tolower.texi: Likewise.
6060         * doc/posix-functions/toupper.texi: Likewise.
6061         * doc/posix-functions/towctrans.texi: Likewise.
6062         * doc/posix-functions/ungetwc.texi: Likewise.
6063         * doc/posix-functions/vswprintf.texi: Likewise.
6064         * doc/posix-functions/wcrtomb.texi: Likewise.
6065         * doc/posix-functions/wcscat.texi: Likewise.
6066         * doc/posix-functions/wcschr.texi: Likewise.
6067         * doc/posix-functions/wcscmp.texi: Likewise.
6068         * doc/posix-functions/wcscoll.texi: Likewise.
6069         * doc/posix-functions/wcscpy.texi: Likewise.
6070         * doc/posix-functions/wcscspn.texi: Likewise.
6071         * doc/posix-functions/wcsftime.texi: Likewise.
6072         * doc/posix-functions/wcslen.texi: Likewise.
6073         * doc/posix-functions/wcsncat.texi: Likewise.
6074         * doc/posix-functions/wcsncmp.texi: Likewise.
6075         * doc/posix-functions/wcsncpy.texi: Likewise.
6076         * doc/posix-functions/wcspbrk.texi: Likewise.
6077         * doc/posix-functions/wcsrchr.texi: Likewise.
6078         * doc/posix-functions/wcsrtombs.texi: Likewise.
6079         * doc/posix-functions/wcsspn.texi: Likewise.
6080         * doc/posix-functions/wcsstr.texi: Likewise.
6081         * doc/posix-functions/wcstod.texi: Likewise.
6082         * doc/posix-functions/wcstof.texi: Likewise.
6083         * doc/posix-functions/wcstoimax.texi: Likewise.
6084         * doc/posix-functions/wcstok.texi: Likewise.
6085         * doc/posix-functions/wcstold.texi: Likewise.
6086         * doc/posix-functions/wcstoll.texi: Likewise.
6087         * doc/posix-functions/wcstol.texi: Likewise.
6088         * doc/posix-functions/wcstombs.texi: Likewise.
6089         * doc/posix-functions/wcstoull.texi: Likewise.
6090         * doc/posix-functions/wcstoul.texi: Likewise.
6091         * doc/posix-functions/wcstoumax.texi: Likewise.
6092         * doc/posix-functions/wcswidth.texi: Likewise.
6093         * doc/posix-functions/wcsxfrm.texi: Likewise.
6094         * doc/posix-functions/wctob.texi: Likewise.
6095         * doc/posix-functions/wctomb.texi: Likewise.
6096         * doc/posix-functions/wctrans.texi: Likewise.
6097         * doc/posix-functions/wctype.texi: Likewise.
6098         * doc/posix-functions/wcwidth.texi: Likewise.
6099         * doc/posix-functions/wmemchr.texi: Likewise.
6100         * doc/posix-functions/wmemcmp.texi: Likewise.
6101         * doc/posix-functions/wmemcpy.texi: Likewise.
6102         * doc/posix-functions/wmemmove.texi: Likewise.
6103         * doc/posix-functions/wmemset.texi: Likewise.
6104         * doc/posix-functions/wprintf.texi: Likewise.
6105         * doc/posix-functions/wscanf.texi: Likewise.
6106
6107 2008-12-21  Bruno Haible  <bruno@clisp.org>
6108
6109         Update doc for HP-UX 11.11.
6110         * doc/posix-functions/btowc.texi: Clarify that the function is missing
6111         in HP-UX version 11.00, not in all versions of HP-UX 11.
6112         * doc/posix-functions/fwide.texi: Likewise.
6113         * doc/posix-functions/fwprintf.texi: Likewise.
6114         * doc/posix-functions/fwscanf.texi: Likewise.
6115         * doc/posix-functions/inet_ntop.texi: Likewise.
6116         * doc/posix-functions/inet_pton.texi: Likewise.
6117         * doc/posix-functions/mbrlen.texi: Likewise.
6118         * doc/posix-functions/mbrtowc.texi: Likewise.
6119         * doc/posix-functions/mbsinit.texi: Likewise.
6120         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6121         * doc/posix-functions/swprintf.texi: Likewise.
6122         * doc/posix-functions/swscanf.texi: Likewise.
6123         * doc/posix-functions/towctrans.texi: Likewise.
6124         * doc/posix-functions/vfwprintf.texi: Likewise.
6125         * doc/posix-functions/vswprintf.texi: Likewise.
6126         * doc/posix-functions/vwprintf.texi: Likewise.
6127         * doc/posix-functions/wcrtomb.texi: Likewise.
6128         * doc/posix-functions/wcsrtombs.texi: Likewise.
6129         * doc/posix-functions/wcsstr.texi: Likewise.
6130         * doc/posix-functions/wctob.texi: Likewise.
6131         * doc/posix-functions/wctrans.texi: Likewise.
6132         * doc/posix-functions/wmemchr.texi: Likewise.
6133         * doc/posix-functions/wmemcmp.texi: Likewise.
6134         * doc/posix-functions/wmemcpy.texi: Likewise.
6135         * doc/posix-functions/wmemmove.texi: Likewise.
6136         * doc/posix-functions/wmemset.texi: Likewise.
6137         * doc/posix-functions/wprintf.texi: Likewise.
6138         * doc/posix-functions/wscanf.texi: Likewise.
6139
6140 2008-12-21  Bruno Haible  <bruno@clisp.org>
6141
6142         Work around a portability problem.
6143         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
6144         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
6145
6146 2008-12-20  Bruno Haible  <bruno@clisp.org>
6147
6148         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
6149         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
6150         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
6151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
6152         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
6153
6154         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
6155         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
6156         set.
6157         (GNULIB_defined_mbstate_t): New macro.
6158         (mbsinit): Redefine if REPLACE_MBSINIT is set.
6159         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
6160         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
6161         reuses the system's mbrtowc function but works around the bugs.
6162         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
6163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
6164         macros.
6165         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
6166         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
6167         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
6168         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
6169         REPLACE_MBSINIT if mbsinit needs to be overridden.
6170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
6171         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6172         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
6173         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6174         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6175         m4/locale-zh.m4.
6176         (Depends): Add mbsinit.
6177         * modules/mbsinit (Depends): Add mbrtowc.
6178         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
6179
6180 2008-12-20  Bruno Haible  <bruno@clisp.org>
6181
6182         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
6183         so that there are no conversion errors on AIX.
6184         * tests/test-mbsrtowcs.c (main): LIkewise.
6185
6186 2008-12-20  Bruno Haible  <bruno@clisp.org>
6187
6188         Work around wctob bug on Solaris <= 9.
6189         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
6190         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
6191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
6192         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
6193         * modules/wctob (Files): Add m4/locale-fr.m4.
6194         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
6195
6196 2008-12-20  Bruno Haible  <bruno@clisp.org>
6197
6198         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
6199         /dev/null.
6200         * tests/test-select-in.sh: Likewise.
6201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6202
6203 2008-12-20  Bruno Haible  <bruno@clisp.org>
6204
6205         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
6206         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
6207         Cygwin 1.5.x.
6208
6209 2008-12-20  Bruno Haible  <bruno@clisp.org>
6210
6211         Ensure mbstate_t is defined on HP-UX 11.11.
6212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
6213         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
6214         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
6215         AC_USE_SYSTEM_EXTENSIONS.
6216         * modules/fnmatch (Depends-on): Add extensions.
6217         * modules/mbrlen (Depends-on): Likewise.
6218         * modules/mbrtowc (Depends-on): Likewise.
6219         * modules/mbsinit (Depends-on): Likewise.
6220         * modules/mbsrtowcs (Depends-on): Likewise.
6221         * modules/mbswidth (Depends-on): Likewise.
6222         * modules/quotearg (Depends-on): Likewise.
6223         * modules/strftime (Depends-on): Likewise.
6224
6225 2008-12-20  Bruno Haible  <bruno@clisp.org>
6226
6227         Ensure wctob is declared on IRIX 6.5.
6228         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
6229         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
6230         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
6231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
6232         of HAVE_WCTOB.
6233         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
6234         HAVE_WCTOB.
6235         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
6236
6237 2008-12-19  Bruno Haible  <bruno@clisp.org>
6238
6239         * modules/mbsrtowcs-tests: New file.
6240         * tests/test-mbsrtowcs1.sh: New file.
6241         * tests/test-mbsrtowcs2.sh: New file.
6242         * tests/test-mbsrtowcs3.sh: New file.
6243         * tests/test-mbsrtowcs4.sh: New file.
6244         * tests/test-mbsrtowcs.c: New file.
6245
6246         New module 'mbsrtowcs'.
6247         * lib/wchar.in.h (mbsrtowcs): New declaration.
6248         * lib/mbsrtowcs.c: New file.
6249         * m4/mbsrtowcs.m4: New file.
6250         * modules/mbsrtowcs: New file.
6251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
6252         HAVE_MBSRTOWCS.
6253         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
6254         HAVE_MBSRTOWCS.
6255         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
6256
6257 2008-12-19  Bruno Haible  <bruno@clisp.org>
6258
6259         New module 'mbrlen'.
6260         * lib/wchar.in.h (mbrlen): New declaration.
6261         * lib/mbrlen.c: New file.
6262         * m4/mbrlen.m4: New file.
6263         * modules/mbrlen: New file.
6264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
6265         HAVE_MBRLEN.
6266         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
6267         HAVE_MBRLEN.
6268         * doc/posix-functions/mbrlen.texi: Document the new module.
6269
6270 2008-12-19  Bruno Haible  <bruno@clisp.org>
6271
6272         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
6273         * modules/mbrtowc (Depends-on): Add verify.
6274         Suggested by Paul Eggert.
6275
6276 2008-12-18  Bruno Haible  <bruno@clisp.org>
6277
6278         * modules/mbsinit-tests: New file.
6279         * tests/test-mbsinit.sh: New file.
6280         * tests/test-mbsinit.c: New file.
6281
6282 2008-12-18  Bruno Haible  <bruno@clisp.org>
6283
6284         * modules/mbrtowc-tests: New file.
6285         * tests/test-mbrtowc1.sh: New file.
6286         * tests/test-mbrtowc2.sh: New file.
6287         * tests/test-mbrtowc3.sh: New file.
6288         * tests/test-mbrtowc4.sh: New file.
6289         * tests/test-mbrtowc.c: New file.
6290
6291         New module 'mbrtowc'.
6292         * lib/wchar.in.h (mbstate_t): Override when the system does not have
6293         mbsinit and mbrtowc.
6294         (mbrtowc): New declaration.
6295         * lib/mbrtowc.c: New file.
6296         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
6297         * modules/mbrtowc: New file.
6298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
6299         HAVE_MBRTOWC.
6300         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
6301         HAVE_MBRTOWC.
6302         * doc/posix-functions/mbrtowc.texi: Document the new module.
6303
6304 2008-12-18  Bruno Haible  <bruno@clisp.org>
6305
6306         New module 'wctob'.
6307         * lib/wchar.in.h (wctob): New declaration.
6308         * lib/wctob.c: New file.
6309         * m4/wctob.m4: New file.
6310         * modules/wctob: New file.
6311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
6312         HAVE_WCTOB.
6313         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
6314         * doc/posix-functions/wctob.texi: Document the new module.
6315
6316 2008-12-18  Bruno Haible  <bruno@clisp.org>
6317
6318         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
6319         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
6320
6321 2008-12-18  Simon Josefsson  <simon@josefsson.org>
6322
6323         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
6324         G. Christensen" <tgc@jupiterrise.com>.
6325
6326         * lib/flock.c: Need to include errno.h.  Reported by "Tom
6327         G. Christensen" <tgc@jupiterrise.com>.
6328
6329         * lib/flock.c: Need to include string.h.  Reported by "Tom
6330         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
6331         <ebb9@byu.net>.
6332
6333 2008-12-18  Bruno Haible  <bruno@clisp.org>
6334
6335         * m4/locale-ja.m4: New file, from GNU gettext.
6336
6337 2008-12-17  Bruno Haible  <bruno@clisp.org>
6338
6339         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
6340         Suggested by Eric Blake.
6341
6342 2008-12-17  Bruno Haible  <bruno@clisp.org>
6343
6344         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
6345
6346 2008-12-17  Bruno Haible  <bruno@clisp.org>
6347
6348         * lib/mbsinit.c: Include verify.h. Verify an assumption.
6349         * modules/mbsinit (Depends-on): Add verify.
6350         Suggested by Paul Eggert.
6351
6352 2008-12-17  Bruno Haible  <bruno@clisp.org>
6353
6354         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
6355         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
6356         gl_FUNC_MBRTOWC.
6357         * m4/mbiter.m4 (gl_MBITER): LIkewise.
6358         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
6359         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
6360         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
6361         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
6362         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
6363         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
6364         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
6365         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
6366         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
6367         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
6368         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
6369         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
6370         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
6371         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
6372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6373         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
6374         * modules/trim (configure.ac): Likewise.
6375
6376 2008-12-17  Bruno Haible  <bruno@clisp.org>
6377
6378         * modules/btowc-tests: New file.
6379         * tests/test-btowc1.sh: New file.
6380         * tests/test-btowc2.sh: New file.
6381         * tests/test-btowc.c: New file.
6382
6383         New module 'btowc'.
6384         * lib/wchar.in.h (btowc): New declaration.
6385         * lib/btowc.c: New file.
6386         * m4/btowc.m4: New file.
6387         * modules/btowc: New file.
6388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
6389         HAVE_BTOWC.
6390         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
6391         * doc/posix-functions/btowc.texi: Document the new module.
6392
6393 2008-12-17  Bruno Haible  <bruno@clisp.org>
6394
6395         New module 'mbsinit'.
6396         * lib/wchar.in.h (mbsinit): New declaration.
6397         * lib/mbsinit.c: New file.
6398         * m4/mbsinit.m4: New file.
6399         * modules/mbsinit: New file.
6400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
6401         HAVE_MBSINIT.
6402         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
6403         HAVE_MBSINIT.
6404         * doc/posix-functions/mbsinit.texi: Document the new module.
6405
6406 2008-12-16  Bruno Haible  <bruno@clisp.org>
6407
6408         * lib/unistd.in.h: Add comment.
6409         * tests/test-environ.c: Don't include <stdlib.h>.
6410
6411 2008-12-16  Bruno Haible  <bruno@clisp.org>
6412
6413         * lib/parse-duration.h (parse_duration): Document return value
6414         convention.
6415         * lib/parse-duration.c: Include specification header first. Add
6416         comments.
6417         (_): Remove macro.
6418         (parse_year_month_day, parse_hour_minute_second): Move side effects
6419         outside of strchr call.
6420         (parse_non_iso8601): Move side effects outside of isspace call.
6421         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
6422         call.
6423
6424 2008-12-16  Bruno Haible  <bruno@clisp.org>
6425
6426         * tests/test-parse-duration.sh: Produce no output when the test
6427         succeeds.
6428
6429 2008-12-16  Bruno Haible  <bruno@clisp.org>
6430
6431         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
6432         expressions.
6433
6434 2008-12-15  Bruno Haible  <bruno@clisp.org>
6435
6436         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
6437         * doc/glibc-functions/flistxattr.texi: Likewise.
6438         * doc/glibc-functions/fopencookie.texi: Likewise.
6439         * doc/glibc-functions/fremovexattr.texi: Likewise.
6440         * doc/glibc-functions/fsetxattr.texi: Likewise.
6441         * doc/glibc-functions/getxattr.texi: Likewise.
6442         * doc/glibc-functions/lgetxattr.texi: Likewise.
6443         * doc/glibc-functions/listxattr.texi: Likewise.
6444         * doc/glibc-functions/llistxattr.texi: Likewise.
6445         * doc/glibc-functions/lremovexattr.texi: Likewise.
6446         * doc/glibc-functions/lsetxattr.texi: Likewise.
6447         * doc/glibc-functions/removexattr.texi: Likewise.
6448         * doc/glibc-functions/setxattr.texi: Likewise.
6449         * doc/posix-functions/open_memstream.texi: Likewise.
6450
6451 2008-12-15  Eric Blake  <ebb9@byu.net>
6452
6453         Update doc for cygwin 1.7.
6454         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
6455         functions.
6456         * doc/posix-functions/fchmodat.texi: Likewise.
6457         * doc/posix-functions/fchownat.texi: Likewise.
6458         * doc/posix-functions/fdopendir.texi: Likewise.
6459         * doc/posix-functions/fmemopen.texi: Likewise.
6460         * doc/posix-functions/freeaddrinfo.texi: Likewise.
6461         * doc/posix-functions/fstatat.texi: Likewise.
6462         * doc/posix-functions/futimens.texi: Likewise.
6463         * doc/posix-functions/gai_strerror.texi: Likewise.
6464         * doc/posix-functions/getaddrinfo.texi: Likewise.
6465         * doc/posix-functions/getnameinfo.texi: Likewise.
6466         * doc/posix-functions/if_freenameindex.texi: Likewise.
6467         * doc/posix-functions/if_indextoname.texi: Likewise.
6468         * doc/posix-functions/if_nameindex.texi: Likewise.
6469         * doc/posix-functions/if_nametoindex.texi: Likewise.
6470         * doc/posix-functions/insque.texi: Likewise.
6471         * doc/posix-functions/linkat.texi: Likewise.
6472         * doc/posix-functions/llrint.texi: Likewise.
6473         * doc/posix-functions/llrintf.texi: Likewise.
6474         * doc/posix-functions/llrintl.texi: Likewise.
6475         * doc/posix-functions/lockf.texi: Likewise.
6476         * doc/posix-functions/lrintl.texi: Likewise.
6477         * doc/posix-functions/mkdirat.texi: Likewise.
6478         * doc/posix-functions/mkfifoat.texi: Likewise.
6479         * doc/posix-functions/mknodat.texi: Likewise.
6480         * doc/posix-functions/mq_close.texi: Likewise.
6481         * doc/posix-functions/mq_getattr.texi: Likewise.
6482         * doc/posix-functions/mq_notify.texi: Likewise.
6483         * doc/posix-functions/mq_open.texi: Likewise.
6484         * doc/posix-functions/mq_receive.texi: Likewise.
6485         * doc/posix-functions/mq_send.texi: Likewise.
6486         * doc/posix-functions/mq_setattr.texi: Likewise.
6487         * doc/posix-functions/mq_timedreceive.texi: Likewise.
6488         * doc/posix-functions/mq_timedsend.texi: Likewise.
6489         * doc/posix-functions/mq_unlink.texi: Likewise.
6490         * doc/posix-functions/open_memstream.texi: Likewise.
6491         * doc/posix-functions/openat.texi: Likewise.
6492         * doc/posix-functions/posix_fadvise.texi: Likewise.
6493         * doc/posix-functions/posix_fallocate.texi: Likewise.
6494         * doc/posix-functions/posix_madvise.texi: Likewise.
6495         * doc/posix-functions/posix_memalign.texi: Likewise.
6496         * doc/posix-functions/posix_openpt.texi: Likewise.
6497         * doc/posix-functions/readlinkat.texi: Likewise.
6498         * doc/posix-functions/remque.texi: Likewise.
6499         * doc/posix-functions/renameat.texi: Likewise.
6500         * doc/posix-functions/rintl.texi: Likewise.
6501         * doc/posix-functions/sem_unlink.texi: Likewise.
6502         * doc/posix-functions/shm_open.texi: Likewise.
6503         * doc/posix-functions/shm_unlink.texi: Likewise.
6504         * doc/posix-functions/signgam.texi: Likewise.
6505         * doc/posix-functions/sigset.texi: Likewise.
6506         * doc/posix-functions/stpcpy.texi: Likewise.
6507         * doc/posix-functions/stpncpy.texi: Likewise.
6508         * doc/posix-functions/strerror.texi: Likewise.
6509         * doc/posix-functions/strtod.texi: Likewise.
6510         * doc/posix-functions/symlinkat.texi: Likewise.
6511         * doc/posix-functions/unlinkat.texi: Likewise.
6512         * doc/posix-functions/utimensat.texi: Likewise.
6513         * doc/glibc-functions/bindresvport.texi: Likewise.
6514         * doc/glibc-functions/dn_expand.texi: Likewise.
6515         * doc/glibc-functions/exp10.texi: Likewise.
6516         * doc/glibc-functions/exp10f.texi: Likewise.
6517         * doc/glibc-functions/fgetxattr.texi: Likewise.
6518         * doc/glibc-functions/flistxattr.texi: Likewise.
6519         * doc/glibc-functions/fopencookie.texi: Likewise.
6520         * doc/glibc-functions/freeifaddrs.texi: Likewise.
6521         * doc/glibc-functions/fremovexattr.texi: Likewise.
6522         * doc/glibc-functions/fsetxattr.texi: Likewise.
6523         * doc/glibc-functions/getifaddrs.texi: Likewise.
6524         * doc/glibc-functions/getxattr.texi: Likewise.
6525         * doc/glibc-functions/lgetxattr.texi: Likewise.
6526         * doc/glibc-functions/listxattr.texi: Likewise.
6527         * doc/glibc-functions/llistxattr.texi: Likewise.
6528         * doc/glibc-functions/lremovexattr.texi: Likewise.
6529         * doc/glibc-functions/lsetxattr.texi: Likewise.
6530         * doc/glibc-functions/pow10.texi: Likewise.
6531         * doc/glibc-functions/pow10f.texi: Likewise.
6532         * doc/glibc-functions/rcmd_af.texi: Likewise.
6533         * doc/glibc-functions/removexattr.texi: Likewise.
6534         * doc/glibc-functions/res_init.texi: Likewise.
6535         * doc/glibc-functions/res_mkquery.texi: Likewise.
6536         * doc/glibc-functions/res_query.texi: Likewise.
6537         * doc/glibc-functions/res_querydomain.texi: Likewise.
6538         * doc/glibc-functions/res_send.texi: Likewise.
6539         * doc/glibc-functions/rresvport_af.texi: Likewise.
6540         * doc/glibc-functions/setxattr.texi: Likewise.
6541         * doc/glibc-functions/strcasestr.texi: Likewise.
6542
6543 2008-12-15  Bruno Haible  <bruno@clisp.org>
6544
6545         Fix compilation error on OSF/1 4.0.
6546         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
6547         <sys/time.h>, simply delegate to the system header.
6548         Reported by Daniel Richard G. <oss@teragram.com>.
6549
6550 2008-12-15  Bruno Haible  <bruno@clisp.org>
6551
6552         * doc/posix-functions/openat.texi: Mention the 'openat' module.
6553         * doc/posix-functions/fchmodat.texi: Likewise.
6554         * doc/posix-functions/fchownat.texi: Likewise.
6555         * doc/posix-functions/fdopendir.texi: Likewise.
6556         * doc/posix-functions/fstatat.texi: Likewise.
6557         * doc/posix-functions/mkdirat.texi: Likewise.
6558         * doc/posix-functions/unlinkat.texi: Likewise.
6559
6560 2008-12-14  Bruno Haible  <bruno@clisp.org>
6561
6562         Update doc for POSIX:2008.
6563         * doc/posix-functions/faccessat.texi: New file.
6564         * doc/posix-functions/fchmodat.texi: New file.
6565         * doc/posix-functions/fchownat.texi: New file.
6566         * doc/posix-functions/fdopendir.texi: New file.
6567         * doc/posix-functions/fstatat.texi: New file.
6568         * doc/posix-functions/futimens.texi: New file.
6569         * doc/posix-functions/linkat.texi: New file.
6570         * doc/posix-functions/mkdirat.texi: New file.
6571         * doc/posix-functions/mkfifoat.texi: New file.
6572         * doc/posix-functions/mknodat.texi: New file.
6573         * doc/posix-functions/open_wmemstream.texi: New file.
6574         * doc/posix-functions/openat.texi: New file.
6575         * doc/posix-functions/psiginfo.texi: New file.
6576         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
6577         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
6578         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
6579         * doc/posix-functions/readlinkat.texi: New file.
6580         * doc/posix-functions/renameat.texi: New file.
6581         * doc/posix-functions/strerror_l.texi: New file.
6582         * doc/posix-functions/symlinkat.texi: New file.
6583         * doc/posix-functions/unlinkat.texi: New file.
6584         * doc/posix-functions/utimensat.texi: New file.
6585         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6586
6587 2008-12-14  Bruno Haible  <bruno@clisp.org>
6588
6589         Update doc for POSIX:2008.
6590         * doc/posix-functions/alphasort.texi: Renamed from
6591         doc/glibc-functions/alphasort.texi.
6592         * doc/posix-functions/dirfd.texi: Renamed from
6593         doc/glibc-functions/dirfd.texi.
6594         * doc/posix-functions/dprintf.texi: Renamed from
6595         doc/glibc-functions/dprintf.texi.
6596         * doc/posix-functions/duplocale.texi: Renamed from
6597         doc/glibc-functions/duplocale.texi.
6598         * doc/posix-functions/fexecve.texi: Renamed from
6599         doc/glibc-functions/fexecve.texi.
6600         * doc/posix-functions/fmemopen.texi: Renamed from
6601         doc/glibc-functions/fmemopen.texi.
6602         * doc/posix-functions/freelocale.texi: Renamed from
6603         doc/glibc-functions/freelocale.texi.
6604         * doc/posix-functions/getdate_err.texi: Renamed from
6605         doc/glibc-functions/getdate_err.texi.
6606         * doc/posix-functions/isalnum_l.texi: Renamed from
6607         doc/glibc-functions/isalnum_l.texi.
6608         * doc/posix-functions/isalpha_l.texi: Renamed from
6609         doc/glibc-functions/isalpha_l.texi.
6610         * doc/posix-functions/isblank_l.texi: Renamed from
6611         doc/glibc-functions/isblank_l.texi.
6612         * doc/posix-functions/iscntrl_l.texi: Renamed from
6613         doc/glibc-functions/iscntrl_l.texi.
6614         * doc/posix-functions/isdigit_l.texi: Renamed from
6615         doc/glibc-functions/isdigit_l.texi.
6616         * doc/posix-functions/isgraph_l.texi: Renamed from
6617         doc/glibc-functions/isgraph_l.texi.
6618         * doc/posix-functions/islower_l.texi: Renamed from
6619         doc/glibc-functions/islower_l.texi.
6620         * doc/posix-functions/isprint_l.texi: Renamed from
6621         doc/glibc-functions/isprint_l.texi.
6622         * doc/posix-functions/ispunct_l.texi: Renamed from
6623         doc/glibc-functions/ispunct_l.texi.
6624         * doc/posix-functions/isspace_l.texi: Renamed from
6625         doc/glibc-functions/isspace_l.texi.
6626         * doc/posix-functions/isupper_l.texi: Renamed from
6627         doc/glibc-functions/isupper_l.texi.
6628         * doc/posix-functions/iswalnum_l.texi: Renamed from
6629         doc/glibc-functions/iswalnum_l.texi.
6630         * doc/posix-functions/iswalpha_l.texi: Renamed from
6631         doc/glibc-functions/iswalpha_l.texi.
6632         * doc/posix-functions/iswblank_l.texi: Renamed from
6633         doc/glibc-functions/iswblank_l.texi.
6634         * doc/posix-functions/iswcntrl_l.texi: Renamed from
6635         doc/glibc-functions/iswcntrl_l.texi.
6636         * doc/posix-functions/iswctype_l.texi: Renamed from
6637         doc/glibc-functions/iswctype_l.texi.
6638         * doc/posix-functions/iswdigit_l.texi: Renamed from
6639         doc/glibc-functions/iswdigit_l.texi.
6640         * doc/posix-functions/iswgraph_l.texi: Renamed from
6641         doc/glibc-functions/iswgraph_l.texi.
6642         * doc/posix-functions/iswlower_l.texi: Renamed from
6643         doc/glibc-functions/iswlower_l.texi.
6644         * doc/posix-functions/iswprint_l.texi: Renamed from
6645         doc/glibc-functions/iswprint_l.texi.
6646         * doc/posix-functions/iswpunct_l.texi: Renamed from
6647         doc/glibc-functions/iswpunct_l.texi.
6648         * doc/posix-functions/iswspace_l.texi: Renamed from
6649         doc/glibc-functions/iswspace_l.texi.
6650         * doc/posix-functions/iswupper_l.texi: Renamed from
6651         doc/glibc-functions/iswupper_l.texi.
6652         * doc/posix-functions/iswxdigit_l.texi: Renamed from
6653         doc/glibc-functions/iswxdigit_l.texi.
6654         * doc/posix-functions/isxdigit_l.texi: Renamed from
6655         doc/glibc-functions/isxdigit_l.texi.
6656         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
6657         doc/glibc-functions/mbsnrtowcs.texi.
6658         * doc/posix-functions/mkdtemp.texi: Renamed from
6659         doc/glibc-functions/mkdtemp.texi.
6660         * doc/posix-functions/newlocale.texi: Renamed from
6661         doc/glibc-functions/newlocale.texi.
6662         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
6663         doc/glibc-functions/nl_langinfo_l.texi.
6664         * doc/posix-functions/open_memstream.texi: Renamed from
6665         doc/glibc-functions/open_memstream.texi.
6666         * doc/posix-functions/opterr.texi: Renamed from
6667         doc/glibc-functions/opterr.texi.
6668         * doc/posix-functions/optind.texi: Renamed from
6669         doc/glibc-functions/optind.texi.
6670         * doc/posix-functions/optopt.texi: Renamed from
6671         doc/glibc-functions/optopt.texi.
6672         * doc/posix-functions/psignal.texi: Renamed from
6673         doc/glibc-functions/psignal.texi.
6674         * doc/posix-functions/scandir.texi: Renamed from
6675         doc/glibc-functions/scandir.texi.
6676         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
6677         doc/glibc-functions/sched_get_priority_min.texi.
6678         * doc/posix-functions/signgam.texi: Renamed from
6679         doc/glibc-functions/signgam.texi.
6680         * doc/posix-functions/stpcpy.texi: Renamed from
6681         doc/glibc-functions/stpcpy.texi.
6682         * doc/posix-functions/stpncpy.texi: Renamed from
6683         doc/glibc-functions/stpncpy.texi.
6684         * doc/posix-functions/strcasecmp_l.texi: Renamed from
6685         doc/glibc-functions/strcasecmp_l.texi.
6686         * doc/posix-functions/strcoll_l.texi: Renamed from
6687         doc/glibc-functions/strcoll_l.texi.
6688         * doc/posix-functions/strfmon_l.texi: Renamed from
6689         doc/glibc-functions/strfmon_l.texi.
6690         * doc/posix-functions/strftime_l.texi: Renamed from
6691         doc/glibc-functions/strftime_l.texi.
6692         * doc/posix-functions/strncasecmp_l.texi: Renamed from
6693         doc/glibc-functions/strncasecmp_l.texi.
6694         * doc/posix-functions/strndup.texi: Renamed from
6695         doc/glibc-functions/strndup.texi.
6696         * doc/posix-functions/strnlen.texi: Renamed from
6697         doc/glibc-functions/strnlen.texi.
6698         * doc/posix-functions/strsignal.texi: Renamed from
6699         doc/glibc-functions/strsignal.texi.
6700         * doc/posix-functions/strxfrm_l.texi: Renamed from
6701         doc/glibc-functions/strxfrm_l.texi.
6702         * doc/posix-functions/timer_gettime.texi: Renamed from
6703         doc/glibc-functions/timer_gettime.texi.
6704         * doc/posix-functions/tolower_l.texi: Renamed from
6705         doc/glibc-functions/tolower_l.texi.
6706         * doc/posix-functions/toupper_l.texi: Renamed from
6707         doc/glibc-functions/toupper_l.texi.
6708         * doc/posix-functions/towctrans_l.texi: Renamed from
6709         doc/glibc-functions/towctrans_l.texi.
6710         * doc/posix-functions/towlower_l.texi: Renamed from
6711         doc/glibc-functions/towlower_l.texi.
6712         * doc/posix-functions/towupper_l.texi: Renamed from
6713         doc/glibc-functions/towupper_l.texi.
6714         * doc/posix-functions/uselocale.texi: Renamed from
6715         doc/glibc-functions/uselocale.texi.
6716         * doc/posix-functions/vdprintf.texi: Renamed from
6717         doc/glibc-functions/vdprintf.texi.
6718         * doc/posix-functions/wcpcpy.texi:
6719         Renamed from doc/glibc-functions/wcpcpy.texi.
6720         * doc/posix-functions/wcpncpy.texi: Renamed from
6721         doc/glibc-functions/wcpncpy.texi.
6722         * doc/posix-functions/wcscasecmp.texi: Renamed from
6723         doc/glibc-functions/wcscasecmp.texi.
6724         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
6725         doc/glibc-functions/wcscasecmp_l.texi.
6726         * doc/posix-functions/wcscoll_l.texi: Renamed from
6727         doc/glibc-functions/wcscoll_l.texi.
6728         * doc/posix-functions/wcsdup.texi: Renamed from
6729         doc/glibc-functions/wcsdup.texi.
6730         * doc/posix-functions/wcsncasecmp.texi: Renamed from
6731         doc/glibc-functions/wcsncasecmp.texi.
6732         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
6733         doc/glibc-functions/wcsncasecmp_l.texi.
6734         * doc/posix-functions/wcsnlen.texi: Renamed from
6735         doc/glibc-functions/wcsnlen.texi.
6736         * doc/posix-functions/wcsnrtombs.texi: Renamed from
6737         doc/glibc-functions/wcsnrtombs.texi.
6738         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
6739         doc/glibc-functions/wcsxfrm_l.texi.
6740         * doc/posix-functions/wctrans_l.texi: Renamed from
6741         doc/glibc-functions/wctrans_l.texi.
6742         * doc/posix-functions/wctype_l.texi: Renamed from
6743         doc/glibc-functions/wctype_l.texi.
6744         * doc/gnulib.texi (Function Substitutes): Add these subsections.
6745         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
6746         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
6747         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
6748         these subsections.
6749         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
6750         Remove sections.
6751
6752 2008-12-14  Bruno Haible  <bruno@clisp.org>
6753
6754         Update doc for POSIX:2008.
6755         * doc/posix-functions/*.texi: Update URL of POSIX specification.
6756
6757 2008-12-14  Bruno Haible  <bruno@clisp.org>
6758
6759         Update doc for POSIX:2008.
6760         * doc/pastposix-functions/bcmp.texi: Renamed from
6761         doc/posix-functions/bcmp.texi.
6762         * doc/pastposix-functions/bcopy.texi: Renamed from
6763         doc/posix-functions/bcopy.texi.
6764         * doc/pastposix-functions/bsd_signal.texi: Renamed from
6765         doc/posix-functions/bsd_signal.texi.
6766         * doc/pastposix-functions/bzero.texi: Renamed from
6767         doc/posix-functions/bzero.texi.
6768         * doc/pastposix-functions/ecvt.texi: Renamed from
6769         doc/posix-functions/ecvt.texi.
6770         * doc/pastposix-functions/fcvt.texi: Renamed from
6771         doc/posix-functions/fcvt.texi.
6772         * doc/pastposix-functions/ftime.texi: Renamed from
6773         doc/posix-functions/ftime.texi.
6774         * doc/pastposix-functions/gcvt.texi: Renamed from
6775         doc/posix-functions/gcvt.texi.
6776         * doc/pastposix-functions/getcontext.texi: Renamed from
6777         doc/posix-functions/getcontext.texi.
6778         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
6779         doc/posix-functions/gethostbyaddr.texi.
6780         * doc/pastposix-functions/gethostbyname.texi: Renamed from
6781         doc/posix-functions/gethostbyname.texi.
6782         * doc/pastposix-functions/getwd.texi: Renamed from
6783         doc/posix-functions/getwd.texi.
6784         * doc/pastposix-functions/h_errno.texi: Renamed from
6785         doc/posix-functions/h_errno.texi.
6786         * doc/pastposix-functions/index.texi: Renamed from
6787         doc/posix-functions/index.texi.
6788         * doc/pastposix-functions/makecontext.texi: Renamed from
6789         doc/posix-functions/makecontext.texi.
6790         * doc/pastposix-functions/mktemp.texi: Renamed from
6791         doc/posix-functions/mktemp.texi.
6792         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
6793         doc/posix-functions/pthread_attr_getstackaddr.texi.
6794         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
6795         doc/posix-functions/pthread_attr_setstackaddr.texi.
6796         * doc/pastposix-functions/rindex.texi: Renamed from
6797         doc/posix-functions/rindex.texi.
6798         * doc/pastposix-functions/scalb.texi: Renamed from
6799         doc/posix-functions/scalb.texi.
6800         * doc/pastposix-functions/setcontext.texi: Renamed from
6801         doc/posix-functions/setcontext.texi.
6802         * doc/pastposix-functions/swapcontext.texi: Renamed from
6803         doc/posix-functions/swapcontext.texi.
6804         * doc/pastposix-functions/ualarm.texi: Renamed from
6805         doc/posix-functions/ualarm.texi.
6806         * doc/pastposix-functions/usleep.texi: Renamed from
6807         doc/posix-functions/usleep.texi.
6808         * doc/pastposix-functions/vfork.texi: Renamed from
6809         doc/posix-functions/vfork.texi.
6810         * doc/pastposix-functions/wcswcs.texi: Renamed from
6811         doc/posix-functions/wcswcs.texi.
6812         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
6813         (Function Substitutes): Update.
6814
6815 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6816
6817         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
6818         m4/strerror.m4.
6819
6820 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6821             Bruno Haible  <bruno@clisp.org>
6822
6823         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
6824
6825 2008-12-13  Bruno Haible  <bruno@clisp.org>
6826
6827         * modules/strtoull (Depends-on): Remove unistd.
6828
6829 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6830
6831         * modules/strtoull (Depends-on): Add stdlib.
6832
6833 2008-12-11  Simon Josefsson  <simon@josefsson.org>
6834
6835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
6836
6837 2008-12-10  Jim Meyering  <meyering@redhat.com>
6838
6839         gl_ASSERT: don't say assertions are disabled when they're not
6840         * m4/assert.m4 (gl_ASSERT): Do not make configure report
6841         "checking whether to enable assertions... no", when they are in
6842         fact enabled.  This is solely a bug in the output of configure.
6843         In spite of saying "no", NDEBUG was not defined in that case.
6844         Also, as noted by Eric Blake, leave assertions enabled upon
6845         --enable-assert=INVALID.
6846
6847 2008-12-10  Bruno Haible  <bruno@clisp.org>
6848
6849         Change MODULES.html to refer to POSIX:2008 where possible.
6850         * MODULES.html.sh (POSIX2008_URL): New variable.
6851         (posix_headers): Remove sys/timeb, ucontext.
6852         (posix2001_headers): New variable.
6853         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
6854         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
6855         index, makecontext, mktemp, pthread_attr_getstackaddr,
6856         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
6857         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
6858         (posix2001_functions): New variable.
6859         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
6860         otherwise.
6861
6862 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6863
6864         add missing include to parse-duration.c
6865         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
6866         * modules/parse-duration (Depends-on): Add xalloc.
6867
6868         fix sed script reading maint.mk
6869         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
6870         (syntax-check-rules): Use it.
6871
6872 2008-12-09  Bruno Haible  <bruno@clisp.org>
6873
6874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
6875         MacOS X 10.4/PowerPC.
6876         Reported by Simon Josefsson.
6877
6878 2008-12-08  Jim Meyering  <meyering@redhat.com>
6879
6880         work around mingw's lack of some S_IF definitions
6881         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
6882         Reported by Simon Josefsson.
6883
6884 2008-12-08  Bruno Haible  <bruno@clisp.org>
6885
6886         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
6887         applied to variables. Needed on MacOS X 10.4/PowerPC.
6888         Reported by Simon Josefsson.
6889
6890 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
6891         and Eric Blake  <ebb9@byu.net>
6892
6893         assert: honor --enable-assert
6894         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
6895         order to honor --enable-assert, rather than treating it as a
6896         synonym for --disable-assert.
6897
6898 2008-12-08  Jim Meyering  <meyering@redhat.com>
6899
6900         * lib/posixtm.c: Remove now-useless declaration of mktime.
6901
6902         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
6903
6904 2008-12-07  Bruno Haible  <bruno@clisp.org>
6905
6906         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
6907         test_once): Mark functions as static.
6908         * tests/test-tls.c (test_tls): Likewise.
6909
6910 2008-12-07  Bruno Haible  <bruno@clisp.org>
6911
6912         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
6913         iconv_register_autodetect.
6914
6915 2008-12-07  Jim Meyering  <meyering@redhat.com>
6916
6917         posixtm.c: avoid a warning
6918         * lib/posixtm.c (posixtime): Don't initialize tm0.
6919         It's no longer needed to placate gcc4's -Wuninitialized,
6920         and the attempt to placate would elicit a new warning.
6921
6922         unicodeio.c: mark unused parameters
6923         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
6924         (fallback_failure_callback): Likewise.
6925
6926 2008-12-07  Bruno Haible  <bruno@clisp.org>
6927
6928         * gnulib-tool (func_create_testdir): When building the tests
6929         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
6930         Reported by Simon Josefsson.
6931
6932 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6933
6934         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
6935
6936 2008-12-06  Bruno Haible  <bruno@clisp.org>
6937
6938         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
6939         Suggested by Eric Blake.
6940
6941 2008-12-06  Bruno Haible  <bruno@clisp.org>
6942
6943         Fix a c-stack test failure on MacOS X.
6944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
6945         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
6946         handler for SIGBUS as well.
6947         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
6948         install a signal handler for SIGBUS as well.
6949         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
6950
6951 2008-12-06  Bruno Haible  <bruno@clisp.org>
6952
6953         Advocacy documentation.
6954         * doc/gnulib-intro.texi (Benefits): New section.
6955         * doc/gnulib.texi: Update.
6956
6957 2008-12-06  Bruno Haible  <bruno@clisp.org>
6958
6959         Document the 'manywarnings' module.
6960         * doc/manywarnings.texi: New file.
6961         * doc/gnulib.texi: Include it.
6962
6963 2008-12-05  Eric Blake  <ebb9@byu.net>
6964
6965         tests: silence some gcc warnings
6966         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
6967         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
6968         type mismatches.
6969
6970 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6971             Bruno Haible  <bruno@clisp.org>
6972
6973         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
6974
6975 2008-11-29  Jim Meyering  <meyering@redhat.com>
6976
6977         unicodeio.c: mark unused parameters
6978         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
6979         (fallback_failure_callback): Likewise.
6980
6981         fts: fix a thinko
6982         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
6983         (set_stat_type): Return S_IF*-valued "type" directly.
6984         Prompted by James Youngman's spotting a related bug.
6985         Confirmed by further testing through find.
6986
6987         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
6988         * lib/fts.c (D_TYPE): Define.
6989         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
6990         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
6991         (s_ifmt_shift_bits): New function.
6992         (set_stat_type): New function.
6993         (fts_build): When not calling fts_stat, call set_stat_type
6994         to propagate dirent.d_type info to fts_read caller.
6995         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
6996         fts_statp->st_mode type information may be valid.
6997
6998 2008-11-28  Simon Josefsson  <simon@josefsson.org>
6999
7000         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
7001         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
7002         <sds@gnu.org>.
7003
7004 2008-11-20  Bruno Haible  <bruno@clisp.org>
7005
7006         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
7007         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
7008         INCLUDE_NEXT.
7009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
7010         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
7011         * modules/math (Makefile.am): Substitute
7012         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
7013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7014
7015 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
7016             Bruno Haible  <bruno@clisp.org>
7017
7018         * lib/stdint.in.h: Define all type macros so that their expansion is
7019         a single typedef'ed token. Fixes a compilation failure in Boost which
7020         does "using ::int8_t;".
7021
7022 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7023
7024         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
7025         gl_MANYWARN_ALL_GCC.
7026         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
7027         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
7028         * modules/manywarnings: New file.
7029         * MODULES.html.sh: Mention manywarnings module.
7030
7031 2008-11-18  Bruno Haible  <bruno@clisp.org>
7032
7033         * doc/gnulib-tool.texi (Unit tests): New section.
7034
7035 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7036
7037         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
7038         paths like 'lib/po/foo.po'.
7039
7040 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7041
7042         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
7043         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
7044
7045 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7046
7047         * m4/warnings.m4: Use CPPFLAGS to really check whether the
7048         parameter works.
7049
7050 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7051
7052         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
7053
7054 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7055
7056         * modules/parse-duration-tests: New file.
7057         * tests/test-parse-duration.sh: New file.
7058         * tests/test-parse-duration.c: New file.
7059
7060         New module 'parse-duration'.
7061         * lib/parse-duration.h: New file.
7062         * lib/parse-duration.c: New file.
7063         * modules/parse-duration: New file.
7064
7065 2008-11-17  Bruno Haible  <bruno@clisp.org>
7066
7067         * tests/test-select-out.sh: Comment out the first pipe test.
7068         Reported by Simon Josefsson.
7069
7070 2008-11-17  Bruno Haible  <bruno@clisp.org>
7071
7072         * modules/getaddrinfo (Depends-on): Add servent, hostent.
7073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
7074         gl_HOSTENT.
7075
7076 2008-11-17  Bruno Haible  <bruno@clisp.org>
7077
7078         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
7079         -lnetwork and -lnet. Needed for Haiku and BeOS.
7080
7081 2008-11-16  Bruno Haible  <bruno@clisp.org>
7082
7083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
7084
7085 2008-11-16  Bruno Haible  <bruno@clisp.org>
7086
7087         Avoid test failure on Haiku.
7088         * tests/test-fsync.c: Include <errno.h>.
7089         (main): Don't require that fsync (0) fails.
7090
7091 2008-11-15  Bruno Haible  <bruno@clisp.org>
7092
7093         New module 'hostent'.
7094         * modules/hostent: New file.
7095         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
7096
7097 2008-11-15  Bruno Haible  <bruno@clisp.org>
7098
7099         New module 'servent'.
7100         * modules/servent: New file.
7101         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
7102
7103 2008-11-15  Bruno Haible  <bruno@clisp.org>
7104
7105         Avoid generating same test program with two different rules.
7106         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
7107         test-frexp to test-frexp-nolibm.
7108         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
7109         test-frexpl to test-frexpl-nolibm.
7110
7111 2008-11-15  Bruno Haible  <bruno@clisp.org>
7112
7113         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
7114         $(FREXPL_LIBM).
7115
7116 2008-11-15  Bruno Haible  <bruno@clisp.org>
7117
7118         * lib/netdb.in.h: Activate the definitions also when the system's
7119         <netdb.h> has 'struct addrinfo'.
7120         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
7121         EAI_OVERFLOW or AI_NUMERICSERV.
7122         * doc/posix-headers/netdb.texi: Document the problem.
7123
7124 2008-11-15  Bruno Haible  <bruno@clisp.org>
7125
7126         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
7127
7128         Make the 'sched' module work on platforms where <sched.h> exists but
7129         is incomplete (such as Haiku).
7130         * lib/sched.in.h; Include the system's <sched.h> if it exists.
7131         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
7132         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
7133         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
7134         HAVE_STRUCT_SCHED_PARAM.
7135         * modules/sched (Depends-on): Add include_next.
7136         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
7137         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
7138         * doc/posix-headers/sched.texi: Document the issue.
7139
7140 2008-11-13  Jim Meyering  <meyering@redhat.com>
7141
7142         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
7143         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
7144         test would fail due to the difference in the Report bugs to ...
7145         line.  The expected address is empty, "<>", while the actual
7146         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
7147
7148 2008-11-12  Bruno Haible  <bruno@clisp.org>
7149
7150         lstat: don't compile lstat.c on systems lacking lstat
7151         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
7152         which don't have lstat; this is handled by lib/sys_stat.in.h already.
7153         Reported by Daniel P. Berrange via Jim Meyering.
7154
7155 2008-11-12  Jim Meyering  <meyering@redhat.com>
7156
7157         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
7158
7159 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7160
7161         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
7162         instead.
7163
7164 2008-11-12  Bruno Haible  <bruno@clisp.org>
7165
7166         * lib/unicodeio.c: Include unistr.h.
7167         (utf8_wctomb): Remove function.
7168         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
7169
7170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7171
7172         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
7173         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
7174         <bruno@clisp.org>.
7175         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
7176
7177 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7178
7179         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
7180         * doc/gnulib.texi: Add section for warnings.
7181
7182 2008-11-11  Bruno Haible  <bruno@clisp.org>
7183
7184         * lib/sockets.h: Add a comment.
7185
7186 2008-11-11  Karl Berry  <karl@gnu.org>
7187
7188         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
7189
7190 2008-11-11  Eric Blake  <ebb9@byu.net>
7191
7192         fdl.texi: avoid git symlinks
7193         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
7194
7195 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7196
7197         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
7198
7199 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7200
7201         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
7202         (gl_WARN_ADD): Substitute $2 if literal.
7203
7204 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7205
7206         * m4/warning.m4: Remove.
7207
7208 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7209
7210         * m4/warnings.m4: Almost complete rewrite. :-)
7211
7212 2008-11-10  Simon Josefsson  <simon@josefsson.org>
7213
7214         * modules/warnings: New module.
7215         * m4/warnings.m4: New file.
7216         * MODULES.html.sh: Mention warnings module.
7217         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
7218         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7219
7220 2008-11-10  Eric Blake  <ebb9@byu.net>
7221
7222         fdl.texi: make a symlink to the latest version
7223         * doc/standards.texi: Revert today's earlier change.
7224         * doc/fdl-1.2.texi: Rename from old fdl.texi...
7225         * doc/fdl.texi: ...and replace this with a symlink to the newer
7226         fdl-1.3.texi.
7227
7228 2008-11-10  Bruno Haible  <bruno@clisp.org>
7229
7230         * tests/test-select-fd.c (main): Accept the result file name as fourth
7231         argument.
7232         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
7233         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
7234
7235 2008-11-10  Bruno Haible  <bruno@clisp.org>
7236
7237         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
7238         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
7239         as autoconf-substituted macros.
7240         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
7241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
7242         gl_NETDB_H_DEFAULTS. Set these variables.
7243         * modules/netdb (Makefile.am): Substitute these variables.
7244
7245 2008-11-10  Eric Blake  <ebb9@byu.net>
7246
7247         standards.texi: include correct file for FDL 1.3
7248         * doc/standards.texi (GNU Free Documentation License): Change
7249         include file to pull in FDL 1.3, not 1.2.
7250
7251         fdl.texi: revert accidental change to license
7252         * doc/fdl.texi: This is FDL 1.2, not 1.3.
7253
7254 2008-11-10  Bruno Haible  <bruno@clisp.org>
7255
7256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
7257         cross-compiling guesses also when the native compile gives no result.
7258
7259 2008-11-10  Bruno Haible  <bruno@clisp.org>
7260
7261         * lib/spawni.c (__spawni): Force variable into the stack.
7262
7263 2008-11-10  Bruno Haible  <bruno@clisp.org>
7264
7265         Add support for Haiku.
7266         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
7267         glibc and BeOS, but also on Haiku.
7268         * lib/fpurge.c (fpurge): Likewise.
7269         * lib/freadable.c (freadable): Likewise.
7270         * lib/freadahead.c (freadahead): Likewise.
7271         * lib/freading.c (freading): Likewise.
7272         * lib/freadptr.c (freadptr): Likewise.
7273         * lib/freadseek.c (freadptrinc): Likewise.
7274         * lib/fseeko.c (rpl_fseeko): Likewise.
7275         * lib/fseterr.c (fseterr): Likewise.
7276         * lib/fwritable.c (fwritable): Likewise.
7277         * lib/fwriting.c (fwriting): Likewise.
7278         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
7279
7280 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7281
7282         * lib/config.charset: Treat Haiku like BeOS.
7283
7284 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7285
7286         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
7287         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
7288
7289 2008-11-08  Bruno Haible  <bruno@clisp.org>
7290
7291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
7292         AC_CACHE_CHECK.
7293
7294 2008-11-08  Bruno Haible  <bruno@clisp.org>
7295
7296         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
7297
7298 2008-11-08  Bruno Haible  <bruno@clisp.org>
7299
7300         * tests/test-select-fd.c: New file.
7301         * tests/test-select-in.sh: New file.
7302         * tests/test-select-out.sh: New file.
7303         * tests/test-select-stdin.c: New file.
7304         * modules/select-tests (Files): Add the new files.
7305         (Depends-on): Add gettimeofday.
7306         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
7307         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
7308         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
7309
7310 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
7311             Bruno Haible  <bruno@clisp.org>
7312
7313         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
7314
7315 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
7316
7317         * build-aux/pmccabe2html: Added support for C++ source files.
7318
7319 2008-11-05  Ben Pfaff  <blp@gnu.org>
7320
7321         Fix lib/close.c build on Windows.
7322         * modules/close (Files): Add lib/w32sock.h.
7323
7324 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
7325
7326         Accept Bison's NEWS format.
7327         * build-aux/announce-gen (print_news_deltas): Tweak
7328         $re_prefix.
7329
7330 2008-11-04  Bruno Haible  <bruno@clisp.org>
7331
7332         * modules/random_r (Maintainer): Add glibc.
7333
7334 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7335
7336         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
7337         by karl@freefriends.org (Karl Berry).
7338         * doc/alloca.texi: Likewise.
7339         * doc/c-ctype.texi: Likewise.
7340         * doc/c-strcase.texi: Likewise.
7341         * doc/c-strcaseeq.texi: Likewise.
7342         * doc/c-strcasestr.texi: Likewise.
7343         * doc/c-strstr.texi: Likewise.
7344         * doc/c-strtod.texi: Likewise.
7345         * doc/c-strtold.texi: Likewise.
7346         * doc/ctime.texi: Likewise.
7347         * doc/error.texi: Likewise.
7348         * doc/fdl.texi: Likewise.
7349         * doc/gcd.texi: Likewise.
7350         * doc/getdate.texi: Likewise.
7351         * doc/gnulib-intro.texi: Likewise.
7352         * doc/gnulib-tool.texi: Likewise.
7353         * doc/gnulib.texi: Likewise.
7354         * doc/inet_ntoa.texi: Likewise.
7355         * doc/maintain.texi: Likewise.
7356         * doc/make-stds.texi: Likewise.
7357         * doc/quote.texi: Likewise.
7358         * doc/regexprops-generic.texi: Likewise.
7359         * doc/standards.texi: Likewise.
7360         * doc/verify.texi: Likewise.
7361         * doc/visibility.texi: Likewise.
7362         * doc/gnulib.texi (GNU Free Documentation License): Include
7363         fdl-1.3.texi instead of fdl.texi.
7364
7365 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7366
7367         * doc/fdl-1.3.texi: New file, from
7368         <http://www.gnu.org/licenses/fdl-1.3.texi>.
7369         * modules/fdl-1.3: Add.
7370         * MODULES.html.sh: Add fdl-1.3.
7371
7372 2008-11-03  Bruno Haible  <bruno@clisp.org>
7373
7374         Make determination of absolute name of header file work with AIX xlc.
7375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
7376         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
7377         preprocessing.
7378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7379         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7380
7381 2008-11-03  Simon Josefsson  <simon@josefsson.org>
7382
7383         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
7384         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
7385         <ludo@gnu.org>.
7386
7387 2008-11-02  Bruno Haible  <bruno@clisp.org>
7388
7389         Mark 'strpbrk' obsolete.
7390         * modules/strpbrk (Status, Notice): New sections.
7391         * modules/strtok_r (Depends-on): Add strpbrk.
7392
7393 2008-11-02  Bruno Haible  <bruno@clisp.org>
7394
7395         Mark 'strdup' obsolete.
7396         * modules/strdup (Status, Notice): New sections.
7397         * modules/findprog (Depends-on): Add strdup.
7398         * modules/getaddrinfo (Depends-on): Likewise.
7399         * modules/localename (Depends-on): Likewise.
7400         * modules/relocatable-lib (Depends-on): Likewise.
7401         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
7402         * modules/relocatable-prog (Depends-on): Likewise.
7403         * modules/trim (Depends-on): Likewise.
7404         * modules/unictype/gen-ctype (Depends-on): Likewise.
7405         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7406
7407 2008-11-02  Bruno Haible  <bruno@clisp.org>
7408
7409         Mark 'strcspn' obsolete.
7410         * modules/strcspn (Status, Notice): New sections.
7411
7412 2008-11-02  Bruno Haible  <bruno@clisp.org>
7413
7414         Mark 'rmdir' obsolete.
7415         * modules/rmdir (Status, Notice): New sections.
7416         * modules/clean-temp (Depends-on): Add rmdir.
7417         * modules/openat (Depends-on): Likewise.
7418
7419 2008-11-02  Bruno Haible  <bruno@clisp.org>
7420
7421         Mark 'raise' obsolete.
7422         * modules/raise (Status, Notice): New sections.
7423         (Include): Specify <signal.h>.
7424         * modules/stdio (Depends-on): Add raise.
7425         * modules/write (Depends-on): Likewise.
7426
7427 2008-11-02  Bruno Haible  <bruno@clisp.org>
7428
7429         Mark 'memset' obsolete.
7430         * modules/memset (Status, Notice): New sections.
7431
7432 2008-11-02  Bruno Haible  <bruno@clisp.org>
7433
7434         Mark 'memmove' obsolete.
7435         * modules/memmove (Status, Notice): New sections.
7436         * modules/argp (Depends-on): Add memmove.
7437         * modules/argz (Depends-on): Likewise.
7438         * modules/canonicalize (Depends-on): Likewise.
7439         * modules/canonicalize-lgpl (Depends-on): Likewise.
7440         * modules/fts (Depends-on): Likewise.
7441         * modules/getcwd (Depends-on): Likewise.
7442         * modules/human (Depends-on): Likewise.
7443         * modules/regex (Depends-on): Likewise.
7444         * modules/striconveh (Depends-on): Likewise.
7445         * modules/trim (Depends-on): Likewise.
7446         * modules/unistr/u8-move (Depends-on): Likewise.
7447         * modules/unistr/u16-move (Depends-on): Likewise.
7448         * modules/unistr/u32-move (Depends-on): Likewise.
7449
7450 2008-11-02  Bruno Haible  <bruno@clisp.org>
7451
7452         Mark 'memcpy' obsolete.
7453         * modules/memcpy (Status, Notice): New sections.
7454
7455 2008-11-02  Bruno Haible  <bruno@clisp.org>
7456
7457         Mark 'memcmp' obsolete.
7458         * modules/memcmp (Status, Notice): New sections.
7459         * modules/argmatch (Depends-on): Add memchr.
7460         * modules/backupfile (Depends-on): Likewise.
7461         * modules/c-strcasestr (Depends-on): Likewise.
7462         * modules/crypto/des (Depends-on): Likewise.
7463         * modules/csharpcomp (Depends-on): Likewise.
7464         * modules/fnmatch (Depends-on): Likewise.
7465         * modules/git-merge-changelog (Depends-on): Likewise.
7466         * modules/isnand (Depends-on): Likewise.
7467         * modules/isnand-nolibm (Depends-on): Likewise.
7468         * modules/isnanf (Depends-on): Likewise.
7469         * modules/isnanf-nolibm (Depends-on): Likewise.
7470         * modules/isnanl (Depends-on): Likewise.
7471         * modules/isnanl-nolibm (Depends-on): Likewise.
7472         * modules/mbchar (Depends-on): Likewise.
7473         * modules/memcoll (Depends-on): Likewise.
7474         * modules/quotearg (Depends-on): Likewise.
7475         * modules/regex (Depends-on): Likewise.
7476         * modules/relocatable-prog (Depends-on): Likewise.
7477         * modules/same (Depends-on): Likewise.
7478         * modules/signbit (Depends-on): Likewise.
7479         * modules/strcasestr-simple (Depends-on): Likewise.
7480         * modules/unictype/gen-ctype (Depends-on): Likewise.
7481         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7482         * modules/uniname/uniname (Depends-on): Likewise.
7483         * modules/unistr/u8-cmp (Depends-on): Likewise.
7484
7485 2008-11-02  Bruno Haible  <bruno@clisp.org>
7486
7487         Mark 'memchr' obsolete.
7488         * modules/memchr (Status, Notice): New sections.
7489         * modules/argp (Depends-on): Add memchr.
7490         * modules/base64 (Depends-on): Likewise.
7491         * modules/c-strcasestr (Depends-on): Likewise.
7492         * modules/chdir-long (Depends-on): Likewise.
7493         * modules/fnmatch (Depends-on): Likewise.
7494         * modules/getsubopt (Depends-on): Likewise.
7495         * modules/git-merge-changelog (Depends-on): Likewise.
7496         * modules/glob (Depends-on): Likewise.
7497         * modules/strcasestr-simple (Depends-on): Likewise.
7498         * modules/strnlen (Depends-on): Likewise.
7499
7500 2008-11-02  Bruno Haible  <bruno@clisp.org>
7501
7502         Mark 'atexit' obsolete.
7503         * modules/atexit (Status, Notice): New sections.
7504         * modules/chdir-long (Depends-on): Add atexit.
7505         * modules/wait-process (Depends-on): Likewise.
7506
7507 2008-11-02  Bruno Haible  <bruno@clisp.org>
7508
7509         * gnulib-tool: New option --with-obsolete.
7510         (func_usage): Document it.
7511         (func_modules_transitive_closure): Drop obsolete dependencies if
7512         incobsolete is not true.
7513         (func_import): Read and save the incobsolete variable to the cache.
7514
7515 2008-11-02  Bruno Haible  <bruno@clisp.org>
7516
7517         * modules/TEMPLATE-EXTENDED: New field 'Status'.
7518         * gnulib-tool: New option --extract-status.
7519         (func_usage): Document it.
7520         (sed_extract_prog): Recognize it.
7521         (func_get_status): New function.
7522
7523 2008-10-30  Simon Josefsson  <simon@josefsson.org>
7524
7525         * modules/sockets (License): Change from LGPL to LGPLv2+.
7526
7527 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7528
7529         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
7530
7531 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7532
7533         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7534         Mention times and sys_times.
7535         * modules/sys_times, modules/sys_times-tests: New modules.
7536         * modules/times, modules/times-tests: Likewise
7537         * m4/sys_times_h.m4: New file.
7538         * lib/sys_times.in.h: Likewise
7539         * lib/times.c: Likewise.
7540         * tests/test-sys_times.c: Likewise.
7541         * tests/test-times.c: Likewise.
7542         * doc/posix-headers/sys_times.texi: Update.
7543         * doc/posix-functions/times.texi: Update.
7544
7545 2008-10-28  Jim Meyering  <meyering@redhat.com>
7546
7547         * modules/tempname (Depends-on): Add lstat.
7548
7549         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
7550
7551 2008-10-28  Simon Josefsson  <simon@josefsson.org>
7552
7553         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
7554         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
7555         using idiom used elsewhere in gnulib.
7556
7557 2008-10-27  Jim Meyering  <meyering@redhat.com>
7558
7559         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
7560
7561 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7562
7563         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
7564         TESTS_ENVIRONMENT, for shell scripts that needs to call built
7565         programs.
7566         * tests/test-argp-2.sh: Use $EXEEXT when needed.
7567
7568 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7569
7570         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
7571
7572 2008-10-27  Bruno Haible  <bruno@clisp.org>
7573
7574         * tests/test-lstat.c: Include <stdio.h>.
7575
7576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
7577
7578         * modules/lstat-tests: New module.
7579         * tests/test-lstat.c: New file.
7580
7581 2008-10-26  Jim Meyering  <meyering@redhat.com>
7582
7583         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
7584
7585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7586             Bruno Haible  <bruno@clisp.org>
7587
7588         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
7589         * modules/configmake (Include): Add a note that the include must come
7590         after all system headers.
7591         * lib/javaversion.c: Include configmake.h after all other includes.
7592
7593 2008-10-26  Bruno Haible  <bruno@clisp.org>
7594
7595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
7596         HAVE_STRUCT_RANDOM_DATA to 1.
7597         (gl_STDLIB_H): Simplify.
7598
7599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7600
7601         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
7602         substitute HAVE_STRUCT_RANDOM_DATA.
7603         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
7604         random_data.
7605         * modules/stdlib (Makefile.am): Substitute
7606         HAVE_STRUCT_RANDOM_DATA.
7607
7608 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7609
7610         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
7611         * doc/gnulib-intro.texi (Copyright): Likewise.
7612
7613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
7614
7615         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
7616         findings.
7617
7618 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
7619             Bruno Haible  <bruno@clisp.org>
7620
7621         * lib/unistd.in.h: Include <winsock2.h>.
7622         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
7623         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
7624         Provide dummy declarations.
7625         (gethostname): Override.
7626         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
7627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
7628         gl_PREREQ_SYS_H_WINSOCK2.
7629         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
7630         * doc/posix-functions/gethostname.texi: More details.
7631
7632 2008-10-25  Bruno Haible  <bruno@clisp.org>
7633
7634         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
7635         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
7636         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
7637
7638         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
7639         here ...
7640         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
7641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
7642         gl_UNISTD_H_DEFAULTS.
7643
7644 2008-10-25  Eric Blake  <ebb9@byu.net>
7645
7646         signbit: avoid spurious compiler failure
7647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
7648         declarations inside function.
7649
7650 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7651             Bruno Haible  <bruno@clisp.org>
7652
7653         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
7654         * modules/random_r (Depends-on): Add stdint.
7655
7656 2008-10-24  Bruno Haible  <bruno@clisp.org>
7657
7658         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
7659         Eggert.
7660         * modules/strerror (License): Likewise.
7661
7662 2008-10-24  Jim Meyering  <meyering@redhat.com>
7663
7664         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
7665         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
7666
7667 2008-10-24  Eric Blake  <ebb9@byu.net>
7668
7669         getgroups: fix compilation when getgroups is available
7670         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
7671         but with <config.h> override of getgroups disabled.
7672
7673 2008-10-24  Simon Josefsson  <simon@josefsson.org>
7674
7675         * doc/gnulib.texi (Header files): Add note about C++ problems.
7676         Explained by Bruno Haible <bruno@clisp.org>.
7677
7678 2008-10-23  Bruno Haible  <bruno@clisp.org>
7679
7680         Define a dummy SA_NODEFER macro on Interix.
7681         * lib/signal.in.h (SA_NODEFER): Define fallback.
7682         Reported by Aleksey Cheusov <cheusov@tut.by> via
7683         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
7684
7685 2008-10-23  Bruno Haible  <bruno@clisp.org>
7686
7687         * modules/freadahead (License): Change to LGPLv2+.
7688         Suggested by Simon Josefsson.
7689
7690 2008-10-23  Jim Meyering  <meyering@redhat.com>
7691
7692         random_r: new module
7693         * modules/random_r: New file.
7694         * m4/random_r.m4: New file.
7695         * lib/random_r.c: New file, from glibc.
7696         * modules/random_r-tests: New file.
7697         * tests/test-random_r.c: New file.
7698         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
7699          Declare.
7700         (RAND_MAX): Define.
7701         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
7702         * modules/stdlib: Substitute them, too.
7703         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
7704         * doc/glibc-functions/initstate_r.texi: Mention the new module.
7705         * doc/glibc-functions/random_r.texi: Likewise.
7706         * doc/glibc-functions/setstate_r.texi: Likewise.
7707         * doc/glibc-functions/srandom_r.texi: Likewise.
7708         * config/srclist.txt: Mention it.
7709
7710 2008-10-23  David Lutterkort  <lutter@redhat.com>
7711
7712         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
7713         link requirement
7714
7715 2008-10-23  Jim Meyering  <meyering@redhat.com>
7716
7717         selinux-h: mark parameters of stub functions as intentionally unused
7718         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
7719         * lib/se-context.in.h: Likewise.
7720
7721 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7722
7723         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
7724
7725 2008-10-22  Simon Josefsson  <simon@josefsson.org>
7726
7727         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
7728
7729 2008-10-22  Eric Blake  <ebb9@byu.net>
7730
7731         glthread/thread: avoid compiler warning
7732         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
7733         Add unreachable abort to silence compiler.
7734
7735 2008-10-22  Eric Blake  <ebb9@byu.net>
7736
7737         netdb: also supply struct addrinfo for cygwin 1.5.x
7738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
7739         older cygwin.
7740         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
7741         cygwin.
7742         * doc/posix-headers/netdb.texi (netdb.h): Document this.
7743
7744 2008-10-22  Bruno Haible  <bruno@clisp.org>
7745
7746         * users.txt: Update entry about pspp.
7747
7748 2008-10-21  Bruno Haible  <bruno@clisp.org>
7749
7750         Simplification.
7751         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
7752         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
7753
7754         Simplification.
7755         * lib/ioctl.c (ioctl): Don't undefine.
7756         * lib/socket.c (socket): Don't undefine.
7757
7758         Remove unused module indicator macros.
7759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
7760         GNULIB_$1 as a C macro.
7761
7762         * doc/posix-functions/close.texi: Undo last change.
7763         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
7764         Windows platforms.
7765
7766 2008-10-21  Bruno Haible  <bruno@clisp.org>
7767
7768         Add gethostname() declaration to <unistd.h>.
7769         * lib/unistd.in.h (gethostname): New declaration.
7770         * lib/gethostname.c: Include <unistd.h>.
7771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
7772         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
7773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
7774         and HAVE_GETHOSTNAME.
7775         * modules/gethostname (Depends-on): Add unistd.
7776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7777         (Include): Specify <unistd.h>.
7778         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
7779         HAVE_GETHOSTNAME.
7780         * tests/test-gethostname.c: Include <unistd.h> first.
7781
7782 2008-10-21  Bruno Haible  <bruno@clisp.org>
7783
7784         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
7785         * modules/select-tests (Depends-on): Likewise.
7786         Reported by Simon Josefsson.
7787
7788 2008-10-21  Simon Josefsson  <simon@josefsson.org>
7789
7790         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
7791         * lib/accept.c: New file, based on winsock.c.
7792         * lib/bind.c: New file, based on winsock.c.
7793         * lib/connect.c: New file, based on winsock.c.
7794         * lib/getpeername.c: New file, based on winsock.c.
7795         * lib/getsockname.c: New file, based on winsock.c.
7796         * lib/getsockopt.c: New file, based on winsock.c.
7797         * lib/ioctl.c: New file, based on winsock.c.
7798         * lib/listen.c: New file, based on winsock.c.
7799         * lib/recv.c: New file, based on winsock.c.
7800         * lib/recvfrom.c: New file, based on winsock.c.
7801         * lib/send.c: New file, based on winsock.c.
7802         * lib/sendto.c: New file, based on winsock.c.
7803         * lib/setsockopt.c: New file, based on winsock.c.
7804         * lib/shutdown.c: New file, based on winsock.c.
7805         * lib/socket.c: New file, based on winsock.c.
7806         * lib/w32sock.h: New file, based on winsock.c.
7807         * lib/winsock.c: Remove file.
7808         * modules/accept: Likewise.
7809         * modules/bind: Likewise.
7810         * modules/connect: Likewise.
7811         * modules/getpeername: Likewise.
7812         * modules/getsockname: Likewise.
7813         * modules/getsockopt: Likewise.
7814         * modules/ioctl: Likewise.
7815         * modules/listen: Likewise.
7816         * modules/recv: Likewise.
7817         * modules/recvfrom: Likewise.
7818         * modules/send: Likewise.
7819         * modules/sendto: Likewise.
7820         * modules/setsockopt: Likewise.
7821         * modules/shutdown: Likewise.
7822         * modules/socket: Use socket.c instead of winsock.c.
7823         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
7824         * doc/posix-functions/accept.texi: Doc fix.
7825         * doc/posix-functions/bind.texi: Doc fix.
7826         * doc/posix-functions/close.texi: Doc fix.
7827         * doc/posix-functions/connect.texi: Doc fix.
7828         * doc/posix-functions/getpeername.texi: Doc fix.
7829         * doc/posix-functions/getsockname.texi: Doc fix.
7830         * doc/posix-functions/getsockopt.texi: Doc fix.
7831         * doc/posix-functions/ioctl.texi: Doc fix.
7832         * doc/posix-functions/listen.texi: Doc fix.
7833         * doc/posix-functions/recv.texi: Doc fix.
7834         * doc/posix-functions/recvfrom.texi: Doc fix.
7835         * doc/posix-functions/send.texi: Doc fix.
7836         * doc/posix-functions/sendto.texi: Doc fix.
7837         * doc/posix-functions/setsockopt.texi: Doc fix.
7838         * doc/posix-functions/shutdown.texi: Doc fix.
7839         * doc/posix-functions/socket.texi: Doc fix.
7840
7841 2008-10-20  Bruno Haible  <bruno@clisp.org>
7842
7843         Take into account the role of SIGABRT_COMPAT on Windows 2008.
7844         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
7845         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
7846         as an alias for SIGABRT.
7847         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
7848         (sigaction): Map it to SIGABRT.
7849         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
7850
7851 2008-10-20  Bruno Haible  <bruno@clisp.org>
7852
7853         * lib/fts.c: Don't include lstat.h.
7854         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
7855
7856         Move the lstat() declaration to <sys/stat.h>.
7857         * lib/lstat.h: Remove file.
7858         * lib/sys_stat.in.h: Add special invocation convention.
7859         (lstat): New declaration.
7860         * lib/lstat.c (orig_lstat): New function.
7861         (rpl_lstat): Use orig_lstat instead of lstat.
7862         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
7863         AC_C_INLINE. Set REPLACE_LSTAT.
7864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
7865         and REPLACE_LSTAT.
7866         * modules/lstat (Files): Remove lib/lstat.h.
7867         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
7868         (Include): Specify <sys/stat.h> instead of lstat.h.
7869         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
7870         REPLACE_LSTAT.
7871         * NEWS: Mention the change.
7872
7873 2008-10-20  Bruno Haible  <bruno@clisp.org>
7874
7875         * modules/posix_spawn-tests: New file.
7876         * tests/test-posix_spawn3.c: New file.
7877
7878 2008-10-20  Bruno Haible  <bruno@clisp.org>
7879
7880         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
7881         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
7882         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
7883         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
7884         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
7885
7886 2008-10-20  Bruno Haible  <bruno@clisp.org>
7887
7888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
7889         of posix_spawn on AIX 5.3.
7890
7891 2008-10-20  Bruno Haible  <bruno@clisp.org>
7892
7893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
7894
7895 2008-10-20  Bruno Haible  <bruno@clisp.org>
7896
7897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
7898         of AC_LANG_PROGRAM.
7899
7900 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7901
7902         * lib/netdb.in.h: Don't define GNU specific constants until they
7903         are supported or needed.  Reported by Bruno Haible
7904         <bruno@clisp.org>.
7905
7906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7907
7908         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
7909
7910 2008-10-20  Simon Josefsson  <simon@josefsson.org>
7911
7912         * lib/getaddrinfo.h: Remove file.
7913         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
7914         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
7915         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
7916         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
7917         * modules/netdb: Substitute GNULIB_GETADDRINFO.
7918         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
7919         * tests/test-getaddrinfo.c: Likewise.
7920         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
7921         * NEWS: Mention change.
7922
7923 2008-10-19  Bruno Haible  <bruno@clisp.org>
7924
7925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
7926
7927 2008-10-19  Bruno Haible  <bruno@clisp.org>
7928
7929         * lib/wait-process.c: Include simply <sys/wait.h>.
7930         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
7931         WIFSTOPPED): Remove fallback definitions.
7932         * modules/wait-process (Depends-on): Add sys_wait.
7933
7934         New module 'sys_wait'.
7935         * modules/sys_wait: New file.
7936         * lib/sys_wait.in.h: New file, partially copied from
7937         lib/wait-process.c.
7938         * m4/sys_wait_h.m4: New file.
7939         * doc/posix-headers/sys_wait.texi: Mention the new module.
7940
7941 2008-10-19  Bruno Haible  <bruno@clisp.org>
7942
7943         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
7944
7945 2008-10-19  Bruno Haible  <bruno@clisp.org>
7946
7947         Assume that waitpid() fills an 'int' status, not a 'union wait'.
7948         * lib/wait-process.c (WAIT_T): Remove type.
7949         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
7950         (wait_subprocess): Update.
7951
7952 2008-10-19  Bruno Haible  <bruno@clisp.org>
7953
7954         New module 'atoll'.
7955         * modules/atoll: New file.
7956         * lib/stdlib.in.h (atoll): New declaration.
7957         * lib/atoll.c: New file, from glibc with modifications.
7958         * m4/atoll.m4: New file.
7959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
7960         HAVE_ATOLL.
7961         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
7962         * doc/posix-functions/atoll.texi: Mention the new module.
7963
7964 2008-10-19  Bruno Haible  <bruno@clisp.org>
7965
7966         Add strtoull() declaration to <stdlib.h>.
7967         * lib/stdlib.in.h (strtoull): New declaration.
7968         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
7969         Set HAVE_STRTOULL.
7970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
7971         HAVE_STRTOULL.
7972         * modules/strtoull (Depends-on): Add stdlib.
7973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7974         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
7975         HAVE_STRTOULL.
7976
7977 2008-10-19  Bruno Haible  <bruno@clisp.org>
7978
7979         Add strtoll() declaration to <stdlib.h>.
7980         * lib/stdlib.in.h (strtoll): New declaration.
7981         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
7982         Set HAVE_STRTOLL.
7983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
7984         HAVE_STRTOLL.
7985         * modules/strtoll (Depends-on): Add stdlib.
7986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7987         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
7988
7989 2008-10-19  Bruno Haible  <bruno@clisp.org>
7990
7991         * modules/bcopy (Depends-on): Add strings.
7992         (Include): Specify <strings.h>.
7993
7994 2008-10-19  Bruno Haible  <bruno@clisp.org>
7995
7996         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
7997
7998 2008-10-19  Bruno Haible  <bruno@clisp.org>
7999
8000         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
8001         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
8002         mingw.
8003
8004 2008-10-19  Bruno Haible  <bruno@clisp.org>
8005
8006         * lib/atanl.c: Don't include isnanl.h.
8007         * lib/cosl.c: Likewise.
8008         * lib/ldexpl.c: Likewise.
8009         * lib/logl.c: Likewise.
8010         * lib/sinl.c: Likewise.
8011         * lib/sqrtl.c: Likewise.
8012         * lib/tanl.c: Likewise.
8013
8014         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
8015         * lib/isnanf.h: Remove file.
8016         * lib/isnand.h: Remove file.
8017         * lib/isnanl.h: Remove file.
8018         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
8019         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
8020         macros.
8021         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
8022         HAVE_ISNANF, don't define it as a C macro.
8023         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
8024         HAVE_ISNAND, don't define it as a C macro.
8025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
8026         HAVE_ISNANL, don't define it as a C macro.
8027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
8028         HAVE_ISNAN[FDL].
8029         * modules/isnanf (Files): Remove lib/isnanf.h.
8030         (Depends-on): Add math.
8031         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8032         (Include): Specify <math.h> instead of isnanf.h.
8033         * modules/isnand (Files): Remove lib/isnand.h.
8034         (Depends-on): Add math.
8035         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8036         (Include): Specify <math.h> instead of isnand.h.
8037         * modules/isnanl (Files): Remove lib/isnanl.h.
8038         (Depends-on): Add math.
8039         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8040         (Include): Specify <math.h> instead of isnanl.h.
8041         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
8042         HAVE_ISNAN[FDL].
8043         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
8044         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
8045         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
8046         * NEWS: Mention the change.
8047
8048 2008-10-18  Bruno Haible  <bruno@clisp.org>
8049
8050         Add getusershell(), setusershell(), endusershell() declarations to
8051         <unistd.h>.
8052         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
8053         declarations.
8054         * lib/getusershell.c: Include unistd.h.
8055         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
8056         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8057         HAVE_GETUSERSHELL.
8058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
8059         and HAVE_GETUSERSHELL.
8060         * modules/getusershell (Depends-on): Add unistd, extensions.
8061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8062         (Include): Specify <unistd.h>.
8063         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
8064         HAVE_GETUSERSHELL.
8065
8066 2008-10-18  Bruno Haible  <bruno@clisp.org>
8067
8068         Add a getloadavg() declaration to <stdlib.h>.
8069         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
8070         getloadavg declaration.
8071         (getloadavg): New declaration.
8072         * lib/getloadavg.c: Include <stdlib.h> first.
8073         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
8074         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
8075         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
8076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
8077         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8078         * modules/getloadavg (Depends-on): Add stdlib, extensions.
8079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8080         (Include): Specify <stdlib.h>.
8081         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
8082         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8083
8084 2008-10-18  Bruno Haible  <bruno@clisp.org>
8085
8086         * lib/dirchownmod.c: Don't include lchmod.h.
8087
8088         Move the lchmod() declaration to <sys/stat.h>.
8089         * lib/lchmod.h: Remove file.
8090         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
8091         (lchmod): New declaration, moved here from lib/lchown.h.
8092         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
8093         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
8094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
8095         and HAVE_LCHMOD.
8096         * modules/lchmod (Files): Remove lib/lchmod.h.
8097         (Depends-on): Add sys_stat, extensions.
8098         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8099         (Include): Specify <sys/stat.h> instead of lchmod.h.
8100         * modules/sys_stat (Depends-on): Add link-warning.
8101         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
8102         definition of GL_LINK_WARNING.
8103         * NEWS: Mention the change.
8104
8105 2008-10-18  Bruno Haible  <bruno@clisp.org>
8106
8107         * lib/fchdir.c: Don't include dirfd.h.
8108         * lib/fts.c: Likewise.
8109         * lib/getcwd.c: Likewise.
8110         * lib/glob.c: Likewise.
8111
8112         Move the dirfd() declaration to <dirent.h>.
8113         * lib/dirfd.h: Remove file.
8114         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
8115         (dirfd): New declaration.
8116         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
8117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
8118         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
8119         HAVE_DECL_DIRFD.
8120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
8121         HAVE_DECL_DIRFD.
8122         * modules/dirfd (Files): Remove lib/dirfd.h.
8123         (Depends-on): Add dirent, extensions.
8124         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
8125         (Include): Specify <dirent.h> instead of dirfd.h.
8126         * modules/dirent (Depends-on): Add link-warning.
8127         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
8128         definition of GL_LINK_WARNING.
8129         * NEWS: Mention the change.
8130
8131 2008-10-18  Bruno Haible  <bruno@clisp.org>
8132
8133         Move the euidaccess() declaration to <unistd.h>.
8134         * lib/euidaccess.h: Remove file.
8135         * lib/unistd.in.h (euidaccess): New declaration.
8136         * lib/euidaccess.c: Don't include euidaccess.h.
8137         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
8138         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
8139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
8140         and HAVE_EUIDACCESS.
8141         * modules/euidaccess (Files): Remove lib/euidaccess.h.
8142         (Depends-on): Add unistd.
8143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8144         (Include): Specify <unistd.h> instead of euidaccess.h.
8145         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
8146         HAVE_EUIDACCESS.
8147         * NEWS: Mention the change.
8148
8149 2008-10-18  Bruno Haible  <bruno@clisp.org>
8150
8151         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
8152
8153         Move the getdomainname() declaration to <unistd.h>.
8154         * lib/getdomainname.h: Remove file.
8155         * lib/unistd.in.h (getdomainname): New declaration.
8156         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
8157         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8158         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8159         HAVE_GETDOMAINNAME.
8160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8161         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
8162         * modules/getdomainname (Files): Remove lib/getdomainname.h.
8163         (Depends-on): Add unistd, extensions.
8164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8165         (Includes): Specify <unistd.h> instead of getdomainname.h.
8166         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
8167         HAVE_GETDOMAINNAME.
8168         * NEWS: Mention the change.
8169
8170 2008-10-18  Bruno Haible  <bruno@clisp.org>
8171
8172         * modules/dirent: New file.
8173         * m4/dirent_h.m4: New file.
8174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
8175         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
8176         * modules/fchdir (Files): Remove lib/dirent.in.h.
8177         (Depends-on): Add dirent.
8178         (Makefile.am): Move rules to modules/dirent.
8179         * doc/posix-headers/dirent.texi: Mention the new module.
8180
8181 2008-10-18  Bruno Haible  <bruno@clisp.org>
8182
8183         Avoid -Wunused-parameter warnings in public gnulib header files.
8184         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
8185         macro.
8186         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
8187
8188 2008-10-18  Bruno Haible  <bruno@clisp.org>
8189
8190         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
8191         * doc/glibc-functions/error.texi: Mention the module 'error'.
8192         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
8193         * doc/glibc-functions/getdomainname.texi: Mention the module
8194         'getdomainname'.
8195         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
8196         * doc/glibc-functions/getpagesize.texi: Mention the module
8197         'getpagesize'.
8198         * doc/glibc-functions/getusershell.texi: Mention the module
8199         'getusershell'.
8200         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
8201         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
8202         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
8203         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
8204         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
8205         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
8206         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
8207         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
8208         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
8209         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
8210         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
8211         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
8212         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
8213         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
8214
8215 2008-10-17  Bruno Haible  <bruno@clisp.org>
8216
8217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
8218         HP-UX and IRIX, use -0.0L.
8219         * tests/test-ceill.c (minus_zero): Likewise.
8220         * tests/test-floorl.c (minus_zero): Likewise.
8221         * tests/test-frexpl.c (minus_zero): Likewise.
8222         * tests/test-isnan.c (minus_zerol): Likewise.
8223         * tests/test-isnanl.h (minus_zero): Likewise.
8224         * tests/test-ldexpl.c (minus_zero): Likewise.
8225         * tests/test-roundl.c (minus_zero): Likewise.
8226         * tests/test-signbit.c (minus_zerol): Likewise.
8227         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8228         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8229         * tests/test-truncl.c (minus_zero): Likewise.
8230         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8231         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8232         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
8233         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8234
8235 2008-10-17  Bruno Haible  <bruno@clisp.org>
8236
8237         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
8238         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
8239         that it gets activated only for gcc >= 3.0.
8240         * lib/dirent.in.h: Likewise.
8241         * lib/errno.in.h: Likewise.
8242         * lib/fcntl.in.h: Likewise.
8243         * lib/float.in.h: Likewise.
8244         * lib/iconv.in.h: Likewise.
8245         * lib/inttypes.in.h: Likewise.
8246         * lib/locale.in.h: Likewise.
8247         * lib/math.in.h: Likewise.
8248         * lib/netdb.in.h: Likewise.
8249         * lib/netinet_in.in.h: Likewise.
8250         * lib/search.in.h: Likewise.
8251         * lib/signal.in.h: Likewise.
8252         * lib/spawn.in.h: Likewise.
8253         * lib/stdarg.in.h: Likewise.
8254         * lib/stdint.in.h: Likewise.
8255         * lib/stdio.in.h: Likewise.
8256         * lib/stdlib.in.h: Likewise.
8257         * lib/string.in.h: Likewise.
8258         * lib/strings.in.h: Likewise.
8259         * lib/sys_file.in.h: Likewise.
8260         * lib/sys_ioctl.in.h: Likewise.
8261         * lib/sys_select.in.h: Likewise.
8262         * lib/sys_socket.in.h: Likewise.
8263         * lib/sys_stat.in.h: Likewise.
8264         * lib/sys_time.in.h: Likewise.
8265         * lib/sysexits.in.h: Likewise.
8266         * lib/time.in.h: Likewise.
8267         * lib/unistd.in.h: Likewise.
8268         * lib/wchar.in.h: Likewise.
8269         * lib/wctype.in.h: Likewise.
8270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8271
8272 2008-10-17  Jim Meyering  <meyering@redhat.com>
8273
8274         ignore-value: don't depend on inline module
8275         * modules/ignore-value (Depends-on): Remove 'inline'.
8276         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
8277         Suggestion from Bruno Haible.
8278
8279 2008-10-17  Bruno Haible  <bruno@clisp.org>
8280
8281         New implementation of condition variables for Win32.
8282         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
8283         (gl_linked_waitqueue_t): New type.
8284         (gl_cond_t): Use it.
8285         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
8286         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
8287         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
8288         (glthread_cond_init_func, glthread_cond_wait_func,
8289         glthread_cond_timedwait_func, glthread_cond_signal_func,
8290         glthread_cond_broadcast_func, glthread_cond_destroy_func):
8291         Reimplemented on the basis of gl_linked_waitqueue_t.
8292         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
8293         gl_waitqueue_t.
8294         (gl_rwlock_t): Update.
8295         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
8296
8297 2008-10-17  Simon Josefsson  <simon@josefsson.org>
8298
8299         * modules/recvfrom (Depends-on): Add dependency on getpeername.
8300         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8301
8302 2008-10-17  Jim Meyering  <meyering@redhat.com>
8303
8304         ignore-value: new module
8305         * modules/ignore-value: New file.
8306         * lib/ignore-value.h: New file.
8307         * MODULES.html.sh (Compiler warning management): New section,
8308         just for this module.  More to come.
8309
8310 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8311
8312         open-safer.c: avoid 'signed and unsigned in conditional...' warning
8313         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
8314         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
8315
8316 2008-10-16  Jim Meyering  <meyering@redhat.com>
8317
8318         openat-die.c: avoid 'no previous prototype' warning
8319         * lib/openat-die.c: Include "openat.h".
8320         Reported by Reuben Thomas <rrt@sc3d.org>.
8321
8322 2008-10-16  Simon Josefsson  <simon@josefsson.org>
8323
8324         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
8325         * lib/netdb.in.h: Fix typo.
8326         Reported by Bruno Haible  <bruno@clisp.org>
8327
8328         * lib/netdb.in.h: Include sys/socket.h for platforms without
8329         netdb.h, to get structures like hostent on MinGW.
8330         * modules/netdb (Depends-on): Add sys_socket.
8331
8332 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8333
8334         * modules/netdb, modules/netdb-tests: New file.
8335         * m4/netdb_h.m4: New file.
8336         * lib/netdb.in.h: Add, currently just an empty file pending
8337         definitions.
8338         * tests/test-netdb.c: New file.
8339         * doc/posix-headers/netdb.texi: Mention that we replace it if
8340         needed.
8341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8342         netdb.
8343
8344 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8345
8346         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
8347         with code.
8348
8349 2008-10-13  Bruno Haible  <bruno@clisp.org>
8350
8351         * lib/glthread/cond.c (glthread_cond_wait_func,
8352         glthread_cond_timedwait_func): Add a comment.
8353
8354 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8355
8356         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
8357         * tests/test-select.c: Likewise,
8358
8359 2008-10-13  Bruno Haible  <bruno@clisp.org>
8360
8361         * lib/glthread/cond.c (glthread_cond_wait_func,
8362         glthread_cond_timedwait_func): Fix variable name.
8363         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8364
8365 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
8366
8367         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
8368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
8369         struct sockaddr.sa_len.
8370         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
8371
8372 2008-10-13  Simon Josefsson  <simon@josefsson.org>
8373
8374         * build-aux/pmccabe2html: Add css and css_url parameters.
8375
8376 2008-10-12  Bruno Haible  <bruno@clisp.org>
8377
8378         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
8379         calling aclx_get.
8380         Reported by Rainer Tammer <tammer@tammer.net>.
8381
8382 2008-10-12  Bruno Haible  <bruno@clisp.org>
8383
8384         Use msvcrt aware primitives for creation/termination of Win32 threads.
8385         * lib/glthread/thread.c: Include <process.h>.
8386         (glthread_create_func): Use _beginthreadex instead of CreateThread.
8387         (wrapper_func): Update signature.
8388         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
8389
8390 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8391             Bruno Haible  <bruno@clisp.org>
8392
8393         Provide a Win32 implementation of the 'cond' module.
8394         * lib/glthread/cond.h [USE_WIN32]: New implementation.
8395         * lib/glthread/cond.c (glthread_cond_init_func,
8396         glthread_cond_wait_func, glthread_cond_timedwait_func,
8397         glthread_cond_signal_func, glthread_cond_broadcast_func,
8398         glthread_cond_destroy_func) [USE_WIN32]: New functions.
8399         * modules/cond (Dependencies): Add gettimeofday.
8400
8401 2008-10-11  Bruno Haible  <bruno@clisp.org>
8402
8403         Make sleep work on older versions of mingw.
8404         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
8405         only whether it exists.
8406         * doc/posix-functions/sleep.texi: Mention the problem with older
8407         versions of mingw.
8408
8409 2008-10-11  Bruno Haible  <bruno@clisp.org>
8410
8411         New module 'shutdown'.
8412         * modules/shutdown: New file.
8413         * lib/sys_socket.in.h (shutdown): New declaration.
8414         * lib/winsock.c (shutdown): New function.
8415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8416         GNULIB_SHUTDOWN.
8417         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
8418         * doc/posix-functions/shutdown.texi: Document the new module.
8419
8420 2008-10-11  Jim Meyering  <meyering@redhat.com>
8421
8422         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
8423
8424 2008-10-11  Bruno Haible  <bruno@clisp.org>
8425
8426         New module 'fclose'.
8427         * modules/fclose: New file.
8428         * lib/stdio.in.h (fclose): New declaration.
8429         * lib/fclose.c: New file.
8430         * m4/fclose.m4: New file.
8431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
8432         REPLACE_FCLOSE.
8433         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
8434         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
8435         REPLACE_FCLOSE.
8436         * modules/close (Depends-on): fclose.
8437         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
8438
8439 2008-10-11  Bruno Haible  <bruno@clisp.org>
8440
8441         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
8442         set errno and don't call _close.
8443
8444 2008-10-10  Bruno Haible  <bruno@clisp.org>
8445
8446         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
8447         ACL, not afterwards. Fixes test failure on Cygwin.
8448
8449 2008-10-09  Ben Pfaff  <blp@gnu.org>
8450
8451         * build-aux/announce-gen: Fix gnulib version related part of usage
8452         message.  Die with a useful error message if no tarballs are
8453         found.
8454
8455 2008-10-10  Jim Meyering  <meyering@redhat.com>
8456
8457         bootstrap: use git's --depth=N option only if it's supported
8458         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
8459         recognize the --depth option.  Reported by Pádraig Brady.
8460
8461 2008-10-09  Bruno Haible  <bruno@clisp.org>
8462
8463         New module 'ioctl'.
8464         * modules/ioctl: New file.
8465         * lib/sys_socket.in.h (ioctl): Remove declaration.
8466         * lib/winsock.c: Include <sys/ioctl.h>.
8467         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
8468         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8469         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
8470         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
8471         * doc/posix-functions/ioctl.texi: Mention the new module.
8472
8473 2008-10-09  Bruno Haible  <bruno@clisp.org>
8474
8475         New module 'sys_ioctl'.
8476         * lib/sys_ioctl.in.h: New file.
8477         * m4/sys_ioctl_h.m4: New file.
8478         * modules/sys_ioctl: New file.
8479         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
8480
8481 2008-10-09  Bruno Haible  <bruno@clisp.org>
8482
8483         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
8484         * lib/winsock.c: Include <stdarg.h>.
8485         (rpl_ioctl): Change to second argument 'int' and then varargs.
8486
8487 2008-10-09  Bruno Haible  <bruno@clisp.org>
8488
8489         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
8490         when the sys_socket module is present and the system has <winsock2.h>.
8491
8492 2008-10-09  Bruno Haible  <bruno@clisp.org>
8493
8494         * doc/posix-functions/close.texi: Mention module 'close' instead of
8495         module 'sys_socket'.
8496
8497 2008-10-09  Bruno Haible  <bruno@clisp.org>
8498
8499         * doc/glibc-headers/sys_ioctl.texi: New file.
8500         * doc/gnulib.texi: Include it.
8501
8502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8503             Bruno Haible  <bruno@clisp.org>
8504
8505         Combine the two replacements of 'close'.
8506         * lib/sys_socket.in.h (close): Define to a reminder to include
8507         <unistd.h>.
8508         (_gl_close_fd_maybe_socket): New declaration.
8509         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
8510         * lib/winsock.c (close): Remove undefinition.
8511         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
8512         needed for the gnulib module 'close'.
8513         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
8514         define to an error symbol or to a warning, if suitable.
8515         * lib/close.c: Include <sys/socket.h>.
8516         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
8517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
8518         UNISTD_H_HAVE_WINSOCK2_H.
8519         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
8520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8521         UNISTD_H_HAVE_WINSOCK2_H.
8522         * modules/sys_socket (Files): Add m4/unistd_h.m4.
8523         (configure.ac): Set a module indicator.
8524         (Makefile.am): Substitute GNULIB_CLOSE.
8525         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
8526         * modules/poll-tests (Depends-on): Add close.
8527         * modules/select-tests (Depends-on): Likewise.
8528
8529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8530             Bruno Haible  <bruno@clisp.org>
8531
8532         New module 'close'.
8533         * modules/close: New file.
8534         * lib/unistd.in.h (close): Move declaration out of the
8535         FCHDIR_REPLACEMENT scope.
8536         (_gl_unregister_fd): New declaration.
8537         * lib/close.c: New file.
8538         * lib/fchdir.c (rpl_close): Remove function.
8539         * m4/close.m4: New file.
8540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8541         close.
8542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
8543         REPLACE_CLOSE.
8544         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
8545         REPLACE_CLOSE.
8546         * modules/fchdir (Depends-on): Add close.
8547
8548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8549             Bruno Haible  <bruno@clisp.org>
8550
8551         * lib/fcntl.in.h (open): Simplify conditionals.
8552         (_gl_register_fd): New declaration.
8553         * lib/fchdir.c (rpl_open): Remove function.
8554         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
8555         also.
8556         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
8557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
8558         open.
8559
8560 2008-10-09  Jim Meyering  <meyering@redhat.com>
8561
8562         GNUmakefile: use the more name-space-friendly "_version"
8563         * top/GNUmakefile (_dummy): Update.
8564         (_version): Rename from "version".
8565
8566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8567             Bruno Haible  <bruno@clisp.org>
8568
8569         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
8570         rpl_close.
8571         (_gl_register_fd): New function, extracted from rpl_open.
8572         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
8573         (rpl_open, rpl_opendir): Use _gl_register_fd.
8574
8575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
8576
8577         Fix organization of 'open' replacement.
8578         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
8579         (gl_FUNC_OPEN): Use it.
8580         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
8581
8582 2008-10-08  Bruno Haible  <bruno@clisp.org>
8583
8584         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
8585
8586 2008-10-08  Simon Josefsson  <simon@josefsson.org>
8587
8588         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
8589         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
8590         listen).
8591
8592 2008-10-08  Eric Blake  <ebb9@byu.net>
8593
8594         GNUmakefile: add 'make version' target
8595         * top/GNUmakefile (_curr-ver): Split version update rules...
8596         (version): ...into a target.
8597
8598 2008-10-07  Bruno Haible  <bruno@clisp.org>
8599
8600         Use a more portable replacement expression for -0.0L.
8601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
8602         instead of -0.0L. Fix m4 quotation.
8603
8604         * tests/test-signbit.c: Include <float.h>.
8605         (minus_zero): New variable.
8606         (test_signbitl): Use minus_zero instead of -zero.
8607         * modules/signbit-tests (Depends-on): Add float.
8608
8609         * tests/test-ceill.c: Include <float.h>.
8610         (zero): Remove variable.
8611         (minus_zero): New variable.
8612         (main): Use minus_zero instead of -zero.
8613         * modules/ceill-tests (Depends-on): Add float.
8614
8615         * tests/test-floorl.c: Include <float.h>.
8616         (zero): Remove variable.
8617         (minus_zero): New variable.
8618         (main): Use minus_zero instead of -zero.
8619         * modules/floorl-tests (Depends-on): Add float.
8620
8621         * tests/test-roundl.c: Include <float.h>.
8622         (zero): Remove variable.
8623         (minus_zero): New variable.
8624         (main): Use minus_zero instead of -zero.
8625         * modules/roundl-tests (Depends-on): Add float.
8626
8627         * tests/test-truncl.c: Include <float.h>.
8628         (zero): Remove variable.
8629         (minus_zero): New variable.
8630         (main): Use minus_zero instead of -zero.
8631         * modules/truncl-tests (Depends-on): Add float.
8632
8633         * tests/test-frexpl.c (zero): Remove variable.
8634         (minus_zero): New variable.
8635         (main): Use minus_zero instead of -zero.
8636         * modules/frexpl-tests (Depends-on): Add float.
8637
8638         * tests/test-isnan.c (zerol): Remove variable.
8639         (minus_zerol): New variable.
8640         (test_long_double): Use minus_zerol instead of -zerol.
8641         * modules/isnan-tests (Depends-on): Add float.
8642
8643         * tests/test-isnanl.h (zero): Remove variable.
8644         (minus_zero): New variable.
8645         (main): Use minus_zero instead of -zero.
8646         * modules/isnanl-nolibm-tests (Depends-on): Add float.
8647         * modules/isnanl-tests (Depends-on): Add float.
8648
8649         * tests/test-ldexpl.c (zero): Remove variable.
8650         (minus_zero): New variable.
8651         (main): Use minus_zero instead of -zero.
8652         * modules/ldexpl-tests (Depends-on): Add float.
8653
8654         * tests/test-snprintf-posix.h (zerol): Remove variable.
8655         (minus_zerol): New variable.
8656         (test_function): Use minus_zerol instead of -zerol.
8657         * modules/snprintf-posix-tests (Depends-on): Add float.
8658         * modules/vsnprintf-posix-tests (Depends-on): Add float.
8659
8660         * tests/test-sprintf-posix.h (zerol): Remove variable.
8661         (minus_zerol): New variable.
8662         (test_function): Use minus_zerol instead of -zerol.
8663         * modules/sprintf-posix-tests (Depends-on): Add float.
8664         * modules/vsprintf-posix-tests (Depends-on): Add float.
8665
8666         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
8667         (minus_zerol): New variable.
8668         (test_function): Use minus_zerol instead of -zerol.
8669         * modules/vasnprintf-posix-tests (Depends-on): Add float.
8670
8671         * tests/test-vasprintf-posix.c (zerol): Remove variable.
8672         (minus_zerol): New variable.
8673         (test_function): Use minus_zerol instead of -zerol.
8674         * modules/vasprintf-posix-tests (Depends-on): Add float.
8675
8676 2008-10-07  Simon Josefsson  <simon@josefsson.org>
8677
8678         * MODULES.html.sh (Support for building documentation): Mention
8679         pmccabe2html.  Sort entries.
8680
8681         Add pmccabe2html module, from gnupdf.
8682         * build-aux/pmccabe.css: New file.
8683         * build-aux/pmccabe2html: New file.
8684         * m4/pmccabe2html.m4: New file.
8685         * modules/pmccabe2html: New file.
8686
8687 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
8688
8689         flock: new module
8690         * MODULES.html.sh: Add to list of modules.
8691         * lib/flock.c: flock implementation for Windows and Unix systems
8692         which have fcntl.
8693         * doc/glibc-functions/flock.texi: Update documentation.
8694         * lib/sys_file.in.h: <sys/file.h> header file.
8695         * m4/flock.m4: M4 macros.
8696         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
8697         * modules/flock: flock module.
8698         * modules/flock-tests: flock tests module.
8699         * modules/sys_file: sys/file.h module.
8700         * tests/test-flock.c: test suite for flock.
8701
8702 2008-10-06  Jim Meyering  <meyering@redhat.com>
8703
8704         bootstrap: check for LT_INIT more portably still ;-)
8705         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
8706         Spotted by Bruno Haible.
8707
8708 2008-10-06  Eric Blake  <ebb9@byu.net>
8709
8710         test-signbit: avoid tripping Irix cc bug on -0.0L
8711         * tests/test-signbit.c (minus_zerol): Delete, and replace with
8712         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
8713         entire testsuite consistent and avoids an Irix 6.2 bug.
8714
8715 2008-10-05  Bruno Haible  <bruno@clisp.org>
8716             Jim Meyering  <jim@meyering.net>
8717
8718         Add an option for ignoring EPIPE during close_stdout.
8719         * lib/closeout.h: Include <stdbool.h>.
8720         (close_stdout_set_ignore_EPIPE): New declaration.
8721         * lib/closeout.c: Include <stdbool.h>.
8722         (ignore_EPIPE): New variable.
8723         (close_stdout_set_ignore_EPIPE): New function.
8724         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
8725         * lib/close-stream.c (close_stream): Mention the possible EPIPE
8726         failure.
8727         * modules/closeout (Depends-on): Add stdbool.
8728
8729 2008-10-05  Bruno Haible  <bruno@clisp.org>
8730
8731         * modules/accept: New file.
8732         * modules/bind: New file.
8733         * modules/connect: New file.
8734         * modules/getpeername: New file.
8735         * modules/getsockname: New file.
8736         * modules/getsockopt: New file.
8737         * modules/listen: New file.
8738         * modules/recv: New file.
8739         * modules/recvfrom: New file.
8740         * modules/send: New file.
8741         * modules/sendto: New file.
8742         * modules/setsockopt: New file.
8743         * modules/socket: New file.
8744         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
8745         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8746         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
8747         the particular module is requested. Add a link warning when the
8748         particular module is not requested.
8749         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
8750         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
8751         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
8752         the particular module is requested.
8753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
8754         gl_SYS_SOCKET_H_DEFAULTS): New macros.
8755         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
8756         * modules/sys_socket (Depends-on): Add link-warning.
8757         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
8758         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
8759         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
8760         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
8761         GL_LINK_WARNING.
8762         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
8763         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
8764         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
8765         * doc/posix-functions/getpeername.texi: Mention the new module
8766         'getpeername'.
8767         * doc/posix-functions/getsockname.texi: Mention the new module
8768         'getsockname'.
8769         * doc/posix-functions/getsockopt.texi: Mention the new module
8770         'getsockopt'.
8771         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
8772         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
8773         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
8774         * doc/posix-functions/send.texi: Mention the new module 'send'.
8775         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
8776         * doc/posix-functions/setsockopt.texi: Mention the new module
8777         'setsockopt'.
8778         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
8779         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
8780         listen, connect, accept.
8781         * modules/select-tests (Depends-on): Likewise.
8782
8783 2008-10-05  Bruno Haible  <bruno@clisp.org>
8784
8785         * lib/winsock.c (strerror): Remove unused #undef.
8786         (rpl_close): Remove unused local variable.
8787
8788         * modules/sys_socket (Depends-on); Add errno.
8789
8790 2008-10-05  Bruno Haible  <bruno@clisp.org>
8791
8792         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
8793         (select): Add a link warning when the 'select' module is not used.
8794         * modules/sys_select (Depends-on): Add link-warning.
8795         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
8796         Suggested by Paolo Bonzini.
8797
8798 2008-10-05  Jim Meyering  <meyering@redhat.com>
8799
8800         bootstrap: check for LT_INIT more portably
8801         * build-aux/bootstrap: Avoid using grep -E, since it's not
8802         portable enough.  Suggestion from Bruno Haible.
8803
8804 2008-10-05  Bruno Haible  <bruno@clisp.org>
8805
8806         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
8807         as being fixed by gnulib.
8808
8809 2008-10-05  Bruno Haible  <bruno@clisp.org>
8810
8811         * modules/select-tests: New file, mostly copied from
8812         modules/sys_select-tests.
8813         * tests/test-select.c: New file, mostly copied from
8814         tests/test-sys_select.c.
8815         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
8816         * modules/sys_select-tests (Depends-on): Remove all dependencies.
8817         (Makefile.am): Remove test_sys_select_LDADD.
8818
8819         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
8820         to an undefined symbol, for an error message.
8821         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
8822         (gl_SYS_SELECT_H_DEFAULTS): New macro.
8823         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
8824         winsock-select.c here.
8825         * modules/sys_select (Files): Remove lib/winsock-select.c.
8826         (Depends-on): Remove alloca.
8827         (Makefile.am): Substitute GNULIB_SELECT.
8828         * modules/select: New file.
8829         * doc/posix-functions/select.texi: Update.
8830
8831 2008-10-05  Bruno Haible  <bruno@clisp.org>
8832
8833         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
8834         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
8835         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
8836         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
8837         getdtablesize.
8838         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8839         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8840
8841 2008-10-05  Bruno Haible  <bruno@clisp.org>
8842
8843         * modules/getdtablesize-tests: New file.
8844         * tests/test-getdtablesize.c: New file.
8845
8846         New module 'getdtablesize'.
8847         * lib/unistd.in.h (getdtablesize): New declaration.
8848         * lib/getdtablesize.c: New file.
8849         * m4/getdtablesize.m4: New file.
8850         * modules/getdtablesize: New file.
8851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8852         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
8853         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
8854         HAVE_GETDTABLESIZE.
8855         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
8856
8857 2008-10-05  Bruno Haible  <bruno@clisp.org>
8858
8859         * modules/sched (Makefile.am): Fix typo.
8860         Reported by Simon Josefsson.
8861
8862 2008-10-05  Jim Meyering  <meyering@redhat.com>
8863
8864         bootstrap: check for LT_INIT, too
8865         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
8866         are deprecated.  Suggestion from Ralf Wildenhues.
8867
8868 2008-10-05  Bruno Haible  <bruno@clisp.org>
8869
8870         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
8871         overriding them by ours.
8872         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
8873
8874 2008-10-05  Jim Meyering  <meyering@redhat.com>
8875
8876         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
8877         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
8878         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
8879
8880 2008-10-04  Bruno Haible  <bruno@clisp.org>
8881
8882         * modules/dup2 (License): Change to LGPLv2+.
8883         * modules/sleep (License): Likewise.
8884         * modules/perror (License): Likewise.
8885         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
8886         Blake.
8887         * modules/signal (License): Likewise.
8888         * modules/sigprocmask (License): Likewise.
8889         * modules/raise (License): Change to LGPLv2+, with approval by Jim
8890         Meyering.
8891
8892 2008-10-04  Bruno Haible  <bruno@clisp.org>
8893
8894         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
8895         Reported by Rainer Tammer <tammer@tammer.net>.
8896
8897 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
8898             Bruno Haible  <bruno@clisp.org>
8899
8900         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
8901         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
8902         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
8903
8904 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
8905
8906         filevercmp: new module
8907         * lib/filevercmp.h: New function filevercmp comparing version strings.
8908         * lib/filevercmp.c: Implementation of filevercmp function.
8909         * modules/filevercmp: Module metadata.
8910         * tests/test-filevercmp.c: Unit test for new module.
8911         * modules/filevercmp-tests: Unit test metadata.
8912         * MODULES.html.sh: Add filevercmp module.
8913
8914 2008-10-03  Bruno Haible  <bruno@clisp.org>
8915
8916         * lib/c-ctype.h: Add comment.
8917         Reported by Jim Meyering.
8918
8919 2008-10-02  Bruno Haible  <bruno@clisp.org>
8920
8921         * modules/posix_spawn-internal (Depends-on): Add 'open'.
8922
8923 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8924
8925         * build-aux/bootstrap: Allow renaming bootstrap, and change the
8926         name of bootstrap.conf accordingly.
8927
8928 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8929
8930         * build-aux/bootstrap: Install git-merge-changelog configuration
8931         items into .gitconfig if needed.
8932
8933 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
8934
8935         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
8936         git repository, and initialize/update it accordingly.
8937
8938 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
8939
8940         * modules/fsync-tests: New file.
8941         * tests/test-fsync.c: New file.
8942
8943         New module 'fsync'.
8944         * lib/fsync.c: New file.
8945         * m4/fsync.m4: New file.
8946         * modules/fsync: New file.
8947         * lib/unistd.in.h (fsync): New declaration.
8948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
8949         GNULIB_FSYNC and HAVE_FSYNC.
8950         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
8951         * MODULES.html.sh (posix_functions): Add fsync.
8952         * doc/posix-functions/fsync.texi: Mention the new module.
8953
8954 2008-10-02  Jim Meyering  <meyering@redhat.com>
8955
8956         fts.c: sync with similar code from coreutils' remove.c
8957         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
8958         Guard also with "#if defined __linux__", since for now at least,
8959         this code is Linux-kernel-specific.
8960
8961 2008-10-02  Jim Meyering  <meyering@redhat.com>
8962
8963         fts: bug fixes
8964         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
8965         Include <sys/vfs.h>, not <sys/statfs.h>.
8966
8967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
8968         Include <sys/vfs.h>, not <sys/statfs.h>.
8969
8970 2008-10-01  Bruno Haible  <bruno@clisp.org>
8971
8972         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
8973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
8974         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
8975         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
8976         * doc/posix-functions/posix_spawnp.texi: Likewise.
8977         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
8978         whether posix_spawn actually works.
8979         * m4/pipe.m4 (gl_PIPE): Likewise.
8980         * modules/execute (Files): Add m4/posix_spawn.m4.
8981         * modules/pipe (Files): Add m4/posix_spawn.m4.
8982         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
8983
8984 2008-10-01  Jim Meyering  <meyering@redhat.com>
8985
8986         remove trailing spaces
8987         * NEWS: Likewise.
8988         * lib/poll.c (poll): Likewise.
8989         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
8990         * lib/winsock.c (rpl_close): Likewise.
8991         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
8992         * modules/yield: Likewise.
8993         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
8994         * tests/test-sys_select.c (connect_to_socket): Likewise.
8995
8996         fts.c: adjust a new interface to be more generally useful
8997         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
8998         (fts_build): Adjust caller.
8999
9000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9001
9002         * modules/cond-tests: New file.
9003         * tests/test-cond.c: New file.
9004
9005 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9006             Bruno Haible  <bruno@clisp.org>
9007
9008         * modules/cond (Dependencies): Add errno, time.
9009         * lib/glthread/cond.h: Include <time.h>.
9010         (gl_cond_define, gl_cond_define_initialized): Use the same definition
9011         across platforms.
9012
9013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9014             Bruno Haible  <bruno@clisp.org>
9015
9016         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
9017
9018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9019             Bruno Haible  <bruno@clisp.org>
9020
9021         * modules/tls-tests (Depends-on): Add thread, yield.
9022         (configure.ac): Remove all checks.
9023         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
9024         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9025         gl_thread_self): Remove definitions. Include glthread/thread.h and
9026         glthread/yield.h instead.
9027         (test_tls): Pass an additional NULL argument to gl_thread_join.
9028
9029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9030             Bruno Haible  <bruno@clisp.org>
9031
9032         * modules/lock-tests (Depends-on): Add thread, yield.
9033         (configure.ac): Remove all checks.
9034         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
9035         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9036         gl_thread_self): Remove definitions. Include glthread/thread.h and
9037         glthread/yield.h instead.
9038         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
9039         additional NULL argument to gl_thread_join.
9040
9041 2008-09-30  Bruno Haible  <bruno@clisp.org>
9042
9043         Fix the Win32 implementation of the 'thread' module.
9044         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
9045         pointer type.
9046         (gl_thread_self): Invoke gl_thread_self_func.
9047         (gl_thread_self_func): New declaration.
9048         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
9049         (do_init_self_key, init_self_key): New functions.
9050         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
9051         Remove some fields.
9052         (running_threads, running_lock): Remove variables.
9053         (get_current_thread_handle): New function.
9054         (gl_thread_self_func, wrapper_func, glthread_create_func,
9055         glthread_join_func, gl_thread_exit_func): Largely rewritten and
9056         simplified.
9057
9058 2008-09-30  Bruno Haible  <bruno@clisp.org>
9059
9060         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
9061         files.
9062
9063 2008-09-30  Jim Meyering  <meyering@redhat.com>
9064
9065         fts.m4: correct the test for statfs.f_type
9066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
9067         when checking for statfs.f_type.
9068
9069 2008-09-15  Simon Josefsson  <simon@josefsson.org>
9070
9071         tests: avoid some compiler warnings
9072         * tests/test-memchr.c (main): Pass NULL indirectly.
9073         * tests/test-getdate.c (main): Remove unused variable 'ret'.
9074
9075 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
9076
9077         getdate.y: disallow countable dayshifts like "4 yesterday ago"
9078         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
9079         exactly specified dayshifts.
9080         (dayshift): New rule.
9081         (rel): Add dayshift.
9082         (relative_time_table) [tomorrow, yesterday, today, now]:
9083         Use tDAY_SHIFT in place of tDAY_UNIT.
9084         * tests/test-getdate.c: Add tests for now-disallowed countable
9085         dayshifts, e.g., "4 yesterday ago".
9086
9087 2008-09-29  Bruno Haible  <bruno@clisp.org>
9088
9089         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
9090         * tests/test-posix_spawn1.in.sh: Renamed from
9091         tests/test-posix_spawn.in.sh.
9092         * tests/test-posix_spawn2.c: New file.
9093         * tests/test-posix_spawn2.in.sh: New file.
9094         * modules/posix_spawnp-tests (Files): Update.
9095         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
9096
9097 2008-09-29  Bruno Haible  <bruno@clisp.org>
9098
9099         Propagate effects of putenv/setenv/unsetenv to child processes.
9100         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
9101         * lib/pipe.c (create_pipe): Likewise.
9102
9103 2008-09-29  Bruno Haible  <bruno@clisp.org>
9104
9105         Enable use of shell scripts as executables in mingw.
9106         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
9107         run the program as a shell script.
9108         * lib/pipe.c (create_pipe): Likewise.
9109         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
9110         resulting array.
9111
9112 2008-09-29  Eric Blake  <ebb9@byu.net>
9113
9114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
9115
9116 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
9117
9118         * doc/posix-functions/accept.texi: Update mingw problems.
9119         * doc/posix-functions/bind.texi: Update mingw problems.
9120         * doc/posix-functions/close.texi: Update mingw problems.
9121         * doc/posix-functions/connect.texi: Update mingw problems.
9122         * doc/posix-functions/getpeername.texi: Update mingw problems.
9123         * doc/posix-functions/getsockname.texi: Update mingw problems.
9124         * doc/posix-functions/getsockopt.texi: Update mingw problems.
9125         * doc/posix-functions/ioctl.texi: Update mingw problems.
9126         * doc/posix-functions/listen.texi: Update mingw problems.
9127         * doc/posix-functions/recv.texi: Update mingw problems.
9128         * doc/posix-functions/recvfrom.texi: Update mingw problems.
9129         * doc/posix-functions/select.texi: Update mingw problems.
9130         * doc/posix-functions/send.texi: Update mingw problems.
9131         * doc/posix-functions/sendto.texi: Update mingw problems.
9132         * doc/posix-functions/setsockopt.texi: Update mingw problems.
9133         * doc/posix-functions/socket.texi: Update mingw problems.
9134
9135 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
9136             Bruno Haible  <bruno@clisp.org>
9137
9138         * lib/sys_select.in.h: Include sys/time.h.
9139         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
9140         * modules/sys_select: Depend on sys_time.
9141         * tests/test-sys_select.c: Test that sys/select.h defines struct
9142         timeval fully.
9143
9144 2008-09-29  Bruno Haible  <bruno@clisp.org>
9145
9146         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
9147         * lib/sys_select.in.h: Likewise.
9148
9149 2008-09-29  Bruno Haible  <bruno@clisp.org>
9150
9151         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
9152
9153 2008-09-29  Bruno Haible  <bruno@clisp.org>
9154
9155         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
9156         Set LIBSOCKET instead of augmenting LIBS.
9157         * modules/sockets (Link): New section.
9158         * modules/sockets-tests (test_sockets_LDADD): New variable.
9159         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
9160         * modules/poll-tests (test_poll_LDADD): New variable.
9161         * NEWS: Document the change.
9162
9163 2008-09-29  Bruno Haible  <bruno@clisp.org>
9164
9165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
9166         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
9167         ARPA_INET_H directly.
9168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9169
9170 2008-09-28  Bruno Haible  <bruno@clisp.org>
9171
9172         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
9173         from gl_HEADER_SYS_SOCKET.
9174         (gl_HEADER_SYS_SOCKET): Invoke it.
9175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9176
9177 2008-09-28  Bruno Haible  <bruno@clisp.org>
9178
9179         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
9180         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
9181         Needed on OSF/1 4.0.
9182
9183 2008-09-28  Bruno Haible  <bruno@clisp.org>
9184
9185         Override open more carefully.
9186         * lib/open.c (orig_open): New function.
9187         (rpl_open): Use orig_open instead of open.
9188         * lib/fcntl.in.h: Add special invocation convention.
9189         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
9190         (gl_FUNC_OPEN): Invoke it.
9191
9192         Override freopen more carefully.
9193         * lib/freopen.c (orig_freopen): New function.
9194         (rpl_freopen): Use orig_freopen instead of freopen.
9195         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
9196         (gl_FUNC_FREOPEN): Invoke it.
9197
9198         Override fopen more carefully.
9199         * lib/fopen.c (orig_fopen): New function.
9200         (rpl_fopen): Use orig_fopen instead of fopen.
9201         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
9202         (gl_FUNC_FOPEN): Invoke it.
9203         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
9204
9205 2008-09-28  Bruno Haible  <bruno@clisp.org>
9206
9207         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
9208         SIGPIPE.
9209
9210 2008-09-28  Bruno Haible  <bruno@clisp.org>
9211
9212         * tests/test-sigaction.c (handler, main): Disable the check whether
9213         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
9214         glibc systems with LinuxThreads.
9215
9216 2008-09-28  Bruno Haible  <bruno@clisp.org>
9217
9218         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
9219
9220         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
9221         with AIX xlc.
9222         * lib/fcntl.in.h (open): Likewise.
9223         Reported by Rainer Tammer <tammer@tammer.net>.
9224
9225 2008-09-28  Bruno Haible  <bruno@clisp.org>
9226
9227         * modules/posix_spawnp-tests: New file.
9228         * tests/test-posix_spawn.c: New file.
9229         * tests/test-posix_spawn.in.sh: New file.
9230
9231         New module 'posix_spawnp'.
9232         * modules/posix_spawnp: New file.
9233         * lib/spawnp.c: New file, from GNU libc with modifications.
9234         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
9235
9236         New module 'posix_spawn'.
9237         * modules/posix_spawn: New file.
9238         * lib/spawn.c: New file, from GNU libc with modifications.
9239         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9240
9241         New module 'posix_spawnattr_destroy'.
9242         * modules/posix_spawnattr_destroy: New file.
9243         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
9244         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
9245         module.
9246
9247         New module 'posix_spawnattr_setsigmask'.
9248         * modules/posix_spawnattr_setsigmask: New file.
9249         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
9250         modifications.
9251         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
9252         new module.
9253
9254         New module 'posix_spawnattr_getsigmask'.
9255         * modules/posix_spawnattr_getsigmask: New file.
9256         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
9257         modifications.
9258         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
9259         new module.
9260
9261         New module 'posix_spawnattr_setsigdefault'.
9262         * modules/posix_spawnattr_setsigdefault: New file.
9263         * lib/spawnattr_setdefault.c: New file, from GNU libc with
9264         modifications.
9265         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
9266         new module.
9267
9268         New module 'posix_spawnattr_getsigdefault'.
9269         * modules/posix_spawnattr_getsigdefault: New file.
9270         * lib/spawnattr_getdefault.c: New file, from GNU libc with
9271         modifications.
9272         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
9273         new module.
9274
9275         New module 'posix_spawnattr_setschedpolicy'.
9276         * modules/posix_spawnattr_setschedpolicy: New file.
9277         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
9278         modifications.
9279         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
9280         new module.
9281
9282         New module 'posix_spawnattr_getschedpolicy'.
9283         * modules/posix_spawnattr_getschedpolicy: New file.
9284         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
9285         modifications.
9286         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
9287         new module.
9288
9289         New module 'posix_spawnattr_setschedparam'.
9290         * modules/posix_spawnattr_setschedparam: New file.
9291         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
9292         modifications.
9293         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
9294         new module.
9295
9296         New module 'posix_spawnattr_getschedparam'.
9297         * modules/posix_spawnattr_getschedparam: New file.
9298         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
9299         modifications.
9300         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
9301         new module.
9302
9303         New module 'posix_spawnattr_setpgroup'.
9304         * modules/posix_spawnattr_setpgroup: New file.
9305         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
9306         modifications.
9307         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
9308         module.
9309
9310         New module 'posix_spawnattr_getpgroup'.
9311         * modules/posix_spawnattr_getpgroup: New file.
9312         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
9313         modifications.
9314         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
9315         module.
9316
9317         New module 'posix_spawnattr_setflags'.
9318         * modules/posix_spawnattr_setflags: New file.
9319         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
9320         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
9321         module.
9322
9323         New module 'posix_spawnattr_getflags'.
9324         * modules/posix_spawnattr_getflags: New file.
9325         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
9326         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
9327         module.
9328
9329         New module 'posix_spawnattr_init'.
9330         * modules/posix_spawnattr_init: New file.
9331         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
9332         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
9333         module.
9334
9335         New module 'posix_spawn_file_actions_destroy'.
9336         * modules/posix_spawn_file_actions_destroy: New file.
9337         * lib/spawn_faction_destroy.c: New file, from GNU libc with
9338         modifications.
9339         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
9340         the new module.
9341
9342         New module 'posix_spawn_file_actions_addopen'.
9343         * modules/posix_spawn_file_actions_addopen: New file.
9344         * lib/spawn_faction_addopen.c: New file, from GNU libc with
9345         modifications.
9346         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9347         the new module.
9348
9349         New module 'posix_spawn_file_actions_adddup2'.
9350         * modules/posix_spawn_file_actions_adddup2: New file.
9351         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
9352         modifications.
9353         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9354         the new module.
9355
9356         New module 'posix_spawn_file_actions_addclose'.
9357         * modules/posix_spawn_file_actions_addclose: New file.
9358         * lib/spawn_faction_addclose.c: New file, from GNU libc with
9359         modifications.
9360         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9361         the new module.
9362
9363         New module 'posix_spawn_file_actions_init'.
9364         * modules/posix_spawn_file_actions_init: New file.
9365         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
9366         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
9367         new module.
9368
9369         New module 'posix_spawn-internal'.
9370         * modules/posix_spawn-internal: New file.
9371         * lib/spawn_int.h: New file, from GNU libc with modifications.
9372         * lib/spawni.c: New file, from GNU libc with modifications.
9373         * m4/posix_spawn.m4: New file.
9374
9375         New module 'spawn'.
9376         * modules/spawn: New file.
9377         * lib/spawn.in.h: New file, from GNU libc with modifications.
9378         * m4/spawn_h.m4: New file.
9379         * doc/posix-headers/spawn.texi: Mention the new module.
9380
9381 2008-09-28  Bruno Haible  <bruno@clisp.org>
9382
9383         * modules/sched-tests: New file.
9384         * tests/test-sched.c: New file.
9385
9386         New module 'sched'.
9387         * modules/sched: New file.
9388         * lib/sched.in.h: New file.
9389         * m4/sched_h.m4: New file.
9390         * doc/posix-headers/sched.texi: Mention the new module.
9391
9392 2008-09-27  Eric Blake  <ebb9@byu.net>
9393
9394         Fix previous patch, and tweak references to $0.
9395         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
9396         (func_version, func_gnulib_dir): Don't call this program
9397         gnulib-tool.
9398         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
9399         with using $0 in function.
9400         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
9401         (func_fatal_error): Reuse the name the user invoked us with.
9402
9403 2008-09-27  Bruno Haible  <bruno@clisp.org>
9404
9405         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
9406         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
9407         (gl_ICONV_H): Not here.
9408         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9409         instead of assigning ICONV_H directly.
9410
9411         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
9412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
9413         WCHAR_H directly.
9414
9415 2008-09-27  Bruno Haible  <bruno@clisp.org>
9416
9417         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
9418         * modules/arpa_inet (Depends-on): Add link-warning.
9419         (Makefile.am): Insert the definition of GL_LINK-WARNING.
9420         * modules/unistd (Makefile.am): Likewise.
9421
9422 2008-09-26  Bruno Haible  <bruno@clisp.org>
9423
9424         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
9425         variables.
9426         (func_version): Essentially copied from gnulib-tool.
9427         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
9428         func_readlink): Copied from gnulib-tool.
9429
9430 2008-09-26  Bruno Haible  <bruno@clisp.org>
9431
9432         * gnulib-tool (func_version): Change directory to $gnulib_dir before
9433         invoking git-version-gen.
9434
9435 2008-09-26  Bruno Haible  <bruno@clisp.org>
9436
9437         * posix-modules: Update to directory names changed on 2008-01-19.
9438         Remove commas in output before splitting into words. No more need to
9439         avoid 'ftruncate' since 2007-02-19.
9440
9441 2008-09-26  Bruno Haible  <bruno@clisp.org>
9442
9443         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
9444
9445 2008-09-26  Bruno Haible  <bruno@clisp.org>
9446
9447         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
9448         * modules/fwriteerror (Depends-on): Add errno.
9449
9450 2008-09-26  Bruno Haible  <bruno@clisp.org>
9451
9452         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
9453         * tests/test-vc-list-files-cvs.sh: Likewise.
9454
9455 2008-09-26  Bruno Haible  <bruno@clisp.org>
9456
9457         * doc/posix-headers/sys_resource.texi: Reorder items.
9458
9459 2008-09-26  Jim Meyering  <meyering@redhat.com>
9460
9461         fts: tweak inode comparison function
9462         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
9463         inode numbers, as documented.
9464
9465         fts: sort dirent entries on inode number before traversing
9466         This avoids a quadratic, seek-related performance penalty when
9467         operating on a directory containing many entries (measurable at 10k;
9468         3.5 hours at 2 million entries with a cold cache) on certain types
9469         of file systems, including ext3 and ext4, but not tmpfs.
9470         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
9471         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
9472         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
9473         (fs_handles_readdir_ordered_dirents_efficiently): New function.
9474         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
9475         (fts_build): Set the stat.st_ino member from D_INO.
9476         If it is likely to be useful, sort dirent entries on inode number.
9477
9478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
9479         and the struct statfs.f_type member.
9480         * modules/fts (Depends-on): Add d-ino.
9481
9482 2008-09-26  Bruno Haible  <bruno@clisp.org>
9483
9484         * modules/sigpipe-die (Depends-on): Add sigpipe.
9485
9486         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
9487         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
9488         and GNULIB_STDIO_H_SIGPIPE are set.
9489         * lib/stdio-write.c: New file.
9490         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
9491         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9492         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9493         REPLACE_STDIO_WRITE_FUNCS.
9494         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
9495         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9496         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9497         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9498         * modules/stdio (Files): Add lib/stdio-write.c.
9499         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
9500         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
9501         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
9502         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
9503         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
9504         REPLACE_FPRINTF_POSIX.
9505         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
9506         REPLACE_PRINTF_POSIX.
9507         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
9508         REPLACE_VFPRINTF_POSIX.
9509         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
9510         REPLACE_VPRINTF_POSIX.
9511         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
9512         SIGPIPE issue.
9513         * doc/posix-functions/fputc.texi: Likewise.
9514         * doc/posix-functions/fputs.texi: Likewise.
9515         * doc/posix-functions/fwrite.texi: Likewise.
9516         * doc/posix-functions/printf.texi: Likewise.
9517         * doc/posix-functions/putc.texi: Likewise.
9518         * doc/posix-functions/putchar.texi: Likewise.
9519         * doc/posix-functions/puts.texi: Likewise.
9520         * doc/posix-functions/vfprintf.texi: Likewise.
9521         * doc/posix-functions/vprintf.texi: Likewise.
9522
9523         * modules/safe-write (Depends-on): Add write.
9524
9525         * modules/sigpipe-tests: New file.
9526         * tests/test-sigpipe.c: New file.
9527         * tests/test-sigpipe.sh: New file.
9528
9529         * modules/write: New file.
9530         * lib/unistd.in.h: Include <sys/types.h>.
9531         (write): New declaration.
9532         * lib/write.c: New file.
9533         * m4/write.m4: New file.
9534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9535         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
9536         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
9537         GNULIB_WRITE, REPLACE_WRITE.
9538         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
9539         and the SIGPIPE issue.
9540
9541         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
9542         (raise): New declaration.
9543         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
9544         (ext_signal): New function.
9545         (rpl_raise): New function.
9546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9547         GNULIB_SIGNAL_H_SIGPIPE.
9548         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
9549         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
9550
9551         * modules/sigpipe: New file.
9552         * m4/sigpipe.m4: New file.
9553
9554 2008-09-25  Derek Price  <derek@ximbiot.com>
9555             Bruno Haible  <bruno@clisp.org>
9556
9557         * gnulib-tool (func_import): Report all license incompatibilities, not
9558         just the first one.
9559
9560 2008-09-25  Bruno Haible  <bruno@clisp.org>
9561
9562         * gnulib-tool (func_import): When computing the edits, consider not
9563         only the Makefile.ams that exist but also those that will be generated.
9564
9565 2008-09-25  Simon Josefsson  <simon@josefsson.org>
9566
9567         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
9568         fixes gnulib-tool --test warning about duplicate dependency.
9569
9570 2008-09-25  Bruno Haible  <bruno@clisp.org>
9571
9572         * gnulib-tool: Don't ask the user to perform edits in the generated
9573         Makefile.ams.
9574         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
9575         apply to the Makefile.am being generated.
9576         (func_emit_tests_Makefile_am): Execute edits that apply to the
9577         Makefile.am being generated.
9578         (func_import): Setup list of Makefile.am edits before emitting the
9579         Makefile.ams, not at the end.
9580         (func_create_testdir): Update.
9581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9582
9583 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9584
9585         * gnulib-tool (func_import): Store the --tests-base option in the
9586         comment in gnulib-cache.m4.
9587
9588 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
9589
9590         * NEWS: Document increased portability that sys_select now provides.
9591
9592         * lib/sys_select.in.h: Install select wrapper.
9593         * lib/sys_socket.in.h: Use more descriptive name when there is no
9594         select wrapper.
9595         * lib/winsock-select.c: New.
9596         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
9597         Require gl_HEADER_SYS_SOCKET.
9598         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
9599         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
9600         * tests/test-sys_select.c: Add functional tests.
9601
9602 2008-09-24  Eric Blake  <ebb9@byu.net>
9603
9604         open, fopen: close fd leak in last patch
9605         * lib/open.c (rpl_open): Close fd before returning error.
9606         * lib/fopen.c (rpl_fopen): Close fd before returning error.
9607         * doc/posix-functions/open.texi (open): Document that Irix also
9608         has the bug.
9609         * doc/posix-functions/fopen.texi (fopen): Likewise.
9610         Reported by Paolo Bonzini.
9611
9612 2008-09-24  Bruno Haible  <bruno@clisp.org>
9613
9614         Ensure that a filename ending in a slash cannot be used to access a
9615         non-directory.
9616         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
9617         to check whether it's really a directory.
9618         * lib/fopen.c: Include fcntl.h, unistd.h.
9619         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
9620         and fdopen().
9621         * modules/fopen (Depends-on): Add unistd.
9622         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
9623         * tests/test-fopen.c (main): Likewise.
9624         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
9625         * doc/posix-functions/fopen.texi: Likewise.
9626         Reported by Eric Blake.
9627
9628 2008-09-23  Eric Blake  <ebb9@byu.net>
9629
9630         c-stack: avoid compiler optimizations when provoking overflow
9631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
9632         recursion harder to optimize, to ensure a stack overflow occurs.
9633         * tests/test-c-stack.c (recurse): Likewise.
9634         Borrowed from libsigsegv.
9635
9636         c-stack: work around Irix sigaltstack bug
9637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
9638         whether sigaltstack uses wrong end of stack_t (copied in part from
9639         libsigsegv).
9640         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
9641         Irix bug, without requiring an over-allocation.
9642         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
9643         bug.
9644
9645         fopen: document mingw bug on directories
9646         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
9647         not allowing a stream visiting a directory, even though reading
9648         from such a stream is not portable.
9649
9650 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9651
9652         * lib/poll.c: Rewrite.
9653         * modules/poll: Depend on alloca.
9654
9655 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9656
9657         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
9658         instead define prototypes for a full set of wrappers.  Ensure
9659         that Cygwin does not use the compatibility code, which is only
9660         for MinGW.
9661         * lib/winsock.c: New.
9662         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
9663         * modules/sys_socket: Add lib/winsock.c.
9664
9665         * modules/poll-tests: Add errno and perror.
9666         * tests/test-poll.c: Use ioctl, not ioctlsocket.
9667
9668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
9669
9670         * tests/test-poll.c: Downgrade minimum needed Winsock version.
9671
9672 2008-09-23  Bruno Haible  <bruno@clisp.org>
9673
9674         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
9675         * doc/glibc-functions/*: Likewise.
9676
9677 2008-09-23  Simon Josefsson  <simon@josefsson.org>
9678
9679         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
9680         success.
9681
9682 2008-09-22  Eric Blake  <ebb9@byu.net>
9683             Bruno Haible  <bruno@clisp.org>
9684
9685         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
9686         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
9687         supply %A but mishandle pseudo-NaN.
9688         Reported by Simon Josefsson.
9689
9690 2008-09-21  Bruno Haible  <bruno@clisp.org>
9691
9692         * tests/test-lock.c (main): Tweak skip message.
9693         * tests/test-tls.c (main): Likewise.
9694
9695 2008-09-21  Bruno Haible  <bruno@clisp.org>
9696
9697         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
9698         whether 'struct sigaction' has sa_sigaction here...
9699         (gl_PREREQ_SIG_HANDLER_H): ... not here.
9700         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
9701
9702 2008-09-21  Bruno Haible  <bruno@clisp.org>
9703
9704         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
9705         section.
9706         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
9707         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
9708         the new section.
9709         (Support for obsolete systems lacking POSIX:2001): New section.
9710         (String handling <string.h>): Move strdup to the new section.
9711         Suggested by Simon Josefsson and Paolo Bonzini.
9712
9713 2008-09-21  Bruno Haible  <bruno@clisp.org>
9714
9715         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
9716         exponents in %e and %g results on 'long double'. Needed for mingw's
9717         improved *printf functions.
9718         * tests/test-vasprintf-posix.c (test_function): Likewise.
9719         * tests/test-snprintf-posix.h (test_function): Likewise.
9720         * tests/test-sprintf-posix.h (test_function): Likewise.
9721         Reported by Eric Blake.
9722
9723 2008-09-21  Bruno Haible  <bruno@clisp.org>
9724
9725         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
9726         * tests/test-sprintf-posix.h (test_function): Likewise.
9727
9728 2008-09-21  Bruno Haible  <bruno@clisp.org>
9729
9730         * modules/getpass (Depends-on): Add strdup-posix.
9731
9732         New module 'strdup-posix'.
9733         * modules/strdup-posix: New file.
9734         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
9735         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
9736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9737         REPLACE_STRDUP.
9738         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
9739         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
9740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9741         strdup-posix.
9742
9743         * modules/strdup (Depends-on): Remove malloc-posix.
9744
9745 2008-09-20  Bruno Haible  <bruno@clisp.org>
9746
9747         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
9748         Wildenhues.
9749
9750 2008-09-20  Bruno Haible  <bruno@clisp.org>
9751
9752         Ensure that wint_t gets defined on IRIX 5.3.
9753         * lib/wchar.in.h (wint_t): Define if not defined by the system.
9754         * lib/wctype.in.h (wint_t): Likewise.
9755         (__wctype_wint_t): Remove type.
9756         (isw*): Use wint_t instead of __wctype_wint_t.
9757         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
9758         * modules/wchar (Files): Add m4/wint_t.m4.
9759         (Makefile.am): Substitute HAVE_WINT_T.
9760         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
9761         * tests/test-wctype.c: Check that wint_t is defined.
9762         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
9763         * doc/posix-headers/wctype.texi: Likewise.
9764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9765
9766 2008-09-18  Bruno Haible  <bruno@clisp.org>
9767
9768         * gnulib-tool (func_exit): Update comment.
9769
9770 2008-09-18  Simon Josefsson  <simon@josefsson.org>
9771
9772         * modules/getaddrinfo (Depends-on): Remove strdup, this module
9773         assumes strdup exists and does not depend on strdup to return
9774         ENOMEM on out of memory conditions.
9775
9776 2008-09-18  Bruno Haible  <bruno@clisp.org>
9777
9778         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
9779         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
9780         digits for the exponent.
9781
9782 2008-09-18  Jim Meyering  <meyering@redhat.com>
9783             Bruno Haible  <bruno@clisp.org>
9784
9785         * lib/vasnprintf.c (decimal_point_char): Define also if
9786         NEED_PRINTF_INFINITE_LONG_DOUBLE.
9787
9788 2008-09-16  Bruno Haible  <bruno@clisp.org>
9789         and Eric Blake  <ebb9@byu.net>
9790
9791         vasnprintf: support Irix 5.3
9792         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
9793         that mishandle long double infinity.
9794         Reported by Tom G. Christensen.
9795
9796 2008-09-16  Bruno Haible  <bruno@clisp.org>
9797
9798         * doc/glibc-functions/scandir.texi: Mention the function is missing on
9799         Solaris 9.
9800         * doc/glibc-functions/alphasort.texi: Likewise.
9801         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
9802
9803 2008-09-16  Jim Meyering  <meyering@redhat.com>
9804
9805         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
9806         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
9807         a umask modification leak out of a subshell.  Otherwise, the
9808         opensolaris /bin/sh would be accepted and thus cause unwarranted
9809         failures in the coreutils test suite.
9810
9811 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
9812
9813         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
9814         to succeed.
9815
9816 2008-09-16  Jim Meyering  <meyering@redhat.com>
9817
9818         avoid spurious test failure when library is built without ACL support
9819         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
9820         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
9821         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
9822         * tests/test-copy-acl.sh: Likewise.
9823
9824 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9825
9826         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
9827         based on character occurrence counts.
9828
9829 2008-09-15  Eric Blake  <ebb9@byu.net>
9830
9831         tests: avoid some compiler warnings
9832         * tests/test-memchr.c (main): Pass NULL indirectly.
9833         * tests/test-closein.c (main): Avoid unused variable.
9834
9835 2008-09-15  Bruno Haible  <bruno@clisp.org>
9836
9837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
9838         are missing on OpenBSD 4.0 individually.
9839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9840
9841 2008-09-15  Bruno Haible  <bruno@clisp.org>
9842
9843         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
9844         * doc/posix-functions/strerror.texi: Mention also Cygwin.
9845         * doc/posix-functions/perror.texi: Likewise.
9846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
9847         is missing.
9848         Reported by Eric Blake.
9849
9850         * lib/errno.in.h: Use replacement values >= 2000.
9851         Reported by Eric Blake.
9852
9853 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9854
9855         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
9856         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
9857         limit.
9858         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
9859         compareseq was aborted.
9860
9861 2008-09-14  Bruno Haible  <bruno@clisp.org>
9862
9863         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
9864         yvec_edit_count.
9865         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
9866         (fstrcmp_bounded): Simplify result computation accordingly.
9867
9868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9869
9870         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
9871         (fstrcmp): Define in terms of fstrcmp_bounded.
9872         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
9873         lower_bound argument.
9874         Return quickly if the result is certainly < lower_bound.
9875         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
9876
9877 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9878
9879         * lib/diffseq.h (EARLY_ABORT): New macro.
9880         (compareseq): Change return type to bool. Return true when EARLY_ABORT
9881         evaluates to true.
9882
9883 2008-09-14  Bruno Haible  <bruno@clisp.org>
9884
9885         * modules/perror-tests: New file.
9886         * tests/test-perror.sh: New file.
9887         * tests/test-perror.c: New file.
9888
9889         New module 'perror'.
9890         * lib/stdio.in.h (perror): New declaration.
9891         * lib/perror.c: New file.
9892         * m4/perror.m4: New file.
9893         * modules/perror: New file.
9894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
9895         * doc/posix-functions/perror.texi: Mention the perror module.
9896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
9897         REPLACE_PERROR.
9898         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
9899         REPLACE_PERROR.
9900
9901 2008-09-14  Bruno Haible  <bruno@clisp.org>
9902
9903         * modules/stdio (Makefile.am): Reorder to match the order in
9904         lib/stdio.in.h.
9905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9906
9907 2008-09-13  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
9910
9911 2008-09-13  Bruno Haible  <bruno@clisp.org>
9912
9913         Extend strerror to cover the added errno values.
9914         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
9915         (rpl_strerror): Provide error messages for the added errno values and
9916         for the WSA* values.
9917         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
9918         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
9919         strerror.
9920         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
9921         * modules/strerror (Depends-on): Add errno.
9922         * doc/posix-functions/strerror.texi: Document the change.
9923         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
9924         and EOVERFLOW.
9925
9926 2008-09-13  Bruno Haible  <bruno@clisp.org>
9927
9928         * modules/EOVERFLOW: Remove file.
9929         * m4/eoverflow.m4: Remove file.
9930         * modules/EOVERFLOW-tests: Remove file.
9931         * tests/test-EOVERFLOW.c: Remove file.
9932         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
9933         * modules/ftell (Depends-on): Likewise.
9934         * modules/getdelim (Depends-on): Likewise.
9935         * modules/getugroups (Depends-on): Likewise.
9936         * modules/poll (Depends-on): Likewise.
9937         * modules/snprintf (Depends-on): Likewise.
9938         * modules/sprintf-posix (Depends-on): Likewise.
9939         * modules/vasnprintf (Depends-on): Likewise.
9940         * modules/vasprintf (Depends-on): Likewise.
9941         * modules/vfprintf-posix (Depends-on): Likewise.
9942         * modules/vsnprintf (Depends-on): Likewise.
9943         * modules/vsprintf-posix (Depends-on): Likewise.
9944         * modules/xvasprintf (Depends-on): Likewise.
9945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9946         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
9947         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
9948         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
9949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9950         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
9951         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
9952         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
9953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9954         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
9955         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
9956         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
9957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9958         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
9959         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
9960         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
9961         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9962         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
9963         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
9964         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
9965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9966         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
9967         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
9968         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
9969         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
9970         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9971         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
9972         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
9973         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
9974         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
9975         * MODULES.html.sh: Remove EOVERFLOW.
9976         * NEWS: Mention the change.
9977
9978 2008-09-13  Bruno Haible  <bruno@clisp.org>
9979
9980         * modules/errno-tests: New file.
9981         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
9982
9983         * lib/errno.in.h: New file.
9984         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
9985         * modules/errno: New file.
9986         * doc/posix-headers/errno.texi: Update documentation.
9987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
9988
9989 2008-09-13  Bruno Haible  <bruno@clisp.org>
9990
9991         * tests/test-poll.c: Use #if for native Windows, rather than testing
9992         __MSVCRT__.
9993
9994 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9995             Bruno Haible  <bruno@clisp.org>
9996
9997         * lib/glob.c: Don't include <pwd.h> on native Windows.
9998         (WINDOWS32): New macro.
9999         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
10000
10001 2008-09-13  Bruno Haible  <bruno@clisp.org>
10002
10003         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
10004         (ETIMEDOUT): Remove macro.
10005         (glthread_cond_timedwait_multithreaded): New declaration.
10006         (glthread_cond_timedwait): Use it.
10007         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
10008         (glthread_cond_timedwait_multithreaded): New function.
10009
10010 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10011
10012         * modules/poll-tests: Do not check for io.h.
10013         * tests/test-poll.c: Check for __MSVCRT__ instead.
10014
10015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10016
10017         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
10018         * modules/poll-tests: Add inet_pton, stdbool, sockets.
10019         * tests/test-poll.c: Use them.  Use _pipe on Windows.
10020
10021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10022
10023         * modules/poll-tests: New.
10024         * tests/test-poll.c: New.
10025
10026 2008-09-12  Eric Blake  <ebb9@byu.net>
10027
10028         frexp: test for NetBSD failure on -0.0
10029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
10030         not all, bugs from NetBSD 3.0 have been fixed.
10031         * doc/posix-functions/frexp.texi (frexp): Document bug.
10032         Reported by Thomas Klausner.
10033
10034         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
10035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
10036         literal -0.0.
10037         Reported by Jonathan C. Patschke <jp@centtech.com>.
10038
10039 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10040
10041         * lib/glthread/cond.h: Use dummy implementation also if
10042         USE_WIN32_THREADS.
10043
10044 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10045
10046         * modules/fnmatch-posix (License): Change to LGPLv2+.
10047         * modules/fnmatch-gnu (License): Likewise.
10048
10049 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10050
10051         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
10052
10053 2008-09-11  Jim Meyering  <meyering@redhat.com>
10054
10055         * users.txt: Add gtk-vnc.
10056
10057 2008-09-08  Simon Josefsson  <simon@josefsson.org>
10058
10059         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
10060         rotate amounts.
10061
10062         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
10063         required for 16-bit and 8-bit rotates.
10064         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
10065         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
10066         UINT8_MAX instead of hard-coded constants.
10067         Suggested by Paul Eggert.
10068
10069 2008-09-07  Bruno Haible  <bruno@clisp.org>
10070
10071         * tests/test-striconveh.c (main): Check behaviour when converting from
10072         UTF-7.
10073
10074         Make striconveh work better with stateful encodings.
10075         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
10076         that iconv does not increment the inptr when returning -1/EINVAL.
10077
10078 2008-09-07  Bruno Haible  <bruno@clisp.org>
10079
10080         * build-aux/config.rpath: Update according to libtool-2.2.6.
10081         * build-aux/config.libpath: Likewise.
10082
10083 2008-09-06  Bruno Haible  <bruno@clisp.org>
10084
10085         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
10086         * lib/freadptr.c (freadptr): Likewise.
10087         * lib/freadseek.c (freadptrinc): Likewise.
10088         Reported by Simon Josefsson.
10089
10090 2008-09-06  Bruno Haible  <bruno@clisp.org>
10091
10092         * modules/freadptr (License): Change to LGPLv2+.
10093         * modules/freadseek (License): Likewise.
10094         Suggested by Eric Blake.
10095
10096         * modules/memchr2 (License): Change to LGPLv2+.
10097         Approved by Eric Blake.
10098
10099 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10100             Bruno Haible  <bruno@clisp.org>
10101
10102         Make gnulib-tool work with native 'sed' on AIX.
10103         * gnulib-tool (sed_noop): New variable.
10104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
10105         func_add_or_update, func_create_testdir): Use it to initialize sed
10106         script variables.
10107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10108
10109 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
10110             Bruno Haible  <bruno@clisp.org>
10111
10112         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
10113         also works after #include directives.
10114
10115 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
10116
10117         getdate.y: reject an out-of-range timezone value
10118         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
10119         the range [-24...+24].  When specified with only one or two digits,
10120         * tests/test-getdate.c: Tests for the fix.
10121         * doc/getdate.texi: Document this change.
10122
10123 2008-09-03  Bruno Haible  <bruno@clisp.org>
10124
10125         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
10126
10127 2008-09-02  Simon Josefsson  <simon@josefsson.org>
10128
10129         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
10130         <bruce.korb@gmail.com> with ideas from Ben Pfaff
10131         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
10132         Blake <ebb9@byu.net>.
10133
10134         * tests/test-bitrotate.c: Add more test vectors.
10135
10136 2008-09-02  Eric Blake  <ebb9@byu.net>
10137
10138         vasnprintf-posix: handle large precision via %.*d
10139         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
10140         when handling it ourselves.
10141         * tests/test-vasnprintf-posix.c (test_function): Add test.
10142         * tests/test-snprintf-posix.h (test_function): Likewise.
10143         * tests/test-sprintf-posix.h (test_function): Likewise.
10144         * tests/test-vasprintf-posix.c (test_function): Likewise.
10145         Reported by Alain Guibert.
10146
10147 2008-09-01  Eric Blake  <ebb9@byu.net>
10148
10149         c-stack: make configure-time check more robust
10150         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
10151         successful sigaction call.
10152         Reported by Tom G. Christensen.
10153
10154 2008-09-01  Bruno Haible  <bruno@clisp.org>
10155
10156         New module 'findprog-lgpl'.
10157         * modules/findprog-lgpl: New file.
10158         * lib/findprog-lgpl.c: New file.
10159         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
10160         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
10161         to decide whether to use strdup or xstrdup, concatenated_filename or
10162         xconcatenated_filename.
10163
10164 2008-09-01  Bruno Haible  <bruno@clisp.org>
10165
10166         Split module 'concat-filename' into 'concat-filename' (LGPL) and
10167         'xconcat-filename' (GPL).
10168         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
10169         (License): Change to LGPLv2+.
10170         * modules/xconcat-filename: New file.
10171         * lib/concat-filename.h (concatenated_filename): Change specification.
10172         (xconcatenated_filename): New declaration.
10173         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
10174         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
10175         memory situations.
10176         * lib/xconcat-filename.c: New file.
10177         * NEWS: Mention the change.
10178         * lib/findprog.c: Include concat-filename.h, not filename.h.
10179         (find_in_path): Use xconcatenated_filename instead of
10180         concatenated_filename.
10181         * lib/javacomp.c: Include concat-filename.h, not filename.h.
10182         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10183         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10184         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10185         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
10186         instead of concatenated_filename.
10187         * lib/javaexec.c: Include concat-filename.h, not filename.h.
10188         (execute_java_class): Use xconcatenated_filename instead of
10189         concatenated_filename.
10190         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
10191         * modules/javacomp (Depends-on): Likewise.
10192         * modules/javaexec (Depends-on): Likewise.
10193
10194 2008-09-01  Bruno Haible  <bruno@clisp.org>
10195
10196         Split module 'filename' into 'filename' and 'concat-filename'.
10197         * modules/filename: Keep only lib/filename.h.
10198         (License): Change to LGPLv2+.
10199         * modules/concat-filename: New file, extracted from modules/filename.
10200         * lib/filename.h (concatenated_filename): Remove declaration.
10201         * lib/concat-filename.h: New file, extracted from lib/filename.h.
10202         * lib/concat-filename.c: Include concat-filename.h.
10203         * NEWS: Mention the change.
10204
10205 2008-09-01  Simon Josefsson  <simon@josefsson.org>
10206
10207         * lib/bitrotate.h (rotl8, rotr8): Add.
10208
10209         * modules/bitrotate (configure.ac): Need
10210         AC_REQUIRE([AC_C_INLINE]).
10211         (Description): Mention stdint.h.  Reported by Bruno Haible
10212         <bruno@clisp.org>.
10213
10214         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
10215         Paolo Bonzini <bonzini@gnu.org>.
10216
10217 2008-08-31  Bruno Haible  <bruno@clisp.org>
10218
10219         Assume Solaris specific bi-arch conventions on Solaris systems.
10220         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
10221         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
10222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
10223         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
10224         like acl_libdirstem.
10225         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
10226         acl_libdirstem.
10227         * NEWS: Mention the change.
10228         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
10229
10230 2008-08-31  Jim Meyering  <meyering@redhat.com>
10231
10232         * lib/strftime.h: Add comments describing the two added arguments.
10233
10234         remove duplicate #include directives
10235         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
10236         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
10237
10238 2008-08-31  Bruno Haible  <bruno@clisp.org>
10239
10240         New module 'sigpipe-die'.
10241         * modules/sigpipe-die: New file.
10242         * lib/sigpipe-die.h: New file.
10243         * lib/sigpipe-die.c: New file.
10244         * MODULES.html.sh (Signal handling): Add sigpipe-die.
10245
10246 2008-08-31  Bruno Haible  <bruno@clisp.org>
10247
10248         Don't override previously installed signal handlers.
10249         * lib/fatal-signal.c (saved_sigactions): New variable.
10250         (uninstall_handlers): Reset the signal to the saved handler, not
10251         to SIG_DFL (except when ignored).
10252         (install_handlers): Save the previous handlers.
10253
10254 2008-08-30  Bruno Haible  <bruno@clisp.org>
10255
10256         * gnulib-tool (func_reset_sigpipe): New function.
10257         (func_get_automake_snippet, func_modules_transitive_closure,
10258         func_import): Invoke it before a join command that reads from stdin,
10259         to avoid "echo: write error: Broken pipe" error messages on stderr.
10260         Reported by Sam Steingold <sds@gnu.org>.
10261
10262 2008-08-30  Bruno Haible  <bruno@clisp.org>
10263
10264         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
10265         Code copied from m4/open.m4.
10266         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
10267         access and the filename ends in a slash. Code copied from lib/open.c.
10268         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
10269         * tests/test-fopen.c (main): Check against bug with trailing slash.
10270
10271 2008-08-29  Bruno Haible  <bruno@clisp.org>
10272
10273         Avoid some "gcc -pedantic" warnings.
10274         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
10275         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
10276         * lib/dirent.in.h: Likewise.
10277         * lib/fcntl.in.h: Likewise.
10278         * lib/float.in.h: Likewise.
10279         * lib/iconv.in.h: Likewise.
10280         * lib/inttypes.in.h: Likewise.
10281         * lib/locale.in.h: Likewise.
10282         * lib/math.in.h: Likewise.
10283         * lib/netinet_in.in.h: Likewise.
10284         * lib/search.in.h: Likewise.
10285         * lib/signal.in.h: Likewise.
10286         * lib/stdarg.in.h: Likewise.
10287         * lib/stdint.in.h: Likewise.
10288         * lib/stdio.in.h: Likewise.
10289         * lib/stdlib.in.h: Likewise.
10290         * lib/string.in.h: Likewise.
10291         * lib/strings.in.h: Likewise.
10292         * lib/sys_select.in.h: Likewise.
10293         * lib/sys_socket.in.h: Likewise.
10294         * lib/sys_stat.in.h: Likewise.
10295         * lib/sys_time.in.h: Likewise.
10296         * lib/sysexits.in.h: Likewise.
10297         * lib/time.in.h: Likewise.
10298         * lib/unistd.in.h: Likewise.
10299         * lib/wchar.in.h: Likewise.
10300         * lib/wctype.in.h: Likewise.
10301         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
10302         * modules/fchdir (Makefile.am): Likewise.
10303         * modules/fcntl (Makefile.am): Likewise.
10304         * modules/float (Makefile.am): Likewise.
10305         * modules/iconv_open (Makefile.am): Likewise.
10306         * modules/inttypes (Makefile.am): Likewise.
10307         * modules/locale (Makefile.am): Likewise.
10308         * modules/math (Makefile.am): Likewise.
10309         * modules/netinet_in (Makefile.am): Likewise.
10310         * modules/search (Makefile.am): Likewise.
10311         * modules/signal (Makefile.am): Likewise.
10312         * modules/stdarg (Makefile.am): Likewise.
10313         * modules/stdint (Makefile.am): Likewise.
10314         * modules/stdio (Makefile.am): Likewise.
10315         * modules/stdlib (Makefile.am): Likewise.
10316         * modules/string (Makefile.am): Likewise.
10317         * modules/strings (Makefile.am): Likewise.
10318         * modules/sys_select (Makefile.am): Likewise.
10319         * modules/sys_socket (Makefile.am): Likewise.
10320         * modules/sys_stat (Makefile.am): Likewise.
10321         * modules/sys_time (Makefile.am): Likewise.
10322         * modules/sysexits (Makefile.am): Likewise.
10323         * modules/time (Makefile.am): Likewise.
10324         * modules/unistd (Makefile.am): Likewise.
10325         * modules/wchar (Makefile.am): Likewise.
10326         * modules/wctype (Makefile.am): Likewise.
10327         Reported by Reuben Thomas <rrt@sc3d.org>.
10328
10329 2008-08-29  Bruno Haible  <bruno@clisp.org>
10330
10331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
10332         any more.
10333
10334 2008-08-29  Simon Josefsson  <simon@josefsson.org>
10335
10336         * MODULES.html.sh (Misc): Add bitrotate.
10337
10338         * modules/bitrotate: New file.
10339
10340         * lib/bitrotate.h: New file.
10341
10342         * modules/bitrotate-tests: New file.
10343
10344         * tests/test-bitrotate.c: New file.
10345
10346         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
10347         on the bitrotate module.
10348
10349         * lib/arctwo.c: Use new bitrotate module.
10350
10351 2008-08-29  Jim Meyering  <meyering@redhat.com>
10352
10353         bootstrap: merge changes from coreutils
10354         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
10355         of copied files.  Remove a kludge, now that this is fixed.
10356         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
10357         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
10358         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
10359
10360 2008-08-29  Bruno Haible  <bruno@clisp.org>
10361
10362         * MODULES.html.sh: Remove --cvs-urls option.
10363
10364 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
10365
10366         maint.mk: adjust to file name change
10367         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
10368
10369 2008-08-28  Jim Meyering  <meyering@redhat.com>
10370
10371         * modules/getndelim2 (License): Relicense to LGPLv2+.
10372         Approved by Richard Stallman for the version of 1995, and by
10373         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
10374
10375 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
10376
10377         * lib/getdelim.c (flockfile, funlockfile): Make all of them
10378         dummy if one is not available.  Do not touch them if
10379         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
10380         (getc_maybe_unlocked): New.
10381         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
10382
10383 2008-08-26  Eric Blake  <ebb9@byu.net>
10384
10385         doc/INSTALL: resync from autoconf
10386         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
10387         (INSTALL_PRELUDE): Delete; this is done more efficiently by
10388         moving...
10389         * install.texi [!autoconf]: ...here.  Resync from autoconf.
10390         * INSTALL: Regenerate.
10391         * INSTALL.ISO: New file.
10392         * INSTALL.UTF-8: Likewise.
10393
10394 2008-08-26  Jim Meyering  <meyering@redhat.com>
10395
10396         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
10397         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
10398         these definitions conditional, so that they may be overridden, too.
10399
10400 2008-08-26  Bruno Haible  <bruno@clisp.org>
10401
10402         Generate INSTALL file variants with prettier quotes.
10403         * doc/Makefile (INSTALL_PRELUDE): New macro.
10404         (INSTALL): Use it.
10405         (INSTALL.ISO, INSTALL.UTF-8): New rules.
10406
10407 2008-08-26  Bruno Haible  <bruno@clisp.org>
10408
10409         Run makeinfo in an English locale.
10410         * doc/Makefile (MAKEINFO): New variable.
10411
10412 2008-08-26  Bruno Haible  <bruno@clisp.org>
10413
10414         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
10415         Suggested by Eric Blake.
10416
10417 2008-08-25  Bruno Haible  <bruno@clisp.org>
10418
10419         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
10420
10421 2008-08-25  Eric Blake  <ebb9@byu.net>
10422
10423         c-stack: test that stack overflow can be caught
10424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
10425         that platform allows handling stack overflow; at least OS/2 EMX
10426         has sigaltstack, but crashes before transferring control to
10427         handler on stack overflow.
10428         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
10429         check for HAVE_STACK_OVERFLOW_HANDLING.
10430         Reported by Elbert Pol.
10431
10432 2008-08-25  Bruno Haible  <bruno@clisp.org>
10433
10434         * doc/posix-functions/strftime.texi: Fix description of strftime
10435         module.
10436
10437 2008-08-24  Bruno Haible  <bruno@clisp.org>
10438
10439         * tests/uniwidth/test-uc_width2.c: New file.
10440         * tests/uniwidth/test-uc_width2.sh: New file.
10441         * modules/uniwidth/width-tests (Files): Add the new files.
10442         (TESTS): Add uniwidth/test-uc_width2.sh.
10443         (TESTS_ENVIRONMENT): New variable.
10444         (check_PROGRAMS): Add test-uc_width2.
10445         (test_uc_width2_SOURCES): New variable.
10446
10447         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
10448         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
10449         not 0x00AB.
10450         Reported by Alexander V. Lukyanov <lav@netis.ru>.
10451
10452 2008-08-22  Eric Blake  <ebb9@byu.net>
10453
10454         test-lock, test-tls: mention why a test is skipped
10455         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
10456         skipped.
10457         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
10458
10459         count-one-bits: relax license
10460         * modules/count-one-bits (License): Relicense to LGPLv2+.
10461         Suggested by Ludovic Courtès, approved by Ben Pfaff.
10462
10463 2008-08-22  Andreas Schwab  <schwab@suse.de>
10464
10465         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10466         Remove spurious space in assignment.
10467
10468 2008-08-21  Simon Josefsson  <simon@josefsson.org>
10469
10470         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
10471         Paul Eggert <eggert@CS.UCLA.EDU>.
10472
10473 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
10474
10475         * modules/gettext: Add m4/threadlib.m4.
10476
10477 2008-08-19  Eric Blake  <ebb9@byu.net>
10478
10479         test-c-stack: fix compilation failure on FreeBSD 5.0
10480         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
10481         headers before <sys/resource.h>.
10482         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
10483         the bug.
10484         Reported by Nelson H. F. Beebe.
10485
10486         strverscmp: migrate from "strverscmp.h" to <string.h>
10487         * modules/string (Makefile.am): Add new hooks.
10488         * modules/strverscmp (Files): Remove strverscmp.h.
10489         (Depends-on): Add string.
10490         (configure.ac): Add indicator.
10491         (Include): Mention new header.
10492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
10493         defaults.
10494         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
10495         results.
10496         * lib/strverscmp.h: Delete.
10497         * lib/string.in.h (strverscmp): Provide declaration, when needed.
10498         * tests/test-strverscmp.c (includes): Adjust client.
10499         * lib/check-version.c (includes): Likewise.
10500         * NEWS: Document the change.
10501
10502         strverscmp: add unit test
10503         * modules/strverscmp-tests: New file.
10504         * tests/test-strverscmp.c: Likewise.
10505
10506 2008-08-19  Simon Josefsson  <simon@josefsson.org>
10507
10508         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
10509         regarding Windows crypto stuff, from Mono.
10510
10511 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
10512
10513         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
10514         if present, for intel RND.  Return error on failures.
10515
10516 2008-08-18  Ben Pfaff  <blp@gnu.org>
10517
10518         gitlog-to-changelog: give better diagnostic for failed pipe-open
10519         * build-aux/gitlog-to-changelog: Improve error message: suggest
10520         that the version of Git may be too old.
10521
10522 2008-08-18  Simon Josefsson  <simon@josefsson.org>
10523
10524         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
10525         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
10526
10527 2008-08-18  Bruno Haible  <bruno@clisp.org>
10528
10529         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
10530         pthread_in_use().
10531
10532 2008-08-18  Bruno Haible  <bruno@clisp.org>
10533
10534         * lib/glthread/threadlib.c: Include <pthread.h>.
10535
10536 2008-08-18  Bruno Haible  <bruno@clisp.org>
10537
10538         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
10539         glthread_recursive_lock_* macros.
10540         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
10541         Fix syntax error.
10542
10543 2008-08-18  Bruno Haible  <bruno@clisp.org>
10544
10545         * lib/glthread/thread.c: Avoid forcing a context switch right after
10546         thread creation.
10547
10548 2008-08-17  Bruno Haible  <bruno@clisp.org>
10549
10550         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
10551         * lib/glthread/thread.h: Provide Win32 specific implementation.
10552         * modules/thread (Files): Add lib/glthread/thread.c.
10553         (Depends-on): Add lock.
10554         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
10555
10556 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10557
10558         New module 'yield'.
10559         * modules/yield: New file.
10560         * lib/glthread/yield.h: New file.
10561         * m4/yield.m4: New file.
10562         * MODULES.html.sh (Multithreading): Add yield.
10563
10564 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10565
10566         New module 'thread'.
10567         * modules/thread: New file.
10568         * lib/glthread/thread.h: New file.
10569         * m4/thread.m4: New file.
10570         * MODULES.html.sh (Multithreading): Add thread.
10571
10572 2008-08-17  Bruno Haible  <bruno@clisp.org>
10573
10574         * lib/glthread/lock.h: Include <stdlib.h> always.
10575         * lib/glthread/tls.h: Likewise.
10576         * lib/glthread/cond.h: Likewise.
10577
10578 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10579
10580         New module 'cond'.
10581         * modules/cond: New file.
10582         * lib/glthread/cond.h: New file.
10583         * lib/glthread/cond.c: New file.
10584         * m4/cond.m4: New file.
10585         * MODULES.html.sh (Multithreading): Add cond.
10586
10587 2008-08-16  Eric Blake  <ebb9@byu.net>
10588
10589         c-stack: fix regression on Irix 5.3 from 2008-06-21
10590         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
10591         sa_sigaction...
10592         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
10593         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
10594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
10595         * modules/signal (Makefile.am): Use the value.
10596         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
10597         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
10598         * doc/posix-headers/signal.texi (signal.h): Document this
10599         portability issue.
10600         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
10601         Reported by Tom G. Christensen.
10602
10603 2008-08-17  Bruno Haible  <bruno@clisp.org>
10604
10605         New module 'threadlib'.
10606         * modules/threadlib: New file.
10607         * lib/glthread/threadlib.c: New file, extracted from
10608         lib/glthread/lock.c.
10609         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
10610         functions.
10611         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
10612         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
10613         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
10614         macros.
10615         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
10616         (gl_DISABLE_THREADS): Remove macro.
10617         * modules/lock (Files): Remove build-aux/config.rpath.
10618         (Depends-on): Remove havelib. Add threadlib.
10619         (configure.ac-early): Remove section.
10620         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
10621         * modules/tls (Depends-on): Remove lock. Add threadlib.
10622         (Link): New section, copied from threadlib.
10623         * MODULES.html.sh (Multithreading): Add threadlib.
10624
10625 2008-08-14  Bruno Haible  <bruno@clisp.org>
10626
10627         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
10628         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
10629         glthread_rwlock_unlock, glthread_rwlock_destroy,
10630         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
10631         glthread_recursive_lock_destroy): Define as macros always.
10632         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
10633         glthread_lock_lock.
10634         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
10635         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
10636         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
10637         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
10638         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
10639         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
10640         (glthread_recursive_lock_lock_func): Renamed from
10641         glthread_recursive_lock_lock.
10642         (glthread_recursive_lock_unlock_func): Renamed from
10643         glthread_recursive_lock_unlock.
10644         (glthread_recursive_lock_destroy_func): Renamed from
10645         glthread_recursive_lock_destroy.
10646
10647 2008-08-14  Bruno Haible  <bruno@clisp.org>
10648
10649         * lib/glthread/lock.h: Renamed from lib/lock.h.
10650         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
10651         * lib/glthread/tls.h: Renamed from lib/tls.h.
10652         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
10653         * lib/fstrcmp.c: Update includes.
10654         * lib/strsignal.c: Update includes.
10655         * modules/lock (Files, Makefile.am): Update.
10656         (Include): Change to "glthread/lock.h".
10657         * modules/tls (Files, Makefile.am): Update.
10658         (Include): Change to "glthread/tls.h".
10659         * tests/test-lock.c: Update includes.
10660         * tests/test-tls.c: Update includes.
10661         * NEWS: Mention the renamed header files.
10662
10663 2008-08-11  Jim Meyering  <meyering@redhat.com>
10664
10665         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
10666
10667 2008-08-11  Eric Blake  <ebb9@byu.net>
10668
10669         test-c-stack: avoid C99-ism
10670         * tests/test-c-stack.c (main): Fix whitespace, move declaration
10671         before statement.
10672         Reported by Alain Guibert.
10673
10674 2008-08-10  Jim Meyering  <meyering@redhat.com>
10675
10676         ensure that return value of uinttostr et al are not ignored
10677         * lib/inttostr.h (__GNUC_PREREQ): Define.
10678         (__attribute_warn_unused_result__): Define.
10679         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
10680
10681 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
10682
10683         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
10684         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
10685
10686 2008-08-07  Jim Meyering  <meyering@redhat.com>
10687
10688         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
10689
10690         * modules/mkstemp (License): Relicense under LGPLv2+.
10691         * modules/tempname (License): Likewise.
10692
10693 2008-08-06  Bruno Haible  <bruno@clisp.org>
10694
10695         * lib/poll.c (poll): Further micro-optimization.
10696
10697 2008-08-06  Jim Meyering  <meyering@redhat.com>
10698
10699         inet_pton.c: use locale-independent tolower
10700         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
10701         (inet_pton6): Use c_tolower rather than tolower.
10702         * modules/inet_pton (Depends-on): Add c-ctype.
10703
10704 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
10705
10706         * lib/poll.c (poll): Avoid division when timeout is 0, cache
10707         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
10708
10709 2008-08-06  Jim Meyering  <meyering@redhat.com>
10710
10711         * modules/inet_pton (License): Relicense under LGPLv2+.
10712
10713 2008-08-03  Bruno Haible  <bruno@clisp.org>
10714
10715         Additional non-aborting API for lock and tls.
10716         * lib/lock.h: Include <errno.h>.
10717         (glthread_lock_init): New macro/function.
10718         (gl_lock_init): Define as wrapper around glthread_lock_init.
10719         (glthread_lock_lock): New macro/function.
10720         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
10721         (glthread_lock_unlock): New macro/function.
10722         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
10723         (glthread_lock_destroy): New macro/function.
10724         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
10725         (glthread_rwlock_init): New macro/function.
10726         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
10727         (glthread_rwlock_rdlock): New macro/function.
10728         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
10729         (glthread_rwlock_wrlock): New macro/function.
10730         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
10731         (glthread_rwlock_unlock): New macro/function.
10732         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
10733         (glthread_rwlock_destroy): New macro/function.
10734         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
10735         (glthread_recursive_lock_init): New macro/function.
10736         (gl_recursive_lock_init): Define as wrapper around
10737         glthread_recursive_lock_init.
10738         (glthread_recursive_lock_lock): New macro/function.
10739         (gl_recursive_lock_lock): Define as wrapper around
10740         glthread_recursive_lock_lock.
10741         (glthread_recursive_lock_unlock): New macro/function.
10742         (gl_recursive_lock_unlock): Define as wrapper around
10743         glthread_recursive_lock_unlock.
10744         (glthread_recursive_lock_destroy): New macro/function.
10745         (gl_recursive_lock_destroy): Define as wrapper around
10746         glthread_recursive_lock_destroy.
10747         (glthread_once): New macro/function.
10748         (gl_once): Define as wrapper around glthread_once.
10749         Update function declarations.
10750         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
10751         glthread_rwlock_init. Return error code.
10752         (glthread_rwlock_rdlock_multithreaded): Renamed from
10753         glthread_rwlock_rdlock. Return error code.
10754         (glthread_rwlock_wrlock_multithreaded): Renamed from
10755         glthread_rwlock_wrlock. Return error code.
10756         (glthread_rwlock_unlock_multithreaded): Renamed from
10757         glthread_rwlock_unlock. Return error code.
10758         (glthread_rwlock_destroy_multithreaded): Renamed from
10759         glthread_rwlock_destroy. Return error code.
10760         (glthread_recursive_lock_init_multithreaded): Renamed from
10761         glthread_recursive_lock_init. Return error code.
10762         (glthread_recursive_lock_lock_multithreaded): Renamed from
10763         glthread_recursive_lock_lock. Return error code.
10764         (glthread_recursive_lock_unlock_multithreaded): Renamed from
10765         glthread_recursive_lock_unlock. Return error code.
10766         (glthread_recursive_lock_destroy_multithreaded): Renamed from
10767         glthread_recursive_lock_destroy. Return error code.
10768         (glthread_once_call): Make static.
10769         (glthread_once_multithreaded): Renamed from glthread_once.
10770         * lib/tls.h: Include <errno.h>.
10771         (glthread_tls_key_init): New macro/function.
10772         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
10773         (glthread_tls_set): New macro/function.
10774         (gl_tls_set): Define as wrapper around glthread_tls_set.
10775         (glthread_tls_key_destroy): New macro/function.
10776         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
10777         Update function declarations.
10778         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
10779         glthread_tls_get.
10780         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10781
10782 2008-08-04  Eric Blake  <ebb9@byu.net>
10783
10784         gnumakefile: use space, not TAB, outside of targets
10785         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
10786
10787 2008-08-02  Jim Meyering  <meyering@redhat.com>
10788
10789         getdate.y: avoid locale-dependent date parsing failure
10790         In Turkish locales, getdate would fail to recognize keywords
10791         containing a lowercase "i".  The solution is not to rely on
10792         locale-sensitive case-conversion.
10793         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
10794         (lookup_word): Use c_toupper in place of toupper.
10795         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
10796         Reported by Vefa Bicakci <bicave@superonline.com> in
10797         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
10798         * modules/getdate (Depends-on): Add c-ctype.
10799
10800 2008-08-02  Bruno Haible  <bruno@clisp.org>
10801
10802         * gnulib-tool (func_import): When updating or creating a .gitignore
10803         file, prepend each added line with a slash, and ignore leading slashes
10804         from the existing lines.
10805         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10806
10807 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10808
10809         Portability fix for GNU make 3.79.1.
10810         * top/GNUmakefile: Avoid 'else COND', which older GNU make
10811         versions do not understand.
10812
10813 2008-08-01  Bruno Haible  <bruno@clisp.org>
10814
10815         Work around bug of HP-UX 10.20 cc with -0.0 literal.
10816         * tests/test-isnanf.h (zero): New variable.
10817         (main): Avoid literal -0.0f.
10818         * tests/test-isnand.h (zero): New variable.
10819         (main): Avoid literal -0.0.
10820         * tests/test-isnanl.h (zero): New variable.
10821         (main): Avoid literal -0.0L.
10822         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
10823         (test_float, test_double, test_long_double): Avoid literals -0.0f,
10824         -0.0, -0.0L.
10825         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
10826         (test_signbitd): Avoid literal -0.0.
10827         (test_signbitl): Avoid literal -0.0L.
10828         * tests/test-ceilf1.c (zero): New variable.
10829         (main): Avoid literal -0.0f.
10830         * tests/test-ceill.c (zero): New variable.
10831         (main): Avoid literal -0.0L.
10832         * tests/test-floorf1.c (zero): New variable.
10833         (main): Avoid literal -0.0f.
10834         * tests/test-floorl.c (zero): New variable.
10835         (main): Avoid literal -0.0L.
10836         * tests/test-roundf1.c (zero): New variable.
10837         (main): Avoid literal -0.0f.
10838         * tests/test-round1.c (zero): New variable.
10839         (main): Avoid literal -0.0.
10840         * tests/test-roundl.c (zero): New variable.
10841         (main): Avoid literal -0.0L.
10842         * tests/test-truncf1.c (zero): New variable.
10843         (main): Avoid literal -0.0f.
10844         * tests/test-trunc1.c (zero): New variable.
10845         (main): Avoid literal -0.0.
10846         * tests/test-truncl.c (zero): New variable.
10847         (main): Avoid literal -0.0L.
10848         * tests/test-frexp.c (zero): New variable.
10849         (main): Avoid literal -0.0.
10850         * tests/test-frexpl.c (zero): New variable.
10851         (main): Avoid literal -0.0L.
10852         * tests/test-ldexpl.c (zero): New variable.
10853         (main): Avoid literal -0.0L.
10854         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
10855         (zerod, zerol): New variables.
10856         (test_function): Avoid literals -0.0, -0.0L.
10857         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
10858         (zerod, zerol): New variables.
10859         (test_function): Avoid literals -0.0, -0.0L.
10860         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
10861         (zerod, zerol): New variables.
10862         (test_function): Avoid literals -0.0, -0.0L.
10863         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
10864         (zerod, zerol): New variables.
10865         (test_function): Avoid literals -0.0, -0.0L.
10866         * tests/test-strtod.c (zero): New variable.
10867         (main): Avoid literal -0.0.
10868         Reported by Jonathan C. Patschke <jp@centtech.com>.
10869
10870 2008-07-31  Jim Meyering  <meyering@redhat.com>
10871
10872         sha256.h: correct definition of SHA224_DIGEST_SIZE
10873         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
10874         Reported by Paulie Pena IV <paulie4@gmail.com>.
10875         Define as 224 / 8, rather than as a literal.
10876         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
10877         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
10878         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
10879
10880 2008-07-31  Bruno Haible  <bruno@clisp.org>
10881
10882         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
10883         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
10884         Reported by Jonathan Patschke <jp@centtech.com>.
10885
10886 2008-07-31  Bruno Haible  <bruno@clisp.org>
10887
10888         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
10889         Reported by Paolo Bonzini <bonzini@gnu.org>.
10890
10891 2008-07-30  Eric Blake  <ebb9@byu.net>
10892
10893         test-strtod: allow compilation without -lm
10894         * tests/test-strtod.c (main): Avoid link dependence on fabs.
10895         Reported by Dennis Clarke <blastwave@gmail.com>.
10896
10897 2008-07-28  Jim Meyering  <meyering@redhat.com>
10898
10899         bootstrap: work also when there are no .po files in po/
10900         * build-aux/bootstrap (update_po_files): Complete the change
10901         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
10902
10903 2008-07-27  Jim Meyering  <meyering@redhat.com>
10904
10905         * users.txt: Add zile.
10906
10907 2008-07-26  Ben Pfaff  <blp@gnu.org>
10908
10909         Add missing dependencies on new m4/exponent[fdl].m4 files.
10910         * modules/isnanf-nolibm: Add m4/exponentf.m4.
10911         * modules/isnand-nolibm: Add m4/exponentd.m4.
10912         * modules/isnanl-nolibm: Add m4/exponentl.m4.
10913         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
10914         m4/isnan[fdl].m4, because the macros actually used moved.
10915         Reported by Jim Meyering.
10916
10917 2008-07-14  Ben Pfaff  <blp@gnu.org>
10918
10919         Add isinf module.
10920         * lib/isinf.c: New file.
10921         * lib/math.in.h: Define isinf macro if we have decided to replace
10922         it.
10923         * m4/isinf.m4: New file.
10924         * m4/math_h.m4: Initialize and substitute variables for isinf
10925         module.
10926         * modules/isinf: New file.
10927         * modules/isinf-tests: New file.
10928         * modules/math: Add substitutions for new module.
10929         * tests/test-isinf.c: New file.
10930         * doc/posix-functions/isinf.texi: Mention new module.
10931         * MODULES.html.sh: Mention new module.
10932
10933 2008-07-14  Ben Pfaff  <blp@gnu.org>
10934
10935         Factor out some macros for use by additional modules.
10936         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
10937         exponentf.m4.
10938         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
10939         exponentd.m4.
10940         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
10941         file exponentl.m4.
10942         * m4/exponentf.m4: New file.
10943         * m4/exponentd.m4: New file.
10944         * m4/exponentl.m4: New file.
10945         * modules/isnanf: Use new file m4/exponentf.m4.
10946         * modules/isnand: Use new file m4/exponentd.m4.
10947         * modules/isnanl: Use new file m4/exponentl.m4.
10948
10949 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
10950
10951         mktime.c: normalize tp->tm_isdst value to -1/0/1.
10952         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
10953         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
10954         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
10955
10956         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
10957         readlink on platforms without PATH_MAX.
10958
10959 2008-07-21  Eric Blake  <ebb9@byu.net>
10960
10961         Warn, not fail, on stale version.
10962         * top/GNUmakefile (_curr-ver): Tone down previous patch.
10963
10964         Don't allow installation with stale devel version number.
10965         * top/GNUmakefile (_is-install-target): New macro.
10966         (_curr-ver): Forbid installation with stale version number.
10967
10968 2008-07-20  Bruno Haible  <bruno@clisp.org>
10969
10970         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
10971         TESTS_ENVIRONMENT.
10972         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
10973
10974 2008-07-20  Bruno Haible  <bruno@clisp.org>
10975
10976         * lib/c-stack.h (c_stack_action): Add documentation.
10977         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
10978
10979 2008-07-20  Bruno Haible  <bruno@clisp.org>
10980
10981         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
10982         * modules/readlink (License): Likewise.
10983
10984 2008-07-17  Eric Blake  <ebb9@byu.net>
10985
10986         * modules/c-stack (Link): Fix typo.
10987
10988         Make c-stack use libsigsegv, when available.
10989         * modules/c-stack (Depends-on): Add libsigsegv.
10990         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
10991         needed.
10992         * lib/c-stack.c (SIGSTKSZ): Define fallback.
10993         (segv_handler, overflow_handler, c_stack_action)
10994         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
10995         implementation when libsigsegv is available, but only when using
10996         the library is necessary.
10997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
10998         comment, explaining why XSI check fails on Linux.
10999         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
11000         * tests/test-c-stack2.sh: Tweak skip message.
11001         * NEWS: Document new link-time requirements.
11002
11003 2008-07-16  Eric Blake  <ebb9@byu.net>
11004
11005         c-stack: Expose false positives when not using libsigsegv.
11006         * modules/c-stack-tests (Files): Expand test.
11007         * tests/test-c-stack.c (main): Add means to conditionally trigger
11008         non-overflow SIGSEGV.
11009         * tests/test-c-stack2.sh: New file.
11010
11011 2008-07-14  Bruno Haible  <bruno@clisp.org>
11012
11013         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
11014         Reported by Eric Blake.
11015
11016 2008-07-14  Sam Steingold  <sds@gnu.org>
11017             Bruno Haible  <bruno@clisp.org>
11018
11019         New module libsigsegv.
11020         * modules/libsigsegv: New file.
11021         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
11022         modifications.
11023         * MODULES.html.sh (Signal handling): New section.
11024
11025 2008-07-14  Bruno Haible  <bruno@clisp.org>
11026
11027         * modules/unictype/ctype-* (Description): Add the word "function".
11028         Improves the resulting doc in MODULES.html.
11029
11030 2008-07-12  Ben Pfaff  <blp@gnu.org>
11031
11032         Add longlong module.
11033         * modules/longlong: New file.
11034
11035 2008-07-12  Bruno Haible  <bruno@clisp.org>
11036
11037         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
11038         to empty.
11039
11040 2008-07-10  Ben Pfaff  <blp@gnu.org>
11041
11042         Add isnan module.
11043         * doc/posix-functions/isnan.texi: Mention new module.
11044         * lib/math.in.h: Define isnan macro if we have decided to replace
11045         it.
11046         * m4/isnan.m4: New file.
11047         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
11048         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
11049         also.
11050         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
11051         redundancy.
11052         * m4/math_h.m4: Initialize and substitute variables for isnan
11053         module.
11054         * modules/isnan: New file.
11055         * modules/isnan-tests: New file.
11056         * modules/math: Add substitutions for new module.
11057         * tests/test-isnan.c: New file.
11058         * MODULES.html.sh: Mention new module.
11059
11060 2008-07-10  Ben Pfaff  <blp@gnu.org>
11061
11062         Add isnanf module.
11063         * lib/isnanf.m4: New file.
11064         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
11065         (gl_HAVE_ISNANF_IN_LIBM): New macro.
11066         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
11067         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
11068         * modules/isnanf: New file.
11069         * modules/isnanf-tests: New file.
11070         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
11071         files.
11072         * tests/test-isnanf-nolibm.c: factored most of its contents into
11073         new file tests/test-isnanf.h.
11074         * tests/test-isnanf.h: New file.
11075         * tests/test-isnanf.c: New file.
11076         * MODULES.html.sh: Mention new module.
11077         * doc/glibc-functions/isnanf.texi: Mention new module.
11078
11079 2008-07-10  Ben Pfaff  <blp@gnu.org>
11080
11081         Add isnand module.
11082         * lib/isnand.h: New file.
11083         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
11084         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
11085         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
11086         functionality also.
11087         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
11088         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
11089         (gl_HAVE_ISNAND_IN_LIBM): New macro.
11090         * modules/isnand: New file.
11091         * modules/isnand-tests: New file.
11092         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
11093         files.
11094         * tests/test-isnand-nolibm.c: factored most of its contents into
11095         new file tests/test-isnand.h.
11096         * tests/test-isnand.h: New file.
11097         * tests/test-isnand.c: New file.
11098         * MODULES.html.sh: Mention new module.
11099
11100 2008-07-10  Ben Pfaff  <blp@gnu.org>
11101
11102         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
11103         * lib/isnand.h: Rename lib/isnand-nolibm.h.
11104         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
11105         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
11106         * modules/isnanf-nolibm: Update references to renamed files.
11107         * modules/isnand-nolibm: Likewise.
11108         * modules/isnanf-nolibm-tests: Likewise.
11109         * modules/isnand-nolibm-tests: Likewise.
11110         * lib/frexp.c: Likewise.
11111         * lib/isfinite.c: Likewise.
11112         * lib/signbitd.c: Likewise.
11113         * lib/signbitf.c: Likewise.
11114         * lib/vasnprintf.c: Likewise.
11115         * tests/test-ceilf1.c: Likewise.
11116         * tests/test-ceilf2.c: Likewise.
11117         * tests/test-floorf1.c: Likewise.
11118         * tests/test-floorf2.c: Likewise.
11119         * tests/test-frexp.c: Likewise.
11120         * tests/test-round1.c: Likewise.
11121         * tests/test-round2.c: Likewise.
11122         * tests/test-roundf1.c: Likewise.
11123         * tests/test-strtod.c: Likewise.
11124         * tests/test-trunc1.c: Likewise.
11125         * tests/test-trunc2.c: Likewise.
11126         * tests/test-truncf1.c: Likewise.
11127         * tests/test-truncf2.c: Likewise.
11128         * NEWS: Mention the renamed header files.
11129
11130 2008-07-11  Jim Meyering  <meyering@redhat.com>
11131
11132         vc-list-files: make the last-resort awk code more portable
11133         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
11134         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
11135         does not support it.
11136
11137 2008-07-10  Eric Blake  <ebb9@byu.net>
11138
11139         Work with tar's bootstrap.
11140         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
11141         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
11142         an m4 comment.
11143
11144 2008-07-09  Jim Meyering  <meyering@redhat.com>
11145
11146         posix-shell.m4: fix typo that made this test malfunction
11147         * m4/posix-shell.m4: Remove capitalization in variable name.
11148
11149 2008-07-08  Bruno Haible  <bruno@clisp.org>
11150
11151         * m4/onceonly.m4: Update comments.
11152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11153
11154 2008-07-04  Jim Meyering  <meyering@redhat.com>
11155
11156         * users.txt: Add vc-dwim.
11157         (bison, coreutils): Use the gitweb URL.
11158
11159 2008-07-03  Jim Meyering  <meyering@redhat.com>
11160
11161         * users.txt: Add libffcall.  From Sam Steingold.
11162
11163 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
11164
11165         getdate.y: do not ignore TZ with relative day, month or year offset
11166         * lib/getdate.y (get_date): Move the tz-handling block to follow the
11167         relative-date-handling, since otherwise, the latter would clobber the
11168         sole output (an updated Start value) of the tz-handling block.
11169         * tests/test-getdate.c: Tests for the fix
11170
11171 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11172
11173         Recognize 'foo_LIBRARIES += libgnu.a'.
11174         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
11175         makefile snippet has already specified an installation location,
11176         also using '+='.
11177
11178 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
11179
11180         getdate.y: factor out common actions
11181         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
11182         Use them in place of open-coded actions.
11183
11184 2008-07-01  Simon Josefsson  <simon@josefsson.org>
11185
11186         Add self-test for getdate module.
11187         * modules/getdate-tests: New file.
11188         * tests/test-getdate.c: New file.
11189
11190 2008-06-29  Bruno Haible  <bruno@clisp.org>
11191
11192         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
11193         .gitignore.
11194         Reported by Sylvain Beucler <beuc@beuc.net>.
11195
11196 2008-06-29  Bruno Haible  <bruno@clisp.org>
11197
11198         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
11199         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
11200
11201 2008-06-29  Bruno Haible  <bruno@clisp.org>
11202
11203         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
11204         EXTRA_DIST.
11205         Reported by Sylvain Beucler <beuc@beuc.net>.
11206
11207 2008-06-26  Jim Meyering  <meyering@redhat.com>
11208
11209         make several modules depend on the "open" module
11210         This provides slightly increased consistency when opening-for-write
11211         the name of a non-directory spelled with a trailing slash.
11212         * modules/chdir-safer: Likewise.
11213         * modules/chown: Likewise.
11214         * modules/clean-temp: Likewise.
11215         * modules/copy-file: Likewise.
11216         * modules/fchdir: Likewise.
11217         * modules/fcntl-safer: Likewise.
11218         * modules/pipe: Likewise.
11219         * modules/utime: Likewise.
11220         Prompted by Eric Blake and Bruno Haible.
11221
11222 2008-06-24  Andreas Schwab  <schwab@suse.de>
11223
11224         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
11225         literals can be used as initializers for global variables.
11226
11227 2008-06-23  Eric Blake  <ebb9@byu.net>
11228
11229         Make gnulib-cache.m4 easier to diff.
11230         * gnulib-tool (func_import): Allow newlines when reading cached
11231         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
11232
11233 2008-06-23  Bruno Haible  <bruno@clisp.org>
11234
11235         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
11236         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
11237         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
11238         m4/signalblocking.m4.
11239         (gl_PREREQ_SIGACTION): Don't invoke it.
11240         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
11241         gl_PREREQ_SIG_HANDLER_H.
11242         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11243         Don't check for sigaction here.
11244
11245 2008-06-23  Bruno Haible  <bruno@clisp.org>
11246
11247         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
11248         (install_handlers): Don't set the SA_RESETHAND flag.
11249
11250 2008-06-23  Bruno Haible  <bruno@clisp.org>
11251
11252         * m4/sigaction.m4: Comment fixes.
11253         * lib/signal.in.h: Likewise.
11254
11255 2008-06-23  Eric Blake  <ebb9@byu.net>
11256
11257         Fix typo.
11258         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
11259
11260         Avoid SA_ namespace.
11261         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
11262         Reported by Ralf Wildenhues.
11263
11264         Avoid test failure due to SA_RESTORER.
11265         * tests/test-sigaction.c (SA_MASK): New macro.
11266         (main): Avoid failing due to extension flags being set.
11267         Reported by Jim Meyering.
11268
11269         Revert use of sig-handler.h in sigprocmask.c.
11270         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
11271         it requires the existence of struct sigaction.
11272         * lib/sigprocmask.c (handler_t): Restore typedef.
11273         (rpl_signal, old_handlers): Use local type.
11274
11275 2008-06-22  Bruno Haible  <bruno@clisp.org>
11276
11277         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
11278         conditionally.
11279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11280
11281 2008-06-22  Bruno Haible  <bruno@clisp.org>
11282
11283         * doc/posix-functions/siginterrupt.texi: Move note.
11284
11285         * lib/signal.in.h (SA_RESTART): New macro.
11286         * lib/sigaction.c: Update comment.
11287
11288         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
11289
11290         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
11291         (gl_PREREQ_SIGPROCMASK): Invoke it.
11292         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
11293
11294         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
11295
11296         * lib/sigprocmask.c: Update a comment.
11297
11298 2008-06-21  Eric Blake  <ebb9@byu.net>
11299
11300         Use sigaction module rather than signal().
11301         * modules/c-stack (Depends-on): Add sigaction.
11302         * modules/fatal-signal (Depends-on): Likewise.
11303         * modules/nanosleep (Depends-on): Likewise.
11304         * modules/sigprocmask (Files): Add sig-handler.h.
11305         * modules/sigaction (Files): Likewise.
11306         * lib/sig-handler.h (get_handler): New file, suggested by Paul
11307         Eggert.
11308         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
11309         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
11310         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
11311         (init_fatal_signals): Likewise.
11312         * lib/nanosleep.c (rpl_nanosleep): Likewise.
11313         (siginterrupt): Delete fallback.
11314         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
11315         instead.
11316         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
11317         siginterrupt.
11318
11319         New module sigaction, for mingw.
11320         * modules/sigaction: New module...
11321         * modules/sigaction-tests: ...and its test.
11322         * m4/sigaction.m4: New file.
11323         * lib/sigaction.c: Likewise.
11324         * tests/test-sigaction.c: Likewise.
11325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
11326         * modules/signal (Makefile.am): Likewise.
11327         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
11328         needed.
11329         * doc/posix-headers/signal.texi (signal.h): Mention provided
11330         types.
11331         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
11332         that sigaction is preferable.
11333         * doc/posix-functions/sigaction.texi (sigaction): Mention new
11334         module.
11335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11336         sigaction.
11337
11338         Improve robustness of sigprocmask by overriding signal.
11339         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
11340         is in use.
11341         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
11342         (SIGKILL, SIGSTOP): Provide fallbacks.
11343         (rpl_signal): Implement.
11344         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
11345         signal can be called inside handlers.
11346
11347         Fix nanosleep module on mingw.
11348         * modules/nanosleep (Depends-on): Add sys_select.
11349         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
11350
11351         Fix licensing of sigprocmask.
11352         * modules/raise (License): Relicense as LGPL.
11353
11354 2008-06-21  Bruno Haible  <bruno@clisp.org>
11355
11356         * lib/propername.c (proper_name_utf8): Don't use the transliterated
11357         result if it contains question marks.
11358         Reported by Michael Geng <linux@michaelgeng.de>.
11359
11360 2008-06-19  Bruno Haible  <bruno@clisp.org>
11361
11362         Fix CVS-ism.
11363         * doc/gnulib.texi: Include updated-stamp.texi.
11364         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
11365         (updated-stamp.texi): New rule.
11366         (gnulib.info): Depend on it.
11367         * doc/.gitignore: Add updated-stamp.texi.
11368         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
11369
11370 2008-06-19  Bruno Haible  <bruno@clisp.org>
11371
11372         * doc/Makefile (gnulib.info): Update and simplify dependencies.
11373         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11374
11375 2008-06-19  Eric Blake  <ebb9@byu.net>
11376
11377         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
11378         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
11379         Reported by Stepan Kasal.
11380
11381 2008-06-18  Bruno Haible  <bruno@clisp.org>
11382
11383         * lib/fatal-signal.c (init_fatal_signals): Add comment.
11384         Reported by Eric Blake.
11385
11386 2008-06-18  Eric Blake  <ebb9@byu.net>
11387
11388         Work around cygwin 1.5.25 strsignal bug.
11389         * tests/test-strsignal.c: Allow for const char *.
11390         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
11391
11392 2008-06-18  Simon Josefsson  <simon@josefsson.org>
11393
11394         * users.txt: Update URL to article and add author/date
11395         information.
11396
11397 2008-06-17  Bruno Haible  <bruno@clisp.org>
11398
11399         New macro gl_DISABLE_THREADS.
11400         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
11401         if the user did not pass --enable-threads or --disable-threads option.
11402         (gl_DISABLE_THREADS): New macro.
11403         Reported by Eric Blake <ebb9@byu.net>.
11404
11405 2008-06-17  Bruno Haible  <bruno@clisp.org>
11406
11407         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
11408         when the macro ignores it.
11409         Based on a patch by Eric Blake <ebb9@byu.net>.
11410
11411 2008-06-17  Bruno Haible  <bruno@clisp.org>
11412
11413         * modules/tls (License): Change to LGPLv2+.
11414         Reported by Eric Blake.
11415
11416 2008-06-17  Eric Blake  <ebb9@byu.net>
11417
11418         Simplify c-stack prerequisites.
11419         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
11420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
11421         no longer requires <ucontext.h> to exist.  Optimize setrlimit
11422         check.
11423         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
11424         <sys/resource.h>.
11425
11426         Move c-stack test into testsuite.
11427         * modules/c-stack-tests: New file.
11428         * lib/c-stack.c [DEBUG]: Move test program...
11429         * tests/test-c-stack.c: ...into this new file.  Skip rather than
11430         fail test if sigaltstack is lacking.
11431         * tests/test-c-stack.sh: New driver file.
11432
11433 2008-06-16  Eric Blake  <ebb9@byu.net>
11434
11435         Use raise module consistently.
11436         * modules/fatal-signal (Depends-on): Add raise.
11437         * modules/sigprocmask (Depends-on): Likewise.
11438         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
11439         * lib/sigprocmask.c (sigprocmask): Likewise.
11440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
11442
11443         Fix compliance bug in sigpending.
11444         * lib/sigprocmask.c (sigpending): Return pending array via
11445         parameter, not return value.
11446
11447 2008-06-14  Eric Blake  <ebb9@byu.net>
11448
11449         Improve obstack-printf test code.
11450         * tests/test-obstack-printf.c (test_function): Fix comment, and
11451         simplify usage of obstack_* in macros.  Add a test for coverage.
11452         Reported by Bruno Haible.
11453
11454 2008-06-14  Bruno Haible  <bruno@clisp.org>
11455
11456         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
11457         array size as a constant, not as a const variable.
11458         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
11459         AC_USE_SYSTEM_EXTENSIONS.
11460         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
11461         Test whether the obstack_printf function actually exists.
11462         * modules/obstack-printf (Depends-on): Add extensions.
11463         (Include): Remove obstack.h.
11464         * modules/obstack-printf-posix (Depends-on): Add extensions.
11465         (Include): Remove obstack.h.
11466
11467 2008-06-13  Eric Blake  <ebb9@byu.net>
11468
11469         Add obstack-printf and obstack-printf-posix modules.
11470         * modules/obstack-printf: New file.
11471         * modules/obstack-printf-posix: Likewise.
11472         * MODULES.html.sh (Misc): Mention them.
11473         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
11474         Likewise.
11475         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
11476         Likewise.
11477         * modules/stdio (Makefile.am): Accomodate new modules.
11478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11479         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
11480         Declare.
11481         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
11482         functions.
11483         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
11484         (gl_REPLACE_OBSTACK_PRINTF): New macros
11485         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
11486         * tests/test-obstack-printf.c: New file.
11487         * modules/obstack-printf-tests: Likewise.
11488         * modules/obstack-printf-posix-tests: Likewise.
11489
11490 2008-06-11  Bruno Haible  <bruno@clisp.org>
11491
11492         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
11493         * lib/open.c: Include errno.h.
11494         (open): Fail when attempting to write to a file that has a trailing
11495         slash.
11496         * tests/test-open.c (main): Test against trailing slash bug.
11497         * doc/posix-functions/open.texi: Mention the trailing slash bug.
11498
11499 2008-06-10  Bruno Haible  <bruno@clisp.org>
11500
11501         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
11502         for $? to work inside the trap command, with various /bin/sh-s.
11503         * tests/test-vc-list-files-cvs.sh: Likewise.
11504
11505 2008-06-10  Bruno Haible  <bruno@clisp.org>
11506
11507         * lib/acl-internal.h: Don't include gettext.h here.
11508         * lib/set-mode-acl.c: Include gettext.h here.
11509         * lib/copy-acl.c: Likewise.
11510
11511 2008-06-10  Bruno Haible  <bruno@clisp.org>
11512
11513         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
11514         * lib/wait-process.c (wait_subprocess): Likewise.
11515         * lib/execute.h (execute): Add termsigp argument.
11516         * lib/execute.c (execute): Likewise.
11517         * lib/csharpcomp.c (compile_csharp_using_pnet,
11518         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
11519         * lib/csharpexec.c (execute_csharp_using_pnet,
11520         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
11521         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
11522         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
11523         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
11524         is_jikes_present): Update.
11525         * lib/javaexec.c (execute_java_class): Update.
11526         * lib/javaversion.c (execute_and_read_line): Update.
11527         * NEWS: Document the changes.
11528         Reported by Eric Blake.
11529
11530 2008-06-10  Eric Blake  <ebb9@byu.net>
11531
11532         Add missing include.
11533         * tests/test-strstr.c (includes): Add <signal.h>.
11534         * tests/test-strcasestr.c (includes): Likewise.
11535         * tests/test-memmem.c (includes): Likewise.
11536
11537 2008-06-10  Bruno Haible  <bruno@clisp.org>
11538
11539         * lib/wait-process.c (wait_subprocess): Add an assertion.
11540
11541 2008-06-10  Bruno Haible  <bruno@clisp.org>
11542
11543         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
11544
11545 2008-06-10  Bruno Haible  <bruno@clisp.org>
11546
11547         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
11548         using alarm().
11549         * tests/test-strcasestr.c (main): Likewise.
11550         * tests/test-strstr.c (main): Likewise.
11551
11552 2008-06-09  Bruno Haible  <bruno@clisp.org>
11553
11554         Work around the Solaris 10 ACE ACLs ABI change.
11555         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
11556         declare if ACL_NO_TRIVIAL is present.
11557         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
11558         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
11559         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
11560         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
11561         define if ACL_NO_TRIVIAL is present.
11562         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
11563         and use the current ABI.
11564         (file_has_acl): Use same #if condition as elsewhere.
11565         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
11566         in use, and use the current ABI.
11567         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
11568         Reported by Jim Meyering.
11569
11570 2008-06-09  Eric Blake  <ebb9@byu.net>
11571
11572         Work around environments that (stupidly) ignore SIGALRM.
11573         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
11574         before using alarm().
11575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11577         Reported by Ian Beckwith <ianb@erislabs.net>.
11578
11579         Produce autobuild blurb earlier in log.
11580         * modules/autobuild (configure.ac-early): Move AB_INIT here.
11581
11582 2008-06-09  Jim Meyering  <meyering@redhat.com>
11583         and OndÅ™ej Vašík  <ovasik@redhat.com>
11584
11585         utimens.c: correct kernel bug work-around
11586         OndÅ™ej Vašík found that the invalid return value of 280 indicates
11587         failure, not success, and the kernel bug we're trying to work
11588         around affects not just the utimensat call, but also the fallback
11589         futimens call.
11590         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
11591         not success.
11592         [HAVE_FUTIMENS]: Use the same work-around, here.
11593
11594 2008-06-09  Jim Meyering  <meyering@redhat.com>
11595
11596         add more guards around definition of ACE_-related code
11597         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
11598         ALLOW and ACE_OWNER are also defined.
11599
11600 2008-06-08  Bruno Haible  <bruno@clisp.org>
11601
11602         * lib/acl-internal.h: Add me as co-author.
11603         * lib/file-has-acl.c: Likewise.
11604         * lib/set-mode-acl.c: Likewise.
11605         * lib/copy-acl.c: Likewise.
11606
11607 2008-06-08  Bruno Haible  <bruno@clisp.org>
11608
11609         Add support for AIX ACLs.
11610         * lib/acl-internal.h (acl_nontrivial): New declaration.
11611         * lib/file-has-acl.c (acl_nontrivial): New function.
11612         (file_has_acl): Add implementation using AIX 4 ACL API.
11613         * lib/set-mode-acl.c (qset_acl): Likewise.
11614         * lib/copy-acl.c (qcopy_acl): Likewise.
11615
11616 2008-06-08  Bruno Haible  <bruno@clisp.org>
11617
11618         Add support for HP-UX ACLs.
11619         * lib/acl-internal.h (acl_nontrivial): New declaration.
11620         * lib/file-has-acl.c (acl_nontrivial): New function.
11621         (file_has_acl): Add implementation using HP-UX 11 ACL API.
11622         * lib/set-mode-acl.c (qset_acl): Likewise.
11623         * lib/copy-acl.c (qcopy_acl): Likewise.
11624
11625 2008-06-08  Bruno Haible  <bruno@clisp.org>
11626
11627         Add support for Cygwin ACLs.
11628         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
11629         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
11630         the chmod_or_fchmod call.
11631         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
11632
11633 2008-06-08  Bruno Haible  <bruno@clisp.org>
11634
11635         Fix bug with setuid modes in Solaris 10+ code.
11636         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
11637         succeeded, when the mode contains some special bits.
11638
11639 2008-06-08  Bruno Haible  <bruno@clisp.org>
11640
11641         Add support for Solaris 7..10 ACLs.
11642         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
11643         declarations.
11644         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
11645         functions.
11646         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
11647         * lib/set-mode-acl.c (qset_acl): Likewise.
11648         * lib/copy-acl.c (qcopy_acl): Likewise.
11649
11650 2008-06-08  Bruno Haible  <bruno@clisp.org>
11651
11652         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
11653         declaration.
11654         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
11655         (acl_access_nontrivial): Remove MacOS X case.
11656         (file_has_acl): Use acl_extended_nontrivial.
11657         * lib/copy-acl.c (qcopy_acl): Likewise.
11658
11659 2008-06-08  Bruno Haible  <bruno@clisp.org>
11660
11661         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
11662
11663 2008-06-08  Jim Meyering  <meyering@redhat.com>
11664
11665         * modules/acl (Maintainer): Add Bruno Haible.
11666
11667 2008-06-07  Bruno Haible  <bruno@clisp.org>
11668
11669         Improve support for Tru64 ACLs.
11670         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
11671         ACL on OSF/1.
11672
11673 2008-06-07  Bruno Haible  <bruno@clisp.org>
11674
11675         Add support for MacOS X ACLs.
11676         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
11677         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
11678         * lib/set-mode-acl.c (qset_acl): Likewise.
11679         * lib/copy-acl.c (qcopy_acl): Likewise.
11680
11681 2008-06-07  Bruno Haible  <bruno@clisp.org>
11682
11683         Fix memory leak introduced on 2008-05-22.
11684         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
11685         use.
11686
11687 2008-06-07  Bruno Haible  <bruno@clisp.org>
11688
11689         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
11690         to construct an empty ACL.
11691
11692 2008-06-07  Bruno Haible  <bruno@clisp.org>
11693
11694         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
11695         precisely.
11696         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
11697
11698 2008-06-07  Bruno Haible  <bruno@clisp.org>
11699
11700         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
11701         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
11702
11703 2008-06-07  Bruno Haible  <bruno@clisp.org>
11704
11705         * doc/posix-functions/_setjmp.texi: Explain the use of this function
11706         regardless of POSIX.
11707         * doc/posix-functions/_longjmp.texi: Likewise.
11708         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
11709         SystemV platform in this case.
11710
11711 2008-06-06  Eric Blake  <ebb9@byu.net>
11712
11713         Document abort() bugs.
11714         * doc/posix-functions/abort.texi (abort): Mention anomalies.
11715
11716         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
11717         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
11718         sigsetjmp.
11719         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
11720         siglongjmp, but only as a macro.
11721         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
11722         is obsolete.
11723         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
11724
11725         Tweak documentation to cover cygwin argz bugs.
11726         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
11727         argz bug fix; no code change needed since no cygwin releases
11728         occurred between the last fix and the bug being tested.
11729         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
11730         module and recently fixed cygwin bugs.
11731         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
11732         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
11733         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
11734         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
11735         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
11736         Likewise.
11737         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
11738         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
11739         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
11740         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
11741         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
11742         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
11743         Likewise.
11744
11745         Avoid gcc warning on cygwin.
11746         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
11747         !ACL_NO_TRIVIAL]: Avoid unused variable.
11748
11749 2008-06-05  Eric Blake  <ebb9@byu.net>
11750
11751         Be tolerant of UNKNOWN version in gnulib-tool test dir.
11752         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
11753         git-version-gen fails to come up with a version.
11754         Reported by Simon Josefsson.
11755
11756 2008-06-05  Jim Meyering  <meyering@redhat.com>
11757             Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         utimens.c: work around a probable Linux kernel bug
11760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
11761         appears to be a kernel bug that causes utimensat to return 280
11762         instead of 0, indicating success.
11763
11764 2008-06-04  Bruno Haible  <bruno@clisp.org>
11765
11766         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
11767         2008-06-01 commit.
11768
11769 2008-06-04  Bruno Haible  <bruno@clisp.org>
11770
11771         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
11772         * lib/file-has-acl.c (acl_access_nontrivial): New function.
11773         (file_has_acl): Use it. Save errno afterwards.
11774         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
11775
11776 2008-06-03  Bruno Haible  <bruno@clisp.org>
11777
11778         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
11779         draft code. Simplify #ifs.
11780         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
11781         Put Solaris code after POSIX-draft code. Fix comments regarding
11782         Solaris 10, HP-UX. Mention Cygwin.
11783         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
11784
11785 2008-06-03  Eric Blake  <ebb9@byu.net>
11786
11787         Provide fallback for older kernels.
11788         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
11789         Provide runtime fallback if kernel lacks support.
11790         Reported by Mike Frysinger.
11791
11792 2008-06-02  Bruno Haible  <bruno@clisp.org>
11793
11794         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
11795         it exists.
11796
11797 2008-06-02  Bruno Haible  <bruno@clisp.org>
11798
11799         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
11800         * lib/copy-acl.c (qcopy_acl): Update comment.
11801
11802 2008-06-02  Bruno Haible  <bruno@clisp.org>
11803
11804         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
11805         like ACL APIs.
11806
11807 2008-06-02  Bruno Haible  <bruno@clisp.org>
11808
11809         * tests/test-file-has-acl.sh: Use different code for Cygwin.
11810         * tests/test-set-mode-acl.sh: Likewise.
11811         * tests/test-copy-acl.sh: Likewise.
11812         * tests/test-copy-file.sh: Likewise.
11813
11814 2008-06-02  Bruno Haible  <bruno@clisp.org>
11815
11816         * tests/test-file-has-acl.sh: Remove unused code.
11817
11818 2008-06-01  Bruno Haible  <bruno@clisp.org>
11819
11820         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
11821         (copy_acl): Just a wrapper around qcopy_acl that emits the error
11822         messages.
11823         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
11824
11825 2008-06-01  Bruno Haible  <bruno@clisp.org>
11826
11827         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
11828         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
11829         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
11830         APIs.
11831         * modules/acl-tests (configure.ac): Remove tests now contained in
11832         m4/acl.m4.
11833
11834 2008-06-02  Jim Meyering  <meyering@redhat.com>
11835
11836         announce-gen: use a better key-server host name
11837         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
11838         it may be more consistently reliable.  Suggested by Werner Koch
11839         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
11840
11841 2008-06-01  Bruno Haible  <bruno@clisp.org>
11842
11843         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
11844         Reported by Voroskoi Andras <voroskoi@gmail.com>.
11845
11846 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
11847
11848         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
11849
11850 2008-06-01  Bruno Haible  <bruno@clisp.org>
11851
11852         New ACL tests.
11853         * tests/test-file-has-acl.sh: New file.
11854         * tests/test-file-has-acl.c: New file.
11855         * tests/test-set-mode-acl.sh: New file.
11856         * tests/test-set-mode-acl.c: New file.
11857         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
11858         * tests/test-copy-acl.c: New file.
11859         * modules/acl-tests: New file, based on modules/copy-file-tests.
11860         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
11861         (Depends-on): Add acl-tests.
11862         (configure.ac): Remove checks.
11863         (Makefile.am): Don't create test-sameacls program here any more.
11864
11865 2008-06-01  Bruno Haible  <bruno@clisp.org>
11866
11867         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
11868         * tests/test-sameacls.c: Include progname.h.
11869         (main): Invoke set_program_name. Portability fixes for MacOS X,
11870         Solaris, HP-UX.
11871
11872 2008-06-01  Bruno Haible  <bruno@clisp.org>
11873
11874         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
11875         function.
11876         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
11877
11878 2008-06-01  Bruno Haible  <bruno@clisp.org>
11879
11880         * modules/rpmatch (Depends-on): Add strdup.
11881
11882 2008-06-01  Bruno Haible  <bruno@clisp.org>
11883
11884         * lib/pipe.c: Include unistd-safer.h.
11885         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
11886         * modules/pipe (Depends-on): Add unistd-safer.
11887
11888 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11889
11890         * modules/autobuild (configure.ac): Call AB_INIT.
11891
11892 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11893
11894         * tests/test-getaddrinfo.c: Don't print debug messages by default.
11895         Suggested by Bruno Haible <bruno@clisp.org>.
11896
11897 2008-05-30  Simon Josefsson  <simon@josefsson.org>
11898
11899         * tests/test-base64.c: Cast size_t to unsigned long when invoking
11900         printf.  Use %lu instead of %d.  Reported by Bruno Haible
11901         <bruno@clisp.org>.
11902
11903 2008-05-29  Eric Blake  <ebb9@byu.net>
11904
11905         Prefer new POSIX 200x interfaces over futimesat.
11906         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
11907         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
11908         when available.
11909         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
11910
11911 2008-05-28  Bruno Haible  <bruno@clisp.org>
11912
11913         * modules/stpcpy (License): Change to LGPLv2+.
11914         Requested by David Lutterkort <dlutter@redhat.com>.
11915
11916 2008-05-27  Bruno Haible  <bruno@clisp.org>
11917
11918         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
11919         current mingw.
11920         Reported by Jose E. Marchesi <jemarch@gnu.org>.
11921
11922 2008-05-27  Bruno Haible  <bruno@clisp.org>
11923
11924         * modules/iconv_open (Link): New section, from module 'iconv'.
11925         * modules/striconv (Link): Likewise.
11926         * modules/striconveh (Link): Likewise.
11927         * modules/xstriconv (Link): Likewise.
11928         * modules/unicodeio (Link): Likewise.
11929         * modules/propername (Link): Likewise.
11930         Reported by Jim Meyering.
11931
11932 2008-05-26  Jim Meyering  <meyering@redhat.com>
11933
11934         sha256: do not artificially restrict buffer length to be < 2^32
11935         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
11936         uint32_t to size_t.
11937         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
11938         to match.
11939
11940         avoid unaligned access errors, e.g., on sparc
11941         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
11942         direct access through a possibly-unaligned uint64* pointer.
11943         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
11944         direct access through a possibly-unaligned uint32* pointer.
11945         Prompted by this patch from Tom "spot" Callaway:
11946         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
11947
11948         sha512.c: fix typo in comment
11949         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
11950
11951 2008-05-25  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/set-mode-acl.c: Renamed from lib/acl.c.
11954         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
11955         (Makefile.am): Update lib_SOURCES.
11956
11957 2008-05-25  Bruno Haible  <bruno@clisp.org>
11958
11959         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
11960
11961 2008-05-25  Jim Meyering  <meyering@redhat.com>
11962
11963         useless-if-before-free: freed expr may have white-space differences
11964         * build-aux/useless-if-before-free: Recognize cases in which the
11965         freed expression differs from the tested one in embedded white
11966         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
11967         $1 was used, so we can't make any regexp shy.  Improved tests now
11968         detect this.
11969
11970         useless-if-before-free: accept white space in the expression.
11971         * build-aux/useless-if-before-free: For now, any white space
11972         in the expression must be identical in the free argument.
11973
11974         useless-if-before-free: efficiency tweak
11975         * build-aux/useless-if-before-free: Make the expression-matching
11976         regexp "shy".
11977         Make the *outer* regexp shy, not the expr-matching one.
11978
11979         update code-in-comment to accept cast of free arg
11980         * build-aux/useless-if-before-free: Update regexp.
11981
11982 2008-05-25  Bruno Haible  <bruno@clisp.org>
11983
11984         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
11985         * modules/copy-file-tests (Files, Makefile.am): Update.
11986         * tests/test-copy-file.c (func_test_copy): Update.
11987
11988 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
11989
11990         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
11991
11992 2008-05-23  Bruno Haible  <bruno@clisp.org>
11993
11994         Improve support for ACLs on OSF/1.
11995         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
11996         Remove fallback for unknown flavors of ACLs.
11997
11998 2008-05-22  Bruno Haible  <bruno@clisp.org>
11999
12000         Add support for ACLs on OSF/1.
12001         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
12002         replacements.
12003         (acl_free_text): New macro fallback.
12004         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
12005         acl_free.
12006         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
12007         acl_free_text function. Require AC_C_INLINE.
12008
12009 2008-05-22  Bruno Haible  <bruno@clisp.org>
12010
12011         Make copy_acl work on MacOS X 10.5.
12012         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
12013         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
12014         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
12015         If MODE_INSIDE_ACL, don't assume that every system has the same text
12016         representation for ACLs as FreeBSD.
12017         * lib/copy-acl.c (copy_acl): Add support for platforms with
12018         !MODE_INSIDE_ACL.
12019         * lib/file-has-acl.c (file_has_acl): Likewise.
12020         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
12021         FreeBSD, MacOS X, or IRIX, respectively.
12022
12023 2008-05-22  Bruno Haible  <bruno@clisp.org>
12024
12025         * lib/acl.h: Don't include <sys/acl.h>.
12026         (GETACLCNT): Move fallback to lib/acl-internal.h.
12027         * lib/acl-internal.h: Include <sys/acl.h> here.
12028         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
12029
12030 2008-05-22  Bruno Haible  <bruno@clisp.org>
12031
12032         Split off copy_acl function to separate file.
12033         * lib/copy-acl.c: New file, extracted from lib/acl.c.
12034         * lib/acl.c (copy_acl): Moved function to separate file.
12035         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
12036         * modules/acl (Files): Add lib/copy-acl.c.
12037         (Makefiles.am): Augment lib_SOURCES.
12038
12039 2008-05-22  Bruno Haible  <bruno@clisp.org>
12040
12041         * modules/copy-file-tests: New file.
12042         * tests/test-copy-file.sh: New file.
12043         * tests/test-copy-file.c: New file.
12044         * tests/test-copy-file-sameacls.c: New file.
12045
12046 2008-05-22  Eric Blake  <ebb9@byu.net>
12047
12048         Avoid gcc warning.
12049         * tests/test-memcmp.c (main): Pass NULL indirectly.
12050
12051 2008-05-21  Bruno Haible  <bruno@clisp.org>
12052
12053         Add reference doc about ACLs.
12054         * doc/acl-resources.txt: New file.
12055         * doc/acl-cygwin.txt: New file.
12056
12057 2008-05-21  Bruno Haible  <bruno@clisp.org>
12058
12059         Avoid one more warning from gcc.
12060         * lib/vasnprintf.c (IF_LINT): Update comments.
12061         (VASNPRINTF): Use it also for the 'prefix' array initializer.
12062
12063 2008-05-21  Jim Meyering  <meyering@redhat.com>
12064
12065         avoid a warning from gcc
12066         * lib/vasnprintf.c (IF_LINT): Define.
12067         (scale10_round_decimal_long_double):
12068         Use it to avoid a "may be used uninitialized" warning.
12069         (scale10_round_decimal_double): Likewise.
12070
12071 2008-05-21  Simon Josefsson  <simon@josefsson.org>
12072
12073         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
12074         declared.
12075
12076 2008-05-20  Bruno Haible  <bruno@clisp.org>
12077
12078         * tests/test-memcmp.c (main): Test also the sign of the result. Test
12079         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
12080
12081 2008-05-20  Simon Josefsson  <simon@josefsson.org>
12082
12083         * modules/memcmp-tests: New file.
12084         * tests/test-memcmp.c: New file.
12085
12086 2008-05-19  Bruno Haible  <bruno@clisp.org>
12087
12088         * modules/propername (Notice, configure.ac): Put quoted "..." into
12089         --keyword option.
12090         * lib/propername.h: Update comments accordingly.
12091         Reported by Eric Blake.
12092
12093 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
12094
12095         * modules/getpass-gnu (Depends-on): Add fseeko.
12096
12097 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12098
12099         * modules/base64-tests: New file.
12100
12101 2008-05-19  Bo Borgerson <gigabo@gmail.com>
12102
12103         * lib/base64.c (base64_decode_ctx): If a decode context structure
12104         was passed in use it to ignore newlines.  If a context structure
12105         was _not_ passed in, continue to treat newlines as garbage (this
12106         is the historical behavior).  Formerly base64_decode.
12107         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12108         takes a decode context structure.
12109         * lib/base64.h (base64_decode): Macro for four-argument calls.
12110         (base64_decode_alloc): Likewise.
12111         * lib/base64.c (base64_decode_ctx): If a decode context structure
12112         was passed in use it to ignore newlines.  If a context structure
12113         was _not_ passed in, continue to treat newlines as garbage (this
12114         is the historical behavior).  Formerly base64_decode.
12115         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12116         takes a decode context structure.
12117         * lib/base64.h (base64_decode): Macro for four-argument calls.
12118         (base64_decode_alloc): Likewise.
12119
12120 2008-05-19  Jim Meyering  <meyering@redhat.com>
12121
12122         avoid a warning from gcc
12123         * lib/trim.c (IF_LINT): Define.
12124         (trim2): Use it to avoid a "may be used uninitialized" warning.
12125
12126         Fix doc typo.
12127         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
12128
12129 2008-05-19  Bruno Haible  <bruno@clisp.org>
12130
12131         * doc/glibc-functions/getpass.texi: Document limits of other
12132         implementations.
12133
12134 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12135             Bruno Haible <bruno@clisp.org>
12136
12137         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
12138
12139 2008-05-18  Bruno Haible  <bruno@clisp.org>
12140
12141         * modules/propername: New file, from GNU gettext.
12142         * lib/propername.h: New file, from GNU gettext.
12143         * lib/propername.c: New file, from GNU gettext.
12144         * MODULES.html.sh (Internationalization functions): Add propername.
12145
12146 2008-05-16  Jim Meyering  <meyering@redhat.com>
12147             Bruno Haible  <bruno@clisp.org>
12148
12149         Avoid some warnings from "gcc -Wshadow".
12150         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
12151
12152 2008-05-15  Eric Blake  <ebb9@byu.net>
12153
12154         Extend previous patch to cygwin 1.7.0.
12155         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
12156         fast implementation in cygwin >= 1.7.0.
12157         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12159
12160 2008-05-15  Bruno Haible  <bruno@clisp.org>
12161
12162         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
12163         implementation in glibc >= 2.9.
12164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12166
12167 2008-05-15  Bruno Haible  <bruno@clisp.org>
12168
12169         * MODULES.html.sh (Internationalization functions): Remove linebreak.
12170         (Unicode string functions): Add unilbrk/*.
12171         Reported by Karl Berry.
12172
12173 2008-05-15  Eric Blake  <ebb9@byu.net>
12174
12175         Fix violation of <stdbool.h> replacement in regex.
12176         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
12177         * lib/regexec.c (re_search_internal): Likewise.
12178         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
12179
12180 2008-05-15  Jim Meyering  <meyering@redhat.com>
12181
12182         avoid distracting test output when git or cvs is not found
12183         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
12184         * tests/test-vc-list-files-git.sh: Likewise.
12185
12186 2008-05-15  Eric Blake  <ebb9@byu.net>
12187
12188         Glibc finally accepted the memmem speedup code, bugzilla #5514.
12189         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
12190         glibc version.
12191         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12192         * doc/posix-functions/strstr.texi (strstr): Likewise.
12193         * lib/str-two-way.h (MAX): Sychronize with glibc.
12194
12195 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
12196
12197         * lib/regcomp.c (optimize_utf8): Add a note on why we test
12198         opr.ctx_type.
12199         (calc_first): Initialize constraint field.
12200         (duplicate_node_closure): Use it instead of special casing ANCHORS.
12201         Fix grammar.
12202         (duplicate_node): Merge constraint field for all node types.
12203         (calc_eclosure_iter): Look at constraint field for all node types.
12204         * lib/regex_internal.c (create_cd_newstate): Don't look at
12205         opr.ctx_type.
12206
12207 2008-05-14  Bruno Haible  <bruno@clisp.org>
12208
12209         Help GCC to do better code generation.
12210         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
12211         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12212         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
12213         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
12214         Declare with attribute 'malloc' if supported.
12215
12216 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
12217
12218         use "echo STR|wc -c" rather than unportable "expr length STR"
12219         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
12220         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
12221
12222 2008-05-14  Jim Meyering  <meyering@redhat.com>
12223
12224         use dd ibs=$n count=1 ... rather than less-portable head -c$n
12225         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
12226         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
12227         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
12228         via Collin Lasse.
12229
12230 2008-05-14  Eric Blake  <ebb9@byu.net>
12231
12232         Avoid quadratic growth in gl_LIBSOURCES.
12233         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
12234         Suggested by Bruno Haible.
12235
12236         Test xmemdup0.
12237         * modules/xmemdup0-tests: New file.
12238         * tests/test-xmemdup0.c: Likewise.
12239
12240 2008-05-13  Eric Blake  <ebb9@byu.net>
12241
12242         Split xmemdup0 into its own module.
12243         * modules/xmemdup0: New file.
12244         * lib/xmemdup0.h: Likewise.
12245         * lib/xmemdup0.c: Likewise.
12246         * MODULES.html.sh (Memory management functions): Add xmemdup0.
12247         * lib/xalloc.h (xmemdup0): Remove.
12248         * lib/xmalloc.c (xmemdup0): Likewise.
12249
12250 2008-05-13  Eric Blake  <ebb9@byu.net>
12251             Bruno Haible  <bruno@clisp.org>
12252
12253         Reduce number of forks required during autoconf.
12254         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
12255         and gl_LIBSOURCES_DIR.
12256         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
12257         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
12258         m4_syscmd per file.
12259         <m4_foreach_w>: Move...
12260         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
12261
12262 2008-05-13  Eric Blake  <ebb9@byu.net>
12263
12264         * gnulib-tool: Fix various comment typos.
12265
12266 2008-05-12  Bruno Haible  <bruno@clisp.org>
12267
12268         Tailor the linebreaking algorithm.
12269         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
12270
12271 2008-05-12  Bruno Haible  <bruno@clisp.org>
12272
12273         Update to Unicode 5.0.0.
12274         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12275         LBP_JV, LBP_JT. Redistribute values.
12276         (unilbrk_table): Change size.
12277         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
12278         Unicode TR#14 rev. 22.
12279         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12280         LBP_JV, LBP_JT. Redistribute values.
12281         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
12282         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
12283         Update.
12284         * lib/unilbrk/lbrkprop1.h: Regenerated.
12285         * lib/unilbrk/lbrkprop2.h: Regenerated.
12286         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
12287         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
12288         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12289         Likewise.
12290         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12291         Likewise.
12292         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
12293         result.
12294         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12295         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12296         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12297         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
12298         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
12299         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
12300
12301 2008-05-11  Bruno Haible  <bruno@clisp.org>
12302
12303         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
12304
12305 2008-05-11  Bruno Haible  <bruno@clisp.org>
12306
12307         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
12308         * modules/unilbrk/gen-lbrk: New file.
12309
12310 2008-05-11  Bruno Haible  <bruno@clisp.org>
12311
12312         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
12313         * m4/sha512.m4 (gl_SHA512): Likewise.
12314
12315 2008-05-11  Jim Meyering  <meyering@redhat.com>
12316
12317         New modules: crypto/sha256, crypto/sha512 (from coreutils)
12318         * modules/crypto/sha256: New file.
12319         * modules/crypto/sha512: Likewise.
12320         * lib/sha256.c: Likewise.
12321         * lib/sha256.h: Likewise.
12322         * lib/sha512.c: Likewise.
12323         * lib/sha512.h: Likewise.
12324         * lib/u64.h: Likewise.
12325         * m4/sha256.m4: Likewise.
12326         * m4/sha512.m4: Likewise.
12327         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
12328
12329 2008-05-10  Bruno Haible  <bruno@clisp.org>
12330
12331         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
12332         (Input/Output <stdio.h>): Add xprintf.
12333         (Signal handling <signal.h>): Add strsignal.
12334         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
12335         (Core language properties): Add func.
12336         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
12337         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
12338         strings.
12339         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
12340         (Input/output): New section.
12341         (File system functions): Add openat-die, stat-macros.
12342         (Networking functions): Add sockets.
12343         (Unicode string functions): Add unictype/*.
12344         (Support for building libraries and executables): Add gperf.
12345         (Support for building documentation): Add agpl-3.0.
12346         (Misc): Add nocrash.
12347
12348 2008-05-10  Bruno Haible  <bruno@clisp.org>
12349
12350         * modules/unictype/gen-ctype: New file.
12351
12352 2008-05-10  Jim Meyering  <meyering@redhat.com>
12353
12354         Make chdir-safer.c more efficient on a system with no symlinks.
12355         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
12356         also if ELOOP is zero.  Suggested by Bruno Haible.
12357
12358         Make chdir-safer.c slightly safer.
12359         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
12360         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
12361
12362         Avoid compile failure on systems without ELOOP (like mingw).
12363         * lib/chdir-safer.c (ELOOP): Define if not already defined.
12364         Reported by Bruno Haible.
12365
12366 2008-05-10  Bruno Haible  <bruno@clisp.org>
12367
12368         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
12369         (is_utf8_encoding): Use a case-insensitive comparison.
12370         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
12371         streq.
12372
12373 2008-05-10  Bruno Haible  <bruno@clisp.org>
12374
12375         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
12376         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
12377         * lib/unilbrk/ulc-common.h (iconv_string_length,
12378         iconv_string_keeping_offsets): Remove declarations.
12379         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
12380         Don't include <iconv.h>, streq.h, xsize.h.
12381         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
12382         conversion.
12383         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
12384         <iconv.h>, streq.h, xsize.h.
12385         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
12386         conversion.
12387         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
12388         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
12389         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
12390         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
12391
12392 2008-05-10  Bruno Haible  <bruno@clisp.org>
12393
12394         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
12395         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
12396
12397         * modules/unilbrk/u32-width-linebreaks-tests: New file.
12398         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
12399
12400         * modules/unilbrk/u16-width-linebreaks-tests: New file.
12401         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
12402
12403         * modules/unilbrk/u8-width-linebreaks-tests: New file.
12404         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
12405
12406         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
12407         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
12408
12409         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
12410         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
12411
12412         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
12413         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
12414
12415         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
12416         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
12417
12418 2008-05-10  Bruno Haible  <bruno@clisp.org>
12419
12420         Split up 'linebreak' module.
12421         * lib/unilbrk.h: New file, based on lib/linebreak.h.
12422         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
12423         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
12424         modifications.
12425         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
12426         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
12427         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
12428         lib/linebreak.c.
12429         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
12430         lib/linebreak.c.
12431         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
12432         lib/linebreak.c.
12433         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
12434         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
12435         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
12436         lib/linebreak.c.
12437         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
12438         lib/linebreak.c.
12439         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
12440         lib/linebreak.c.
12441         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
12442         lib/linebreak.c.
12443         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
12444         lib/linebreak.c.
12445         * modules/unilbrk/base: New file.
12446         * modules/unilbrk/tables: New file.
12447         * modules/unilbrk/u8-possible-linebreaks: New file.
12448         * modules/unilbrk/u16-possible-linebreaks: New file.
12449         * modules/unilbrk/u32-possible-linebreaks: New file.
12450         * modules/unilbrk/ulc-common: New file.
12451         * modules/unilbrk/ulc-possible-linebreaks: New file.
12452         * modules/unilbrk/u8-width-linebreaks: New file.
12453         * modules/unilbrk/u16-width-linebreaks: New file.
12454         * modules/unilbrk/u32-width-linebreaks: New file.
12455         * modules/unilbrk/ulc-width-linebreaks: New file.
12456         * lib/linebreak.h: Remove file.
12457         * lib/linebreak.c: Remove file.
12458         * m4/linebreak.m4: Remove file.
12459         * modules/linebreak: Remove file.
12460         * NEWS: Mention the changes.
12461
12462 2008-05-09  Eric Blake  <ebb9@byu.net>
12463
12464         Add xmemdup0.
12465         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
12466         implementation.
12467         * lib/xmalloc.c (xmemdup0): New C implementation.
12468
12469 2008-05-08  Bruno Haible  <bruno@clisp.org>
12470
12471         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
12472
12473 2008-05-07  Eric Blake  <ebb9@byu.net>
12474
12475         Support cross-compilation of <wctype.h>.
12476         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
12477         AC_CACHE_CHECK.
12478
12479 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
12480
12481         * build-aux/vc-list-files: Add support for bzr.
12482
12483 2008-05-03  Jim Meyering  <meyering@redhat.com>
12484
12485         avoid failed assertion with tight malloc
12486         * tests/test-getndelim2.c: Correct an off-by-one assertion.
12487
12488 2008-05-03  Simon Josefsson  <simon@josefsson.org>
12489
12490         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
12491         are needed from arpa/inet.h.
12492         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
12493         Reported by Bruno Haible.
12494
12495 2008-05-02  Jim Meyering  <meyering@redhat.com>
12496
12497         avoid compilation error on FreeBSD 6
12498         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
12499
12500 2008-05-01  Jim Meyering  <meyering@redhat.com>
12501
12502         useless-if-before-free: correct --help's exit status description
12503         * build-aux/useless-if-before-free (usage): Like grep, exit 0
12504         for one or more matches, etc.  Reported by Bruno Haible.
12505
12506         vc-list-files: make the stand-alone gnulib test work
12507         * modules/vc-list-files-tests (configure.ac):
12508         Define and AC_SUBST abs_aux_dir.
12509         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
12510         $(abs_top_srcdir) to each script and having each of them
12511         duplicate the work of setting PATH, set PATH here, using
12512         the new variable, abs_aux_dir instead.
12513         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
12514         * tests/test-vc-list-files-git.sh: Likewise.
12515         Reported by Bruno Haible.
12516
12517 2008-05-01  Bruno Haible  <bruno@clisp.org>
12518
12519         * lib/getndelim2.c (getndelim2): Fix newsize computation during
12520         reallocation. Rename 'done' to 'found_delimiter'.
12521
12522 2008-05-01  Jim Meyering  <meyering@redhat.com>
12523
12524         vc-list-files: accommodate /bin/sh like the one from Solaris 10
12525         * build-aux/vc-list-files: Use `...`, not $(...).
12526
12527 2008-04-30  Jim Meyering  <meyering@redhat.com>
12528
12529         add tests for vc-list-files
12530         * modules/vc-list-files-tests: New module.
12531         * tests/test-vc-list-files-cvs.sh: New file.
12532         * tests/test-vc-list-files-git.sh: New file.
12533
12534         avoid a warning from gcc
12535         * lib/getndelim2.c (IF_LINT): Define.
12536         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
12537
12538         vc-list-files: work properly with build-aux/cvsu, too
12539         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
12540         to all cvs-based clauses.
12541
12542         vc-list-files: work properly in the CVS+awk case, too
12543         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
12544
12545         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
12546         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
12547         take more than one file argument, so .  Add quotes, just in case $dir
12548         ever contains a shell meta-character.  Prompted by Soren Hansen in
12549         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
12550
12551 2008-04-29  Eric Blake  <ebb9@byu.net>
12552
12553         Optimize getndelim2 to use block operations when possible.
12554         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
12555         freadseek, and memchr2.
12556         * lib/getndelim2.c (getndelim2): Use them for block reads.
12557
12558 2008-04-29  Bruno Haible  <bruno@clisp.org>
12559
12560         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
12561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12562         * modules/inet_ntop (Depends-on): Add extensions.
12563         * modules/inet_pton (Depends-on): Likewise.
12564         Reported by Simon Josefsson.
12565
12566 2008-04-29  Jim Meyering  <meyering@redhat.com>
12567
12568         When the is more than one match in a block, match all of them.
12569         * build-aux/useless-if-before-free: Iterate through each block
12570         until there are no more matches.
12571
12572         Fix broken useless-if-before-free script.
12573         * build-aux/useless-if-before-free: Fix typo: missing "?" after
12574         the expression to match cast of argument to free-like function.
12575
12576 2008-04-29  Eric Blake  <ebb9@byu.net>
12577
12578         Use new header.
12579         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
12580
12581 2008-04-29  Jim Meyering  <meyering@redhat.com>
12582
12583         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
12584         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
12585         by gnulib to exist and to declare e.g., inet_ntop.
12586         Don't include "inet_ntop.h", now removed.
12587
12588         * m4/arpa_inet_h.m4: Remove trailing blanks.
12589
12590 2008-04-29  Eric Blake  <ebb9@byu.net>
12591
12592         Silence valgrind on safe reads beyond potential array bounds.
12593         * lib/rawmemchr.valgrind: New file.
12594         * lib/strchrnul.valgrind: Likewise.
12595         * modules/rawmemchr (Files): Distribute new file.
12596         * modules/strchrnul (Files): Likewise.
12597         Suggested by Bruno Haible.
12598
12599 2008-04-29  Bruno Haible  <bruno@clisp.org>
12600
12601         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
12602         (inet_ntop, inet_pton): Change portability warning's wording.
12603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
12604         Invoke gl_CHECK_NEXT_HEADERS.
12605         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
12606         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
12607         set ARPA_INET_H.
12608         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12609         * modules/arpa_inet (Description): No longer only for systems that
12610         lack it.
12611         (Depends-on): Add include_next.
12612         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
12613         HAVE_ARPA_INET_H.
12614
12615 2008-04-29  Jim Meyering  <meyering@redhat.com>
12616
12617         * modules/mkdir (License): Re-license as LGPLv2+.
12618
12619 2008-04-29  Bruno Haible  <bruno@clisp.org>
12620
12621         * modules/rawmemchr (Maintainer): Set to Eric.
12622         * modules/strchrnul (Maintainer): Likewise.
12623
12624 2008-04-29  Simon Josefsson  <simon@josefsson.org>
12625
12626         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
12627         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
12628
12629         * modules/arpa_inet (arpa/inet.h): Use them.
12630
12631 2008-04-28  Eric Blake  <ebb9@byu.net>
12632
12633         Test getndelim2.
12634         * modules/getndelim2-tests: New file.
12635         * tests/test-getndelim2.c: Likewise.
12636         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
12637         stream.
12638         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
12639
12640         * MODULES.html.sh: Document new module.
12641
12642 2008-04-20  Bruno Haible  <bruno@clisp.org>
12643
12644         * lib/c-stack.c (die): Use raise.
12645         * modules/c-stack (Depends-on): Add raise.
12646
12647 2008-04-28  Bruno Haible  <bruno@clisp.org>
12648
12649         Expect rpmatch to be declared.
12650         * lib/yesno.c (rpmatch): Remove declaration.
12651
12652         Declare rpmatch.
12653         * lib/stdlib.in.h (rpmatch): New declaration.
12654         * lib/rpmatch.c: Include <stdlib.h> first.
12655         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
12656         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
12657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
12658         HAVE_RPMATCH.
12659         * modules/rpmatch (Depends-on): Add stdlib, extensions.
12660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12661         (Include): Set to <stdlib.h>.
12662         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
12663         HAVE_RPMATCH.
12664         * NEWS: Document the change.
12665
12666 2008-04-28  Bruno Haible  <bruno@clisp.org>
12667
12668         Change rpmatch to use nl_langinfo when appropriate.
12669         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
12670         (N_): New macro.
12671         (localized_pattern): New function/macro.
12672         (try): Remove match, nomatch arguments. Copy the pattern into safe
12673         memory before caching it.
12674         (rpmatch): Use localized_pattern. Add translator comments.
12675         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
12676         Suggested by Eric Blake.
12677         * modules/rpmatch (Depends-on): Add stdbool.
12678
12679 2008-04-28  Eric Blake  <ebb9@byu.net>
12680
12681         Add rawmemchr module, matching glibc.
12682         * modules/string (Makefile.am): New indicator.
12683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
12684         * lib/string.in.h (rawmemchr): Declare when appropriate.
12685         * modules/rawmemchr: New file.
12686         * m4/rawmemchr.m4: Likewise.
12687         * lib/rawmemchr.c: Likewise.
12688         * modules/rawmemchr-tests: Likewise.
12689         * tests/test-rawmemchr.c: Likewise.
12690         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
12691         module.
12692         * modules/strchrnul (Depends-on): Add rawmemchr.
12693         * lib/strchrnul.c (strchrnul): Optimize a corner case.
12694
12695         Whitespace cleanup.
12696         * tests/test-strchrnul.c: Reindent.
12697         * lib/strchrnul.c: Likewise.
12698
12699         Optimize and test strchrnul.
12700         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
12701         * modules/strchrnul-tests: New file.
12702         * tests/test-strchrnul.c: Likewise.
12703
12704         Remove intprops dependency.
12705         * modules/memchr (Depends-on): Remove intprops.
12706         * modules/memrchr (Depends-on): Likewise.
12707         * modules/memchr2 (Depends-on): Likewise.
12708         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
12709         * lib/memrchr.c (__memrchr): Likewise.
12710         * lib/memrchr2.c (memchr2): Likewise.
12711         Reported by Simon Josefsson.
12712
12713 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12714
12715         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
12716         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12717
12718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12719
12720         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
12721
12722         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
12723
12724         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
12725
12726         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
12727         declarations.
12728         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
12729
12730         * m4/inet_pton.m4: Don't check for header files.
12731
12732         * m4/inet_ntop.m4: Don't check for header files.
12733
12734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
12735
12736         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
12737         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
12738         trigger for cygwin).
12739         Reported by Bruno Haible  <bruno@clisp.org>.
12740
12741 2008-04-28  Bruno Haible  <bruno@clisp.org>
12742
12743         * doc/posix-functions/strdup.texi: Mention mingw problem.
12744
12745 2008-04-27  Bruno Haible  <bruno@clisp.org>
12746
12747         * modules/stat-time-tests (Depends-on): Add sleep.
12748         * tests/test-stat-time.c (force_unlink): New function.
12749         (cleanup): Use it.
12750         (test_mtime): Remove the ctime related tests.
12751         (test_ctime): New function, containing the ctime related tests.
12752         (main): Call test_ctime, except on native Windows platforms.
12753
12754 2008-04-27  Bruno Haible  <bruno@clisp.org>
12755
12756         * lib/rpmatch.c (rpmatch): Add some comments.
12757         Reported by James Youngman <jay@gnu.org>.
12758
12759 2008-04-27  Bruno Haible  <bruno@clisp.org>
12760
12761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
12762         quiet NaNs.
12763
12764 2008-04-27  Bruno Haible  <bruno@clisp.org>
12765
12766         Make test-yesno.sh work on mingw.
12767         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
12768         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
12769         (main): Set stdin to binary mode.
12770         * modules/yesno-tests (Depends-on): Add binary-io.
12771
12772 2008-04-27  Bruno Haible  <bruno@clisp.org>
12773
12774         Fix 'isfinite' on x86, x86_64, ia64 platforms.
12775         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
12776         argument that lie outside the IEEE 854 domain.
12777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
12778         (gl_ISFINITE): Use it.
12779         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
12780
12781 2008-04-27  Bruno Haible  <bruno@clisp.org>
12782
12783         Allow local renaming in config.h.
12784         * lib/memrchr.c (memrchr): Don't undefine outside libc.
12785
12786 2008-04-27  Bruno Haible  <bruno@clisp.org>
12787
12788         * lib/memchr.c (__memchr): Change type of 'i'.
12789         * lib/memchr2.c (memchr2): Likewise.
12790
12791 2008-04-26  Eric Blake  <ebb9@byu.net>
12792         and Bruno Haible  <bruno@clisp.org>
12793
12794         Optimize and test memrchr.
12795         * modules/memrchr (Depends-on): Add intprops.
12796         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
12797         * modules/memrchr-tests: New file.
12798         * tests/test-memrchr.c: New file.
12799
12800 2008-04-26  Bruno Haible  <bruno@clisp.org>
12801
12802         Add tentative support for DragonFly BSD.
12803         * lib/stdio-impl.h: Add macros for DragonFly BSD.
12804         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
12805         fp.
12806         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
12807         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
12808         * lib/fpurge.c (fpurge): Likewise.
12809         * lib/freadable.c (freaadable): Likewise.
12810         * lib/freadahead.c (freadahead): Likewise.
12811         * lib/freading.c (freading): Likewise.
12812         * lib/freadptr.c (freadptr): Likewise.
12813         * lib/freadseek.c (freadptrinc): Likewise.
12814         * lib/fseeko.c (fseeko): Likewise.
12815         * lib/fseterr.c (fseterr): Likewise.
12816         * lib/fwritable.c (fwritable): Likewise.
12817         * lib/fwriting.c (fwriting): Likewise.
12818
12819 2008-04-26  Bruno Haible  <bruno@clisp.org>
12820
12821         * lib/stdio-impl.h: New file.
12822         * lib/fbufmode.c: Include stdio-impl.h.
12823         (fbufmode): Use fp_, remove redundant #defines.
12824         * lib/fflush.c: Include stdio-impl.h.
12825         (clear_ungetc_buffer): Remove redundant #defines.
12826         * lib/fpurge.c: Include stdio-impl.h.
12827         (fpurge): Remove redundant #defines.
12828         * lib/freadable.c: Include stdio-impl.h.
12829         (freadable): Remove redundant #defines.
12830         * lib/freadahead.c: Include stdio-impl.h.
12831         (freadahead): Remove redundant #defines.
12832         * lib/freading.c: Include stdio-impl.h.
12833         (freading): Remove redundant #defines.
12834         * lib/freadptr.c: Include stdio-impl.h.
12835         (freadptr): Remove redundant #defines.
12836         * lib/freadseek.c: Include stdio-impl.h.
12837         (freadptrinc): Remove redundant #defines.
12838         * lib/fseeko.c: Include stdio-impl.h.
12839         (rpl_fseeko): Remove redundant #defines.
12840         * lib/fseterr.c: Include stdio-impl.h.
12841         (fseterr): Remove redundant #defines.
12842         * lib/fwritable.c: Include stdio-impl.h.
12843         (fwritable: Remove redundant #defines.
12844         * lib/fwriting.c: Include stdio-impl.h.
12845         (fwriting): Remove redundant #defines.
12846         * modules/fbufmode (Files): Add lib/stdio-impl.h.
12847         * modules/fflush (Files): Likewise.
12848         * modules/fpurge (Files): Likewise.
12849         * modules/freadable (Files): Likewise.
12850         * modules/freadahead (Files): Likewise.
12851         * modules/freading (Files): Likewise.
12852         * modules/freadptr (Files): Likewise.
12853         * modules/freadseek (Files): Likewise.
12854         * modules/fseeko (Files): Likewise.
12855         * modules/fseterr (Files): Likewise.
12856         * modules/fwritable (Files): Likewise.
12857         * modules/fwriting (Files): Likewise.
12858
12859 2008-04-26  Bruno Haible  <bruno@clisp.org>
12860
12861         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
12862         restore_seek_optimization, update_fpos_cache): New functions, extracted
12863         from rpl_fflush.
12864         (rpl_fflush): Use them.
12865         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
12866         (gl_REPLACE_FFLUSH): Use it.
12867
12868 2008-04-26  Bruno Haible  <bruno@clisp.org>
12869
12870         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
12871         on Solaris.
12872         * tests/test-xstrtoimax.sh: Likewise.
12873         * tests/test-xstrtoumax.sh: Likewise.
12874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12875
12876 2008-04-26  Bruno Haible  <bruno@clisp.org>
12877
12878         * modules/memchr-tests: New file.
12879         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
12880
12881 2008-04-26  Eric Blake  <ebb9@byu.net>
12882             Bruno Haible  <bruno@clisp.org>
12883
12884         * lib/memchr.c: Include intprops.h.
12885         (__memchr): Optimize parallel detection of matching bytes. Rename local
12886         variables. Add explanatory comments.
12887
12888 2008-04-26  Bruno Haible  <bruno@clisp.org>
12889
12890         Fix module 'memchr', broken since 2000-10-28.
12891         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
12892
12893 2008-04-26  Bruno Haible  <bruno@clisp.org>
12894
12895         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
12896         comments.
12897
12898 2008-04-25  Eric Blake  <ebb9@byu.net>
12899
12900         Use native fstatat on cygwin 1.7.0.
12901         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
12902         first.
12903
12904 2008-04-23  Eric Blake  <ebb9@byu.net>
12905
12906         Improve memchr2 performance.
12907         * lib/memchr2.c (memchr2): Further optimize parallel detection of
12908         NUL bytes.
12909         * modules/memchr2 (Depends-on): Use intprops.h.
12910
12911 2008-04-23  Simon Josefsson  <simon@josefsson.org>
12912
12913         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
12914         an inline function instead of a CPP macro.  Patch by Ben Pfaff
12915         <blp@cs.stanford.edu>.
12916
12917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
12918
12919         * lib/arpa_inet.in.h: New file.
12920
12921         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
12922         (Makefile.am): Sed in substitute header file.
12923
12924         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
12925         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
12926
12927         * modules/inet_ntop (configure.ac): Use
12928         gl_ARPA_INET_MODULE_INDICATOR.
12929
12930         * modules/inet_pton (configure.ac): Use
12931         gl_ARPA_INET_MODULE_INDICATOR.
12932
12933 2008-04-22  Jim Meyering  <meyering@redhat.com>
12934
12935         * modules/verify (License): Re-license as LGPLv2+.
12936
12937 2008-04-22  Simon Josefsson  <simon@josefsson.org>
12938
12939         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
12940         parameter to void* as per POSIX standard (MinGW uses char*).
12941
12942 2008-04-21  Bruno Haible  <bruno@clisp.org>
12943
12944         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12945         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12946         Define to replacements if REPLACE_ISWCNTRL is 1.
12947         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
12948         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
12949         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
12950         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
12951         what it fixes.
12952         * doc/posix-functions/iswalpha.texi: Likewise.
12953         * doc/posix-functions/iswblank.texi: Likewise.
12954         * doc/posix-functions/iswcntrl.texi: Likewise.
12955         * doc/posix-functions/iswdigit.texi: Likewise.
12956         * doc/posix-functions/iswgraph.texi: Likewise.
12957         * doc/posix-functions/iswlower.texi: Likewise.
12958         * doc/posix-functions/iswprint.texi: Likewise.
12959         * doc/posix-functions/iswpunct.texi: Likewise.
12960         * doc/posix-functions/iswspace.texi: Likewise.
12961         * doc/posix-functions/iswupper.texi: Likewise.
12962         * doc/posix-functions/iswxdigit.texi: Likewise.
12963         Reported by Alain Guibert.
12964
12965 2008-04-21  Bruno Haible  <bruno@clisp.org>
12966
12967         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
12968         Patch by Alain Guibert.
12969
12970 2008-04-21  Bruno Haible  <bruno@clisp.org>
12971
12972         Fix test failures on mingw.
12973         * tests/test-xstrtol.c (print_no_progname): New function.
12974         (main): Install it in error_print_progname hook.
12975         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
12976         * tests/test-xstrtoimax.sh: Likewise.
12977         * tests/test-xstrtoumax.sh: Likewise.
12978
12979 2008-04-21  Bruno Haible  <bruno@clisp.org>
12980
12981         Fix test failure on mingw.
12982         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
12983
12984 2008-04-21  Bruno Haible  <bruno@clisp.org>
12985
12986         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
12987         Actually assign a value.
12988
12989 2008-04-20  Bruno Haible  <bruno@clisp.org>
12990
12991         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
12992         take 2.
12993         * lib/canonicalize.c (canonicalize_file_name): Elide if the
12994         'canonicalize-lgpl' module is also used.
12995         * lib/canonicalize-lgpl.c: Undo last change.
12996         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
12997
12998 2008-04-20  Bruno Haible  <bruno@clisp.org>
12999
13000         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
13001         config.h. Provide _mkdir based fallback for mingw.
13002         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
13003         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
13004         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
13005         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
13006         rather than defining mkdir in config.h.
13007         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
13008         (gl_SYS_STAT_H_DEFAULTS): New macro.
13009         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
13010         HAVE_IO_H any more.
13011         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
13012         HAVE_DECL_MKDIR and HAVE_IO_H.
13013
13014 2008-04-20  Bruno Haible  <bruno@clisp.org>
13015
13016         * lib/isapipe.c: Port to native Windows platforms.
13017
13018 2008-04-20  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
13021
13022 2008-04-21  Eric Blake  <ebb9@byu.net>
13023
13024         Work around preprocessors that don't handle UINTMAX_MAX.
13025         * lib/memchr2.c (memchr2): Avoid embedded #if.
13026         Reported by Alain Guibert, fix suggested by Bruno Haible.
13027
13028 2008-04-21  Simon Josefsson  <simon@josefsson.org>
13029
13030         * doc/posix-functions/strftime.texi (strftime): Explain better
13031         Windows incompatibility.  Suggested by Micah Cowan
13032         <micah@cowan.name>.
13033
13034 2008-04-20  Bruno Haible  <bruno@clisp.org>
13035
13036         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
13037         unistr/u8-mblen.
13038
13039 2008-04-20  Bruno Haible  <bruno@clisp.org>
13040
13041         Fix test failure on platforms with non-GNU iconv.
13042         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
13043         (U_TO_U8): Use it, rather than u16_to_u8.
13044         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
13045         units at the end of the input string.
13046         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
13047
13048 2008-04-20  Bruno Haible  <bruno@clisp.org>
13049
13050         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
13051         when the resulting length is 0.
13052         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13053
13054 2008-04-20  Bruno Haible  <bruno@clisp.org>
13055
13056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
13057         works.
13058         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
13059
13060 2008-04-20  Bruno Haible  <bruno@clisp.org>
13061
13062         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
13063         * modules/tsearch-tests (configure.ac): Test for initstate function.
13064
13065 2008-04-20  Bruno Haible  <bruno@clisp.org>
13066
13067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
13068         for nlink_t if missing.
13069         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
13070
13071 2008-04-19  Bruno Haible  <bruno@clisp.org>
13072
13073         Work around snprintf bug on Linux libc5.
13074         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
13075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13076         gl_SNPRINTF_SIZE1.
13077         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13078         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
13079         that test failed.
13080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13081         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
13082         * modules/snprintf (Files): Add m4/printf.m4.
13083         * modules/vsnprintf (Files): Likewise.
13084         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
13085         * doc/posix-functions/vsnprintf.texi: Likewise.
13086
13087 2008-04-19  Bruno Haible  <bruno@clisp.org>
13088
13089         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
13090         from 0.0058 to less than 10^-7.
13091
13092 2008-04-19  Bruno Haible  <bruno@clisp.org>
13093
13094         Fix rounding when a precision is given.
13095         * lib/vasnprintf.c (is_borderline): New function.
13096         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
13097         9...9x.
13098         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13099         %e, %g.
13100         * tests/test-vasprintf-posix.c (test_function): Likewise.
13101         * tests/test-snprintf-posix.h (test_function): Likewise.
13102         * tests/test-sprintf-posix.h (test_function): Likewise.
13103         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
13104         * tests/test-printf-posix.h (test_function): Likewise.
13105         * tests/test-printf-posix.output: Update.
13106         Reported by John Darrington <john@darrington.wattle.id.au> via
13107         Ben Pfaff <blp@cs.stanford.edu>.
13108
13109 2008-04-18  Simon Josefsson  <simon@josefsson.org>
13110
13111         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
13112         Suggested by Bruno Haible <bruno@clisp.org>.
13113
13114 2008-04-17  Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
13117         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
13118         implementation.
13119         Patch by Bruce Merry <bmerry@gmail.com>.
13120
13121 2008-04-17  Simon Josefsson  <simon@josefsson.org>
13122
13123         * doc/posix-functions/strftime.texi (strftime): Mention that %e
13124         doesn't work under Windows.
13125
13126 2008-04-16  Bruno Haible  <bruno@clisp.org>
13127
13128         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
13129         New macros.
13130         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
13131         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
13132         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
13133         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
13134         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
13135         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
13136         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
13137         macros.
13138         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
13139         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
13140         Northern Sotho, Uighur.
13141
13142 2008-04-16  Bruno Haible  <bruno@clisp.org>
13143
13144         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
13145         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
13146         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
13147         Reported by Daniel Bergström <daniel@octocode.com>.
13148
13149 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
13150             Bruno Haible  <bruno@clisp.org>
13151
13152         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
13153         function.
13154         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
13155         New functions, mostly extracted from gl_locale_name_default.
13156         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
13157
13158 2008-04-16  Eric Blake  <ebb9@byu.net>
13159
13160         Adjust strtod detection to catch glibc 2.7 bug.
13161         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
13162         Reported by John Gatewood Ham.
13163
13164 2008-04-16  Bruno Haible  <bruno@clisp.org>
13165
13166         Add tentative support for Linux libc5.
13167         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
13168         * lib/fpurge.c (fpurge): Likewise.
13169         * lib/freadable.c (freadable): Likewise.
13170         * lib/freadahead.c (freadahead): Likewise.
13171         * lib/freading.c (freading): Likewise.
13172         * lib/freadptr.c (freadptr): Likewise.
13173         * lib/freadseek.c (freadptrinc): Likewise.
13174         * lib/fseeko.c (rpl_fseeko): Likewise.
13175         * lib/fseterr.c (fseterr): Likewise.
13176         * lib/fwritable.c (fwritable): Likewise.
13177         * lib/fwriting.c (fwriting): Likewise.
13178         Reported by Alain Guibert <alguibert+bts@free.fr>.
13179
13180 2008-04-15  Bruno Haible  <bruno@clisp.org>
13181
13182         * modules/mathl (configure.ac): Define module indicator.
13183
13184 2008-04-15  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/logl.c (logl): Remove unused variables.
13187
13188 2008-04-15  Bruno Haible  <bruno@clisp.org>
13189
13190         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
13191         fails.
13192
13193 2008-04-15  Bruno Haible  <bruno@clisp.org>
13194
13195         * lib/trim.c (trim2): Fix argument of isspace() macro.
13196
13197 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
13198
13199         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
13200         to 0.
13201         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
13202
13203 2008-04-14  Bruno Haible  <bruno@clisp.org>
13204
13205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
13206         AC_LANG_PROGRAM argument.
13207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
13208         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
13209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13211         * m4/math_h.m4 (gl_MATH_H): Likewise.
13212         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13214         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13215         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
13216         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13217         * m4/regex.m4 (gl_REGEX): Likewise.
13218         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
13219         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
13220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13221         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
13222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13225         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13226
13227 2008-04-14  Jim Meyering  <meyering@redhat.com>
13228
13229         test-strtod: fix typos: s/abs/fabs/
13230         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
13231
13232 2008-04-13  Bruno Haible  <bruno@clisp.org>
13233
13234         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
13235         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
13236         module is also used and while not building the reloc-wrapper.
13237
13238 2008-04-13  Bruno Haible  <bruno@clisp.org>
13239
13240         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
13241
13242 2008-04-13  Bruno Haible  <bruno@clisp.org>
13243
13244         Fix AIX compilation failure introduced on 2008-04-02.
13245         * tests/test-frexp.c (exp): Undefine before redefining.
13246         * tests/test-frexpl.c (exp): Likewise.
13247
13248 2008-04-13  Bruno Haible  <bruno@clisp.org>
13249
13250         Work around a HP-UX stdio bug.
13251         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
13252         * tests/test-ftello.c (main): Likewise.
13253         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
13254         * doc/posix-functions/ftello.texi: Likewise.
13255
13256 2008-04-13  Bruno Haible  <bruno@clisp.org>
13257
13258         Make test-signbit pass on HP-UX/hppa.
13259         * tests/test-signbit.c (minus_zerol): New variable.
13260         (test_signbitl): Use it.
13261
13262 2008-04-13  Bruno Haible  <bruno@clisp.org>
13263
13264         Make truncl work on OSF/1 4.0.
13265         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
13266         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13267         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
13269         HAVE_DECL_TRUNCL.
13270         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
13271         HAVE_DECL_TRUNCL.
13272         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
13273
13274 2008-04-13  Bruno Haible  <bruno@clisp.org>
13275
13276         * lib/unictype.h: Remove trailing comma from enumeration definitions.
13277
13278 2008-04-13  Bruno Haible  <bruno@clisp.org>
13279
13280         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
13281         expression, so as to avoid HP-UX 11 cc compiler bug.
13282
13283 2008-04-13  Bruno Haible  <bruno@clisp.org>
13284
13285         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
13286
13287 2008-04-13  Bruno Haible  <bruno@clisp.org>
13288
13289         * lib/git-merge-changelog.c: Remove empty declaration outside of
13290         functions.
13291
13292 2008-04-13  Bruno Haible  <bruno@clisp.org>
13293
13294         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
13295
13296 2008-04-13  Bruno Haible  <bruno@clisp.org>
13297
13298         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
13299         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
13300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
13301         also if it exists but lacks definitions of the SHUT_* macros.
13302         * modules/sys_socket (Description): Update.
13303         Reported by Elbert Pol <e.pol@chello.nl>.
13304
13305 2008-04-13  Bruno Haible  <bruno@clisp.org>
13306
13307         * lib/localcharset.c (OS2): Don't redefine if already defined.
13308         Reported by Elbert Pol <e.pol@chello.nl>.
13309
13310 2008-04-13  Bruno Haible  <bruno@clisp.org>
13311
13312         * lib/binary-io.h [__EMX__]: Include <io.h>.
13313         Reported by Elbert Pol <e.pol@chello.nl>.
13314
13315 2008-04-12  Bruno Haible  <bruno@clisp.org>
13316
13317         * lib/fpucw.h: Enable the definitions also for x86_64.
13318         Needed for NetBSD/x86_64.
13319         Reported by Thomas Klausner <tk@giga.or.at>.
13320
13321 2008-04-12  Bruno Haible  <bruno@clisp.org>
13322
13323         * tests/test-strtod.c: Include isnand.h.
13324         (main): Use isnand instead of isnan.
13325         Reported by Jim Meyering.
13326
13327 2008-04-12  Bruno Haible  <bruno@clisp.org>
13328
13329         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
13330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13331
13332 2008-04-12  Jim Meyering  <meyering@redhat.com>
13333
13334         * m4/math_h.m4 (gl_MATH_H): Fix typos.
13335
13336 2008-04-12  Bruno Haible  <bruno@clisp.org>
13337
13338         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
13339         Reported by Elbert Pol <e.pol@chello.nl>.
13340
13341 2008-04-12  Eric Blake  <ebb9@byu.net>
13342
13343         Work around Solaris 10 math.h bug.
13344         * m4/math_h.m4 (gl_MATH_H): Check for bug.
13345         (gl_MATH_H_DEFAULTS): Set up default.
13346         * modules/math (Makefile.am): Replace new indicators.
13347         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
13348         * tests/test-math.c (main): Test this.
13349         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
13350         * doc/posix-headers/math.texi (math.h): Mention bug.
13351         Reported by Nelson H. F. Beebe and Jim Meyering.
13352
13353 2008-04-11  Bruno Haible  <bruno@clisp.org>
13354
13355         Adapt to future versions of Apple GCC.
13356         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
13357         Reported by Peter O'Gorman <peter@pogma.com>.
13358
13359 2008-04-11  Bruno Haible  <bruno@clisp.org>
13360
13361         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
13362
13363 2008-04-11  Bruno Haible  <bruno@clisp.org>
13364
13365         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
13366
13367         * modules/getaddrinfo-tests (Makefile.am): Define
13368         test_getaddrinfo_LDADD.
13369
13370 2008-04-11  Bruno Haible  <bruno@clisp.org>
13371
13372         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
13373         (init): Fix syntax error.
13374         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
13375         is declared.
13376
13377 2008-04-11  Bruno Haible  <bruno@clisp.org>
13378
13379         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
13380         * modules/glob (Depends-on): Add stdbool.
13381
13382 2008-04-11  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/trim.c: Include <string.h>.
13385
13386 2008-04-11  Eric Blake  <ebb9@byu.net>
13387
13388         Avoid compile failure on OS/2.
13389         * lib/regex_internal.h (internal_function): Disable optimization
13390         on OS/2 (__EMX__), where it caused compiler error.
13391         Reported by Elbert Pol.
13392
13393 2008-04-11  Bruno Haible  <bruno@clisp.org>
13394
13395         Flush the standard error stream before aborting. Needed on mingw.
13396         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
13397         * tests/test-array_list.c (ASSERT): Likewise.
13398         * tests/test-array_oset.c (ASSERT): Likewise.
13399         * tests/test-avltree_list.c (ASSERT): Likewise.
13400         * tests/test-avltree_oset.c (ASSERT): Likewise.
13401         * tests/test-avltreehash_list.c (ASSERT): Likewise.
13402         * tests/test-binary-io.c (ASSERT): Likewise.
13403         * tests/test-byteswap.c (ASSERT): Likewise.
13404         * tests/test-c-ctype.c (ASSERT): Likewise.
13405         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
13406         * tests/test-c-strcasestr.c (ASSERT): Likewise.
13407         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
13408         * tests/test-c-strstr.c (ASSERT): Likewise.
13409         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
13410         * tests/test-canonicalize.c (ASSERT): Likewise.
13411         * tests/test-carray_list.c (ASSERT): Likewise.
13412         * tests/test-ceilf1.c (ASSERT): Likewise.
13413         * tests/test-ceilf2.c (ASSERT): Likewise.
13414         * tests/test-ceill.c (ASSERT): Likewise.
13415         * tests/test-count-one-bits.c (ASSERT): Likewise.
13416         * tests/test-fbufmode.c (ASSERT): Likewise.
13417         * tests/test-fflush2.c (ASSERT): Likewise.
13418         * tests/test-floorf1.c (ASSERT): Likewise.
13419         * tests/test-floorf2.c (ASSERT): Likewise.
13420         * tests/test-floorl.c (ASSERT): Likewise.
13421         * tests/test-fopen.c (ASSERT): Likewise.
13422         * tests/test-fpending.c (ASSERT): Likewise.
13423         * tests/test-fprintf-posix.c (ASSERT): Likewise.
13424         * tests/test-fpurge.c (ASSERT): Likewise.
13425         * tests/test-freadable.c (ASSERT): Likewise.
13426         * tests/test-freadahead.c (ASSERT): Likewise.
13427         * tests/test-freading.c (ASSERT): Likewise.
13428         * tests/test-freadptr.c (ASSERT): Likewise.
13429         * tests/test-freadptr2.c (ASSERT): Likewise.
13430         * tests/test-freadseek.c (ASSERT): Likewise.
13431         * tests/test-freopen.c (ASSERT): Likewise.
13432         * tests/test-frexp.c (ASSERT): Likewise.
13433         * tests/test-frexpl.c (ASSERT): Likewise.
13434         * tests/test-fseek.c (ASSERT): Likewise.
13435         * tests/test-fseeko.c (ASSERT): Likewise.
13436         * tests/test-fstrcmp.c (ASSERT): Likewise.
13437         * tests/test-ftell.c (ASSERT): Likewise.
13438         * tests/test-ftello.c (ASSERT): Likewise.
13439         * tests/test-func.c (ASSERT): Likewise.
13440         * tests/test-fwritable.c (ASSERT): Likewise.
13441         * tests/test-fwriting.c (ASSERT): Likewise.
13442         * tests/test-getdelim.c (ASSERT): Likewise.
13443         * tests/test-getline.c (ASSERT): Likewise.
13444         * tests/test-i-ring.c (ASSERT): Likewise.
13445         * tests/test-iconv-utf.c (ASSERT): Likewise.
13446         * tests/test-iconv.c (ASSERT): Likewise.
13447         * tests/test-isfinite.c (ASSERT): Likewise.
13448         * tests/test-isnand.c (ASSERT): Likewise.
13449         * tests/test-isnanf.c (ASSERT): Likewise.
13450         * tests/test-isnanl.h (ASSERT): Likewise.
13451         * tests/test-ldexpl.c (ASSERT): Likewise.
13452         * tests/test-linked_list.c (ASSERT): Likewise.
13453         * tests/test-linkedhash_list.c (ASSERT): Likewise.
13454         * tests/test-localename.c (ASSERT): Likewise.
13455         * tests/test-lseek.c (ASSERT): Likewise.
13456         * tests/test-mbscasecmp.c (ASSERT): Likewise.
13457         * tests/test-mbscasestr1.c (ASSERT): Likewise.
13458         * tests/test-mbscasestr2.c (ASSERT): Likewise.
13459         * tests/test-mbscasestr3.c (ASSERT): Likewise.
13460         * tests/test-mbscasestr4.c (ASSERT): Likewise.
13461         * tests/test-mbschr.c (ASSERT): Likewise.
13462         * tests/test-mbscspn.c (ASSERT): Likewise.
13463         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
13464         * tests/test-mbspbrk.c (ASSERT): Likewise.
13465         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
13466         * tests/test-mbsrchr.c (ASSERT): Likewise.
13467         * tests/test-mbsspn.c (ASSERT): Likewise.
13468         * tests/test-mbsstr1.c (ASSERT): Likewise.
13469         * tests/test-mbsstr2.c (ASSERT): Likewise.
13470         * tests/test-mbsstr3.c (ASSERT): Likewise.
13471         * tests/test-memchr2.c (ASSERT): Likewise.
13472         * tests/test-memmem.c (ASSERT): Likewise.
13473         * tests/test-open.c (ASSERT): Likewise.
13474         * tests/test-printf-frexp.c (ASSERT): Likewise.
13475         * tests/test-printf-frexpl.c (ASSERT): Likewise.
13476         * tests/test-printf-posix.c (ASSERT): Likewise.
13477         * tests/test-quotearg.c (ASSERT): Likewise.
13478         * tests/test-rbtree_list.c (ASSERT): Likewise.
13479         * tests/test-rbtree_oset.c (ASSERT): Likewise.
13480         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
13481         * tests/test-round1.c (ASSERT): Likewise.
13482         * tests/test-roundf1.c (ASSERT): Likewise.
13483         * tests/test-roundl.c (ASSERT): Likewise.
13484         * tests/test-signbit.c (ASSERT): Likewise.
13485         * tests/test-sleep.c (ASSERT): Likewise.
13486         * tests/test-snprintf-posix.c (ASSERT): Likewise.
13487         * tests/test-snprintf.c (ASSERT): Likewise.
13488         * tests/test-sprintf-posix.c (ASSERT): Likewise.
13489         * tests/test-stat-time.c (ASSERT): Likewise.
13490         * tests/test-strcasestr.c (ASSERT): Likewise.
13491         * tests/test-strerror.c (ASSERT): Likewise.
13492         * tests/test-striconv.c (ASSERT): Likewise.
13493         * tests/test-striconveh.c (ASSERT): Likewise.
13494         * tests/test-striconveha.c (ASSERT): Likewise.
13495         * tests/test-strsignal.c (ASSERT): Likewise.
13496         * tests/test-strstr.c (ASSERT): Likewise.
13497         * tests/test-strtod.c (ASSERT): Likewise.
13498         * tests/test-trunc1.c (ASSERT): Likewise.
13499         * tests/test-trunc2.c (ASSERT): Likewise.
13500         * tests/test-truncf1.c (ASSERT): Likewise.
13501         * tests/test-truncf2.c (ASSERT): Likewise.
13502         * tests/test-truncl.c (ASSERT): Likewise.
13503         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
13504         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
13505         * tests/test-vasnprintf.c (ASSERT): Likewise.
13506         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
13507         * tests/test-vasprintf.c (ASSERT): Likewise.
13508         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
13509         * tests/test-vprintf-posix.c (ASSERT): Likewise.
13510         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
13511         * tests/test-vsnprintf.c (ASSERT): Likewise.
13512         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
13513         * tests/test-wcwidth.c (ASSERT): Likewise.
13514         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
13515         * tests/test-xprintf-posix.c (ASSERT): Likewise.
13516         * tests/test-xvasprintf.c (ASSERT): Likewise.
13517         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
13518         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
13519         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
13520         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
13521         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
13522         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
13523         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
13524         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
13525         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
13526         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
13527         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
13528         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
13529         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
13530         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
13531         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
13532         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
13533         * tests/unictype/test-block_list.c (ASSERT): Likewise.
13534         * tests/unictype/test-block_of.c (ASSERT): Likewise.
13535         * tests/unictype/test-block_test.c (ASSERT): Likewise.
13536         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
13537         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
13538         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
13539         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
13540         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
13541         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
13542         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
13543         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
13544         * tests/unictype/test-combining.c (ASSERT): Likewise.
13545         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
13546         * tests/unictype/test-digit.c (ASSERT): Likewise.
13547         * tests/unictype/test-mirror.c (ASSERT): Likewise.
13548         * tests/unictype/test-numeric.c (ASSERT): Likewise.
13549         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
13550         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
13551         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
13552         * tests/unictype/test-scripts.c (ASSERT): Likewise.
13553         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
13554         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
13555         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
13556         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
13557         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
13558         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
13559         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
13560         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
13561         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
13562         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
13563         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
13564         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
13565         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
13566         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
13567         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
13568         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
13569         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
13570         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
13571         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
13572         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
13573         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
13574         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
13575         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
13576         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
13577         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
13578         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
13579         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
13580         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
13581         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
13582         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
13583         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
13584         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
13585         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
13586         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
13587         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
13588         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
13589         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
13590         Reported by Eric Blake.
13591
13592 2008-04-11  Bruno Haible  <bruno@clisp.org>
13593
13594         * lib/wchar.in.h: Tweak comment.
13595
13596 2008-04-11  Bruno Haible  <bruno@clisp.org>
13597
13598         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
13599         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
13600         gl_COMMON.
13601         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
13602
13603 2008-04-11  Bruno Haible  <bruno@clisp.org>
13604
13605         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
13606
13607 2008-04-11  Simon Josefsson  <simon@josefsson.org>
13608
13609         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
13610         of attempting to use non-existing /dev/*random.  Based on patch
13611         from Adam Strzelecki <ono@java.pl> in
13612         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
13613
13614 2008-04-08  Bruno Haible  <bruno@clisp.org>
13615
13616         Add tentative support for emx+gcc.
13617         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
13618         * lib/fpurge.c (fpurge): Likewise.
13619         * lib/freadable.c (freadable): Likewise.
13620         * lib/freadahead.c (freadahead): Likewise.
13621         * lib/freading.c (freading): Likewise.
13622         * lib/freadptr.c (freadptr): Likewise.
13623         * lib/freadseek.c (freadptrinc): Likewise.
13624         * lib/fseeko.c (rpl_fseeko): Likewise.
13625         * lib/fseterr.c (fseterr): Likewise.
13626         * lib/fwritable.c (fwritable): Likewise.
13627         * lib/fwriting.c (fwriting): Likewise.
13628         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
13629
13630 2008-04-09  Eric Blake  <ebb9@byu.net>
13631
13632         Avoid some autoconf warnings.
13633         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
13634         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
13635         * m4/afs.m4 (gl_AFS): Likewise.
13636         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
13637         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
13638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13639         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
13640         (gl_INTEGER_TYPE_SUFFIX): Likewise.
13641         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
13642         (AC_CHECK_DECLS_ONCE): Likewise.
13643         Rename file...
13644         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
13645         gnulib-tool requires autoconf 2.59 or better.
13646         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
13647
13648 2008-04-08  Eric Blake  <ebb9@byu.net>
13649
13650         Use 'git describe --match' if present (added in git 1.5.5).
13651         * build-aux/git-version-gen: Limit result to tags that match 'v*'
13652         if possible.
13653
13654 2008-04-08  Bruno Haible  <bruno@clisp.org>
13655
13656         Add tentative support for OpenServer.
13657         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
13658         _ptr, _cnt.
13659         * lib/fpurge.c (fpurge): Likewise.
13660         * lib/freadable.c (freadable): Likewise.
13661         * lib/freadahead.c (freadahead): Likewise.
13662         * lib/freading.c (freading): Likewise.
13663         * lib/freadptr.c (freadptr): Likewise.
13664         * lib/freadseek.c (freadptrinc): Likewise.
13665         * lib/fseeko.c (rpl_fseeko): Likewise.
13666         * lib/fseterr.c (fseterr): Likewise.
13667         * lib/fwritable.c (fwritable): Likewise.
13668         * lib/fwriting.c (fwriting): Likewise.
13669         Reported by Roger Cornelius <rac@tenzing.org> and
13670         Brian K. White <brian@aljex.com>.
13671
13672 2008-04-06  Jim Meyering  <meyering@redhat.com>
13673
13674         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
13675
13676 2008-04-06  Bruno Haible  <bruno@clisp.org>
13677
13678         Avoid possible error with non-ASCII bytes in UTF-8 locales.
13679         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
13680         * tests/test-printf-posix.sh: Likewise.
13681         * tests/test-vfprintf-posix.sh: Likewise.
13682         * tests/test-vprintf-posix.sh: Likewise.
13683         * tests/test-xprintf-posix.sh: Likewise.
13684
13685 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13686
13687         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
13688         hide error from 'ls', needed on OS/2.
13689         Report by Elbert Pol <elbert.pol@gmail.com>.
13690
13691 2008-04-04  Eric Blake  <ebb9@byu.net>
13692
13693         Make test-fseeko.c failures meaningful.
13694         * tests/test-fseeko.c: Print line number on failure.
13695         * tests/test-fseek.c: Likewise.
13696         Reported by Nelson H. F. Beebe.
13697
13698         Improve strtod bug detection check.
13699         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
13700         required for Solaris 10.
13701         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
13702
13703 2008-04-04  Bruno Haible  <bruno@clisp.org>
13704
13705         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
13706         by m4/setenv.m4.
13707
13708 2008-04-03  Eric Blake  <ebb9@byu.net>
13709
13710         Ensure sane .version contents.
13711         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
13712         version string.
13713         * build-aux/git-version-gen: Improve documentation.
13714
13715         Make GNU make output nicer.
13716         * top/GNUmakefile [!_have-Makefile]: Add dependency on
13717         MAKECMDGOALS to enforce message for all command line targets.  Set
13718         srcdir for use in maint.mk.
13719
13720         Another maintainer tweak.
13721         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
13722         a target that regenerates version.
13723
13724 2008-04-03  Jim Meyering  <meyering@redhat.com>
13725
13726         vc-list-files: don't cause coreutils "make po-check" failure
13727         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
13728
13729 2008-04-03  Eric Blake  <ebb9@byu.net>
13730
13731         Allow VPATH usage of vc-list-files.
13732         * build-aux/vc-list-files (scriptversion): Add timestamp.
13733         (options): Add --help, --version, -C.
13734         (CVS): Support installed cvsu.
13735
13736 2008-04-02  Bruno Haible  <bruno@clisp.org>
13737
13738         Avoid some "statement with no effect" warnings from gcc.
13739         * tests/test-wctype.c (main): Explicitly ignore unused values.
13740         Reported by Jim Meyering.
13741
13742 2008-04-02  Jim Meyering  <meyering@redhat.com>
13743
13744         Avoid some warnings from "gcc -Wshadow".
13745         * tests/test-frexp.c (exp): Define to a different identifier.
13746         * tests/test-frexpl.c (exp): Likewise.
13747
13748 2008-04-03  Jim Meyering  <meyering@redhat.com>
13749
13750         bootstrap: remove dangling *.[ch] symlinks from lib
13751         * build-aux/bootstrap [dangling symlink removal]: Move find's
13752         -depth option to precede all others, to avoid a warning.
13753         Remove *.[ch] files too, and from "$source_base" (usually lib/).
13754
13755 2008-04-02  Bruno Haible  <bruno@clisp.org>
13756
13757         Avoid some warnings from "gcc -Wshadow".
13758         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
13759         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
13760         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
13761         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
13762         Reported by Jim Meyering.
13763
13764 2008-04-01  Bruno Haible  <bruno@clisp.org>
13765
13766         Fix test to work on IRIX 6.5 with cc.
13767         * tests/test-math.c (numeric_equal): New function.
13768         (main): Use it.
13769
13770 2008-04-01  Bruno Haible  <bruno@clisp.org>
13771
13772         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
13773
13774 2008-04-01  Bruno Haible  <bruno@clisp.org>
13775
13776         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
13777         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13778         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
13779         (Depends-on): Remove math.
13780
13781         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
13782         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13783         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
13784         (Depends-on): Remove math.
13785
13786         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
13787         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13788         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
13789         (Depends-on): Remove math.
13790         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
13791         (Depends-on): Remove math.
13792
13793         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
13794         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
13795         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
13796         (Depends-on): Remove math.
13797         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
13798         (Depends-on): Remove math.
13799
13800         * tests/test-round1.c: Include nan.h.
13801         (main): Use NaNd instead of NAN.
13802         * modules/round-tests (Files): Add tests/nan.h.
13803
13804         * tests/test-trunc1.c: Include nan.h.
13805         (main): Use NaNd instead of NAN.
13806         * modules/trunc-tests (Files): Add tests/nan.h.
13807
13808         * tests/test-roundf1.c: Include nan.h.
13809         (main): Use NaNf instead of NAN.
13810         * modules/roundf-tests (Files): Add tests/nan.h.
13811
13812         * tests/test-truncf1.c: Include nan.h.
13813         (main): Use NaNf instead of NAN.
13814         * modules/truncf-tests (Files): Add tests/nan.h.
13815
13816         * tests/test-ceilf1.c: Include nan.h.
13817         (main): Use NaNf instead of NAN.
13818         * modules/ceilf-tests (Files): Add tests/nan.h.
13819
13820         * tests/test-floorf1.c: Include nan.h.
13821         (main): Use NaNf instead of NAN.
13822         * modules/floorf-tests (Files): Add tests/nan.h.
13823
13824         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
13825         (main): Use NaNf instead of NAN.
13826         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
13827
13828         * tests/test-isnand.c: Include nan.h instead of <math.h>.
13829         (main): Use NaNd instead of NAN.
13830         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
13831
13832         * tests/test-frexp.c: Include nan.h.
13833         (main): Use NaNd instead of NAN.
13834         * modules/frexp-tests (Files): Add tests/nan.h.
13835
13836         * lib/isnan.c: Don't include <math.h>.
13837         (FUNC): Don't use NAN macro.
13838         * modules/isnand-nolibm (Depends-on): Remove math.
13839         * modules/isnanf-nolibm (Depends-on): Remove math.
13840         * modules/isnanl (Depends-on): Remove math.
13841         * modules/isnanl-nolibm (Depends-on): Remove math.
13842
13843         * tests/nan.h: New file.
13844
13845 2008-04-01  Eric Blake  <ebb9@byu.net>
13846
13847         Fix typos.
13848         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
13849         values to be the right type.
13850
13851         For now, cater to gnulib strtod inaccuracies.
13852         * tests/test-strtod.c (main): Allow 1-ulp error on expected
13853         fractional results.  While not as nice from a QoI perspective, it
13854         is a quicker patch than correctly implementing decimal to binary
13855         rounding.
13856
13857 2008-03-31  Eric Blake  <ebb9@byu.net>
13858
13859         Guarantee a definition of NAN.
13860         * lib/math.in.h (NAN): Define if missing.
13861         * tests/test-math.c (main): Test it.
13862         * doc/posix-headers/math.texi (math.h): Document this.
13863         * lib/isnan.c (rpl_isnand): Use it.
13864         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
13865         * tests/test-floorf1.c (NaN): Likewise.
13866         * tests/test-frexp.c (NaN): Likewise.
13867         * tests/test-isnand.c (NaN): Likewise.
13868         * tests/test-isnanf.c (NaN): Likewise.
13869         * tests/test-round1.c (NaN): Likewise.
13870         * tests/test-roundf1.c (NaN): Likewise.
13871         * tests/test-snprintf-posix.h (NaN): Likewise.
13872         * tests/test-sprintf-posix.h (NaN): Likewise.
13873         * tests/test-trunc1.c (NaN): Likewise.
13874         * tests/test-truncf1.c (NaN): Likewise.
13875         * tests/test-vasnprintf-posix.c (NaN): Likewise.
13876         * tests/test-vasprintf-posix.c (NaN): Likewise.
13877         * modules/isnand-nolibm (Depends-on): Add math.
13878         * modules/isnanf-nolibm (Depends-on): Likewise.
13879         * modules/isnanl (Depends-on): Likewise.
13880         * modules/isnanl-nolibm (Depends-on): Likewise.
13881         * modules/snprintf-posix-tests (Depends-on): Likewise.
13882         * modules/sprintf-posix-tests (Depends-on): Likewise.
13883         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
13884         * modules/vsprintf-posix-tests (Depends-on): Likewise.
13885         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
13886         * modules/vasprintf-posix-tests (Depends-on): Likewise.
13887
13888 2008-03-31  Bruno Haible  <bruno@clisp.org>
13889
13890         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
13891         * doc/posix-functions/strtod.texi: Likewise.
13892
13893 2008-03-31  Bruno Haible  <bruno@clisp.org>
13894
13895         * tests/test-strtod.c (main): Don't use C99 syntax.
13896
13897 2008-03-31  Bruno Haible  <bruno@clisp.org>
13898
13899         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
13900         Reported by Eric Blake.
13901
13902 2008-03-31  Jim Meyering  <meyering@redhat.com>
13903
13904         Don't compare actual signbit return values.
13905         * tests/test-strtod.c (main): Rather, compare only their
13906         zero/non-zero nature.
13907
13908 2008-03-31  Eric Blake  <ebb9@byu.net>
13909
13910         More strtod documentation.
13911         * doc/posix-functions/strtod.texi (strtod): Interpret more test
13912         failures as distinct bugs.
13913
13914 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13915
13916         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
13917         Problem reported by Erik Benada in
13918         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
13919
13920 2008-03-30  Bruno Haible  <bruno@clisp.org>
13921
13922         * tests/test-strtod.c: Add comments about which assertion fails on which
13923         platform.
13924         * doc/posix-functions/strtod.texi: Add info about many more platforms.
13925
13926 2008-03-30  Eric Blake  <ebb9@byu.net>
13927
13928         Test signbit behavior on zeros.
13929         * tests/test-signbit.c (test_signbitf): Add tests for zero.
13930         (test_signbitd, test_signbitl): Likewise.
13931
13932         More strtod touchups.
13933         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
13934         sign of negative underflow, for now.  Use .5, not .1.
13935         * doc/posix-functions/strtod.texi (strtod): Mention these
13936         limitations.
13937         Reported by Jim Meyering.
13938
13939 2008-03-30  Bruno Haible  <bruno@clisp.org>
13940
13941         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
13942         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
13943
13944 2008-03-30  Bruno Haible  <bruno@clisp.org>
13945
13946         Avoid failure when attempting to return empty iconv results on some
13947         platforms.
13948         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
13949         allocation, don't report ENOMEM when the resulting string is empty.
13950
13951 2008-03-30  Bruno Haible  <bruno@clisp.org>
13952
13953         Fix buffer overrun.
13954         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
13955         Don't consider the width for tmp_length. Check count against tmp_length
13956         before doing the padding. Ensure enough allocation during padding.
13957
13958 2008-03-30  Eric Blake  <ebb9@byu.net>
13959
13960         strtod touchups.
13961         * lib/strtod.c (strtod): Avoid compiler warnings.
13962         Reported by Jim Meyering.
13963
13964 2008-03-30  Bruno Haible  <bruno@clisp.org>
13965
13966         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
13967         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
13968         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
13969         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
13970         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
13971         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
13972         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
13973         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
13974
13975         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
13976         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
13977         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
13978         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
13979         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
13980         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
13981         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
13982         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
13983
13984         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
13985         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
13986         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
13987         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
13988         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
13989         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
13990         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
13991         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
13992
13993         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
13994         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
13995
13996         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
13997         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
13998
13999         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
14000         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
14001
14002         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
14003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
14004         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
14005
14006         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
14007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
14008         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
14009
14010         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
14011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
14012         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
14013
14014         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
14015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
14016         * modules/vasprintf (Depends-on): Add EOVERFLOW.
14017
14018         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
14019         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
14020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
14021         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
14022         (Depends-on): Add EOVERFLOW.
14023         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
14024         (Depends-on): Add EOVERFLOW.
14025         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14026         (Depends-on): Add EOVERFLOW.
14027         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14028         (Depends-on): Add EOVERFLOW.
14029         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14030         (Depends-on): Add EOVERFLOW.
14031         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14032         (Depends-on): Add EOVERFLOW.
14033         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14034         (Depends-on): Add EOVERFLOW.
14035         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14036         (Depends-on): Add EOVERFLOW.
14037
14038         * lib/sprintf.c (EOVERFLOW): Remove fallback.
14039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
14040         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
14041
14042         * lib/snprintf.c (EOVERFLOW): Remove fallback.
14043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
14044         * modules/snprintf (Depends-on): Add EOVERFLOW.
14045
14046         * lib/poll.c (EOVERFLOW): Remove fallback.
14047         * modules/poll (Depends-on): Add EOVERFLOW.
14048
14049         * lib/getugroups.c (EOVERFLOW): Remove fallback.
14050         * modules/getugroups (Depends-on): Add EOVERFLOW.
14051
14052         * lib/getdelim.c (EOVERFLOW): Remove fallback.
14053         * modules/getdelim (Depends-on): Add EOVERFLOW.
14054
14055         * lib/ftell.c (EOVERFLOW): Remove fallback.
14056         * modules/ftell (Depends-on): Add EOVERFLOW.
14057
14058         * lib/fprintf.c (EOVERFLOW): Remove fallback.
14059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
14060         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
14061
14062         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
14063
14064         * modules/EOVERFLOW-tests: New file.
14065         * tests/test-EOVERFLOW.c: New file.
14066
14067         * modules/EOVERFLOW: New file.
14068         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
14069
14070 2008-03-30  Bruno Haible  <bruno@clisp.org>
14071
14072         Fix bug introduced on 2007-06-10.
14073         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
14074         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
14075
14076 2008-03-30  Bruno Haible  <bruno@clisp.org>
14077
14078         Improve freadseek's efficiency after ungetc.
14079         * lib/freadseek.c: Include freadahead.h.
14080         (freadptrinc): New function, extracted from freadseek.
14081         (freadseek): Use it in a loop. Use freadahead to determine the number
14082         of loop iterations.
14083         * modules/freadseek (Depends-on): Add freadahead.
14084         (configure.ac): Require AC_C_INLINE.
14085
14086 2008-03-30  Bruno Haible  <bruno@clisp.org>
14087
14088         * lib/freadseek.c (freadseek): Don't ignore the return value of
14089         freadptr.
14090
14091 2008-03-29  Eric Blake  <ebb9@byu.net>
14092
14093         Add hex float support.
14094         * modules/strtod (Depends-on): Add c-ctype.
14095         (Link): Mention POW_LIB.
14096         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
14097         whitespace between 'e' and exponent.
14098         * tests/test-strtod.c (main): Enable hex float tests.
14099         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
14100         now provides.
14101
14102         Document various strtod bugs, with some fixes.
14103         * doc/posix-functions/strtod.texi (strtod): Document bugs with
14104         "-0x", "inf", "nan", and hex constants.
14105         * doc/posix-functions/atof.texi (atof): Likewise.
14106         * modules/stdlib (Makefile.am): Support strtod.
14107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14108         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
14109         detect additional strtod bugs.
14110         * lib/stdlib.in.h (rpl_strtod): Add declarations.
14111         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
14112         bool where appropriate.  Parse 'inf' and 'nan'.
14113         * tests/test-strtod.c: New file.
14114         * modules/strtod (Depends-on): Add stdbool, stdlib.
14115         (configure.ac): Turn on module indicator.
14116         * modules/strtod-tests: New module.
14117
14118 2008-03-29  Eric Blake  <ebb9@byu.net>
14119
14120         Fix ftell on mingw.
14121         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
14122         * modules/ftell-tests (Depends-on): Add binary-io.
14123         * modules/ftello-tests (Depends-on): Likewise.
14124         * tests/test-ftell.c (main): Enhance test to cover behavior after
14125         ungetc.  Enforce binary mode.
14126         * tests/test-ftello.c (main): Likewise.
14127
14128         Pass test-freadseek on cygwin.
14129         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
14130         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
14131         ungetc buffer.
14132
14133         * tests/test-fflush2.c (main): Fix typo.
14134
14135 2008-03-29  Bruno Haible  <bruno@clisp.org>
14136
14137         * tests/test-fflush2.c (main): Temporarily disable the contents of
14138         this test.
14139         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
14140         Reported by Eric Blake.
14141
14142 2008-03-28  Simon Josefsson  <simon@josefsson.org>
14143
14144         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
14145         (GC_SHA224_DIGEST_SIZE): Add.
14146
14147         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
14148         (gc_hash_digest_length): Likewise.
14149         (gc_hash_buffer): Likewise.
14150
14151 2008-03-25  Bruno Haible  <bruno@clisp.org>
14152
14153         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
14154         detail which gettext release to use.
14155         Reported by Simon Josefsson.
14156
14157 2008-03-26  Jim Meyering  <meyering@redhat.com>
14158
14159         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
14160         * modules/gnumakefile (clean-GNUmakefile): Also, use
14161         test ... && ... || : syntax rather than if-then ... fi.
14162
14163         gnumakefile: Don't double-quote-expand $(VPATH) value.
14164         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
14165
14166 2008-03-24  Eric Blake  <ebb9@byu.net>
14167
14168         Alter GNUmakefile to install into top directory.
14169         * modules/maintainer-makefile: Split, and add dependency...
14170         * modules/gnumakefile: to this new module.
14171         * build-aux/GNUmakefile: Move...
14172         * top/GNUmakefile: ...here.
14173         * build-aux/maint.mk: Move...
14174         * top/maint.mk: ...here.
14175         * MODULES.html.sh (Support for maintaining...): Document new
14176         module.
14177
14178 2008-03-23  Bruno Haible  <bruno@clisp.org>
14179
14180         * gnulib-tool: New options --vc-files, --no-vc-files.
14181         (func_usage): Document them.
14182         (vc_files): New variable.
14183         (func_import): Consider vc_files.
14184         (func_create_testdir): Set vc_files to empty.
14185         Suggested by Jim Meyering and Karl Berry.
14186
14187 2008-03-23  Bruno Haible  <bruno@clisp.org>
14188
14189         Fix regex compilation error on HP-UX 11.
14190         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
14191         * modules/regex (Files): Add m4/mbstate_t.m4.
14192         Reported by Ton Voon <ton.voon@altinity.com>.
14193
14194 2008-03-23  Bruno Haible  <bruno@clisp.org>
14195
14196         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
14197
14198 2008-03-23  Eric Blake  <ebb9@byu.net>
14199             Bruno Haible  <bruno@clisp.org>
14200
14201         Install files from top/ in the destination directory.
14202         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14203         augmentation also for the files from top/.
14204         (func_import, func_create_testdir): Rewrite file names:
14205         top/filename -> filename.
14206
14207 2008-03-23  Bruno Haible  <bruno@clisp.org>
14208
14209         Tweak "gnulib --version" output.
14210         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
14211
14212 2008-03-23  Bruno Haible  <bruno@clisp.org>
14213
14214         Tweak "gnulib --version" output.
14215         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
14216         rather than contents of ChangeLog, when possible.
14217
14218 2008-03-21  Eric Blake  <ebb9@byu.net>
14219
14220         More --version tweaks.
14221         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
14222         date of last ChangeLog entry.
14223
14224 2008-03-21  Jim Meyering  <meyering@redhat.com>
14225
14226         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
14227
14228 2008-03-20  Eric Blake  <ebb9@byu.net>
14229
14230         VPATH fix.
14231         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
14232
14233 2008-03-20  Simon Josefsson  <simon@josefsson.org>
14234
14235         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
14236         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
14237
14238 2008-03-20  Eric Blake  <ebb9@byu.net>
14239
14240         Sync GNUmakefile with coreutils.
14241         * build-aux/GNUmakefile (have-Makefile): Rename...
14242         (_have-Makefile): ...to this, for namespace consideration.
14243         (GNUmakefile.cfg): Include, if present.
14244         (_autoreconf): Define a default.
14245         (_is-dist-target): New rule for rebuilds to pick up intra-release
14246         version.
14247         (maint-cfg.mk): Rename...
14248         (cfg.mk): ...to this.
14249
14250 2008-03-18  Jim Meyering  <meyering@redhat.com>
14251
14252         New script and module: mktempd
14253         * MODULES.html.sh (maint+release support): Add mktempd.
14254         * build-aux/mktempd: New file.
14255         * modules/mktempd: New file.
14256
14257 2008-03-15  Jim Meyering  <meyering@redhat.com>
14258
14259         Undo last change.
14260         * lib/sha1.c, lib/md5.c: 63 != ~63.
14261         Reported by Andreas Schwab.
14262
14263         sha1.c, md5.c: Hoist a redundant expression.
14264         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
14265         "ctx->buflen" only once, before calling *_process_block.
14266         * lib/md5.c (md5_process_bytes): Likewise.
14267
14268 2008-03-14  Eric Blake  <ebb9@byu.net>
14269
14270         Bump copyright year in files generated by gnulib-tool.
14271         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
14272         gnulib-tool, rather than hard-coding it.
14273
14274         Fix 'gnulib-tool --version' output to work with git.
14275         * gnulib-tool (func_gnulib_dir): New function, extracted from...
14276         (startup): ...here.
14277         (func_version): Use it to invoke git-version-gen, rather than
14278         relying on CVS keyword expansion.  Modernize wording.
14279         (cvsdatestamp, last_checkin_date, version): Kill unused
14280         variables.
14281
14282 2008-03-12  Jim Meyering  <meyering@redhat.com>
14283
14284         Recognize optional cast of the argument to free.
14285         * build-aux/useless-if-before-free: Update regexps.
14286
14287         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
14288
14289 2008-03-11  Bruno Haible  <bruno@clisp.org>
14290
14291         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
14292         by a single package.
14293         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
14294         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
14295         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
14296         Reported by Sam Steingold <sds@gnu.org>.
14297
14298 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14299
14300         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
14301         repositories.
14302
14303 2008-03-11  Bruno Haible  <bruno@clisp.org>
14304
14305         Avoid conflicts between local macro definitions.
14306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14307         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
14308
14309 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
14310             Bruno Haible  <bruno@clisp.org>
14311
14312         Make va_copy work with some version of xlc on AIX 5.1.
14313         * lib/stdarg.in.h: New file.
14314         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
14315         On AIX, use a <stdarg.h> file substitute.
14316         * modules/stdarg (Files): Add lib/stdarg.in.h.
14317         (Depends-on): Add include_next.
14318         (Makefile.am): Build a stdarg.h substitute if requested.
14319         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
14320
14321 2008-03-10  Bruno Haible  <bruno@clisp.org>
14322
14323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
14324         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14325         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14326
14327 2008-03-10  Bruno Haible  <bruno@clisp.org>
14328
14329         * modules/stdlib (Depends-on): Add include_next, remove
14330         absolute-header.
14331
14332 2008-03-09  Bruno Haible  <bruno@clisp.org>
14333
14334         * lib/freadahead.h (freadahead): Document more precisely.
14335         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
14336         the sum of both buffer sizes.
14337         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
14338         * NEWS: Document the change.
14339
14340 2008-03-09  Bruno Haible  <bruno@clisp.org>
14341
14342         Extend freadptr to return also the buffer size.
14343         * lib/freadptr.h (freadptr): Add sizep argument.
14344         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
14345         (freadptr): Add sizep argument. Determine buffer size like freadahead
14346         does.
14347         * tests/test-freadptr.c: Don't include freadahead.h.
14348         (main): Adapt for new calling convention of freadptr.
14349         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
14350         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
14351         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
14352         tests/test-freadptr2.sh.
14353         (Depends): Remove freadahead.
14354         (TESTS): Add test-freadptr2.sh.
14355         (check_PROGRAMS): Add test-freadptr2.
14356
14357 2008-03-09  Bruno Haible  <bruno@clisp.org>
14358
14359         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
14360         Report and solution by Simon Josefsson.
14361
14362 2008-03-06  Bruno Haible  <bruno@clisp.org>
14363
14364         Make fflush after ungetc work on BSD platforms.
14365         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
14366         * tests/test-fflush2.c: New file.
14367         * tests/test-fflush2.sh: New file.
14368         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
14369         tests/test-fflush2.c.
14370         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
14371         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
14372
14373 2008-03-06  Eric Blake  <ebb9@byu.net>
14374
14375         Likewise for ftello.
14376         * modules/ftello (Dependencies): Add extensions.
14377         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
14378
14379 2008-03-06  Bruno Haible  <bruno@clisp.org>
14380
14381         * modules/fseeko (Dependencies): Add extensions.
14382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
14383         Needed on glibc systems.
14384
14385 2008-03-06  Bruno Haible  <bruno@clisp.org>
14386
14387         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
14388         email address.
14389         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14390
14391 2008-03-06  Bruno Haible  <bruno@clisp.org>
14392
14393         * users.txt: Add libgnupdf.
14394
14395 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14396
14397         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
14398         (Header File Substitutes, Function Substitutes,
14399         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
14400         (Build robot for gnulib): Fix typo.
14401
14402 2008-03-06  Bruno Haible  <bruno@clisp.org>
14403
14404         * doc/gnulib-tool.texi (VCS Issues): Small updates.
14405         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14406
14407 2008-03-06  Bruno Haible  <bruno@clisp.org>
14408
14409         * doc/func.texi: New file, extracted from doc/gnulib.texi.
14410         * doc/gnulib.texi: Include it.
14411
14412 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14413
14414         * modules/func (License): Change license to unlimited; there was
14415         no LGPL parts in the module anyway.
14416
14417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14418
14419         * modules/__func__: Renamed to modules/func.
14420         * modules/__func__-tests: Renamed to modules/func-tests.
14421         * tests/test-__func__.c: Renamed to tests/test-func.c.
14422         * m4/__func__.m4: Renamed to m4/func.m4.
14423         * doc/gnulib.texi (__func__): Section renamed to func.
14424         Suggested by Eric Blake <ebb9@byu.net>.
14425
14426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14427
14428         * doc/gnulib.texi (__func__): Use C99 terminology when talking
14429         about __func__.  Make example self-contained.  Suggested by Eric
14430         Blake <ebb9@byu.net>.
14431
14432         * tests/test-__func__.c (main): Avoid extraneous () around __func.
14433         Suggested by Eric Blake <ebb9@byu.net>.
14434
14435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
14436
14437         * modules/__func__: New file.
14438         * modules/__func__-tests: New file.
14439         * tests/test-__func__.c: New file.
14440         * m4/__func__.m4: New file.
14441         * doc/gnulib.texi (__func__): Document __func__ module.
14442
14443 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14444
14445         * modules/byteswap (License): Re-license as LGPLv2+.
14446
14447 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14448
14449         * doc/Makefile: Add pdf target.
14450
14451 2008-03-05  Simon Josefsson  <simon@josefsson.org>
14452
14453         * modules/inline (License): Use 'unlimited', since there are only
14454         *.m4 files in this module.
14455
14456 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14457             Bruno Haible  <bruno@clisp.org>
14458
14459         Add support for HP C 7.1 on OpenVMS 8.3.
14460         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
14461
14462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
14463
14464         Update VMS specifics.
14465         * lib/getopt.c [VMS]: Remove include of unixlib.h.
14466
14467 2008-03-02  Jim Meyering  <meyering@redhat.com>
14468
14469         Remove the last dependency on the "free" module.
14470         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
14471         Reported by Bob Proulx.
14472
14473         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
14474
14475         Remove useless "if" tests before free.  Deprecate "free" module.
14476         * doc/posix-functions/free.texi: Mention that this
14477         module is no longer useful.
14478         * modules/free (Notice): Say this module is obsolete.
14479         * modules/readutmp (Depends-on): Remove free.
14480         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
14481         * lib/putenv.c (putenv): Likewise.
14482         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
14483         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
14484         * tests/test-c-strcasestr.c (main): Likewise.
14485         * tests/test-c-strstr.c (main): Likewise.
14486         * tests/test-mbscasestr1.c (main): Likewise.
14487         * tests/test-mbscasestr2.c (main): Likewise.
14488         * tests/test-mbsstr1.c (main): Likewise.
14489         * tests/test-mbsstr2.c (main): Likewise.
14490         * tests/test-memmem.c (main): Likewise.
14491         * tests/test-strcasestr.c (main): Likewise.
14492         * tests/test-striconv.c (main): Likewise.
14493         * tests/test-striconveh.c (main): Likewise.
14494         * tests/test-striconveha.c (main): Likewise.
14495         * tests/test-strstr.c (main): Likewise.
14496
14497         * build-aux/git-version-gen: Adjust a comment and the Usage string.
14498
14499         bootstrap: sync from coreutils again
14500         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
14501
14502 2008-03-01  Jim Meyering  <meyering@redhat.com>
14503
14504         bootstrap: sync from coreutils
14505         * build-aux/bootstrap (update_po_files): Copy a .po file into place
14506         also when the target doesn't exist.
14507
14508 2008-03-01  Eric Blake  <ebb9@byu.net>
14509
14510         Fix bugs in last patch.
14511         * lib/memchr2.c (memchr2): Fix typo.
14512         * tests/test-memchr2.c: Test previous bug, and don't use GNU
14513         extension.
14514         Reported by Bruce Korb.
14515
14516         New module 'memchr2'.
14517         * modules/memchr2: New file.
14518         * modules/memchr2-tests: Likewise.
14519         * lib/memchr2.h: Likewise.
14520         * lib/memchr2.c: Likewise, based on memchr.c.
14521         * tests/test-memchr2.c: New test.
14522         * MODULES.html.sh (String handling): Add memchr2.
14523
14524 2008-02-29  Bruno Haible  <bruno@clisp.org>
14525
14526         * modules/freadseek-tests: New file.
14527         * tests/test-freadseek.sh: New file.
14528         * tests/test-freadseek.c: New file.
14529
14530         New module 'freadseek'.
14531         * modules/freadseek: New file.
14532         * lib/freadseek.h: New file.
14533         * lib/freadseek.c: New file.
14534         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
14535
14536 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
14537
14538         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
14539         wydawca.
14540
14541         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
14542         program_invocation_name and program_invocation_short_name are
14543         present.
14544
14545 2008-02-28  Bruno Haible  <bruno@clisp.org>
14546
14547         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
14548         * tests/test-freadptr.sh: Also test non-seekable stdin.
14549
14550 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
14551
14552         * build-aux/bootstrap (source_base, m4_base)
14553         (doc_base, tests_base): New variables.
14554         (gnulib_tool_options): Do not hardcode base directories, use
14555         the above variables instead.
14556
14557 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
14558
14559         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
14560
14561 2008-02-28  Bruno Haible  <bruno@clisp.org>
14562
14563         * modules/freadptr-tests: New file.
14564         * tests/test-freadptr.sh: New file.
14565         * tests/test-freadptr.c: New file.
14566
14567         New module 'freadptr'.
14568         * modules/freadptr: New file.
14569         * lib/freadptr.h: New file.
14570         * lib/freadptr.c: New file.
14571         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
14572
14573 2008-02-26  Karl Berry  <karl@freefriends.org>
14574
14575         Sync from Libtool:
14576         * libltdl/argz.c (argz_add, argz_count): New functions.
14577         * libltdl/argz.in.h: Declare them.
14578         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
14579
14580 2008-02-22  Bruno Haible  <bruno@clisp.org>
14581
14582         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
14583         is a pointer type.  Needed for HP-UX 10.
14584         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
14585         * doc/posix-functions/gmtime_r.texi: Likewise.
14586         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14587
14588 2008-02-24  Bruno Haible  <bruno@clisp.org>
14589
14590         * modules/environ-tests: New file.
14591         * tests/test-environ.c: New file.
14592
14593         New module 'environ'.
14594         * modules/environ: New file.
14595         * lib/unistd.in.h (environ): New declaration.
14596         * m4/environ.m4: New file.
14597         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
14598         after use.
14599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
14600         HAVE_DECL_ENVIRON.
14601         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
14602         HAVE_DECL_ENVIRON.
14603         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
14604         wrong claim that 'environ' is missing on some systems.
14605         * modules/execute (Depends-on): Add environ.
14606         * lib/execute.c (environ): Remove fallback declaration.
14607         * modules/pipe (Depends-on): Add environ.
14608         * lib/pipe.c (environ): Remove fallback declaration.
14609         * modules/setenv (Depends-on): Add environ.
14610         * lib/setenv.c (environ): Remove fallback declaration.
14611         * modules/unsetenv (Depends-on): Add environ.
14612         * lib/unsetenv.c (environ): Remove fallback declaration.
14613         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
14614         m4/environ.m4.
14615         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
14616         (gl_PREREQ_UNSETENV): Likewise.
14617
14618 2008-02-24  Bruno Haible  <bruno@clisp.org>
14619
14620         * doc/posix-functions/environ.texi: Document the MacOS X problem.
14621
14622 2008-02-20  Bob Proulx  <bob@proulx.com>
14623
14624         Enable use of older two part flavor 'git describe'.
14625         * build-aux/git-version-gen: If using the older two part flavor of
14626         git version then recreate the third part now present in the
14627         newer three part flavor of git describe.
14628
14629 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
14630
14631         * lib/fts.c (fts_build): Typo correction to comment.
14632
14633 2008-02-17  Bruno Haible  <bruno@clisp.org>
14634
14635         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
14636         generating no-op conflicts.
14637
14638 2008-02-17  Bruno Haible  <bruno@clisp.org>
14639
14640         Speed up by 10%.
14641         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
14642         result_entries, rather than an index-based loop.
14643
14644 2008-02-17  Bruno Haible  <bruno@clisp.org>
14645
14646         Speed up by 25%.
14647         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
14648         'hashcode_cached'.
14649         (entry_create): New function.
14650         (entry_hashcode): Use the cached hashcode if possible.
14651         (read_changelog_file, try_split_merged_entry): Use entry_create.
14652
14653 2008-02-17  Bruno Haible  <bruno@clisp.org>
14654
14655         Speed up from O(n^2) to O(n) for long ChangeLog files.
14656         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
14657         (read_changelog_file): Change implementation of entries_reversed list
14658         to rbtreehash.
14659         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
14660
14661 2008-02-17  Bruno Haible  <bruno@clisp.org>
14662
14663         New option --split-merged-entry.
14664         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
14665         (find_paragraph_end, try_split_merged_entry): New functions.
14666         (long_options): Add option --split-merged-entry.
14667         (usage): Document option --split-merged-entry.
14668         (main): Implement option --split-merged-entry.
14669         Reported by Eric Blake.
14670
14671 2008-02-17  Bruno Haible  <bruno@clisp.org>
14672
14673         * lib/git-merge-changelog.c: Include c-strstr.h.
14674         (main): Support the "git pull --rebase" situation.
14675         * modules/git-merge-changelog (Depends-on): Add c-strstr.
14676         Reported by Eric Blake.
14677
14678 2008-02-16  Eric Blake  <ebb9@byu.net>
14679
14680         Avoid doubling \ in common case of "c-maybe" quoting style.
14681         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
14682         eliding outer quotes.
14683         * lib/quotearg.h: Document this.
14684         * tests/test-quotearg.c (result_strings, inputs, results_g)
14685         (flag_results, locale_results): Test it by adding a new string to
14686         each test group.
14687         (compare_strings): Test new string.
14688
14689 2008-02-13  Eric Blake  <ebb9@byu.net>
14690
14691         Avoid trigraph quoting in default output.
14692         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
14693         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
14694         unless explicitly requested.
14695         * tests/test-quotearg.c (flag_results, main): Add additional tests.
14696
14697 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
14698
14699         Don't rely on signed integer overflowing to negative value.
14700         * lib/getugroups.c (getugroups): Include <limits.h>.
14701         Instead, compare against INT_MAX, and increment only if the test passes.
14702
14703 2008-02-13  Jim Meyering  <meyering@redhat.com>
14704         and Eric Blake  <ebb9@byu.net>
14705
14706         Avoid shadowing warning and compile errors on Linux.
14707         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
14708         forwarding macros on Linux.
14709         (dcgettext): Define a stub, for Linux.
14710         (results_g, main): Avoid warnings.
14711
14712 2008-02-12  Eric Blake  <ebb9@byu.net>
14713
14714         Silence warning in last patch.
14715         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
14716
14717         Quotearg part 4: add tests, fix c-maybe colon quoting.
14718         * lib/quotearg.h: Improve documentation.
14719         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
14720         escapes when adding outer quotes.  When quoting trigraphs, use
14721         valid C notation.  When quoting NUL, omit extra characters if next
14722         character is not digit.  Alter prototype.
14723         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
14724         callers.
14725         * modules/quotearg-tests: New module.
14726         * tests/test-quotearg.c: New test.
14727
14728 2008-02-07  Eric Blake  <ebb9@byu.net>
14729
14730         Quotearg part 3: add flag to control outer quote elision.
14731         * lib/quotearg.h (c_maybe_quoting_style): New style.
14732         (enum quoting_flags): Better documentation of flags.
14733         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
14734         c-maybe style.
14735         (quotearg_buffer_restyled): Handle new flag to elide outer
14736         quotes.
14737
14738         Quotearg part 2: add flag that can control NUL elision.
14739         * lib/quotearg.h (set_quoting_flags): New prototype.
14740         * lib/quotearg.c (struct quoting_options): Add flag field.
14741         (set_quoting_flags): New function.
14742         (quotearg_buffer_restyled): Add flags parameter.
14743         (quotearg_alloc_mem): Set the flag if length cannot be returned.
14744         (quotearg_n_options): Set the flag, since length cannot be
14745         returned.
14746         (quoting_options_from_style): Default flags correctly.
14747
14748         Quotearg part 1: more wrappers, restore quotearg_char state.
14749         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
14750         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
14751         (quotearg_colon_mem): New wrappers.
14752         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
14753         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
14754         functions.
14755         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
14756         (quotearg_colon_mem): New functions.
14757
14758 2008-02-11  Bruno Haible  <bruno@clisp.org>
14759
14760         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
14761         library in the current directory: it does not work with parallel make.
14762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14763
14764 2008-02-11  Bruno Haible  <bruno@clisp.org>
14765
14766         * .gitattributes: New file.
14767
14768 2008-02-11  Jim Meyering  <meyering@redhat.com>
14769
14770         useless-if-before-free: Fix reversed exit values.
14771         * build-aux/useless-if-before-free: Use correct values
14772         for EXIT_MATCH and EXIT_NO_MATCH.
14773
14774         * build-aux/useless-if-before-free: Close stdout carefully.
14775
14776 2008-02-10  Bruno Haible  <bruno@clisp.org>
14777
14778         New module 'git-merge-changelog'.
14779         * modules/git-merge-changelog: New file.
14780         * lib/git-merge-changelog.c: New file.
14781
14782 2008-02-10  Jim Meyering  <meyering@redhat.com>
14783
14784         useless-if-before-free: New option: --list (-l).
14785
14786         useless-if-before-free: Don't exit immediately upon open failure.
14787         * build-aux/useless-if-before-free: Exit 2 for errors.
14788         Upon failure to open a file, don't exit immediately.
14789         Rather, just warn and continue with any remaining files.
14790
14791 2008-02-10  Bruno Haible  <bruno@clisp.org>
14792
14793         New abstract list operation 'node_set_value'.
14794         * lib/gl_list.h (gl_list_node_set_value): New function.
14795         (struct gl_list_implementation): New field node_set_value.
14796         * lib/gl_list.c (gl_list_node_set_value): New function.
14797         * lib/gl_array_list.c (gl_array_node_set_value): New function.
14798         (gl_array_list_implementation): Update.
14799         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
14800         (gl_carray_list_implementation): Update.
14801         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
14802         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14803         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14804         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
14805         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14806         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14807         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14808         Update.
14809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
14810         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
14811         (gl_sublist_list_implementation): Update.
14812
14813 2008-02-10  Bruno Haible  <bruno@clisp.org>
14814
14815         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
14816         Needed when ELEMENT is #defined to 'some_type *'.
14817
14818 2008-02-10  Jim Meyering  <meyering@redhat.com>
14819
14820         New script and module: useless-if-before-free
14821         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
14822         * build-aux/useless-if-before-free: New file.
14823         * modules/useless-if-before-free: New file.
14824
14825         * build-aux/gitlog-to-changelog: Use committer date, not author date.
14826
14827         xstrtol_error: Fix typo.
14828         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
14829         s/exit_failure/exit_status/.
14830
14831 2008-02-09  Jim Meyering  <meyering@redhat.com>
14832
14833         New script and module: gitlog-to-changelog
14834         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
14835         * modules/gitlog-to-changelog: New file.
14836         * build-aux/gitlog-to-changelog: New file.
14837
14838 2008-02-08  Jim Meyering  <meyering@redhat.com>
14839
14840         Avoid two "parameter unused" warnings.
14841         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
14842         Mark "st" as used.
14843
14844         Use "git COMMAND", not "git-COMMAND".
14845         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
14846         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
14847         * build-aux/git-version-gen: Use "git status", not "git-status".
14848
14849 2008-02-07  Bruno Haible  <bruno@clisp.org>
14850
14851         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
14852         Avoids a crash on Windows Vista.
14853         Reported by Adam Strzelecki <ono@java.pl> via
14854         Simon Josefsson <simon@josefsson.org>.
14855
14856 2008-02-06  Bruno Haible  <bruno@clisp.org>
14857
14858         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
14859         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
14860         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
14861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
14862         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14864         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
14865         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
14866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14873         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
14874         left-adjust flag.
14875         * tests/test-snprintf-posix.h (test_function): Likewise.
14876         * tests/test-sprintf-posix.h (test_function): Likewise.
14877         * tests/test-vasprintf-posix.c (test_function): Likewise.
14878         * doc/posix-functions/fprintf.texi: Update.
14879         * doc/posix-functions/printf.texi: Update.
14880         * doc/posix-functions/snprintf.texi: Update.
14881         * doc/posix-functions/sprintf.texi: Update.
14882         * doc/posix-functions/vfprintf.texi: Update.
14883         * doc/posix-functions/vprintf.texi: Update.
14884         * doc/posix-functions/vsnprintf.texi: Update.
14885         * doc/posix-functions/vsprintf.texi: Update.
14886         Reported by Peter Fales <psfales@alcatel-lucent.com>.
14887
14888 2008-02-06  Bruno Haible  <bruno@clisp.org>
14889
14890         Fix bug introduced on 2008-01-26.
14891         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
14892
14893 2008-02-06  Bruno Haible  <bruno@clisp.org>
14894
14895         Fix bug introduced on 2007-06-10.
14896         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
14897         !NEED_PRINTF_FLAG_ZERO.
14898
14899 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
14900
14901         getloadavg: use libperfstat on AIX5
14902         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
14903
14904 2008-02-03  Bruno Haible  <bruno@clisp.org>
14905
14906         * lib/diffseq.h: Add comments about required #includes.
14907         Reported by Michael Biggs <gnulib@doubleplum.net>.
14908
14909 2008-02-01  Bruno Haible  <bruno@clisp.org>
14910
14911         * users.txt: Add gnuit.
14912
14913 2008-01-31  Bruno Haible  <bruno@clisp.org>
14914
14915         * lib/md4.c (set_uint32): Mark as inline.
14916         * lib/md5.c (set_uint32): Likewise.
14917         * lib/sha1.c (set_uint32): Likewise.
14918         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
14919         * m4/md5.m4 (gl_MD5): Likewise.
14920         * m4/sha1.m4 (gl_SHA1): Likewise.
14921
14922 2008-01-31  Jim Meyering  <meyering@redhat.com>
14923
14924         Use "sizeof VAR", rather than a literal "4".
14925         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
14926         * lib/md4.c (md4_read_ctx): Likewise.
14927         * lib/sha1.c (sha1_read_ctx): Likewise.
14928
14929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14930
14931         * tests/test-sha1.c: New file, based on test-md5.c.
14932
14933         * modules/crypto/sha1-tests: New file.
14934
14935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14936
14937         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
14938
14939 2008-01-31  Jim Meyering  <meyering@redhat.com>
14940
14941         Prefer "sizeof v" over the equivalent "4".
14942         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
14943         * lib/md5.c (set_uint32): Likewise.
14944         * lib/sha1.c (set_uint32): Likewise.
14945
14946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14947
14948         * lib/sha1.c (set_uint32): Mark function as static.
14949
14950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14951
14952         md2: clarify comments to say that alignment is not required.
14953         * lib/md2.h: Remove warning about alignment in comment.
14954         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
14955         never been required.
14956
14957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14958
14959         md4: adapt alignment constraint fix from sha1.
14960         * lib/md4.c (set_uint32): New function, from sha1.c
14961         (md4_read_ctx): Use it.
14962         (md4_finish_ctx): Doc fix.
14963         * lib/md4.h: Doc fix.
14964
14965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
14966
14967         md5: adapt alignment constraint fix from sha1.
14968         * lib/md5.c (set_uint32): New function, from sha1.c
14969         (md5_read_ctx): Use it.
14970         (md5_finish_ctx): Doc fix.
14971         * lib/md5.h: Doc fix.
14972
14973 2008-01-30  Peter Palfrader  <weasel@debian.org>
14974
14975         sha1: remove the result buffer alignment constraint
14976         * lib/sha1.c (set_uint32): New function.
14977         (sha1_read_ctx): Rewrite to remove the result buffer alignment
14978         constraint.
14979         (sha1_finish_ctx): Remove comment warning about alignment constraint.
14980         * lib/sha1.h: Likewise.
14981
14982 2008-01-30  Andreas Schwab  <schwab@suse.de>
14983             Bruno Haible  <bruno@clisp.org>
14984
14985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
14986         correct definition of LDBL_MIN_EXP.
14987
14988 2008-01-30  Karl Berry  <karl@gnu.org>
14989
14990         * config/srclist-update: try to preserve x bit on updates.
14991         * config/srclistvars.sh: update for karl.
14992
14993 2008-01-29  Jim Meyering  <meyering@redhat.com>
14994
14995         vasnprintf.c: Avoid warning about unused label
14996         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
14997         "overflow" label definition and associated code with the
14998         same cpp condition that guards the sole use of that label.
14999
15000 2008-01-26  Bruno Haible  <bruno@clisp.org>
15001
15002         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
15003         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
15004         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
15005         * lib/isnanl-nolibm.h (isnanl): Likewise.
15006         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15007
15008 2008-01-26  Bruno Haible  <bruno@clisp.org>
15009
15010         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
15011         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
15012
15013 2008-01-26  Bruno Haible  <bruno@clisp.org>
15014
15015         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
15016         GCC >= 4.0 built-in.
15017         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
15018
15019 2008-01-26  Bruno Haible  <bruno@clisp.org>
15020
15021         Rename isnan, applicable to 'double' only, to isnand.
15022         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
15023         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
15024         (configure.ac): Update.
15025         (Include): Replace "isnan.h" with "isnand.h".
15026         * m4/isnand.m4: Renamed from m4/isnan.m4.
15027         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
15028         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
15029         instead of isnan.c.
15030         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
15031         instead of HAVE_ISNAN_IN_LIBC.
15032         (isnand): Renamed from isnan.
15033         * lib/isnand.c: New file.
15034         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
15035         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
15036         (Makefile.am): Update.
15037         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
15038         Include isnand.h instead of isnan.h.
15039         (main): Test isnand instead of isnan.
15040         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
15041         isnan-nolibm.
15042         * modules/frexp (Depends-on): Likewise.
15043         * modules/frexp-tests (Depends-on): Likewise.
15044         * modules/frexp-nolibm (Depends-on): Likewise.
15045         * modules/frexp-nolibm-tests (Depends-on): Likewise.
15046         * modules/isfinite (Depends-on): Likewise.
15047         * modules/round-tests (Depends-on): Likewise.
15048         * modules/signbit (Depends-on): Likewise.
15049         * modules/signbit-tests (Depends-on): Likewise.
15050         * modules/snprintf-posix (Depends-on): Likewise.
15051         * modules/sprintf-posix (Depends-on): Likewise.
15052         * modules/trunc-tests (Depends-on): Likewise.
15053         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15055         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15056         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15057         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15058         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15059         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15060         * modules/vasnprintf-posix (Depends-on): Likewise.
15061         * modules/vasprintf-posix (Depends-on): Likewise.
15062         * modules/vfprintf-posix (Depends-on): Likewise.
15063         * modules/vsnprintf-posix (Depends-on): Likewise.
15064         * modules/vsprintf-posix (Depends-on): Likewise.
15065         * lib/frexp.c: Include isnand.h instead of isnan.h.
15066         (ISNAN): Set to isnand instead of isnan.
15067         * lib/isfinite.c: Include isnand.h instead of isnan.h.
15068         (gl_isfinited): Use isnand instead of isnan.
15069         * lib/signbitd.c: Include isnand.h instead of isnan.h.
15070         (gl_signbitd): Use isnand instead of isnan.
15071         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
15072         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
15073         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
15074         (main): Use isnand instead of isnan.
15075         * tests/test-round1.c: Include isnand.h.
15076         (main): Use isnand instead of isnan.
15077         * tests/test-round2.c: Include isnand.h instead of isnan.h.
15078         (ISNAN): Set to isnand instead of isnan.
15079         * tests/test-trunc1.c: Include isnand.h.
15080         (main): Use isnand instead of isnan.
15081         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
15082         (equal): Use isnand instead of isnan.
15083         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
15084         isnand-nolibm.
15085         * NEWS: Mention the change.
15086
15087 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15088             Bruno Haible  <bruno@clisp.org>
15089
15090         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
15091         the GCC builtins for signbits are present and set
15092         REPLACE_SIGNBIT_USING_GCC if so.
15093         * lib/math.in.h (signbit): Define using GCC builtins if
15094         REPLACE_SIGNBIT_USING_GCC is set.
15095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
15096         REPLACE_SIGNBIT_USING_GCC.
15097         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
15098
15099 2008-01-25  Jim Meyering  <meyering@redhat.com>
15100
15101         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
15102         * lib/poll.c: Include <config.h>, not "config.h".
15103         * tests/test-getaddrinfo.c: Likewise.
15104
15105 2008-01-25  Simon Josefsson  <simon@josefsson.org>
15106
15107         * modules/sockets-tests: New file.
15108
15109 2008-01-24  Simon Josefsson  <simon@josefsson.org>
15110
15111         * modules/sockets: New module, can be used to call WSA_Startup and
15112         WSA_Cleanup when needed.
15113
15114         * lib/sockets.h, lib/sockets.c: New files.
15115
15116         * m4/sockets.m4: New file.
15117
15118         * tests/test-sockets.c: New file.
15119
15120 2008-01-19  Bruno Haible  <bruno@clisp.org>
15121
15122         * doc/posix-headers: Renamed from doc/headers.
15123         * doc/posix-functions: Renamed from doc/functions.
15124         * doc/gnulib.texi: Update.
15125
15126 2008-01-19  Bruno Haible  <bruno@clisp.org>
15127
15128         * doc/glibc-functions/strcasestr.texi: Include contents of
15129         doc/functions/strcasestr.texi, fixing the list of platforms.
15130         * doc/functions/strcasestr.texi: Remove file.
15131
15132 2008-01-19  Bruno Haible  <bruno@clisp.org>
15133
15134         * doc/glibc-functions/memmem.texi: Include contents of
15135         doc/functions/memmem.texi.
15136         * doc/functions/memmem.texi: Remove file.
15137
15138 2008-01-18  Bruno Haible  <bruno@clisp.org>
15139
15140         * doc/glibc-functions/*.texi: New files.
15141         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
15142         to use the new files.
15143
15144 2008-01-17  Bruno Haible  <bruno@clisp.org>
15145
15146         * tests/test-gethostname.c (main): Fix printf statement.
15147
15148 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15149
15150         * modules/gethostname-tests: New file.
15151
15152         * tests/test-gethostname.c: New file.
15153
15154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15155
15156         * lib/gethostname.c: Include string.h unconditionally, strncpy is
15157         used by the UNAME case.  Reported by Bruno Haible
15158         <bruno@clisp.org>.
15159
15160 2008-01-17  Eric Blake  <ebb9@byu.net>
15161
15162         Convert c-strcasestr to be more efficient.
15163         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
15164         (Depends-on): Add c-strcase, remove malloca, strnlen.
15165         * tests/test-c-strcasestr.c (main): Enhance test.
15166         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
15167
15168 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15169
15170         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
15171         Use it in creating po/Makevars.
15172
15173 2008-01-15  Simon Josefsson  <simon@josefsson.org>
15174
15175         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
15176         Applications that requires it should initialize libgcrypt
15177         manually.
15178
15179 2008-01-16  Simon Josefsson  <simon@josefsson.org>
15180
15181         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
15182
15183 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15184
15185         Fix problem with getdate on mingw32 reported by Simon Josefsson
15186         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
15187         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
15188         tzname", when deciding whether to declare tzname.
15189         * lib/strftime.c (tzname): Likewise.
15190
15191 2008-01-15  Bruno Haible  <bruno@clisp.org>
15192
15193         Work around a MacOS X 10.5 bug in frexpl().
15194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
15195         * doc/functions/frexpl.texi: Document the bug.
15196         Reported by Elias Pipping <pipping@gentoo.org>.
15197
15198 2008-01-14  Eric Blake  <ebb9@byu.net>
15199
15200         Touch up previous patch.
15201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
15202         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
15203
15204         Convert strcasestr module to use Two-Way algorithm.
15205         * modules/strcasestr-simple: New module, based on the old
15206         strcasestr, but with Two-Way rather than KMP.
15207         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
15208         * lib/string.in.h (rpl_strcasestr): Declare.
15209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
15210         performance.
15211         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
15212         * modules/string (Makefile.am): Support strcasestr.
15213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15214         * modules/strcasestr-tests (Depends-on): Check for alarm.
15215         * tests/test-strcasestr.c: Augment test.
15216         * lib/str-two-way.h: Clean up stray macro.
15217         * NEWS: Document new module.
15218         * MODULES.html.sh (string handling): Likewise.
15219         * doc/functions/strcasestr.texi: New file.
15220         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
15221         here, since it is not a POSIX function.
15222
15223 2008-01-14  Colin Watson  <cjwatson@debian.org>
15224             Bruno Haible  <bruno@clisp.org>
15225
15226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
15227         works fine; if not, set REPLACE_STRSIGNAL.
15228         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
15229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15230         REPLACE_STRSIGNAL.
15231         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
15232         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
15233         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
15234
15235 2008-01-14  Bruno Haible  <bruno@clisp.org>
15236
15237         * modules/strsignal (Include): Change to <string.h>.
15238
15239 2008-01-14  Colin Watson  <cjwatson@debian.org>
15240
15241         * modules/argp (Notice): Add a notice recommending to change
15242         XGETTEXT_OPTIONS.
15243         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
15244
15245 2008-01-13  Colin Watson  <cjwatson@debian.org>
15246
15247         * modules/strsignal-tests: New file.
15248         * tests/test-strsignal.c: New file.
15249
15250         * lib/strsignal.c: New file, from glibc with modifications.
15251         * lib/siglist.h: New file, from glibc with modifications.
15252         * lib/string.in.h (strsignal): New declaration.
15253         * m4/strsignal.m4: New file.
15254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15255         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
15256         * modules/strsignal: New file.
15257         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
15258         HAVE_DECL_STRSIGNAL.
15259
15260 2008-01-13  Bruno Haible  <bruno@clisp.org>
15261
15262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
15263         locale encoding is not ASCII. Needed for OpenBSD 4.0.
15264         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15266
15267 2008-01-13  Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
15270         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
15271         * lib/argp.h (__attribute__): Likewise.
15272         * lib/c-stack.c (__attribute__): Likewise.
15273         * lib/error.h (__attribute__): Likewise.
15274         * lib/fts.c (__attribute__): Likewise.
15275         * lib/openat.h (__attribute__): Likewise.
15276         * lib/stdio.in.h (__attribute__): Likewise.
15277         * lib/string.in.h (__attribute__): Likewise.
15278         * lib/utimens.c (__attribute__): Likewise.
15279         * lib/vasnprintf.h (__attribute__): Likewise.
15280         * lib/xalloc.h (__attribute__): Likewise.
15281         * lib/xprintf.h (__attribute__): Likewise.
15282         * lib/xstrtol.h (__attribute__): Likewise.
15283         * lib/xvasprintf.h (__attribute__): Likewise.
15284
15285 2008-01-12  Bruno Haible  <bruno@clisp.org>
15286
15287         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
15288         * doc/glibc-headers/a.out.texi: New file.
15289         * doc/glibc-headers/aliases.texi: New file.
15290         * doc/glibc-headers/alloca.texi: New file.
15291         * doc/glibc-headers/ar.texi: New file.
15292         * doc/glibc-headers/argp.texi: New file.
15293         * doc/glibc-headers/argz.texi: New file.
15294         * doc/glibc-headers/byteswap.texi: New file.
15295         * doc/glibc-headers/crypt.texi: New file.
15296         * doc/glibc-headers/endian.texi: New file.
15297         * doc/glibc-headers/envz.texi: New file.
15298         * doc/glibc-headers/err.texi: New file.
15299         * doc/glibc-headers/error.texi: New file.
15300         * doc/glibc-headers/execinfo.texi: New file.
15301         * doc/glibc-headers/fpu_control.texi: New file.
15302         * doc/glibc-headers/fstab.texi: New file.
15303         * doc/glibc-headers/fts.texi: New file.
15304         * doc/glibc-headers/getopt.texi: New file.
15305         * doc/glibc-headers/ieee754.texi: New file.
15306         * doc/glibc-headers/ifaddrs.texi: New file.
15307         * doc/glibc-headers/libintl.texi: New file.
15308         * doc/glibc-headers/mcheck.texi: New file.
15309         * doc/glibc-headers/mntent.texi: New file.
15310         * doc/glibc-headers/obstack.texi: New file.
15311         * doc/glibc-headers/paths.texi: New file.
15312         * doc/glibc-headers/printf.texi: New file.
15313         * doc/glibc-headers/pty.texi: New file.
15314         * doc/glibc-headers/resolv.texi: New file.
15315         * doc/glibc-headers/shadow.texi: New file.
15316         * doc/glibc-headers/sysexits.texi: New file.
15317         * doc/glibc-headers/ttyent.texi: New file.
15318
15319 2008-01-12  Jim Meyering  <meyering@redhat.com>
15320
15321         announce-gen: emit Gnulib's git-based version string.
15322         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
15323         New option --gnulib-version=V, where V is expected to be
15324         the output of running git describe in the gnulib directory.
15325         (get_tool_versions): Request feedback on xdelta.  I suspect it's
15326         not useful, and plan to stop publishing an xdelta file with each
15327         coreutils release.
15328
15329         * build-aux/announce-gen: Also check for lzma-compressed files.
15330
15331 2008-01-11  Bruno Haible  <bruno@clisp.org>
15332
15333         * tests/test-memmem.c (main): Increase maximum allowed time.
15334         * tests/test-strstr.c (main): Likewise.
15335
15336 2008-01-11  Bruno Haible  <bruno@clisp.org>
15337
15338         * doc/functions/memmem.texi: Add more precisions about platforms.
15339         * doc/functions/strstr.texi: Likewise.
15340
15341 2008-01-10  Eric Blake  <ebb9@byu.net>
15342
15343         * m4/strstr.m4: Delete cruft from copy-n-paste.
15344         Reported by Bruno Haible.
15345
15346 2008-01-10  Bruno Haible  <bruno@clisp.org>
15347
15348         Make c-strstr rely on strstr.
15349         * lib/c-strstr.c: Don't include str-kmp.h.
15350         (c_strstr): Define in terms of strstr.
15351         * modules/c-strstr (Files): Remove lib/str-kmp.h.
15352         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
15353
15354 2008-01-10  Bruno Haible  <bruno@clisp.org>
15355
15356         * doc/gnulib.texi (String Functions in C Locale): New section.
15357         * doc/c-ctype.texi: New file.
15358         * doc/c-strcase.texi: New file.
15359         * doc/c-strcaseeq.texi: New file.
15360         * doc/c-strcasestr.texi: New file.
15361         * doc/c-strstr.texi: New file.
15362         * doc/c-strtod.texi: New file.
15363         * doc/c-strtold.texi: New file.
15364
15365 2008-01-10  Eric Blake  <ebb9@byu.net>
15366
15367         * lib/relocatable.h: Fix a comment.
15368
15369 2008-01-10  Eric Blake  <ebb9@byu.net>
15370
15371         Share two-way algorithm.
15372         * lib/str-two-way.h: New file, merged from...
15373         * lib/memmem.c: ...here...
15374         * lib/strstr.c: ...and here.
15375         * modules/memmem (Files): Use it.
15376         * modules/strstr (Files): Likewise.
15377
15378         Avoid quadratic strstr implementations.
15379         * lib/strstr.c: New file.
15380         * m4/strstr.m4: Likewise.
15381         * modules/strstr: Likewise.
15382         * modules/strstr-tests: Likewise.
15383         * tests/test-strstr.c: Likewise.
15384         * lib/string.in.h (rpl_strstr): Declare.
15385         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
15386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
15387         * modules/string (Makefile.am): Likewise.
15388         * MODULES.html.sh (string handling): Mention new module.
15389         * doc/functions/strstr.texi (strstr): Document the bug.
15390
15391 2008-01-10  Bruno Haible  <bruno@clisp.org>
15392
15393         * lib/relocatable.h (relocate): State whether result is freshly
15394         allocated or not.
15395         * lib/relocatable.c (relocate): Return a freshly allocated string
15396         instead of a pointer to a privately held string.
15397         Reported by Sylvain Beucler <beuc@gnu.org>.
15398
15399 2008-01-10  Colin Watson  <cjwatson@debian.org>
15400
15401         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
15402         s/S_ISNLK/S_ISLNK/.
15403
15404 2008-01-09  Bruno Haible  <bruno@clisp.org>
15405
15406         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
15407         and other files.
15408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
15409         if it's only a guess.
15410         * modules/memmem: Simplify by depending on memmem-simple.
15411
15412 2008-01-09  Bruno Haible  <bruno@clisp.org>
15413
15414         Work around OpenBSD 4.0 tdelete() bug.
15415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
15416         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
15417         macros and don't redefine the enum values.
15418         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
15419         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
15420         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
15421
15422 2008-01-09  Bruno Haible  <bruno@clisp.org>
15423
15424         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
15425         (main): Don't perform the tests if setlocale did not install a UTF-8
15426         locale. Needed on OpenBSD 4.0.
15427         * modules/wcwidth-tests (Depends-on): Add localcharset.
15428
15429 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15430
15431         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
15432         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
15433         * NEWS: announce this.
15434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
15435
15436 2008-01-09  Simon Josefsson  <simon@josefsson.org>
15437         and Eric Blake  <ebb9@byu.net>
15438
15439         Add memmem-simple module.
15440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
15441         (gl_FUNC_MEMMEM): Separate performance from presence checks.
15442         * modules/memmem-simple: New file.
15443         * modules/memmem (Description): Tweak.
15444         * MODULES.html.sh (string handling): Mention new module.
15445         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
15446         addressed by memmem-simple.
15447         * NEWS: Document the difference.
15448
15449 2008-01-09  Eric Blake  <ebb9@byu.net>
15450
15451         Give gcc some memmem optimization hints.
15452         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
15453         (strcasestr): Declare as pure.
15454         * modules/memmem (Maintainer): Claim my implementation.
15455
15456 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15457
15458         Support AIX 6.1 and higher.
15459         * build-aux/config.libpath: Likewise.
15460         * build-aux/config.rpath: Likewise.
15461
15462 2008-01-08  Jim Meyering  <meyering@redhat.com>
15463             Bruno Haible  <bruno@clisp.org>
15464
15465         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
15466         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
15467         Reported by Peter Fales in
15468         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
15469
15470 2008-01-08  Bruno Haible  <bruno@clisp.org>
15471
15472         * modules/unictype/category-of (Depends-on): Add
15473         unictype/category-none.
15474         * modules/unictype/category-and-tests (Depends-on): Add
15475         unictype/category-{L,N,Lu,Nd}.
15476         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
15477         * modules/unictype/category-or-tests (Depends-on): Add
15478         unictype/category-{L,N}.
15479         * modules/unictype/category-name-tests (Depends-on): Add
15480         unictype/category-{Z,Nl}.
15481         Reported by Simon Josefsson.
15482
15483 2008-01-08  Bruno Haible  <bruno@clisp.org>
15484
15485         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
15486         convention better.
15487         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
15488         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
15489         Reported by Peter Miller <millerp@canb.auug.org.au>.
15490
15491 2008-01-08  Eric Blake  <ebb9@byu.net>
15492
15493         Rewrite memmem to guarantee linear complexity without malloc.
15494         * lib/memmem.c (memmem): Use Two-Way rather than
15495         Knuth-Morris-Pratt, to allow O(1) space usage.
15496         (critical_factorization, two_way_short_needle)
15497         (two_way_long_needle): New functions.
15498         (knuth_morris_pratt): Delete.
15499         * modules/memmem (Depends-on): No longer need malloca or stdbool.
15500         Add stdint.
15501         * tests/test-memmem.c (main): Add tests for periodic needle and
15502         sublinear performance.
15503         * doc/functions/memmem.texi (memmem): Document other deficiencies
15504         in cygwin and older glibc.
15505
15506 2008-01-08  Bruno Haible  <bruno@clisp.org>
15507
15508         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
15509         augmentation.
15510
15511 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
15512
15513         Add a configure time option: --disable-acl.
15514         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
15515         AC_ARG_ENABLE(acl).
15516
15517 2008-01-06  Simon Josefsson  <simon@josefsson.org>
15518
15519         * tests/test-localename.c: Don't include obsolete "setenv.h".
15520
15521         * modules/localename-tests (Depends-on): Need unsetenv.
15522
15523 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15524
15525         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
15526
15527 2008-01-06  Colin Watson  <cjwatson@debian.org>
15528
15529         * users.txt: Add man-db.
15530
15531 2008-01-07  Bruno Haible  <bruno@clisp.org>
15532
15533         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
15534         previous section name.
15535
15536 2008-01-07  Bruno Haible  <bruno@clisp.org>
15537
15538         * lib/progname.c (set_program_name): Don't strip off a leading
15539         "lt-" prefix outside a .libs directory.
15540         Suggested by Paul Eggert.
15541
15542 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
15543             Bruno Haible  <bruno@clisp.org>
15544
15545         Improve memory cleanup in 'relocatable' module.
15546         * lib/relocatable.h (compute_curr_prefix): Change return type to
15547         'char *'.
15548         * lib/relocatable.c (compute_curr_prefix): Change return type to
15549         'char *'. Free curr_installdir after use.
15550         (relocate): Free curr_prefix_better after use.
15551         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
15552
15553 2008-01-01  Bruno Haible  <bruno@clisp.org>
15554
15555         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
15556         failure on older glibc systems.
15557         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15558
15559 2008-01-05  Eric Blake  <ebb9@byu.net>
15560
15561         Avoid quadratic system memmem.
15562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
15563         Reported by Ralf Wildenhues.
15564
15565         Fix memmem test for mingw.
15566         * modules/memmem-tests (configure.ac): Check for alarm.
15567         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
15568         it.
15569         * doc/functions/memmem.texi: New file.
15570         * doc/gnulib.texi (Function Substitutes): Add memmem.
15571         Reported by Bruno Haible.
15572
15573 2008-01-04  Bruno Haible  <bruno@clisp.org>
15574
15575         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
15576         Require gl_HEADER_STRINGS_H_DEFAULTS, not
15577         gl_HEADER_STRING_H_DEFAULTS.
15578
15579 2008-01-04  Eric Blake  <ebb9@byu.net>
15580
15581         Shorten duration of memmem test.
15582         * tests/test-memmem.c (main): Use alarm to declare failure if test
15583         is taking too long.
15584         Reported by Ralf Wildenhues.
15585
15586 2007-12-21  Simon Josefsson  <simon@josefsson.org>
15587
15588         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
15589         string, needed by strerror.
15590
15591 2008-01-03  Colin Watson  <cjwatson@debian.org>
15592             Bruno Haible  <bruno@clisp.org>
15593
15594         * doc/gnulib-tool.texi (Localization): New section.
15595
15596 2008-01-02  Bruno Haible  <bruno@clisp.org>
15597
15598         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
15599         variables to 'unsigned char *' type.
15600         Reported by Paul Eggert.
15601
15602 2008-01-02  Jim Meyering  <jim@meyering.net>
15603
15604         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
15605
15606 2007-12-31  Jim Meyering  <jim@meyering.net>
15607
15608         Avoid use of private FTS type name.
15609         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
15610
15611 2007-12-30  Karl Berry  <karl@gnu.org>
15612
15613         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
15614         work around defect in Texinfo and/or the standalone Info browser.
15615
15616 2007-12-30  Bruno Haible  <bruno@clisp.org>
15617
15618         Unify 5 copies of the KMP code.
15619         * lib/str-kmp.h: New file.
15620         * lib/c-strcasestr.c: Include str-kmp.h.
15621         (knuth_morris_pratt): Remove function.
15622         (c_strcasestr): Update.
15623         * lib/c-strstr.c: Include str-kmp.h.
15624         (knuth_morris_pratt): Remove function.
15625         (c_strcasestr): Update.
15626         * lib/mbscasestr.c: Include str-kmp.h.
15627         (knuth_morris_pratt_unibyte): Remove function.
15628         * lib/mbsstr.c: Include str-kmp.h.
15629         (knuth_morris_pratt_unibyte): Remove function.
15630         * lib/strcasestr.c: Include str-kmp.h.
15631         (knuth_morris_pratt): Remove function.
15632         (strcasestr): Update.
15633         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
15634         * modules/c-strstr (Files): Likewise.
15635         * modules/mbscasestr (Files): Likewise.
15636         * modules/mbsstr (Files): Likewise.
15637         * modules/strcasestr (Files): Likewise.
15638         Suggested by Paul Eggert.
15639
15640 2007-12-30  Bruno Haible  <bruno@clisp.org>
15641
15642         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
15643         defined.
15644
15645 2007-12-30  Bruno Haible  <bruno@clisp.org>
15646
15647         * lib/xmalloca.h: Include xalloc.h.
15648         (xnmalloca): New macro.
15649
15650 2007-12-30  Bruno Haible  <bruno@clisp.org>
15651
15652         * lib/malloca.h (nmalloca): New macro.
15653         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
15654         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
15655         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
15656         knuth_morris_pratt_multibyte): Likewise.
15657         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
15658         knuth_morris_pratt_multibyte): Likewise.
15659         * lib/memmem.c (knuth_morris_pratt): Likewise.
15660         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
15661
15662 2007-12-25  Bruno Haible  <bruno@clisp.org>
15663
15664         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
15665         * lib/glob.c: Don't include openat.h.
15666         (link_exists2_p): Add back the code that deals with the
15667         !GLOB_ALTDIRFUNC case.
15668         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
15669         let it do the filename concatenation.
15670         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
15671         * modules/glob (Depends-on): Remove openat.
15672
15673 2007-12-31  Bruno Haible  <bruno@clisp.org>
15674
15675         * modules/dirfd (License): Change to LGPLv2+.
15676         Approved by Jim Meyering.
15677
15678 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15679
15680         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
15681         when multiplying M by sizeof (size_t).
15682
15683 2007-12-10  Martin Lambers  <marlam@marlam.de>
15684
15685         Override getpagesize on mingw.
15686         * lib/getpagesize.c: New file.
15687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
15688         * modules/getpagesize (Files): Add lib/getpagesize.c.
15689         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
15690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15691         REPLACE_GETPAGESIZE.
15692         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
15693
15694 2007-12-25  Bruno Haible  <bruno@clisp.org>
15695
15696         * modules/localcharset (Notice): New field.
15697         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
15698         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15699
15700 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15701             Bruno Haible  <bruno@clisp.org>
15702
15703         Avoid using the syntax symbol() in formatted documentation.
15704         * MODULES.html.sh (func_module): When replacing symbol() with a
15705         hyperlink, remove the parentheses. Show an error if some remain.
15706         Recognize and render the '...' syntax.
15707         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
15708         Rework. Add paragraph about GCC's inlining.
15709         * doc/alloca.texi: Likewise.
15710         * doc/error.texi: Remove parentheses from symbol reference.
15711         * doc/gnulib-intro.texi: Likewise.
15712         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
15713         * modules/fnmatch (Description): Reword to say "the ... function".
15714         * modules/full-read (Description): Likewise.
15715         * modules/full-write (Description): Likewise.
15716         * modules/safe-read (Description): Likewise.
15717         * modules/safe-write (Description): Likewise.
15718         * modules/strchrnul (Description): Likewise.
15719         * modules/trim (Description): Likewise.
15720         * modules/error (Description): Remove parentheses from symbol
15721         references.
15722         * modules/verror (Description): Likewise.
15723         Reported by Karl Berry.
15724
15725 2007-12-25  Bruno Haible  <bruno@clisp.org>
15726
15727         Fixup after 2007-10-16 commit.
15728         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
15729
15730 2007-12-24  Bruno Haible  <bruno@clisp.org>
15731
15732         Make --enable-relocatable work with DESTDIR.
15733         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
15734         to compute installdir from destprog.
15735         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
15736         also set the RELOC_DESTDIR variable.
15737         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15738
15739 2007-12-24  Bruno Haible  <bruno@clisp.org>
15740
15741         Fix link error due to xalloc_die().
15742         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
15743         of xreadlink.
15744         * lib/relocwrapper.c: Update comments.
15745         * build-aux/install-reloc: Remove xreadlink.c from file list.
15746         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
15747         xreadlink.c.
15748         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15749
15750 2007-12-24  Bruno Haible  <bruno@clisp.org>
15751
15752         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
15753         * lib/setenv.h: Remove file.
15754         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
15755         lib/setenv.h.
15756         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
15757         (Depends-on): Add stdlib.
15758         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
15759         gl_FUNC_UNSETENV.
15760         (Include): Replace setenv.h with <stdlib.h>.
15761         * modules/unsetenv: New file.
15762         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
15763         * lib/unsetenv.c: Include <stdlib.h> first.
15764         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
15765         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
15766         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
15767         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
15768         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
15769         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
15771         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
15772         * doc/functions/unsetenv.texi: Update.
15773         * modules/xsetenv (Depends-on): Add unsetenv.
15774         * modules/getdate (Depends-on): Likewise.
15775         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
15776         * lib/xsetenv.c: Don't include setenv.h.
15777         * lib/getdate.y: Likewise.
15778         * lib/relocwrapper.c: Likewise.
15779         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
15780         (Depends-on): Add stdlib.
15781         * NEWS: Mention the changes.
15782         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
15783
15784 2007-12-23  Bruno Haible  <bruno@clisp.org>
15785
15786         * lib/memmem.c (memmem): Use lowercase variable names. Tab
15787         indentation.
15788
15789 2007-12-23  Bruno Haible  <bruno@clisp.org>
15790
15791         * lib/c-strcasestr.c: Add more comments.
15792         * lib/c-strstr.c: Likewise.
15793         * lib/mbscasestr.c: Likewise.
15794         * lib/mbsstr.c: Likewise.
15795         * lib/strcasestr.c: Likewise.
15796         * lib/memmem.c: Likewise.
15797
15798 2007-12-23  Bruno Haible  <bruno@clisp.org>
15799
15800         * tests/test-memmem.c: Include <string.h> first.
15801
15802 2007-12-22  Bruno Haible  <bruno@clisp.org>
15803
15804         * gnulib-tool (func_create_testdir): Change $auxdir while generating
15805         the contents of $testsbase.
15806         Reported by Ralf Wildenhues.
15807
15808 2007-12-22  Bruno Haible  <bruno@clisp.org>
15809
15810         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
15811         two variables local_ldadd_before, local_ldadd_last.
15812
15813 2007-12-20  Eric Blake  <ebb9@byu.net>
15814
15815         Work around circular library issue when cross-compiling.
15816         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
15817         that progname.o does not need to pull in rpl_memcmp.
15818
15819 2007-12-19  Eric Blake  <ebb9@byu.net>
15820
15821         Fix memmem to avoid O(n^2) worst-case complexity.
15822         * lib/memmem.c (knuth_morris_pratt): New function.
15823         (memmem): Use it if first few naive iterations fail.
15824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
15825         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
15826         * modules/memchr (License): Likewise.
15827         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
15828         malloca.
15829         * tests/test-memmem.c: Rewrite, borrowing ideas from
15830         test-mbsstr1.c; the old version wouldn't even compile!
15831         * modules/memmem-tests: New file.
15832         * lib/string.in.h (rpl_memmem): Add declaration.
15833         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
15834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
15835         REPLACE_MEMMEM.
15836
15837 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
15840         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
15841         before any system include files, and undef after them all.  This
15842         should fix a problem on VMS reported by John E. Malmberg in
15843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
15844
15845 2007-12-17  Eric Blake  <ebb9@byu.net>
15846
15847         Revert addition of verify, for BSD/OS.
15848         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
15849         can't handle large files, for the sake of obsolete platforms.
15850         * modules/fseeko (Depends-on): Remove verify.
15851         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
15852         * doc/functions/ftello.texi (ftello): Likewise.
15853         * doc/functions/fgetpos.texi (fgetpos): Likewise.
15854         Reported by Larry Jones.
15855
15856 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
15857
15858         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
15859         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
15860
15861 2007-12-17  Jim Meyering  <meyering@redhat.com>
15862
15863         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
15864         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
15865         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
15866         * modules/getcwd (Depends-on): Add openat.
15867         Reported by Petr Salinger.
15868
15869 2007-12-17  Bruno Haible  <bruno@clisp.org>
15870
15871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
15872         avoid a segmentation fault of the configure test on x86_64 systems.
15873
15874 2007-12-15  Jim Meyering  <meyering@redhat.com>
15875
15876         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
15877
15878 2007-12-13  Eric Blake  <ebb9@byu.net>
15879
15880         Another fseek test.
15881         * tests/test-fseek.c (main): Also test ungetc handling.
15882         * tests/test-fseeko.c (main): Likewise.
15883         * modules/fseeko (Depends-on): Add verify.
15884         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
15885         large.
15886         Reported by Larry Jones.
15887
15888         Fix fseeko on mingw.
15889         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
15890         seek.
15891
15892         Beef up fseek tests.
15893         * tests/test-fseek.c (main): Also test eof handling.
15894         * tests/test-fseeko.c (main): Likewise.
15895         Reported by Larry Jones.
15896
15897 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
15898
15899         Fix fseeko on BSD-based platforms.
15900         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
15901         successful seek.
15902
15903 2007-12-12  Eric Blake  <ebb9@byu.net>
15904
15905         Allow circular dependency of separate libtests.a
15906         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
15907         when use_libtests.
15908
15909 2007-12-11  Eric Blake  <ebb9@byu.net>
15910
15911         Fix bug with -0.0L in previous patch.
15912         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
15913         * tests/test-isnan.c (main): Also test on zeroes.
15914         * tests/test-isnanf.c (main): Likewise.
15915         * tests/test-isnanl.h (main): Likewise.
15916
15917         Detect pseudo-denormals on x86 even when cross-compiling.
15918         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
15919         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
15920         invalid bit patterns that happen to satisfy ==.
15921
15922         Avoid link failures with separate libtests.a.
15923         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
15924         last, to satisfy circular dependencies.
15925
15926 2007-12-11  Eric Blake  <ebb9@byu.net>
15927         and Bruno Haible  <bruno@clisp.org>
15928
15929         Fix OpenBSD 4.0 <float.h> handling of long double.
15930         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
15931         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
15932         * doc/headers/float.texi (float.h): Document OpenBSD bug.
15933
15934 2007-12-11  Jim Meyering  <meyering@redhat.com>
15935
15936         * users.txt: Add libvirt.
15937
15938         Support versions of autoconf prior to 2.59c.
15939         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
15940         if it is not already defined.
15941
15942 2007-12-09  Bruno Haible  <bruno@clisp.org>
15943
15944         Let 'gnulib-tool --import' collect sources needed for the tests in
15945         tests/ rather than in lib/.
15946         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
15947         argument. If true, add rules to generate libtests.a, and put libtests.a
15948         into $(LDADD). Consider source files in subdirectories and set
15949         uses_subdirs.
15950         (func_emit_initmacro_start, func_emit_initmacro_end,
15951         func_emit_initmacro_done): Pass all arguments explicitly.
15952         (func_import): Determine two module lists main_modules,
15953         testsrelated_modules. Determine use_libtests. Determine two variables
15954         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
15955         instead of just sed_transform_lib_file. Determine two variables
15956         main_files and testsrelated_files. Compute 'files' as the union of
15957         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
15958         func_add_or_update. In the generated gnulib-comp.m4, collect the
15959         object files for tests/ in different variables than those for lib/.
15960         Substitute LIBTESTS_LIBDEPS.
15961         (func_create_testdir): Combine the uses_subdirs results from
15962         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
15963
15964 2007-12-09  Bruno Haible  <bruno@clisp.org>
15965
15966         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
15967         the build-aux directory.
15968
15969 2007-12-09  Bruno Haible  <bruno@clisp.org>
15970
15971         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
15972         introduced on 2006-09-09.
15973
15974 2007-12-07  Jim Meyering  <meyering@redhat.com>
15975
15976         Let these macros work also with autoconf-2.59.
15977         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
15978         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
15979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15980
15981 2007-12-06  Jim Meyering  <meyering@redhat.com>
15982
15983         Avoid a configure-time syntax error in gl_FUNC_ACL.
15984         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
15985         function in each branch, before testing the cache variable.
15986
15987 2007-12-04  Eric Blake  <ebb9@byu.net>
15988
15989         Make scripts executable.
15990         * build-aux/config.guess: Add execute permissions.
15991         * build-aux/config.sub: Likewise.
15992         * build-aux/gendocs.sh: Likewise.
15993
15994         Fix frexp on mingw.
15995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
15996         cross-compiling.
15997         * doc/functions/frexp.texi (frexp): Document the bug.
15998
15999         Make cygwin fseeko check more reliable.
16000         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
16001         version numbers, rather than unrelated feature check.
16002         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
16003         * doc/functions/ftello.texi (ftello): Likewise.
16004         Reported by Bruno Haible.
16005
16006         * m4/strerror.m4: Bump version number.
16007
16008 2007-12-03  Bruno Haible  <bruno@clisp.org>
16009
16010         * doc/functions/mprotect.texi: Mention the mingw problem.
16011
16012 2007-12-03  Eric Blake  <ebb9@byu.net>
16013
16014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
16015         REPLACE_STRERROR is initialized before this macro.
16016
16017 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
16020         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
16021         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
16022         put -lsec in even for programs other than 'ls'.  This fixes a problem
16023         for gettext reported by Bruno Haible in
16024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
16025         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
16026         Add support for Solaris 10.  This isn't efficient, but should get the
16027         job done for now.
16028
16029 2007-12-03  James Youngman  <jay@gnu.org>
16030
16031         * doc/regexprops-generic.texi: change "an close-group" to "a
16032         close-group" and "illegal" to "not allowed".
16033
16034 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16035
16036         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
16037         pr_byname.h. Needed for the rare case when the maintainer has done
16038         "make maintainer-clean" in the source directory and then attempts a
16039         build outside the source directory.
16040         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
16041         scripts_byname.h.
16042
16043 2007-12-02  Martin Lambers <marlam@marlam.de>
16044             Bruno Haible  <bruno@clisp.org>
16045
16046         * lib/getpagesize.h: Remove file.
16047         * lib/unistd.in.h: Include declaration of getpagesize here.
16048         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
16049         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
16050         HAVE_SYS_PARAM_H.
16051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
16052         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16053         * modules/getpagesize (Files): Remove lib/getpagesize.h.
16054         (Depends-on): Add unistd.
16055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16056         (Include): Use <unistd.h> instead of getpagesize.h.
16057         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
16058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16059         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
16060         gl_GETPAGESIZE invocation, already handled by module dependency.
16061         * lib/pagealign_alloc.c: Don't include getpagesize.h.
16062
16063 2007-12-02  Bruno Haible  <bruno@clisp.org>
16064
16065         * modules/strings-tests: New file.
16066         * tests/test-strings.c: New file.
16067
16068         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
16069         * lib/strings.in.h: New file.
16070         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
16071         * m4/strings_h.m4: New file.
16072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
16073         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
16074         * modules/strings: New file.
16075         * modules/string (Makefile.am): Update.
16076         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
16077         Reported by Karl Berry.
16078
16079 2007-12-01  Eric Blake  <ebb9@byu.net>
16080
16081         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
16082         accomodate fix in cygwin 1.5.25.
16083
16084 2007-12-01  Jim Meyering  <meyering@redhat.com>
16085
16086         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
16087         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
16088         that would inhibit utf8-optimization of a regexp containing line-
16089         or buffer-anchors, e.g., `^', `$'.
16090
16091 2007-11-30  Bruno Haible  <bruno@clisp.org>
16092
16093         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
16094         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
16095         glthread_recursive_lock_init.
16096         * lib/lock.c (glthread_recursive_lock_init)
16097         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
16098         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16099
16100 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16101
16102         New function qset_acl, like set_acl but with syscall semantics.
16103         * lib/acl.h (qset_acl): New decl.
16104         * lib/acl.c (qset_acl): New function.
16105         (set_acl): Use new function.  Use more-consistent diagnostics.
16106
16107 2007-11-28  Jim Meyering  <meyering@redhat.com>
16108
16109         * modules/physmem (License): Change from GPL to LGPLv2+.
16110
16111 2007-11-26  Bruno Haible  <bruno@clisp.org>
16112
16113         * lib/vasnprintf.c (decode_long_double): Don't abort if the
16114         'long double' type has excess precision.
16115         Reported by Jim Meyering in
16116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
16117
16118 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16119
16120         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
16121         Sync from <http://gnu.org/licenses>.
16122         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
16123         with license text from same location.
16124         * doc/maintain.texi, doc/standards.texi:  Sync from
16125         <http://savannah.gnu.org/projects/gnustandards>.
16126
16127 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
16128         and Jim Meyering  <meyering@redhat.com>
16129
16130         Adjust getdate' grammar to accept a slightly more regular language.
16131         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
16132         Before, the former was rejected.
16133         * lib/getdate.y (digits_to_date_time): New function, factored
16134         out of ...
16135         (number): ...here.  Just call digits_to_date_time.
16136         (hybrid): New non-terminal to handle an <unsigned number,
16137         signed relative offset> sequence consistently.
16138
16139 2007-11-18  Jim Meyering  <meyering@redhat.com>
16140
16141         Pull my changes from coreutils:
16142         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
16143         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
16144         use of $gnulib_tool_option_extras, so that it's separated from the
16145         preceding argument.
16146
16147         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
16148         * build-aux/bootstrap (cp_mark_as_generated): Create any required
16149         parent destination directories before copying a file into place.
16150
16151 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16152
16153         bootstrap: work also with 4-argument variant of AC_INIT
16154         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
16155
16156 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         Port test-getaddrinfo to Solaris.
16159         Problem reported by Bruno Haible in
16160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
16161         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
16162         explanation of setting 'hints'.
16163         Don't reject an implementation merely because it returns EAI_SERVICE.
16164         (EAI_SERVICE): Define to 0 if not defined.
16165
16166 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16167
16168         The license of gnu-make and posix-shell is now "GPLed build tool".
16169         * modules/gnu-make (License): Likewise.
16170         * modules/posix-shell (License): Likewise.
16171
16172         New module posix-shell, for determining a POSIX shell
16173         or perhaps something that is close enough to a POSIX shell.
16174         * m4/posix-shell.m4: New file.
16175         * modules/posix-shell: New file.
16176
16177         * MODULES.html.sh: Mention new module.
16178
16179         New module gnu-make, for determining whether we're using GNU Make.
16180         * m4/gnu-make.m4: New file.
16181         * modules/gnu-make: New file.
16182         * MODULES.html.sh: Mention new module.
16183
16184 2007-11-14  Jim Meyering  <meyering@redhat.com>
16185
16186         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
16187         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
16188         use this macro to create a function _definition_.
16189         Remove useless "#undef ARGMATCH_DIE".
16190
16191 2007-11-14  Bruno Haible  <bruno@clisp.org>
16192
16193         * lib/config.charset: Update for OpenBSD 4.1.
16194         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
16195
16196 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16197
16198         Document 64-bit #if problems in stdint.texi.
16199         * doc/headers/stdint.texi (stdint.h): Mention problems with
16200         64-bit-#if, and how to work around them.
16201
16202         Don't insist on 'long long int' support in the preprocessor.  It
16203         breaks too many things.  For example, PRIdMAX still uses a 'long
16204         long int' format with the latest Sun compiler, even though
16205         HAVE_LONG_LONG_INT isn't defined due to that compiler's
16206         preprocessor problem.  This causes the latest coreutils to dump
16207         core on Solaris 10 sparc with the Sun C compiler.
16208         Instead, fix the 2007-10-16 problem in a different way, by evaluating
16209         the troublesome expressions at configure-time, not at #if-time.
16210         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
16211         preprocessor.
16212         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
16213         compile-time C checks, done at 'configure'-time.
16214         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
16215         * modules/inttypes (Makefile): Substitute the new symbols that
16216         gl_INTTYPES_H now generates.
16217         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
16218
16219 2007-11-12  Bruno Haible  <bruno@clisp.org>
16220
16221         Tests for Unicode character classification functions.
16222
16223         * modules/unictype/bidicategory-byname-tests: New file.
16224         * modules/unictype/bidicategory-name-tests: New file.
16225         * modules/unictype/bidicategory-of-tests: New file.
16226         * modules/unictype/bidicategory-test-tests: New file.
16227         * modules/unictype/block-list-tests: New file.
16228         * modules/unictype/block-of-tests: New file.
16229         * modules/unictype/block-test-tests: New file.
16230         * modules/unictype/category-C-tests: New file.
16231         * modules/unictype/category-Cc-tests: New file.
16232         * modules/unictype/category-Cf-tests: New file.
16233         * modules/unictype/category-Cn-tests: New file.
16234         * modules/unictype/category-Co-tests: New file.
16235         * modules/unictype/category-Cs-tests: New file.
16236         * modules/unictype/category-L-tests: New file.
16237         * modules/unictype/category-Ll-tests: New file.
16238         * modules/unictype/category-Lm-tests: New file.
16239         * modules/unictype/category-Lo-tests: New file.
16240         * modules/unictype/category-Lt-tests: New file.
16241         * modules/unictype/category-Lu-tests: New file.
16242         * modules/unictype/category-M-tests: New file.
16243         * modules/unictype/category-Mc-tests: New file.
16244         * modules/unictype/category-Me-tests: New file.
16245         * modules/unictype/category-Mn-tests: New file.
16246         * modules/unictype/category-N-tests: New file.
16247         * modules/unictype/category-Nd-tests: New file.
16248         * modules/unictype/category-Nl-tests: New file.
16249         * modules/unictype/category-No-tests: New file.
16250         * modules/unictype/category-P-tests: New file.
16251         * modules/unictype/category-Pc-tests: New file.
16252         * modules/unictype/category-Pd-tests: New file.
16253         * modules/unictype/category-Pe-tests: New file.
16254         * modules/unictype/category-Pf-tests: New file.
16255         * modules/unictype/category-Pi-tests: New file.
16256         * modules/unictype/category-Po-tests: New file.
16257         * modules/unictype/category-Ps-tests: New file.
16258         * modules/unictype/category-S-tests: New file.
16259         * modules/unictype/category-Sc-tests: New file.
16260         * modules/unictype/category-Sk-tests: New file.
16261         * modules/unictype/category-Sm-tests: New file.
16262         * modules/unictype/category-So-tests: New file.
16263         * modules/unictype/category-Z-tests: New file.
16264         * modules/unictype/category-Zl-tests: New file.
16265         * modules/unictype/category-Zp-tests: New file.
16266         * modules/unictype/category-Zs-tests: New file.
16267         * modules/unictype/category-and-not-tests: New file.
16268         * modules/unictype/category-and-tests: New file.
16269         * modules/unictype/category-byname-tests: New file.
16270         * modules/unictype/category-name-tests: New file.
16271         * modules/unictype/category-none-tests: New file.
16272         * modules/unictype/category-of-tests: New file.
16273         * modules/unictype/category-or-tests: New file.
16274         * modules/unictype/category-test-withtable-tests: New file.
16275         * modules/unictype/combining-class-tests: New file.
16276         * modules/unictype/ctype-alnum-tests: New file.
16277         * modules/unictype/ctype-alpha-tests: New file.
16278         * modules/unictype/ctype-blank-tests: New file.
16279         * modules/unictype/ctype-cntrl-tests: New file.
16280         * modules/unictype/ctype-digit-tests: New file.
16281         * modules/unictype/ctype-graph-tests: New file.
16282         * modules/unictype/ctype-lower-tests: New file.
16283         * modules/unictype/ctype-print-tests: New file.
16284         * modules/unictype/ctype-punct-tests: New file.
16285         * modules/unictype/ctype-space-tests: New file.
16286         * modules/unictype/ctype-upper-tests: New file.
16287         * modules/unictype/ctype-xdigit-tests: New file.
16288         * modules/unictype/decimal-digit-tests: New file.
16289         * modules/unictype/digit-tests: New file.
16290         * modules/unictype/mirror-tests: New file.
16291         * modules/unictype/numeric-tests: New file.
16292         * modules/unictype/property-alphabetic-tests: New file.
16293         * modules/unictype/property-ascii-hex-digit-tests: New file.
16294         * modules/unictype/property-bidi-arabic-digit-tests: New file.
16295         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
16296         * modules/unictype/property-bidi-block-separator-tests: New file.
16297         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
16298         * modules/unictype/property-bidi-common-separator-tests: New file.
16299         * modules/unictype/property-bidi-control-tests: New file.
16300         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
16301         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
16302         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
16303         * modules/unictype/property-bidi-european-digit-tests: New file.
16304         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
16305         * modules/unictype/property-bidi-left-to-right-tests: New file.
16306         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
16307         * modules/unictype/property-bidi-other-neutral-tests: New file.
16308         * modules/unictype/property-bidi-pdf-tests: New file.
16309         * modules/unictype/property-bidi-segment-separator-tests: New file.
16310         * modules/unictype/property-bidi-whitespace-tests: New file.
16311         * modules/unictype/property-byname-tests: New file.
16312         * modules/unictype/property-combining-tests: New file.
16313         * modules/unictype/property-composite-tests: New file.
16314         * modules/unictype/property-currency-symbol-tests: New file.
16315         * modules/unictype/property-dash-tests: New file.
16316         * modules/unictype/property-decimal-digit-tests: New file.
16317         * modules/unictype/property-default-ignorable-code-point-tests: New file.
16318         * modules/unictype/property-deprecated-tests: New file.
16319         * modules/unictype/property-diacritic-tests: New file.
16320         * modules/unictype/property-extender-tests: New file.
16321         * modules/unictype/property-format-control-tests: New file.
16322         * modules/unictype/property-grapheme-base-tests: New file.
16323         * modules/unictype/property-grapheme-extend-tests: New file.
16324         * modules/unictype/property-grapheme-link-tests: New file.
16325         * modules/unictype/property-hex-digit-tests: New file.
16326         * modules/unictype/property-hyphen-tests: New file.
16327         * modules/unictype/property-id-continue-tests: New file.
16328         * modules/unictype/property-id-start-tests: New file.
16329         * modules/unictype/property-ideographic-tests: New file.
16330         * modules/unictype/property-ids-binary-operator-tests: New file.
16331         * modules/unictype/property-ids-trinary-operator-tests: New file.
16332         * modules/unictype/property-ignorable-control-tests: New file.
16333         * modules/unictype/property-iso-control-tests: New file.
16334         * modules/unictype/property-join-control-tests: New file.
16335         * modules/unictype/property-left-of-pair-tests: New file.
16336         * modules/unictype/property-line-separator-tests: New file.
16337         * modules/unictype/property-logical-order-exception-tests: New file.
16338         * modules/unictype/property-lowercase-tests: New file.
16339         * modules/unictype/property-math-tests: New file.
16340         * modules/unictype/property-non-break-tests: New file.
16341         * modules/unictype/property-not-a-character-tests: New file.
16342         * modules/unictype/property-numeric-tests: New file.
16343         * modules/unictype/property-other-alphabetic-tests: New file.
16344         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
16345         * modules/unictype/property-other-grapheme-extend-tests: New file.
16346         * modules/unictype/property-other-id-continue-tests: New file.
16347         * modules/unictype/property-other-id-start-tests: New file.
16348         * modules/unictype/property-other-lowercase-tests: New file.
16349         * modules/unictype/property-other-math-tests: New file.
16350         * modules/unictype/property-other-uppercase-tests: New file.
16351         * modules/unictype/property-paired-punctuation-tests: New file.
16352         * modules/unictype/property-paragraph-separator-tests: New file.
16353         * modules/unictype/property-pattern-syntax-tests: New file.
16354         * modules/unictype/property-pattern-white-space-tests: New file.
16355         * modules/unictype/property-private-use-tests: New file.
16356         * modules/unictype/property-punctuation-tests: New file.
16357         * modules/unictype/property-quotation-mark-tests: New file.
16358         * modules/unictype/property-radical-tests: New file.
16359         * modules/unictype/property-sentence-terminal-tests: New file.
16360         * modules/unictype/property-soft-dotted-tests: New file.
16361         * modules/unictype/property-space-tests: New file.
16362         * modules/unictype/property-terminal-punctuation-tests: New file.
16363         * modules/unictype/property-test-tests: New file.
16364         * modules/unictype/property-titlecase-tests: New file.
16365         * modules/unictype/property-unassigned-code-value-tests: New file.
16366         * modules/unictype/property-unified-ideograph-tests: New file.
16367         * modules/unictype/property-uppercase-tests: New file.
16368         * modules/unictype/property-variation-selector-tests: New file.
16369         * modules/unictype/property-white-space-tests: New file.
16370         * modules/unictype/property-xid-continue-tests: New file.
16371         * modules/unictype/property-xid-start-tests: New file.
16372         * modules/unictype/property-zero-width-tests: New file.
16373         * modules/unictype/scripts-tests: New file.
16374         * modules/unictype/syntax-c-ident-tests: New file.
16375         * modules/unictype/syntax-c-whitespace-tests: New file.
16376         * modules/unictype/syntax-java-ident-tests: New file.
16377         * modules/unictype/syntax-java-whitespace-tests: New file.
16378         * tests/unictype/test-bidi_byname.c: New file.
16379         * tests/unictype/test-bidi_name.c: New file.
16380         * tests/unictype/test-bidi_of.c: New file.
16381         * tests/unictype/test-bidi_test.c: New file.
16382         * tests/unictype/test-block_list.c: New file.
16383         * tests/unictype/test-block_of.c: New file.
16384         * tests/unictype/test-block_test.c: New file.
16385         * tests/unictype/test-categ_and.c: New file.
16386         * tests/unictype/test-categ_and_not.c: New file.
16387         * tests/unictype/test-categ_byname.c: New file.
16388         * tests/unictype/test-categ_name.c: New file.
16389         * tests/unictype/test-categ_none.c: New file.
16390         * tests/unictype/test-categ_of.c: New file.
16391         * tests/unictype/test-categ_or.c: New file.
16392         * tests/unictype/test-categ_test_withtable.c: New file.
16393         * tests/unictype/test-combining.c: New file.
16394         * tests/unictype/test-decdigit.c: New file.
16395         * tests/unictype/test-digit.c: New file.
16396         * tests/unictype/test-mirror.c: New file.
16397         * tests/unictype/test-numeric.c: New file.
16398         * tests/unictype/test-pr_byname.c: New file.
16399         * tests/unictype/test-pr_test.c: New file.
16400         * tests/unictype/test-predicate-part1.h: New file.
16401         * tests/unictype/test-predicate-part2.h: New file.
16402         * tests/unictype/test-scripts.c: New file.
16403         * tests/unictype/test-sy_c_ident.c: New file.
16404         * tests/unictype/test-sy_java_ident.c: New file.
16405
16406         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
16407         for Unicode 5.0.0.
16408         * tests/unictype/test-categ_Cc.c: Likewise.
16409         * tests/unictype/test-categ_Cf.c: Likewise.
16410         * tests/unictype/test-categ_Cn.c: Likewise.
16411         * tests/unictype/test-categ_Co.c: Likewise.
16412         * tests/unictype/test-categ_Cs.c: Likewise.
16413         * tests/unictype/test-categ_L.c: Likewise.
16414         * tests/unictype/test-categ_Ll.c: Likewise.
16415         * tests/unictype/test-categ_Lm.c: Likewise.
16416         * tests/unictype/test-categ_Lo.c: Likewise.
16417         * tests/unictype/test-categ_Lt.c: Likewise.
16418         * tests/unictype/test-categ_Lu.c: Likewise.
16419         * tests/unictype/test-categ_M.c: Likewise.
16420         * tests/unictype/test-categ_Mc.c: Likewise.
16421         * tests/unictype/test-categ_Me.c: Likewise.
16422         * tests/unictype/test-categ_Mn.c: Likewise.
16423         * tests/unictype/test-categ_N.c: Likewise.
16424         * tests/unictype/test-categ_Nd.c: Likewise.
16425         * tests/unictype/test-categ_Nl.c: Likewise.
16426         * tests/unictype/test-categ_No.c: Likewise.
16427         * tests/unictype/test-categ_P.c: Likewise.
16428         * tests/unictype/test-categ_Pc.c: Likewise.
16429         * tests/unictype/test-categ_Pd.c: Likewise.
16430         * tests/unictype/test-categ_Pe.c: Likewise.
16431         * tests/unictype/test-categ_Pf.c: Likewise.
16432         * tests/unictype/test-categ_Pi.c: Likewise.
16433         * tests/unictype/test-categ_Po.c: Likewise.
16434         * tests/unictype/test-categ_Ps.c: Likewise.
16435         * tests/unictype/test-categ_S.c: Likewise.
16436         * tests/unictype/test-categ_Sc.c: Likewise.
16437         * tests/unictype/test-categ_Sk.c: Likewise.
16438         * tests/unictype/test-categ_Sm.c: Likewise.
16439         * tests/unictype/test-categ_So.c: Likewise.
16440         * tests/unictype/test-categ_Z.c: Likewise.
16441         * tests/unictype/test-categ_Zl.c: Likewise.
16442         * tests/unictype/test-categ_Zp.c: Likewise.
16443         * tests/unictype/test-categ_Zs.c: Likewise.
16444         * tests/unictype/test-ctype_alnum.c: Likewise.
16445         * tests/unictype/test-ctype_alpha.c: Likewise.
16446         * tests/unictype/test-ctype_blank.c: Likewise.
16447         * tests/unictype/test-ctype_cntrl.c: Likewise.
16448         * tests/unictype/test-ctype_digit.c: Likewise.
16449         * tests/unictype/test-ctype_graph.c: Likewise.
16450         * tests/unictype/test-ctype_lower.c: Likewise.
16451         * tests/unictype/test-ctype_print.c: Likewise.
16452         * tests/unictype/test-ctype_punct.c: Likewise.
16453         * tests/unictype/test-ctype_space.c: Likewise.
16454         * tests/unictype/test-ctype_upper.c: Likewise.
16455         * tests/unictype/test-ctype_xdigit.c: Likewise.
16456         * tests/unictype/test-decdigit.h: Likewise.
16457         * tests/unictype/test-digit.h: Likewise.
16458         * tests/unictype/test-numeric.h: Likewise.
16459         * tests/unictype/test-pr_alphabetic.c: Likewise.
16460         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
16461         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16462         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16463         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
16464         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16465         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
16466         * tests/unictype/test-pr_bidi_control.c: Likewise.
16467         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
16468         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
16469         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16470         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16471         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16472         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16473         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16474         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16475         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
16476         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
16477         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
16478         * tests/unictype/test-pr_combining.c: Likewise.
16479         * tests/unictype/test-pr_composite.c: Likewise.
16480         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16481         * tests/unictype/test-pr_dash.c: Likewise.
16482         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16483         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
16484         * tests/unictype/test-pr_deprecated.c: Likewise.
16485         * tests/unictype/test-pr_diacritic.c: Likewise.
16486         * tests/unictype/test-pr_extender.c: Likewise.
16487         * tests/unictype/test-pr_format_control.c: Likewise.
16488         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16489         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16490         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16491         * tests/unictype/test-pr_hex_digit.c: Likewise.
16492         * tests/unictype/test-pr_hyphen.c: Likewise.
16493         * tests/unictype/test-pr_id_continue.c: Likewise.
16494         * tests/unictype/test-pr_id_start.c: Likewise.
16495         * tests/unictype/test-pr_ideographic.c: Likewise.
16496         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
16497         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
16498         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16499         * tests/unictype/test-pr_iso_control.c: Likewise.
16500         * tests/unictype/test-pr_join_control.c: Likewise.
16501         * tests/unictype/test-pr_left_of_pair.c: Likewise.
16502         * tests/unictype/test-pr_line_separator.c: Likewise.
16503         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16504         * tests/unictype/test-pr_lowercase.c: Likewise.
16505         * tests/unictype/test-pr_math.c: Likewise.
16506         * tests/unictype/test-pr_non_break.c: Likewise.
16507         * tests/unictype/test-pr_not_a_character.c: Likewise.
16508         * tests/unictype/test-pr_numeric.c: Likewise.
16509         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16510         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
16511         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
16512         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16513         * tests/unictype/test-pr_other_id_start.c: Likewise.
16514         * tests/unictype/test-pr_other_lowercase.c: Likewise.
16515         * tests/unictype/test-pr_other_math.c: Likewise.
16516         * tests/unictype/test-pr_other_uppercase.c: Likewise.
16517         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
16518         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
16519         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
16520         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
16521         * tests/unictype/test-pr_private_use.c: Likewise.
16522         * tests/unictype/test-pr_punctuation.c: Likewise.
16523         * tests/unictype/test-pr_quotation_mark.c: Likewise.
16524         * tests/unictype/test-pr_radical.c: Likewise.
16525         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16526         * tests/unictype/test-pr_soft_dotted.c: Likewise.
16527         * tests/unictype/test-pr_space.c: Likewise.
16528         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16529         * tests/unictype/test-pr_titlecase.c: Likewise.
16530         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16531         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16532         * tests/unictype/test-pr_uppercase.c: Likewise.
16533         * tests/unictype/test-pr_variation_selector.c: Likewise.
16534         * tests/unictype/test-pr_white_space.c: Likewise.
16535         * tests/unictype/test-pr_xid_continue.c: Likewise.
16536         * tests/unictype/test-pr_xid_start.c: Likewise.
16537         * tests/unictype/test-pr_zero_width.c: Likewise.
16538         * tests/unictype/test-sy_c_whitespace.c: Likewise.
16539         * tests/unictype/test-sy_java_whitespace.c: Likewise.
16540
16541 2007-11-12  Bruno Haible  <bruno@clisp.org>
16542
16543         Unicode character classification functions.
16544         * lib/unictype.h: New file.
16545         * modules/unictype/base: New file.
16546         * modules/unictype/category-L: New file.
16547         * modules/unictype/category-Lu: New file.
16548         * modules/unictype/category-Ll: New file.
16549         * modules/unictype/category-Lt: New file.
16550         * modules/unictype/category-Lm: New file.
16551         * modules/unictype/category-Lo: New file.
16552         * modules/unictype/category-M: New file.
16553         * modules/unictype/category-Mn: New file.
16554         * modules/unictype/category-Mc: New file.
16555         * modules/unictype/category-Me: New file.
16556         * modules/unictype/category-N: New file.
16557         * modules/unictype/category-Nd: New file.
16558         * modules/unictype/category-Nl: New file.
16559         * modules/unictype/category-No: New file.
16560         * modules/unictype/category-P: New file.
16561         * modules/unictype/category-Pc: New file.
16562         * modules/unictype/category-Pd: New file.
16563         * modules/unictype/category-Ps: New file.
16564         * modules/unictype/category-Pe: New file.
16565         * modules/unictype/category-Pi: New file.
16566         * modules/unictype/category-Pf: New file.
16567         * modules/unictype/category-Po: New file.
16568         * modules/unictype/category-S: New file.
16569         * modules/unictype/category-Sm: New file.
16570         * modules/unictype/category-Sc: New file.
16571         * modules/unictype/category-Sk: New file.
16572         * modules/unictype/category-So: New file.
16573         * modules/unictype/category-Z: New file.
16574         * modules/unictype/category-Zs: New file.
16575         * modules/unictype/category-Zl: New file.
16576         * modules/unictype/category-Zp: New file.
16577         * modules/unictype/category-C: New file.
16578         * modules/unictype/category-Cc: New file.
16579         * modules/unictype/category-Cf: New file.
16580         * modules/unictype/category-Cs: New file.
16581         * modules/unictype/category-Co: New file.
16582         * modules/unictype/category-Cn: New file.
16583         * modules/unictype/category-or: New file.
16584         * modules/unictype/category-of: New file.
16585         * modules/unictype/category-test: New file.
16586         * modules/unictype/category-test-withtable: New file.
16587         * modules/unictype/category-byname: New file.
16588         * modules/unictype/category-none: New file.
16589         * modules/unictype/category-and: New file.
16590         * modules/unictype/category-and-not: New file.
16591         * modules/unictype/category-name: New file.
16592         * modules/unictype/combining-class: New file.
16593         * modules/unictype/category-all: New file.
16594         * modules/unictype/bidicategory-all: New file.
16595         * modules/unictype/bidicategory-byname: New file.
16596         * modules/unictype/bidicategory-name: New file.
16597         * modules/unictype/bidicategory-of: New file.
16598         * modules/unictype/bidicategory-test: New file.
16599         * modules/unictype/decimal-digit: New file.
16600         * modules/unictype/digit: New file.
16601         * modules/unictype/numeric: New file.
16602         * modules/unictype/mirror: New file.
16603         * modules/unictype/property-white-space: New file.
16604         * modules/unictype/property-alphabetic: New file.
16605         * modules/unictype/property-other-alphabetic: New file.
16606         * modules/unictype/property-not-a-character: New file.
16607         * modules/unictype/property-default-ignorable-code-point: New file.
16608         * modules/unictype/property-other-default-ignorable-code-point: New
16609         file.
16610         * modules/unictype/property-deprecated: New file.
16611         * modules/unictype/property-logical-order-exception: New file.
16612         * modules/unictype/property-variation-selector: New file.
16613         * modules/unictype/property-private-use: New file.
16614         * modules/unictype/property-unassigned-code-value: New file.
16615         * modules/unictype/property-uppercase: New file.
16616         * modules/unictype/property-other-uppercase: New file.
16617         * modules/unictype/property-lowercase: New file.
16618         * modules/unictype/property-other-lowercase: New file.
16619         * modules/unictype/property-titlecase: New file.
16620         * modules/unictype/property-soft-dotted: New file.
16621         * modules/unictype/property-id-start: New file.
16622         * modules/unictype/property-other-id-start: New file.
16623         * modules/unictype/property-id-continue: New file.
16624         * modules/unictype/property-other-id-continue: New file.
16625         * modules/unictype/property-xid-start: New file.
16626         * modules/unictype/property-xid-continue: New file.
16627         * modules/unictype/property-pattern-white-space: New file.
16628         * modules/unictype/property-pattern-syntax: New file.
16629         * modules/unictype/property-join-control: New file.
16630         * modules/unictype/property-grapheme-base: New file.
16631         * modules/unictype/property-grapheme-extend: New file.
16632         * modules/unictype/property-other-grapheme-extend: New file.
16633         * modules/unictype/property-grapheme-link: New file.
16634         * modules/unictype/property-bidi-control: New file.
16635         * modules/unictype/property-bidi-left-to-right: New file.
16636         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
16637         * modules/unictype/property-bidi-arabic-right-to-left: New file.
16638         * modules/unictype/property-bidi-european-digit: New file.
16639         * modules/unictype/property-bidi-eur-num-separator: New file.
16640         * modules/unictype/property-bidi-eur-num-terminator: New file.
16641         * modules/unictype/property-bidi-arabic-digit: New file.
16642         * modules/unictype/property-bidi-common-separator: New file.
16643         * modules/unictype/property-bidi-block-separator: New file.
16644         * modules/unictype/property-bidi-segment-separator: New file.
16645         * modules/unictype/property-bidi-whitespace: New file.
16646         * modules/unictype/property-bidi-non-spacing-mark: New file.
16647         * modules/unictype/property-bidi-boundary-neutral: New file.
16648         * modules/unictype/property-bidi-pdf: New file.
16649         * modules/unictype/property-bidi-embedding-or-override: New file.
16650         * modules/unictype/property-bidi-other-neutral: New file.
16651         * modules/unictype/property-hex-digit: New file.
16652         * modules/unictype/property-ascii-hex-digit: New file.
16653         * modules/unictype/property-ideographic: New file.
16654         * modules/unictype/property-unified-ideograph: New file.
16655         * modules/unictype/property-radical: New file.
16656         * modules/unictype/property-ids-binary-operator: New file.
16657         * modules/unictype/property-ids-trinary-operator: New file.
16658         * modules/unictype/property-zero-width: New file.
16659         * modules/unictype/property-space: New file.
16660         * modules/unictype/property-non-break: New file.
16661         * modules/unictype/property-iso-control: New file.
16662         * modules/unictype/property-format-control: New file.
16663         * modules/unictype/property-dash: New file.
16664         * modules/unictype/property-hyphen: New file.
16665         * modules/unictype/property-punctuation: New file.
16666         * modules/unictype/property-line-separator: New file.
16667         * modules/unictype/property-paragraph-separator: New file.
16668         * modules/unictype/property-quotation-mark: New file.
16669         * modules/unictype/property-sentence-terminal: New file.
16670         * modules/unictype/property-terminal-punctuation: New file.
16671         * modules/unictype/property-currency-symbol: New file.
16672         * modules/unictype/property-math: New file.
16673         * modules/unictype/property-other-math: New file.
16674         * modules/unictype/property-paired-punctuation: New file.
16675         * modules/unictype/property-left-of-pair: New file.
16676         * modules/unictype/property-combining: New file.
16677         * modules/unictype/property-composite: New file.
16678         * modules/unictype/property-decimal-digit: New file.
16679         * modules/unictype/property-numeric: New file.
16680         * modules/unictype/property-diacritic: New file.
16681         * modules/unictype/property-extender: New file.
16682         * modules/unictype/property-ignorable-control: New file.
16683         * modules/unictype/property-test: New file.
16684         * modules/unictype/property-byname: New file.
16685         * modules/unictype/property-all: New file.
16686         * modules/unictype/scripts: New file.
16687         * modules/unictype/scripts-all: New file.
16688         * modules/unictype/block-of: New file.
16689         * modules/unictype/block-test: New file.
16690         * modules/unictype/block-list: New file.
16691         * modules/unictype/block-all: New file.
16692         * modules/unictype/syntax-c-whitespace: New file.
16693         * modules/unictype/syntax-java-whitespace: New file.
16694         * modules/unictype/syntax-c-ident: New file.
16695         * modules/unictype/syntax-java-ident: New file.
16696         * modules/unictype/ctype-alnum: New file.
16697         * modules/unictype/ctype-alpha: New file.
16698         * modules/unictype/ctype-cntrl: New file.
16699         * modules/unictype/ctype-digit: New file.
16700         * modules/unictype/ctype-graph: New file.
16701         * modules/unictype/ctype-lower: New file.
16702         * modules/unictype/ctype-print: New file.
16703         * modules/unictype/ctype-punct: New file.
16704         * modules/unictype/ctype-space: New file.
16705         * modules/unictype/ctype-upper: New file.
16706         * modules/unictype/ctype-xdigit: New file.
16707         * modules/unictype/ctype-blank: New file.
16708         * lib/unictype/bidi_byname.c: New file.
16709         * lib/unictype/bidi_name.c: New file.
16710         * lib/unictype/bidi_of.c: New file.
16711         * lib/unictype/bidi_test.c: New file.
16712         * lib/unictype/bitmap.h: New file.
16713         * lib/unictype/block_test.c: New file.
16714         * lib/unictype/blocks.c: New file.
16715         * lib/unictype/categ_C.c: New file.
16716         * lib/unictype/categ_Cc.c: New file.
16717         * lib/unictype/categ_Cf.c: New file.
16718         * lib/unictype/categ_Cn.c: New file.
16719         * lib/unictype/categ_Co.c: New file.
16720         * lib/unictype/categ_Cs.c: New file.
16721         * lib/unictype/categ_L.c: New file.
16722         * lib/unictype/categ_Ll.c: New file.
16723         * lib/unictype/categ_Lm.c: New file.
16724         * lib/unictype/categ_Lo.c: New file.
16725         * lib/unictype/categ_Lt.c: New file.
16726         * lib/unictype/categ_Lu.c: New file.
16727         * lib/unictype/categ_M.c: New file.
16728         * lib/unictype/categ_Mc.c: New file.
16729         * lib/unictype/categ_Me.c: New file.
16730         * lib/unictype/categ_Mn.c: New file.
16731         * lib/unictype/categ_N.c: New file.
16732         * lib/unictype/categ_Nd.c: New file.
16733         * lib/unictype/categ_Nl.c: New file.
16734         * lib/unictype/categ_No.c: New file.
16735         * lib/unictype/categ_P.c: New file.
16736         * lib/unictype/categ_Pc.c: New file.
16737         * lib/unictype/categ_Pd.c: New file.
16738         * lib/unictype/categ_Pe.c: New file.
16739         * lib/unictype/categ_Pf.c: New file.
16740         * lib/unictype/categ_Pi.c: New file.
16741         * lib/unictype/categ_Po.c: New file.
16742         * lib/unictype/categ_Ps.c: New file.
16743         * lib/unictype/categ_S.c: New file.
16744         * lib/unictype/categ_Sc.c: New file.
16745         * lib/unictype/categ_Sk.c: New file.
16746         * lib/unictype/categ_Sm.c: New file.
16747         * lib/unictype/categ_So.c: New file.
16748         * lib/unictype/categ_Z.c: New file.
16749         * lib/unictype/categ_Zl.c: New file.
16750         * lib/unictype/categ_Zp.c: New file.
16751         * lib/unictype/categ_Zs.c: New file.
16752         * lib/unictype/categ_and.c: New file.
16753         * lib/unictype/categ_and_not.c: New file.
16754         * lib/unictype/categ_byname.c: New file.
16755         * lib/unictype/categ_name.c: New file.
16756         * lib/unictype/categ_none.c: New file.
16757         * lib/unictype/categ_of.c: New file.
16758         * lib/unictype/categ_or.c: New file.
16759         * lib/unictype/categ_test.c: New file.
16760         * lib/unictype/combining.c: New file.
16761         * lib/unictype/ctype_alnum.c: New file.
16762         * lib/unictype/ctype_alpha.c: New file.
16763         * lib/unictype/ctype_blank.c: New file.
16764         * lib/unictype/ctype_cntrl.c: New file.
16765         * lib/unictype/ctype_digit.c: New file.
16766         * lib/unictype/ctype_graph.c: New file.
16767         * lib/unictype/ctype_lower.c: New file.
16768         * lib/unictype/ctype_print.c: New file.
16769         * lib/unictype/ctype_punct.c: New file.
16770         * lib/unictype/ctype_space.c: New file.
16771         * lib/unictype/ctype_upper.c: New file.
16772         * lib/unictype/ctype_xdigit.c: New file.
16773         * lib/unictype/decdigit.c: New file.
16774         * lib/unictype/digit.c: New file.
16775         * lib/unictype/identsyntaxmap.h: New file.
16776         * lib/unictype/mirror.c: New file.
16777         * lib/unictype/numeric.c: New file.
16778         * lib/unictype/pr_alphabetic.c: New file.
16779         * lib/unictype/pr_ascii_hex_digit.c: New file.
16780         * lib/unictype/pr_bidi_arabic_digit.c: New file.
16781         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
16782         * lib/unictype/pr_bidi_block_separator.c: New file.
16783         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
16784         * lib/unictype/pr_bidi_common_separator.c: New file.
16785         * lib/unictype/pr_bidi_control.c: New file.
16786         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
16787         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
16788         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
16789         * lib/unictype/pr_bidi_european_digit.c: New file.
16790         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
16791         * lib/unictype/pr_bidi_left_to_right.c: New file.
16792         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
16793         * lib/unictype/pr_bidi_other_neutral.c: New file.
16794         * lib/unictype/pr_bidi_pdf.c: New file.
16795         * lib/unictype/pr_bidi_segment_separator.c: New file.
16796         * lib/unictype/pr_bidi_whitespace.c: New file.
16797         * lib/unictype/pr_byname.c: New file.
16798         * lib/unictype/pr_byname.gperf: New file.
16799         * lib/unictype/pr_combining.c: New file.
16800         * lib/unictype/pr_composite.c: New file.
16801         * lib/unictype/pr_currency_symbol.c: New file.
16802         * lib/unictype/pr_dash.c: New file.
16803         * lib/unictype/pr_decimal_digit.c: New file.
16804         * lib/unictype/pr_default_ignorable_code_point.c: New file.
16805         * lib/unictype/pr_deprecated.c: New file.
16806         * lib/unictype/pr_diacritic.c: New file.
16807         * lib/unictype/pr_extender.c: New file.
16808         * lib/unictype/pr_format_control.c: New file.
16809         * lib/unictype/pr_grapheme_base.c: New file.
16810         * lib/unictype/pr_grapheme_extend.c: New file.
16811         * lib/unictype/pr_grapheme_link.c: New file.
16812         * lib/unictype/pr_hex_digit.c: New file.
16813         * lib/unictype/pr_hyphen.c: New file.
16814         * lib/unictype/pr_id_continue.c: New file.
16815         * lib/unictype/pr_id_start.c: New file.
16816         * lib/unictype/pr_ideographic.c: New file.
16817         * lib/unictype/pr_ids_binary_operator.c: New file.
16818         * lib/unictype/pr_ids_trinary_operator.c: New file.
16819         * lib/unictype/pr_ignorable_control.c: New file.
16820         * lib/unictype/pr_iso_control.c: New file.
16821         * lib/unictype/pr_join_control.c: New file.
16822         * lib/unictype/pr_left_of_pair.c: New file.
16823         * lib/unictype/pr_line_separator.c: New file.
16824         * lib/unictype/pr_logical_order_exception.c: New file.
16825         * lib/unictype/pr_lowercase.c: New file.
16826         * lib/unictype/pr_math.c: New file.
16827         * lib/unictype/pr_non_break.c: New file.
16828         * lib/unictype/pr_not_a_character.c: New file.
16829         * lib/unictype/pr_numeric.c: New file.
16830         * lib/unictype/pr_other_alphabetic.c: New file.
16831         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
16832         * lib/unictype/pr_other_grapheme_extend.c: New file.
16833         * lib/unictype/pr_other_id_continue.c: New file.
16834         * lib/unictype/pr_other_id_start.c: New file.
16835         * lib/unictype/pr_other_lowercase.c: New file.
16836         * lib/unictype/pr_other_math.c: New file.
16837         * lib/unictype/pr_other_uppercase.c: New file.
16838         * lib/unictype/pr_paired_punctuation.c: New file.
16839         * lib/unictype/pr_paragraph_separator.c: New file.
16840         * lib/unictype/pr_pattern_syntax.c: New file.
16841         * lib/unictype/pr_pattern_white_space.c: New file.
16842         * lib/unictype/pr_private_use.c: New file.
16843         * lib/unictype/pr_punctuation.c: New file.
16844         * lib/unictype/pr_quotation_mark.c: New file.
16845         * lib/unictype/pr_radical.c: New file.
16846         * lib/unictype/pr_sentence_terminal.c: New file.
16847         * lib/unictype/pr_soft_dotted.c: New file.
16848         * lib/unictype/pr_space.c: New file.
16849         * lib/unictype/pr_terminal_punctuation.c: New file.
16850         * lib/unictype/pr_test.c: New file.
16851         * lib/unictype/pr_titlecase.c: New file.
16852         * lib/unictype/pr_unassigned_code_value.c: New file.
16853         * lib/unictype/pr_unified_ideograph.c: New file.
16854         * lib/unictype/pr_uppercase.c: New file.
16855         * lib/unictype/pr_variation_selector.c: New file.
16856         * lib/unictype/pr_white_space.c: New file.
16857         * lib/unictype/pr_xid_continue.c: New file.
16858         * lib/unictype/pr_xid_start.c: New file.
16859         * lib/unictype/pr_zero_width.c: New file.
16860         * lib/unictype/scripts.c: New file.
16861         * lib/unictype/sy_c_ident.c: New file.
16862         * lib/unictype/sy_c_whitespace.c: New file.
16863         * lib/unictype/sy_java_ident.c: New file.
16864         * lib/unictype/sy_java_whitespace.c: New file.
16865
16866         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
16867         Unicode 5.0.0.
16868         * lib/unictype/blocks.h: Likewise.
16869         * lib/unictype/categ_C.h: Likewise.
16870         * lib/unictype/categ_Cc.h: Likewise.
16871         * lib/unictype/categ_Cf.h: Likewise.
16872         * lib/unictype/categ_Cn.h: Likewise.
16873         * lib/unictype/categ_Co.h: Likewise.
16874         * lib/unictype/categ_Cs.h: Likewise.
16875         * lib/unictype/categ_L.h: Likewise.
16876         * lib/unictype/categ_Ll.h: Likewise.
16877         * lib/unictype/categ_Lm.h: Likewise.
16878         * lib/unictype/categ_Lo.h: Likewise.
16879         * lib/unictype/categ_Lt.h: Likewise.
16880         * lib/unictype/categ_Lu.h: Likewise.
16881         * lib/unictype/categ_M.h: Likewise.
16882         * lib/unictype/categ_Mc.h: Likewise.
16883         * lib/unictype/categ_Me.h: Likewise.
16884         * lib/unictype/categ_Mn.h: Likewise.
16885         * lib/unictype/categ_N.h: Likewise.
16886         * lib/unictype/categ_Nd.h: Likewise.
16887         * lib/unictype/categ_Nl.h: Likewise.
16888         * lib/unictype/categ_No.h: Likewise.
16889         * lib/unictype/categ_P.h: Likewise.
16890         * lib/unictype/categ_Pc.h: Likewise.
16891         * lib/unictype/categ_Pd.h: Likewise.
16892         * lib/unictype/categ_Pe.h: Likewise.
16893         * lib/unictype/categ_Pf.h: Likewise.
16894         * lib/unictype/categ_Pi.h: Likewise.
16895         * lib/unictype/categ_Po.h: Likewise.
16896         * lib/unictype/categ_Ps.h: Likewise.
16897         * lib/unictype/categ_S.h: Likewise.
16898         * lib/unictype/categ_Sc.h: Likewise.
16899         * lib/unictype/categ_Sk.h: Likewise.
16900         * lib/unictype/categ_Sm.h: Likewise.
16901         * lib/unictype/categ_So.h: Likewise.
16902         * lib/unictype/categ_Z.h: Likewise.
16903         * lib/unictype/categ_Zl.h: Likewise.
16904         * lib/unictype/categ_Zp.h: Likewise.
16905         * lib/unictype/categ_Zs.h: Likewise.
16906         * lib/unictype/categ_of.h: Likewise.
16907         * lib/unictype/combining.h: Likewise.
16908         * lib/unictype/ctype_alnum.h: Likewise.
16909         * lib/unictype/ctype_alpha.h: Likewise.
16910         * lib/unictype/ctype_blank.h: Likewise.
16911         * lib/unictype/ctype_cntrl.h: Likewise.
16912         * lib/unictype/ctype_digit.h: Likewise.
16913         * lib/unictype/ctype_graph.h: Likewise.
16914         * lib/unictype/ctype_lower.h: Likewise.
16915         * lib/unictype/ctype_print.h: Likewise.
16916         * lib/unictype/ctype_punct.h: Likewise.
16917         * lib/unictype/ctype_space.h: Likewise.
16918         * lib/unictype/ctype_upper.h: Likewise.
16919         * lib/unictype/ctype_xdigit.h: Likewise.
16920         * lib/unictype/decdigit.h: Likewise.
16921         * lib/unictype/digit.h: Likewise.
16922         * lib/unictype/mirror.h: Likewise.
16923         * lib/unictype/numeric.h: Likewise.
16924         * lib/unictype/pr_alphabetic.h: Likewise.
16925         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16926         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16927         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16928         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16929         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16930         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16931         * lib/unictype/pr_bidi_control.h: Likewise.
16932         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16933         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16934         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16935         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16936         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16937         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16938         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16939         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16940         * lib/unictype/pr_bidi_pdf.h: Likewise.
16941         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16942         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16943         * lib/unictype/pr_combining.h: Likewise.
16944         * lib/unictype/pr_composite.h: Likewise.
16945         * lib/unictype/pr_currency_symbol.h: Likewise.
16946         * lib/unictype/pr_dash.h: Likewise.
16947         * lib/unictype/pr_decimal_digit.h: Likewise.
16948         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16949         * lib/unictype/pr_deprecated.h: Likewise.
16950         * lib/unictype/pr_diacritic.h: Likewise.
16951         * lib/unictype/pr_extender.h: Likewise.
16952         * lib/unictype/pr_format_control.h: Likewise.
16953         * lib/unictype/pr_grapheme_base.h: Likewise.
16954         * lib/unictype/pr_grapheme_extend.h: Likewise.
16955         * lib/unictype/pr_grapheme_link.h: Likewise.
16956         * lib/unictype/pr_hex_digit.h: Likewise.
16957         * lib/unictype/pr_hyphen.h: Likewise.
16958         * lib/unictype/pr_id_continue.h: Likewise.
16959         * lib/unictype/pr_id_start.h: Likewise.
16960         * lib/unictype/pr_ideographic.h: Likewise.
16961         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16962         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16963         * lib/unictype/pr_ignorable_control.h: Likewise.
16964         * lib/unictype/pr_iso_control.h: Likewise.
16965         * lib/unictype/pr_join_control.h: Likewise.
16966         * lib/unictype/pr_left_of_pair.h: Likewise.
16967         * lib/unictype/pr_line_separator.h: Likewise.
16968         * lib/unictype/pr_logical_order_exception.h: Likewise.
16969         * lib/unictype/pr_lowercase.h: Likewise.
16970         * lib/unictype/pr_math.h: Likewise.
16971         * lib/unictype/pr_non_break.h: Likewise.
16972         * lib/unictype/pr_not_a_character.h: Likewise.
16973         * lib/unictype/pr_numeric.h: Likewise.
16974         * lib/unictype/pr_other_alphabetic.h: Likewise.
16975         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16976         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16977         * lib/unictype/pr_other_id_continue.h: Likewise.
16978         * lib/unictype/pr_other_id_start.h: Likewise.
16979         * lib/unictype/pr_other_lowercase.h: Likewise.
16980         * lib/unictype/pr_other_math.h: Likewise.
16981         * lib/unictype/pr_other_uppercase.h: Likewise.
16982         * lib/unictype/pr_paired_punctuation.h: Likewise.
16983         * lib/unictype/pr_paragraph_separator.h: Likewise.
16984         * lib/unictype/pr_pattern_syntax.h: Likewise.
16985         * lib/unictype/pr_pattern_white_space.h: Likewise.
16986         * lib/unictype/pr_private_use.h: Likewise.
16987         * lib/unictype/pr_punctuation.h: Likewise.
16988         * lib/unictype/pr_quotation_mark.h: Likewise.
16989         * lib/unictype/pr_radical.h: Likewise.
16990         * lib/unictype/pr_sentence_terminal.h: Likewise.
16991         * lib/unictype/pr_soft_dotted.h: Likewise.
16992         * lib/unictype/pr_space.h: Likewise.
16993         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16994         * lib/unictype/pr_titlecase.h: Likewise.
16995         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16996         * lib/unictype/pr_unified_ideograph.h: Likewise.
16997         * lib/unictype/pr_uppercase.h: Likewise.
16998         * lib/unictype/pr_variation_selector.h: Likewise.
16999         * lib/unictype/pr_white_space.h: Likewise.
17000         * lib/unictype/pr_xid_continue.h: Likewise.
17001         * lib/unictype/pr_xid_start.h: Likewise.
17002         * lib/unictype/pr_zero_width.h: Likewise.
17003         * lib/unictype/scripts.h: Likewise.
17004         * lib/unictype/scripts_byname.gperf: Likewise.
17005         * lib/unictype/sy_c_ident.h: Likewise.
17006         * lib/unictype/sy_c_whitespace.h: Likewise.
17007         * lib/unictype/sy_java_ident.h: Likewise.
17008         * lib/unictype/sy_java_whitespace.h: Likewise.
17009
17010         * lib/unictype/Makefile: New file.
17011         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
17012         glibc.
17013         * lib/unictype/3level.h: New file, copied from glibc.
17014         * lib/unictype/3levelbit.h: New file.
17015
17016 2007-11-11  Bruno Haible  <bruno@clisp.org>
17017
17018         * modules/gperf: New file.
17019         * modules/iconv_open (Depends-on): Add it.
17020         (Makefile.am): Remove the GPERF definition.
17021
17022 2007-11-11  Bruno Haible  <bruno@clisp.org>
17023
17024         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
17025         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
17026
17027 2007-11-11  Bruno Haible  <bruno@clisp.org>
17028
17029         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
17030         (usage): Remove function.
17031
17032 2007-11-11  Bruno Haible  <bruno@clisp.org>
17033
17034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
17035         gl_FUNC_CEILF_LIBS.
17036         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
17037         gl_FUNC_CEIL_LIBS.
17038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
17039         gl_FUNC_CEILL_LIBS.
17040         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
17041         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
17042         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
17043
17044 2007-11-11  Bruno Haible  <bruno@clisp.org>
17045
17046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
17047         roundf were declared but do not exist on functions.
17048         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
17049         roundl were declared but do not exist on functions.
17050         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
17051         HAVE_FLOORL_AND_CEILL, respectively.
17052         Needed for Sun C on Solaris 10.
17053
17054 2007-11-11  Bruno Haible  <bruno@clisp.org>
17055
17056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
17057         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
17058         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
17059         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
17060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
17061         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
17062         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
17063         HAVE_DECL_ROUNDF.
17064         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
17065         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
17066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
17067         of HAVE_DECL_ROUND*.
17068         * modules/math (Makefile.am): Update.
17069
17070 2007-11-10  Bruno Haible  <bruno@clisp.org>
17071
17072         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
17073         ptrdiff_t as m4/intl.m4.
17074
17075 2007-11-10  Jim Meyering  <meyering@redhat.com>
17076
17077         Avoid link failure for the argmatch test.
17078         * tests/test-argmatch.c (usage): Define function to avoid a link
17079         failure: argmatch_die requires a usage function.
17080
17081 2007-11-09  Bruno Haible  <bruno@clisp.org>
17082
17083         * doc/functions/snprintf.texi: Mention BeOS deficiency.
17084         * doc/functions/vsnprintf.texi: Likewise.
17085         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
17086         with a size argument < 2.
17087
17088 2007-11-09  Bruno Haible  <bruno@clisp.org>
17089
17090         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
17091         buffer. Fixes an inefficiency introduced on 2007-11-03.
17092
17093 2007-11-09  Bruno Haible  <bruno@clisp.org>
17094
17095         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
17096         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
17097
17098 2007-11-08  Jim Meyering  <meyering@redhat.com>
17099
17100         Change cache variable name prefix "jm_" to "gl_" everywhere.
17101         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
17102         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
17103         * m4/uptime.m4: s/gl_/jm_/
17104
17105 2007-11-07  Bruno Haible  <bruno@clisp.org>
17106
17107         Update to GNU gettext 0.17.
17108         * m4/intl.m4: Update to GNU gettext 0.17.
17109         * m4/po.m4: Likewise.
17110         * modules/gettext (Files): Remove m4/ulonglong.m4.
17111         (configure.ac): Require gettext infrastructure from version 0.17.
17112
17113 2007-11-06  Bruno Haible  <bruno@clisp.org>
17114
17115         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
17116         symbolic values are not defined in a public header.
17117         * lib/freadable.c (freadable) [QNX]: Likewise.
17118         * lib/freadahead.c (freadahead) [QNX]: Likewise.
17119         * lib/freading.c (freading) [QNX]: Likewise.
17120         * lib/fseterr.c (fseterr) [QNX]: Likewise.
17121         * lib/fwritable.c (fwritable) [QNX]: Likewise.
17122         * lib/fwriting.c (fwriting) [QNX]: Likewise.
17123         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
17124         Reported by Alain Magloire.
17125
17126         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
17127
17128 2007-11-05  Bruno Haible  <bruno@clisp.org>
17129
17130         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
17131         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
17132         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
17133         Reported by Eric Blake.
17134
17135 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17136             Bruno Haible  <bruno@clisp.org>
17137
17138         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
17139         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
17140         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
17141         (malloc): Undefine also before including <stdlib.h>.
17142         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
17143         Needed on OSF/1 4.0.
17144
17145 2007-11-05  Jim Meyering  <meyering@redhat.com>
17146
17147         git-version-gen: sync from coreutils.
17148         * build-aux/git-version-gen: Add comments.
17149         Change the first '-' to '.' in the snapshot version string,
17150         e.g., 6.9-377-08144 -> 6.9.377-08144
17151         Remove first parameter.
17152         Don't declare a version "-dirty" merely because a time
17153         stamp has changed.
17154
17155 2007-11-04  Bruno Haible  <bruno@clisp.org>
17156
17157         * lib/lock.h: Protect all macro definitions containing an 'if'
17158         statement through a "do { ... } while (0)".
17159         * lib/tls.h: Likewise.
17160
17161 2007-11-04  Bruno Haible  <bruno@clisp.org>
17162
17163         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
17164
17165 2007-11-04  Bruno Haible  <bruno@clisp.org>
17166
17167         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
17168         * modules/fprintf-posix (Depends-on): Add nocrash.
17169         * modules/snprintf-posix (Depends-on): Likewise.
17170         * modules/sprintf-posix (Depends-on): Likewise.
17171         * modules/vasnprintf-posix (Depends-on): Likewise.
17172         * modules/vasprintf-posix (Depends-on): Likewise.
17173         * modules/vfprintf-posix (Depends-on): Likewise.
17174         * modules/vsnprintf-posix (Depends-on): Likewise.
17175         * modules/vsprintf-posix (Depends-on): Likewise.
17176         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17177         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17178         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17179         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17180         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17181         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17182         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17183
17184 2007-11-04  Bruno Haible  <bruno@clisp.org>
17185
17186         * modules/nocrash: New file.
17187         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
17188         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
17189
17190 2007-11-04  Bruno Haible  <bruno@clisp.org>
17191
17192         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
17193         precision handling.
17194         * tests/test-vasprintf-posix.c (test_function): Likewise.
17195         * tests/test-snprintf-posix.h (test_function): Likewise.
17196         * tests/test-sprintf-posix.h (test_function): Likewise.
17197
17198         Fix *printf behaviour for large precisions on mingw and BeOS.
17199         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
17200         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
17201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
17202         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17204         gl_PRINTF_PRECISION and test its result. Invoke
17205         gl_PREREQ_VASNPRINTF_PRECISION.
17206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17213         * doc/functions/fprintf.texi: Update.
17214         * doc/functions/printf.texi: Update.
17215         * doc/functions/snprintf.texi: Update.
17216         * doc/functions/sprintf.texi: Update.
17217         * doc/functions/vfprintf.texi: Update.
17218         * doc/functions/vprintf.texi: Update.
17219         * doc/functions/vsnprintf.texi: Update.
17220         * doc/functions/vsprintf.texi: Update.
17221
17222 2007-11-04  Bruno Haible  <bruno@clisp.org>
17223
17224         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
17225
17226 2007-11-04  Bruno Haible  <bruno@clisp.org>
17227
17228         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
17229         Reported by Sylvain Beucler <beuc@gnu.org>.
17230
17231 2007-11-03  Bruno Haible  <bruno@clisp.org>
17232
17233         * tests/test-fprintf-posix2.sh: New file.
17234         * tests/test-fprintf-posix2.c: New file.
17235         * modules/fprintf-posix-tests (Files): Add them.
17236         (TESTS): Add test-fprintf-posix2.sh.
17237         (configure.ac): Check for getrlimit and setrlimit.
17238         (check_PROGRAMS): Add test-fprintf-posix2.
17239
17240         * tests/test-printf-posix2.sh: New file.
17241         * tests/test-printf-posix2.c: New file.
17242         * modules/printf-posix-tests (Files): Add them.
17243         (TESTS): Add test-printf-posix2.sh.
17244         (configure.ac): Check for getrlimit and setrlimit.
17245         (check_PROGRAMS): Add test-printf-posix2.
17246
17247         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
17248         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
17249         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
17250         (decode_double): New function, copied from decode_long_double.
17251         (scale10_round_decimal_decoded): New function, extracted from
17252         scale10_round_decimal_long_double.
17253         (scale10_round_decimal_long_double): Use it.
17254         (scale10_round_decimal_double): New function.
17255         (floorlog10): New function.
17256         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
17257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
17258         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17260         gl_PRINTF_ENOMEM and test its result. Invoke
17261         gl_PREREQ_VASNPRINTF_ENOMEM.
17262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17269         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
17270         * modules/snprintf-posix (Depends-on): Likewise.
17271         * modules/sprintf-posix (Depends-on): Likewise.
17272         * modules/vasnprintf-posix (Depends-on): Likewise.
17273         * modules/vasprintf-posix (Depends-on): Likewise.
17274         * modules/vfprintf-posix (Depends-on): Likewise.
17275         * modules/vsnprintf-posix (Depends-on): Likewise.
17276         * modules/vsprintf-posix (Depends-on): Likewise.
17277         * doc/functions/fprintf.texi: Update.
17278         * doc/functions/printf.texi: Update.
17279         * doc/functions/snprintf.texi: Update.
17280         * doc/functions/sprintf.texi: Update.
17281         * doc/functions/vfprintf.texi: Update.
17282         * doc/functions/vprintf.texi: Update.
17283         * doc/functions/vsnprintf.texi: Update.
17284         * doc/functions/vsprintf.texi: Update.
17285
17286 2007-11-03  Bruno Haible  <bruno@clisp.org>
17287
17288         * modules/frexp-nolibm-tests: New file.
17289
17290         * modules/frexp-nolibm: New file.
17291         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
17292
17293 2007-11-03  Bruno Haible  <bruno@clisp.org>
17294
17295         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
17296         value is C99 compliant.
17297         Needed for OSF/1 5.1.
17298
17299 2007-11-03  Bruno Haible  <bruno@clisp.org>
17300
17301         Fix out-of-memory handling of vasnprintf.
17302         * lib/printf-parse.c: Include <errno.h>.
17303         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
17304         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
17305         is already set.
17306
17307 2007-11-02  Eric Blake  <ebb9@byu.net>
17308
17309         Fix tests on cygwin.
17310         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
17311
17312 2007-11-01  Bruno Haible  <bruno@clisp.org>
17313
17314         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
17315         warning.
17316         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
17317         needed for POSIX compatibility.
17318
17319 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17320
17321         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
17322         for compatibility with GNU.
17323
17324 2007-11-01  Bruno Haible  <bruno@clisp.org>
17325
17326         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
17327         (putenv): Renamed from rpl_putenv. Change argument type from
17328         'const char *' to 'char *'.
17329         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
17330         of defining putenv in config.h, just set REPLACE_PUTENV.
17331         * modules/putenv (Depends-on): Add stdlib.
17332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17333         (Include): Use <stdlib.h>.
17334         * lib/stdlib.in.h (putenv): New declaration.
17335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
17336         REPLACE_PUTENV.
17337         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
17338         REPLACE_PUTENV.
17339         Needed for MacOS X 10.5.0.
17340         Reported by Peter O'Gorman <peter@pogma.com>.
17341
17342 2007-11-01  Jim Meyering  <meyering@redhat.com>
17343
17344         Treat an empty date string exactly like "0".
17345         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
17346         if the remaining date string (to be parsed) is empty, use "0".
17347         Reported by Mischa Molhoek and discussed in this thread:
17348         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
17349
17350 2007-10-31  Bruno Haible  <bruno@clisp.org>
17351
17352         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
17353         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
17354         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
17355         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
17356         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
17357         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
17358
17359 2007-10-31  Bruno Haible  <bruno@clisp.org>
17360
17361         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
17362         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
17363         (AC_TYPE_LONG_LONG_INT): Use it.
17364         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
17365         it as well.
17366         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
17367         to m4/longlong.m4.
17368         * modules/stdint (Files): Remove m4/ulonglong.m4.
17369         * modules/strtoull (Files): Use m4/longlong.m4 instead of
17370         m4/ulonglong.m4.
17371         * modules/strtoumax (Files): Likewise.
17372
17373 2007-10-30  Bruno Haible  <bruno@clisp.org>
17374
17375         * modules/xvasprintf-posix: New file.
17376         Suggested by Eric Blake.
17377
17378 2007-10-30  Bruno Haible  <bruno@clisp.org>
17379
17380         * modules/xprintf-posix-tests: New file.
17381         * tests/test-xprintf-posix.sh: New file.
17382         * tests/test-xprintf-posix.c: New file.
17383         * tests/test-xfprintf-posix.c: New file.
17384
17385         * modules/xprintf-posix: New file.
17386
17387 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17388
17389         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
17390         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
17391         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
17392
17393 2007-10-29  Bruno Haible  <bruno@clisp.org>
17394
17395         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
17396         contain the special marker '_cv_'.
17397         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17400         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17402         Reported by Ralf Wildenhues.
17403
17404 2007-10-29  Bruno Haible  <bruno@clisp.org>
17405
17406         * gnulib-tool (func_import): When --lgpl is not specified, set
17407         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
17408         GPLv3.
17409         Reported by Simon Josefsson.
17410
17411 2007-10-28  Bruno Haible  <bruno@clisp.org>
17412
17413         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
17414         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
17415         HAVE_DECL_ISFINITE.
17416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17417         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
17418         HAVE_DECL_ISFINITE.
17419
17420 2007-10-28  Bruno Haible  <bruno@clisp.org>
17421
17422         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
17423         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
17424
17425 2007-10-28  Bruno Haible  <bruno@clisp.org>
17426
17427         Fix link errors with Sun C 5.0 on Solaris 10.
17428         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
17429         function is declared but not present in the compiler's libm.
17430         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17431         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17432         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
17433         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
17434         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
17435         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
17436         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
17437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
17438         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
17439         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
17440         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
17441         HAVE_DECL_FLOORL.
17442
17443 2007-10-28  Bruno Haible  <bruno@clisp.org>
17444
17445         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
17446         gl_FUNC_FLOORL. Cache the result.
17447         (gl_FUNC_FLOORL): Use it.
17448         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
17449         gl_FUNC_CEILL. Cache the result.
17450         (gl_FUNC_CEILL): Use it.
17451
17452         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
17453         gl_FUNC_FLOOR. Cache the result.
17454         (gl_FUNC_FLOOR): Use it.
17455         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
17456         gl_FUNC_CEIL. Cache the result.
17457         (gl_FUNC_CEIL): Use it.
17458
17459         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
17460         gl_FUNC_FLOORF. Cache the result.
17461         (gl_FUNC_FLOORF): Use it.
17462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
17463         gl_FUNC_CEILF. Cache the result.
17464         (gl_FUNC_CEILF): Use it.
17465
17466 2007-10-28  Bruno Haible  <bruno@clisp.org>
17467
17468         * gnulib-tool: Allow specifying the LGPL version number through
17469         --lgpl=2 or --lgpl=3.
17470         (func_usage): Document --lgpl with argument.
17471         Handle --lgpl=... arguments.
17472         (func_import): Recognize also gl_LGPL calls with an argument. When
17473         --lgpl=2 is used and the module's license is just LGPL, report an
17474         error. Set sed_transform_lib_file according to the lgpl variable. In
17475         the generated files, use --lgpl or gl_LGPL invocations with argument,
17476         if necessary.
17477         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
17478         an LGPv2+ license.
17479         * doc/gnulib-tool.texi (Modified imports): Update explanation of
17480         gl_LGPL macro.
17481
17482 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17483             Bruno Haible  <bruno@clisp.org>
17484
17485         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
17486         (u16_uctomb_aux): Likewise.
17487         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
17488         !HAVE_INLINE.
17489         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
17490
17491 2007-10-28  Bruno Haible  <bruno@clisp.org>
17492
17493         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
17494         Invoke AM_GETTEXT_OPTION if it exists.
17495         * modules/vasprintf: Likewise.
17496         * modules/verror: Likewise.
17497         * modules/xprintf: Likewise.
17498         * modules/xvasprintf: Likewise.
17499
17500 2007-10-27  Ben Pfaff  <blp@gnu.org>
17501
17502         * lib/math.in.h: Define isfinite macro and prototypes for
17503         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
17504         implementations.
17505         * m4/math_h.m4: New substitutions for isfinite module.
17506         * lib/isfinite.c: New file.
17507         * m4/isfinite.m4: New file.
17508         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
17509         * modules/isfinite: New file.
17510         * modules/isfinite-tests: New file.
17511         * tests/tests-isfinite.c: New file.
17512         * doc/functions/isfinite.texi: Mention isfinite module.
17513         * MODULES.html.sh: Mention new module.
17514
17515 2007-10-27  Ben Pfaff  <blp@gnu.org>
17516
17517         Ralf Wildenhues reported that Tru64 4.0D declares the round
17518         functions but does not have definitions.
17519         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
17520         cannot be found in any library, set the output variable to
17521         "missing" instead of "".
17522         * m4/round.m4: Also use our substitute if we cannot find round in
17523         any library, even if it is declared.
17524         * m4/roundf.m4: Likewise for roundf.
17525         * m4/roundl.m4: Likewise for roundl.
17526         * lib/math.in.h: Undefine roundf, round, roundl before defining
17527         their replacements, to allow for hypothetical systems where these
17528         may be defined as macros but not available in libraries.
17529
17530 2007-10-27  Bruno Haible  <bruno@clisp.org>
17531
17532         * doc/gnulib.texi: Invoke @firstparagraphindent.
17533         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
17534         changes in gnulib.
17535         (Source changes): New section.
17536
17537 2007-10-26  Bruno Haible  <bruno@clisp.org>
17538
17539         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
17540         borrowed from autoconf.
17541
17542 2007-10-26  Bruno Haible  <bruno@clisp.org>
17543
17544         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
17545         strerror returned the empty string. Needed on HP-UX 11.00.
17546
17547 2007-10-24  Micah Cowan  <micah@cowan.name>
17548
17549         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
17550         * build-aux/bootstrap: Remove support for now-unnecessary option,
17551         --cvs-user, and envvars CVS_USER, CVS_RSH.
17552
17553 2007-10-24  Jim Meyering  <meyering@redhat.com>
17554
17555         Avoid diagnostics from sha1sum when there is no cached checksum.
17556         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
17557         if the po.s1 file hasn't been created yet.
17558
17559         * build-aux/bootstrap: Sync from coreutils:
17560         2007-10-24  Jim Meyering  <meyering@redhat.com>
17561         Get gnulib from the git repository, not from an obsolete cvs one.
17562         * build-aux/bootstrap: Suggestion from Micah Cowan.
17563         2007-10-04  Jim Meyering  <jim@meyering.net>
17564         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
17565         (update_po_files): Work also when there are no .po files in po/.
17566
17567 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         * README: Append ".git" to git and cg examples.
17570         Problem reported by Benoit Sigoure.
17571
17572 2007-10-23  Micah Cowan  <micah@cowan.name>
17573
17574         * users.txt: Add wget.
17575
17576 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17577
17578         Fix linking of some unistdio tests on FreeBSD.
17579         * modules/unistdio/u16-vsnprintf-tests
17580         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
17581         * modules/unistdio/u16-vsprintf-tests
17582         (test_u16_vsnprintf1_LDADD): Likewise.
17583         * modules/unistdio/u32-vsnprintf-tests
17584         (test_u32_vsnprintf1_LDADD): Likewise.
17585         * modules/unistdio/u32-vsprintf-tests
17586         (test_u32_vsprintf1_LDADD): Likewise.
17587         * modules/unistdio/u8-vsnprintf-tests
17588         (test_u8_vsnprintf1_LDADD): Likewise.
17589         * modules/unistdio/u8-vsprintf-tests
17590         (test_u8_vsprintf1_LDADD): Likewise.
17591         * modules/unistdio/ulc-vsnprintf-tests
17592         (test_ulc_vsnprintf1_LDADD): Likewise.
17593         * modules/unistdio/ulc-vsprintf-tests
17594         (test_ulc_vsprintf1_LDADD): Likewise.
17595
17596         Fix linking of some uniconv tests on FreeBSD.
17597         * modules/uniconv/u16-conv-from-enc-tests
17598         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
17599         * modules/uniconv/u16-conv-to-enc-tests
17600         (test_u16_conv_to_enc_LDADD): Likewise.
17601         * modules/uniconv/u16-strconv-from-enc-tests
17602         (test_u16_strconv_from_enc_LDADD): Likewise.
17603         * modules/uniconv/u16-strconv-to-enc-tests
17604         (test_u16_strconv_to_enc_LDADD): Likewise.
17605         * modules/uniconv/u32-conv-from-enc-tests
17606         (test_u32_conv_from_enc_LDADD): Likewise.
17607         * modules/uniconv/u32-conv-to-enc-tests
17608         (test_u32_conv_to_enc_LDADD): Likewise.
17609         * modules/uniconv/u32-strconv-from-enc-tests
17610         (test_u32_strconv_from_enc_LDADD): Likewise.
17611         * modules/uniconv/u32-strconv-to-enc-tests
17612         (test_u32_strconv_to_enc_LDADD): Likewise.
17613         * modules/uniconv/u8-conv-from-enc-tests
17614         (test_u8_conv_from_enc_LDADD): Likewise.
17615         * modules/uniconv/u8-conv-to-enc-tests
17616         (test_u8_conv_to_enc_LDADD): Likewise.
17617         * modules/uniconv/u8-strconv-from-enc-tests
17618         (test_u8_strconv_from_enc_LDADD): Likewise.
17619         * modules/uniconv/u8-strconv-to-enc-tests
17620         (test_u8_strconv_to_enc_LDADD): Likewise.
17621
17622 2007-10-22  Bruno Haible  <bruno@clisp.org>
17623
17624         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
17625         size.
17626
17627 2007-10-22  Eric Blake  <ebb9@byu.net>
17628
17629         Tweak x*printf documentation.
17630         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
17631         variable name and comments.
17632         Suggested by Bruno Haible.
17633
17634 2007-10-22  Bruno Haible  <bruno@clisp.org>
17635
17636         * lib/acl.c (copy_acl): Fix file name in comment.
17637
17638 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         Fix Tru64 problem with stdbool.h.
17641         * lib/stdbool.in.h (false, true):
17642         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
17643         Don't declare as an enum in this situation; it runs afoul of Tru64.
17644         Problem reported by Steven M. Schweda in
17645         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
17646
17647 2007-10-22  Eric Blake  <ebb9@byu.net>
17648
17649         Also wrap vf?printf.
17650         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
17651         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
17652         (xvprintf, xvfprintf): New functions.
17653
17654 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17655
17656         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
17657         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
17658
17659         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
17660         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
17661
17662 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17663
17664         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
17665         by Bruno Haible.
17666
17667 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17668
17669         * lib/getloadavg.c
17670         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
17671         Undef `sys' after including sys/table.h, for Tru64 4.0D.
17672
17673         * tests/test-i-ring.c: Work for C89.
17674
17675 2007-10-22  Bruno Haible  <bruno@clisp.org>
17676
17677         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
17678         -1u, in preprocessor expression, so that we don't test for the bug
17679         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
17680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
17681
17682 2007-10-22  Eric Blake  <ebb9@byu.net>
17683
17684         * tests/test-yesno.sh: Silence stderr during test.
17685
17686 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17687
17688         * modules/crypto/gc-camellia: New file.
17689
17690         * m4/gc-camellia.m4: New file.
17691
17692         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
17693
17694         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
17695
17696 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17697
17698         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
17699         --help to stdout.  Reported by sms@antinode.org (Steven
17700         M. Schweda).
17701
17702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
17703
17704         * users.txt: Fix link to libksba.
17705
17706 2007-10-21  Ben Pfaff  <blp@gnu.org>
17707
17708         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
17709         round.c roundf implementation that depends on floorf and ceilf to
17710         be tested unconditionally.
17711
17712 2007-10-21  Ben Pfaff  <blp@gnu.org>
17713
17714         * m4/check-libm-func.m4: Removed.
17715         * m4/check-math-lib.m4: New file.
17716         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
17717         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
17718         definition and lack of AC_LIBOBJ([roundf]).
17719         * m4/roundl.m4: Ditto, and similarly for roundl.
17720         * modules/round: Reference new m4 file.
17721         * modules/roundf: Ditto.
17722         * modules/roundl: Ditto.
17723         * tests/test-round2.c (main): Use ROUND instead of round.
17724         Bug report from Bruno Haible.
17725
17726 2007-10-21  Bruno Haible  <bruno@clisp.org>
17727
17728         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
17729         context.
17730
17731 2007-10-21  Bruno Haible  <bruno@clisp.org>
17732
17733         * tests/test-wcwidth.c (main): Allow negative result for some control
17734         characters.
17735
17736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
17737         Needed on OSF/1 5.1.
17738
17739 2007-10-21  Bruno Haible  <bruno@clisp.org>
17740
17741         * tests/test-floorf1.c: Include isnanf.h.
17742         (main): Use isnanf() instead of isnan().
17743         * tests/test-ceilf1.c: Include isnanf.h.
17744         (main): Use isnanf() instead of isnan().
17745         * tests/test-truncf1.c: Include isnanf.h.
17746         (main): Use isnanf() instead of isnan().
17747         * tests/test-roundf1.c: Include isnanf.h.
17748         (main): Use isnanf() instead of isnan().
17749
17750 2007-10-21  Eric Blake  <ebb9@byu.net>
17751
17752         * users.txt: Update URL for m4.
17753
17754 2007-10-21  Bruno Haible  <bruno@clisp.org>
17755
17756         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
17757
17758 2007-10-21  Bruno Haible  <bruno@clisp.org>
17759
17760         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
17761         Git's management files if the CVS files are not present.
17762
17763 2007-10-20  Bruno Haible  <bruno@clisp.org>
17764
17765         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
17766         gcc-3.4.x.
17767
17768 2007-10-20  Ben Pfaff  <blp@gnu.org>
17769
17770         * lib/math.in.h: Declare round, roundf, roundl if we are providing
17771         implementations.
17772         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
17773         * lib/round.c: New file.
17774         * lib/roundf.c: New file.
17775         * lib/roundl.c: New file.
17776         * m4/round.m4: New file.
17777         * m4/roundf.m4: New file.
17778         * m4/roundl.m4: New file.
17779         * m4/check-libm-func-m4: New file.
17780         * modules/math: Replace round, roundf, roundl related @VARS@ in
17781         math.in.h.
17782         * modules/round: New file.
17783         * modules/round-tests: New file.
17784         * modules/roundf: New file.
17785         * modules/roundf-tests: New file.
17786         * modules/roundl: New file.
17787         * modules/roundl-tests: New file.
17788         * tests/test-round1.c: New file.
17789         * tests/test-round2.c: New file.
17790         * tests/test-roundf1.c: New file.
17791         * tests/test-roundf2.c: New file.
17792         * tests/test-roundl.c: New file.
17793         * doc/functions/round.texi: Mention round module.
17794         * doc/functions/roundf.texi: Mention roundf module.
17795         * doc/functions/roundl.texi: Mention roundl module.
17796         * MODULES.html.sh: Mention new modules.
17797         Thanks to Bruno Haible for suggestions.
17798
17799 2007-10-20  Jim Meyering  <meyering@redhat.com>
17800
17801         * lib/xprintf.c: Include <config.h> unconditionally.
17802
17803         Change xprintf's license to GPL.
17804         * modules/xprintf (License): s/LGPL/GPL/, since this module
17805         depends on modules (exit and exitfail) which are GPL.
17806         Suggestion from Bruno Haible.
17807
17808         xprintf fixes.
17809         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
17810         Use a clearer diagnostic.
17811         Patch from Bruno Haible.
17812
17813 2007-10-20  Bruno Haible  <bruno@clisp.org>
17814
17815         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
17816         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
17817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17818
17819 2007-10-20  Bruno Haible  <bruno@clisp.org>
17820
17821         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
17822         precision in the comparison result > x - 1 or similar.
17823         * tests/test-ceilf2.c (correct_result_p): Likewise.
17824         * tests/test-truncf2.c (correct_result_p): Likewise.
17825         * tests/test-trunc2.c (correct_result_p): Likewise.
17826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17827
17828 2007-10-20  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/ceil: New file.
17831         * m4/ceil.m4: New file.
17832         * doc/functions/ceil.texi: Mention the 'ceil' module.
17833
17834 2007-10-20  Bruno Haible  <bruno@clisp.org>
17835
17836         * modules/floor: New file.
17837         * m4/floor.m4: New file.
17838         * doc/functions/floor.texi: Mention the 'floor' module.
17839
17840 2007-10-20  Bruno Haible  <bruno@clisp.org>
17841
17842         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
17843         of %a.
17844         * modules/floorf-tests (Depends-on): Likewise.
17845         * modules/truncf-tests (Depends-on): Likewise.
17846         * modules/trunc-tests (Depends-on): Likewise.
17847         Reported by Ben Pfaff.
17848
17849 2007-10-19  Jim Meyering  <meyering@redhat.com>
17850
17851         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
17852         Don't bother testing specific errno values.  Just test ferror.
17853
17854         New module: xprintf
17855         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
17856
17857 2007-10-19  Bruno Haible  <bruno@clisp.org>
17858
17859         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
17860         syntax.
17861         * modules/javaexec (Makefile.am): Likewise.
17862         * modules/relocatable-prog (Makefile.am): Likewise.
17863         Suggested by Jim Meyering.
17864
17865 2007-10-18  Bruno Haible  <bruno@clisp.org>
17866
17867         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
17868         Reported by Jim Meyering.
17869
17870 2007-10-18  Eric Blake  <ebb9@byu.net>
17871
17872         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
17873
17874 2007-10-18  Bruno Haible  <bruno@clisp.org>
17875
17876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
17877         the format string into writable memory. Needed in Fortify conditions.
17878
17879 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
17880             Bruno Haible  <bruno@clisp.org>
17881
17882         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
17883         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
17884         * modules/trim (Depends-on): Add mbchar.
17885         (configure.ac): Add gl_FUNC_MBRTOWC.
17886         (Makefile.am): Augment lib_SOURCES.
17887
17888 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17889
17890         Modify glob.c to use fstatat and dirfd, to simplify it.
17891         Suggested by Eric Blake.
17892         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
17893         Don't include <stdbool.h>; not used.
17894         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
17895         (link_exists_p): Simplify implementation, since we can now assume
17896         dirfd and fstatat.
17897         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
17898
17899 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17900
17901         * gnulib-tool (func_get_dependencies): Fix sed script to
17902         match only tests.
17903
17904 2007-10-17  Bruno Haible  <bruno@clisp.org>
17905
17906         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
17907         allow locale names without encoding suffix.
17908         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17910
17911 2007-10-16  Bruno Haible  <bruno@clisp.org>
17912
17913         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
17914         * lib/getgroups.c (getgroups): Likewise.
17915         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
17916
17917 2007-10-16  Bruno Haible  <bruno@clisp.org>
17918
17919         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
17920         * modules/malloc-posix (License): Likewise.
17921         * modules/realloc-posix (License): Likewise.
17922         * modules/calloc-posix (License): Likewise.
17923         * modules/intprops (License): Change from GPL to LGPL, with
17924         Paul Eggert's approval.
17925
17926 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17927
17928         Merge glibc changes into lib/glob.c.
17929
17930         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
17931         2007-10-15 04:59:03 UTC.  Here are the changes:
17932
17933         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
17934
17935         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
17936
17937         * lib/glob.c: Add some branch prediction throughout.
17938
17939         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
17940
17941         [BZ #5103]
17942         * lib/glob.c (glob): Recognize patterns starting \/.
17943
17944         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
17945
17946         [BZ #3996]
17947         * lib/glob.c (attribute_hidden): Define if not defined.
17948         (glob): Unescape dirname, filename or username when needed and not
17949         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
17950         is NULL.  Handle unescaped [ in pattern without closing ].
17951         Don't pass GLOB_CHECK down to recursive glob for directories.
17952         (__glob_pattern_type): New function.
17953         (__glob_pattern_p): Implement using __glob_pattern_type.
17954         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
17955         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
17956         Remove unreachable code.
17957
17958         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
17959
17960         * lib/glob.c (glob_in_dir): Add some comments and asserts to
17961         explain why there are no leaks.
17962
17963         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
17964
17965         [BZ #3253]
17966         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
17967         time, rather allocate increasingly bigger arrays of pointers, if
17968         possible with alloca, if too large with malloc.
17969
17970 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17971
17972         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
17973         Problem reported by H.Merijn Brand in
17974         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
17975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
17976         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
17977
17978 2007-10-15  Bruno Haible  <bruno@clisp.org>
17979
17980         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
17981         with explicit rpl_ prefix.
17982         * lib/fopen.c (fopen): Likewise.
17983         * lib/freopen.c (freopen): Likewise.
17984         * lib/iconv.c (iconv): Likewise.
17985         * lib/iconv_close.c (iconv_close): Likewise.
17986
17987 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17988
17989         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
17990
17991 2007-10-15  Bruno Haible  <bruno@clisp.org>
17992
17993         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
17994         <stddef.h> instead of <stdlib.h> since we only need NULL.
17995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17996
17997 2007-10-15  Bruno Haible  <bruno@clisp.org>
17998
17999         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
18000         Replace paragraph talking about LIBOBJS.
18001         Reported by Colin Watson <cjwatson@debian.org>.
18002
18003 2007-10-15  Bruno Haible  <bruno@clisp.org>
18004
18005         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
18006         <stdlib.h> before using NULL.
18007
18008 2007-10-15  Simon Josefsson  <simon@josefsson.org>
18009
18010         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
18011         Reported by Albert Chin <china@thewrittenword.com>.
18012
18013 2007-10-14  Bruno Haible  <bruno@clisp.org>
18014
18015         * modules/iconv_open-utf-tests: New file.
18016         * tests/test-iconv-utf.c: New file.
18017
18018         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
18019         * modules/iconv_open-utf: New file.
18020         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
18021         (iconv, iconv_close): New declarations.
18022         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
18023         be defined.
18024         (iconv_open): Add special handling of conversion between UTF-8 and
18025         UTF-{16,32}{BE,LE}.
18026         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
18027         * lib/iconv_close.c: New file.
18028         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
18029         gl_FUNC_ICONV_OPEN.
18030         (gl_FUNC_ICONV_OPEN): Use it.
18031         (gl_FUNC_ICONV_OPEN_UTF): New macro.
18032         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
18033         and REPLACE_ICONV_UTF.
18034         * modules/iconv_open (Depends-on): Add c-strcase.
18035         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
18036         ICONV_CONST.
18037         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
18038
18039 2007-10-13  Albert Chin  <china@thewrittenword.com>
18040             Bruno Haible  <bruno@clisp.org>
18041
18042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
18043         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
18044
18045 2007-10-13  Bruno Haible  <bruno@clisp.org>
18046
18047         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
18048         defined, use the ISO C99 inline semantics.
18049         * lib/argp.h (ARGP_EI): Likewise.
18050
18051 2007-10-13  Bruno Haible  <bruno@clisp.org>
18052
18053         Handle 'inline' change in gcc 4.3.0.
18054         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
18055         argp_fmtstream_write, argp_fmtstream_set_lmargin,
18056         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
18057         argp_fmtstream_point): Disable 'extern' declaration if the function
18058         definition is going to be provided inline.
18059         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
18060         semantics, not the ISO C99 inline semantics.
18061         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
18062         'extern' declaration if the function definition is going to be provided
18063         inline.
18064         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
18065         the GNU C inline semantics, not the ISO C99 inline semantics. With
18066         GCC 4.2, avoid a warning.
18067
18068 2007-10-13  Bruno Haible  <bruno@clisp.org>
18069
18070         * lib/freading.h (freading): Enable the use of __freading for
18071         glibc >= 2.7.
18072         * lib/freading.c (freading): Likewise.
18073
18074 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18075
18076         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
18077         "warning: C99 inline functions are not supported; using GNU89".
18078
18079 2007-10-12  Bruno Haible  <bruno@clisp.org>
18080
18081         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
18082         of 2.
18083         * tests/test-ceilf2.c: New file.
18084         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
18085
18086         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
18087         * modules/ceilf-tests: Update.
18088
18089 2007-10-12  Bruno Haible  <bruno@clisp.org>
18090
18091         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
18092         of 2.
18093         * tests/test-floorf2.c: New file.
18094         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
18095
18096         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
18097         * modules/floorf-tests: Update.
18098
18099 2007-10-12  Bruno Haible  <bruno@clisp.org>
18100
18101         * tests/test-trunc2.c: New file.
18102         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
18103
18104         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
18105         * modules/trunc-tests: Update.
18106
18107 2007-10-12  Bruno Haible  <bruno@clisp.org>
18108
18109         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
18110         of 2.
18111         * tests/test-truncf2.c: New file.
18112         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
18113
18114         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
18115         * modules/truncf-tests: Update.
18116
18117 2007-10-11  Eric Blake  <ebb9@byu.net>
18118
18119         Don't claim strerror is broken on Interix.
18120         * doc/functions/strerror.texi (strerror): Known broken systems are
18121         now Solaris 8, and not Interix.
18122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
18123         Interix on cross-compile.
18124         Reported by Martin Koeppe in
18125         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
18126
18127 2007-10-11  Bruno Haible  <bruno@clisp.org>
18128
18129         * modules/i-ring-tests: New file.
18130         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
18131         instead of assert.
18132
18133 2007-10-11  Bruno Haible  <bruno@clisp.org>
18134
18135         * modules/filenamecat-tests: New file.
18136         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
18137         * lib/filenamecat.c: Remove test code.
18138
18139 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18140
18141         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
18142
18143         * lib/strerror.c: Include <string.h> always, to test interface,
18144         and to remove the need for the dummy.
18145         Include intprops.h to compute width instead of doing it ourselves
18146         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
18147         (strerror): Define it to return NULL if there's no system strerror.
18148         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
18149         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
18150         ancient pre-strerror Unix systems well any more.  Saying "unknown
18151         system error" is enough.
18152         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
18153         simpler strerror.c implementation.
18154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
18155         Simplify the tests to reflect the simpler strerror implementation.
18156         * modules/strerror (Depends-on): Add intprops.
18157
18158 2007-10-09  Eric Blake  <ebb9@byu.net>
18159
18160         Silence test-fpending.
18161         * modules/fpending-tests (Files): Add wrapper script.
18162         * tests/test-fpending.sh: New file.
18163
18164 2007-10-09  Bruno Haible  <bruno@clisp.org>
18165
18166         * MODULES.html.sh (func_module): Don't create a hyperlink for
18167         function names like 'printf_frexp'.
18168         (Misc): Add crc, memxor.
18169         (Characteristics of floating types): New section.
18170         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
18171         isnanf-nolibm, signbit, trunc, truncf, truncl.
18172         (Enhancements for ISO C 99 functions): New subsection Input/output.
18173         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
18174         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
18175         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
18176         (Compatibility checks for POSIX:2001 functions): Add clock-time.
18177         (Enhancements for POSIX:2001 functions): Add chdir-long.
18178         (File system functions): Add areadlink, chdir-safer, read-file.
18179         Remove cycle-check.
18180         (File system as inode set): New section.
18181         (Date and time): Add gethrxtime.
18182         (Multithreading): Add openmp.
18183         (Internationalization functions): Add localename.
18184         (Unicode string functions): Add unistr/u*-mbsnlen.
18185         (Support for maintaining and releasing projects): Add git-version-gen.
18186         (Lone files): Remove directories.
18187
18188 2007-10-08  Ben Pfaff  <blp@gnu.org>
18189
18190         * lib/xmalloca.h: Fix typo in comment.
18191
18192 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18193
18194         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
18195         when avoiding problems with integer overflow.  Use a portable test
18196         instead.
18197
18198 2007-10-08  Simon Josefsson  <simon@josefsson.org>
18199
18200         * modules/dummy (License): Change to LGPLv2+.
18201         * modules/float (License): Likewise
18202         * modules/realloc (License): Likewise
18203         * modules/stdlib (License): Likewise
18204
18205 2007-10-07  Bruno Haible  <bruno@clisp.org>
18206
18207         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
18208         * floor.c (TWO_MANT_DIG): Likewise.
18209         * ceil.c (TWO_MANT_DIG): Likewise.
18210         Reported by Ben Pfaff.
18211
18212 2007-10-07  Bruno Haible  <bruno@clisp.org>
18213
18214         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
18215         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
18216         * lib/frexp.c (FUNC): Likewise.
18217         * lib/printf-frexp.h (printf_frexp): Likewise.
18218         * lib/printf-frexpl.h (printf_frexpl): Likewise.
18219         * lib/printf-frexp.c (FUNC): Likewise.
18220         Suggested by Jim Meyering.
18221
18222 2007-10-07  Jim Meyering  <meyering@redhat.com>
18223
18224         Make xnanosleep's integer overflow test more robust.
18225         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
18226         so that gcc-4.3.0 doesn't optimize away this test for overflow.
18227
18228 2007-10-07  Bruno Haible  <bruno@clisp.org>
18229
18230         * NEWS: Mention the license change.
18231
18232         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
18233         abbreviations in the modules files.
18234
18235         Change copyright notice from GPLv2+ to GPLv3+.
18236         * README: Change copyright notice.
18237         * MODULES.html.sh: Likewise.
18238         * build-aux/bootstrap.conf: Likewise.
18239         * build-aux/config.libpath: Likewise.
18240         * build-aux/csharpcomp.sh.in: Likewise.
18241         * build-aux/csharpexec.sh.in: Likewise.
18242         * build-aux/install-reloc: Likewise.
18243         * build-aux/javacomp.sh.in: Likewise.
18244         * build-aux/javaexec.sh.in: Likewise.
18245         * build-aux/ldd.sh.in: Likewise.
18246         * build-aux/reloc-ldflags: Likewise.
18247         * build-aux/relocatable.sh.in: Likewise.
18248         * build-aux/x-to-1.in: Likewise.
18249         * check-module: Likewise.
18250         * config/srclistvars.sh: Likewise.
18251         * gnulib-tool: Likewise.
18252         * lib/acl-internal.h: Likewise.
18253         * lib/acl.c: Likewise.
18254         * lib/acl.h: Likewise.
18255         * lib/acl_entries.c: Likewise.
18256         * lib/areadlink-with-size.c: Likewise.
18257         * lib/areadlink.c: Likewise.
18258         * lib/areadlink.h: Likewise.
18259         * lib/argmatch.c: Likewise.
18260         * lib/argmatch.h: Likewise.
18261         * lib/argp-ba.c: Likewise.
18262         * lib/argp-eexst.c: Likewise.
18263         * lib/argp-fmtstream.c: Likewise.
18264         * lib/argp-fmtstream.h: Likewise.
18265         * lib/argp-fs-xinl.c: Likewise.
18266         * lib/argp-help.c: Likewise.
18267         * lib/argp-namefrob.h: Likewise.
18268         * lib/argp-parse.c: Likewise.
18269         * lib/argp-pin.c: Likewise.
18270         * lib/argp-pv.c: Likewise.
18271         * lib/argp-pvh.c: Likewise.
18272         * lib/argp-xinl.c: Likewise.
18273         * lib/argp.h: Likewise.
18274         * lib/at-func.c: Likewise.
18275         * lib/atanl.c: Likewise.
18276         * lib/backupfile.c: Likewise.
18277         * lib/backupfile.h: Likewise.
18278         * lib/basename.c: Likewise.
18279         * lib/binary-io.h: Likewise.
18280         * lib/byteswap.in.h: Likewise.
18281         * lib/c-stack.c: Likewise.
18282         * lib/c-stack.h: Likewise.
18283         * lib/c-strcasestr.c: Likewise.
18284         * lib/c-strcasestr.h: Likewise.
18285         * lib/c-strstr.c: Likewise.
18286         * lib/c-strstr.h: Likewise.
18287         * lib/c-strtod.c: Likewise.
18288         * lib/calloc.c: Likewise.
18289         * lib/canon-host.c: Likewise.
18290         * lib/canon-host.h: Likewise.
18291         * lib/canonicalize-lgpl.c: Likewise.
18292         * lib/canonicalize.c: Likewise.
18293         * lib/canonicalize.h: Likewise.
18294         * lib/ceil.c: Likewise.
18295         * lib/ceilf.c: Likewise.
18296         * lib/ceill.c: Likewise.
18297         * lib/chdir-long.c: Likewise.
18298         * lib/chdir-long.h: Likewise.
18299         * lib/chdir-safer.c: Likewise.
18300         * lib/chdir-safer.h: Likewise.
18301         * lib/chown.c: Likewise.
18302         * lib/classpath.c: Likewise.
18303         * lib/classpath.h: Likewise.
18304         * lib/clean-temp.c: Likewise.
18305         * lib/clean-temp.h: Likewise.
18306         * lib/cloexec.c: Likewise.
18307         * lib/close-stream.c: Likewise.
18308         * lib/closein.c: Likewise.
18309         * lib/closein.h: Likewise.
18310         * lib/closeout.c: Likewise.
18311         * lib/closeout.h: Likewise.
18312         * lib/concat-filename.c: Likewise.
18313         * lib/copy-file.c: Likewise.
18314         * lib/copy-file.h: Likewise.
18315         * lib/count-one-bits.h: Likewise.
18316         * lib/crc.c: Likewise.
18317         * lib/crc.h: Likewise.
18318         * lib/creat-safer.c: Likewise.
18319         * lib/csharpcomp.c: Likewise.
18320         * lib/csharpcomp.h: Likewise.
18321         * lib/csharpexec.c: Likewise.
18322         * lib/csharpexec.h: Likewise.
18323         * lib/cycle-check.c: Likewise.
18324         * lib/cycle-check.h: Likewise.
18325         * lib/diacrit.c: Likewise.
18326         * lib/diacrit.h: Likewise.
18327         * lib/diffseq.h: Likewise.
18328         * lib/dirchownmod.c: Likewise.
18329         * lib/dirent.in.h: Likewise.
18330         * lib/dirfd.c: Likewise.
18331         * lib/dirfd.h: Likewise.
18332         * lib/dirname.c: Likewise.
18333         * lib/dirname.h: Likewise.
18334         * lib/dummy.c: Likewise.
18335         * lib/dup-safer.c: Likewise.
18336         * lib/dup2.c: Likewise.
18337         * lib/eealloc.h: Likewise.
18338         * lib/error.c: Likewise.
18339         * lib/error.h: Likewise.
18340         * lib/euidaccess.c: Likewise.
18341         * lib/exclude.c: Likewise.
18342         * lib/exclude.h: Likewise.
18343         * lib/execute.c: Likewise.
18344         * lib/execute.h: Likewise.
18345         * lib/exitfail.c: Likewise.
18346         * lib/exitfail.h: Likewise.
18347         * lib/expl.c: Likewise.
18348         * lib/fatal-signal.c: Likewise.
18349         * lib/fatal-signal.h: Likewise.
18350         * lib/fbufmode.c: Likewise.
18351         * lib/fbufmode.h: Likewise.
18352         * lib/fchdir.c: Likewise.
18353         * lib/fchmodat.c: Likewise.
18354         * lib/fchownat.c: Likewise.
18355         * lib/fcntl--.h: Likewise.
18356         * lib/fcntl-safer.h: Likewise.
18357         * lib/fcntl.in.h: Likewise.
18358         * lib/fd-safer.c: Likewise.
18359         * lib/fflush.c: Likewise.
18360         * lib/file-has-acl.c: Likewise.
18361         * lib/file-set.c: Likewise.
18362         * lib/file-type.c: Likewise.
18363         * lib/file-type.h: Likewise.
18364         * lib/fileblocks.c: Likewise.
18365         * lib/filemode.c: Likewise.
18366         * lib/filemode.h: Likewise.
18367         * lib/filename.h: Likewise.
18368         * lib/filenamecat.c: Likewise.
18369         * lib/filenamecat.h: Likewise.
18370         * lib/findprog.c: Likewise.
18371         * lib/findprog.h: Likewise.
18372         * lib/float.in.h: Likewise.
18373         * lib/floor.c: Likewise.
18374         * lib/floorf.c: Likewise.
18375         * lib/floorl.c: Likewise.
18376         * lib/fopen-safer.c: Likewise.
18377         * lib/fopen.c: Likewise.
18378         * lib/fpending.c: Likewise.
18379         * lib/fpending.h: Likewise.
18380         * lib/fprintf.c: Likewise.
18381         * lib/fprintftime.h: Likewise.
18382         * lib/fpucw.h: Likewise.
18383         * lib/fpurge.c: Likewise.
18384         * lib/fpurge.h: Likewise.
18385         * lib/freadable.c: Likewise.
18386         * lib/freadable.h: Likewise.
18387         * lib/freadahead.c: Likewise.
18388         * lib/freadahead.h: Likewise.
18389         * lib/freading.c: Likewise.
18390         * lib/freading.h: Likewise.
18391         * lib/free.c: Likewise.
18392         * lib/freopen.c: Likewise.
18393         * lib/frexp.c: Likewise.
18394         * lib/frexpl.c: Likewise.
18395         * lib/fseek.c: Likewise.
18396         * lib/fseterr.c: Likewise.
18397         * lib/fseterr.h: Likewise.
18398         * lib/fstatat.c: Likewise.
18399         * lib/fstrcmp.c: Likewise.
18400         * lib/fstrcmp.h: Likewise.
18401         * lib/fsusage.c: Likewise.
18402         * lib/fsusage.h: Likewise.
18403         * lib/ftell.c: Likewise.
18404         * lib/ftello.c: Likewise.
18405         * lib/fts-cycle.c: Likewise.
18406         * lib/fts.c: Likewise.
18407         * lib/fts_.h: Likewise.
18408         * lib/full-read.c: Likewise.
18409         * lib/full-read.h: Likewise.
18410         * lib/full-write.c: Likewise.
18411         * lib/full-write.h: Likewise.
18412         * lib/fwritable.c: Likewise.
18413         * lib/fwritable.h: Likewise.
18414         * lib/fwriteerror.c: Likewise.
18415         * lib/fwriteerror.h: Likewise.
18416         * lib/fwriting.c: Likewise.
18417         * lib/fwriting.h: Likewise.
18418         * lib/gcd.c: Likewise.
18419         * lib/gcd.h: Likewise.
18420         * lib/getcwd.c: Likewise.
18421         * lib/getdate.h: Likewise.
18422         * lib/getdate.y: Likewise.
18423         * lib/getdomainname.c: Likewise.
18424         * lib/getdomainname.h: Likewise.
18425         * lib/getgroups.c: Likewise.
18426         * lib/gethostname.c: Likewise.
18427         * lib/gethrxtime.c: Likewise.
18428         * lib/gethrxtime.h: Likewise.
18429         * lib/getloadavg.c: Likewise.
18430         * lib/getndelim2.c: Likewise.
18431         * lib/getndelim2.h: Likewise.
18432         * lib/getnline.c: Likewise.
18433         * lib/getnline.h: Likewise.
18434         * lib/getopt.c: Likewise.
18435         * lib/getopt.in.h: Likewise.
18436         * lib/getopt1.c: Likewise.
18437         * lib/getopt_int.h: Likewise.
18438         * lib/getpagesize.h: Likewise.
18439         * lib/getsubopt.c: Likewise.
18440         * lib/gettime.c: Likewise.
18441         * lib/getugroups.c: Likewise.
18442         * lib/getugroups.h: Likewise.
18443         * lib/getusershell.c: Likewise.
18444         * lib/gl_anyavltree_list1.h: Likewise.
18445         * lib/gl_anyavltree_list2.h: Likewise.
18446         * lib/gl_anyhash_list1.h: Likewise.
18447         * lib/gl_anyhash_list2.h: Likewise.
18448         * lib/gl_anylinked_list1.h: Likewise.
18449         * lib/gl_anylinked_list2.h: Likewise.
18450         * lib/gl_anyrbtree_list1.h: Likewise.
18451         * lib/gl_anyrbtree_list2.h: Likewise.
18452         * lib/gl_anytree_list1.h: Likewise.
18453         * lib/gl_anytree_list2.h: Likewise.
18454         * lib/gl_anytree_oset.h: Likewise.
18455         * lib/gl_anytreehash_list1.h: Likewise.
18456         * lib/gl_anytreehash_list2.h: Likewise.
18457         * lib/gl_array_list.c: Likewise.
18458         * lib/gl_array_list.h: Likewise.
18459         * lib/gl_array_oset.c: Likewise.
18460         * lib/gl_array_oset.h: Likewise.
18461         * lib/gl_avltree_list.c: Likewise.
18462         * lib/gl_avltree_list.h: Likewise.
18463         * lib/gl_avltree_oset.c: Likewise.
18464         * lib/gl_avltree_oset.h: Likewise.
18465         * lib/gl_avltreehash_list.c: Likewise.
18466         * lib/gl_avltreehash_list.h: Likewise.
18467         * lib/gl_carray_list.c: Likewise.
18468         * lib/gl_carray_list.h: Likewise.
18469         * lib/gl_linked_list.c: Likewise.
18470         * lib/gl_linked_list.h: Likewise.
18471         * lib/gl_linkedhash_list.c: Likewise.
18472         * lib/gl_linkedhash_list.h: Likewise.
18473         * lib/gl_list.c: Likewise.
18474         * lib/gl_list.h: Likewise.
18475         * lib/gl_oset.c: Likewise.
18476         * lib/gl_oset.h: Likewise.
18477         * lib/gl_rbtree_list.c: Likewise.
18478         * lib/gl_rbtree_list.h: Likewise.
18479         * lib/gl_rbtree_oset.c: Likewise.
18480         * lib/gl_rbtree_oset.h: Likewise.
18481         * lib/gl_rbtreehash_list.c: Likewise.
18482         * lib/gl_rbtreehash_list.h: Likewise.
18483         * lib/gl_sublist.c: Likewise.
18484         * lib/gl_sublist.h: Likewise.
18485         * lib/group-member.c: Likewise.
18486         * lib/group-member.h: Likewise.
18487         * lib/hard-locale.c: Likewise.
18488         * lib/hard-locale.h: Likewise.
18489         * lib/hash-pjw.c: Likewise.
18490         * lib/hash-pjw.h: Likewise.
18491         * lib/hash-triple.c: Likewise.
18492         * lib/hash.c: Likewise.
18493         * lib/hash.h: Likewise.
18494         * lib/human.c: Likewise.
18495         * lib/human.h: Likewise.
18496         * lib/i-ring.c: Likewise.
18497         * lib/i-ring.h: Likewise.
18498         * lib/idcache.c: Likewise.
18499         * lib/imaxabs.c: Likewise.
18500         * lib/imaxdiv.c: Likewise.
18501         * lib/inet_pton.c: Likewise.
18502         * lib/inet_pton.h: Likewise.
18503         * lib/intprops.h: Likewise.
18504         * lib/inttostr.c: Likewise.
18505         * lib/inttostr.h: Likewise.
18506         * lib/inttypes.in.h: Likewise.
18507         * lib/isapipe.c: Likewise.
18508         * lib/isdir.c: Likewise.
18509         * lib/isnan.c: Likewise.
18510         * lib/isnan.h: Likewise.
18511         * lib/isnanf.c: Likewise.
18512         * lib/isnanf.h: Likewise.
18513         * lib/isnanl-nolibm.h: Likewise.
18514         * lib/isnanl.c: Likewise.
18515         * lib/isnanl.h: Likewise.
18516         * lib/javacomp.c: Likewise.
18517         * lib/javacomp.h: Likewise.
18518         * lib/javaexec.c: Likewise.
18519         * lib/javaexec.h: Likewise.
18520         * lib/javaversion.c: Likewise.
18521         * lib/javaversion.h: Likewise.
18522         * lib/javaversion.java: Likewise.
18523         * lib/lbrkprop.h: Likewise.
18524         * lib/lchmod.h: Likewise.
18525         * lib/lchown.c: Likewise.
18526         * lib/ldexpl.c: Likewise.
18527         * lib/linebreak.c: Likewise.
18528         * lib/linebreak.h: Likewise.
18529         * lib/linebuffer.c: Likewise.
18530         * lib/linebuffer.h: Likewise.
18531         * lib/locale.in.h: Likewise.
18532         * lib/logl.c: Likewise.
18533         * lib/long-options.c: Likewise.
18534         * lib/long-options.h: Likewise.
18535         * lib/lstat.c: Likewise.
18536         * lib/lstat.h: Likewise.
18537         * lib/math.in.h: Likewise.
18538         * lib/mbchar.c: Likewise.
18539         * lib/mbchar.h: Likewise.
18540         * lib/mbfile.h: Likewise.
18541         * lib/mbiter.h: Likewise.
18542         * lib/mbscasecmp.c: Likewise.
18543         * lib/mbscasestr.c: Likewise.
18544         * lib/mbschr.c: Likewise.
18545         * lib/mbscspn.c: Likewise.
18546         * lib/mbslen.c: Likewise.
18547         * lib/mbsncasecmp.c: Likewise.
18548         * lib/mbsnlen.c: Likewise.
18549         * lib/mbspbrk.c: Likewise.
18550         * lib/mbspcasecmp.c: Likewise.
18551         * lib/mbsrchr.c: Likewise.
18552         * lib/mbssep.c: Likewise.
18553         * lib/mbsspn.c: Likewise.
18554         * lib/mbsstr.c: Likewise.
18555         * lib/mbstok_r.c: Likewise.
18556         * lib/mbswidth.c: Likewise.
18557         * lib/mbswidth.h: Likewise.
18558         * lib/mbuiter.h: Likewise.
18559         * lib/memcasecmp.c: Likewise.
18560         * lib/memcasecmp.h: Likewise.
18561         * lib/memchr.c: Likewise.
18562         * lib/memcmp.c: Likewise.
18563         * lib/memcoll.c: Likewise.
18564         * lib/memcoll.h: Likewise.
18565         * lib/memcpy.c: Likewise.
18566         * lib/memrchr.c: Likewise.
18567         * lib/mkancesdirs.c: Likewise.
18568         * lib/mkdir-p.c: Likewise.
18569         * lib/mkdir-p.h: Likewise.
18570         * lib/mkdir.c: Likewise.
18571         * lib/mkdirat.c: Likewise.
18572         * lib/mkdtemp.c: Likewise.
18573         * lib/mkstemp-safer.c: Likewise.
18574         * lib/mkstemp.c: Likewise.
18575         * lib/modechange.c: Likewise.
18576         * lib/modechange.h: Likewise.
18577         * lib/mountlist.c: Likewise.
18578         * lib/mountlist.h: Likewise.
18579         * lib/mpsort.c: Likewise.
18580         * lib/nanosleep.c: Likewise.
18581         * lib/obstack.c: Likewise.
18582         * lib/obstack.h: Likewise.
18583         * lib/open-safer.c: Likewise.
18584         * lib/open.c: Likewise.
18585         * lib/openat-die.c: Likewise.
18586         * lib/openat-priv.h: Likewise.
18587         * lib/openat-proc.c: Likewise.
18588         * lib/openat.c: Likewise.
18589         * lib/openat.h: Likewise.
18590         * lib/pagealign_alloc.c: Likewise.
18591         * lib/pagealign_alloc.h: Likewise.
18592         * lib/physmem.c: Likewise.
18593         * lib/physmem.h: Likewise.
18594         * lib/pipe-safer.c: Likewise.
18595         * lib/pipe.c: Likewise.
18596         * lib/pipe.h: Likewise.
18597         * lib/posixtm.c: Likewise.
18598         * lib/posixtm.h: Likewise.
18599         * lib/posixver.c: Likewise.
18600         * lib/printf-frexp.c: Likewise.
18601         * lib/printf-frexp.h: Likewise.
18602         * lib/printf-frexpl.c: Likewise.
18603         * lib/printf-frexpl.h: Likewise.
18604         * lib/printf.c: Likewise.
18605         * lib/progname.c: Likewise.
18606         * lib/progname.h: Likewise.
18607         * lib/progreloc.c: Likewise.
18608         * lib/putenv.c: Likewise.
18609         * lib/quote.c: Likewise.
18610         * lib/quote.h: Likewise.
18611         * lib/quotearg.c: Likewise.
18612         * lib/quotearg.h: Likewise.
18613         * lib/raise.c: Likewise.
18614         * lib/readline.c: Likewise.
18615         * lib/readline.h: Likewise.
18616         * lib/readlink.c: Likewise.
18617         * lib/readtokens.c: Likewise.
18618         * lib/readtokens.h: Likewise.
18619         * lib/readtokens0.c: Likewise.
18620         * lib/readtokens0.h: Likewise.
18621         * lib/readutmp.c: Likewise.
18622         * lib/readutmp.h: Likewise.
18623         * lib/realloc.c: Likewise.
18624         * lib/relocwrapper.c: Likewise.
18625         * lib/rename-dest-slash.c: Likewise.
18626         * lib/rename.c: Likewise.
18627         * lib/rmdir.c: Likewise.
18628         * lib/rpmatch.c: Likewise.
18629         * lib/safe-read.c: Likewise.
18630         * lib/safe-read.h: Likewise.
18631         * lib/safe-write.c: Likewise.
18632         * lib/safe-write.h: Likewise.
18633         * lib/same-inode.h: Likewise.
18634         * lib/same.c: Likewise.
18635         * lib/same.h: Likewise.
18636         * lib/save-cwd.c: Likewise.
18637         * lib/save-cwd.h: Likewise.
18638         * lib/savedir.c: Likewise.
18639         * lib/savedir.h: Likewise.
18640         * lib/savewd.c: Likewise.
18641         * lib/savewd.h: Likewise.
18642         * lib/search.in.h: Likewise.
18643         * lib/setenv.c: Likewise.
18644         * lib/setenv.h: Likewise.
18645         * lib/settime.c: Likewise.
18646         * lib/sh-quote.c: Likewise.
18647         * lib/sh-quote.h: Likewise.
18648         * lib/sig2str.c: Likewise.
18649         * lib/sig2str.h: Likewise.
18650         * lib/signal.in.h: Likewise.
18651         * lib/signbitd.c: Likewise.
18652         * lib/signbitf.c: Likewise.
18653         * lib/signbitl.c: Likewise.
18654         * lib/sigprocmask.c: Likewise.
18655         * lib/sincosl.c: Likewise.
18656         * lib/sleep.c: Likewise.
18657         * lib/sprintf.c: Likewise.
18658         * lib/sqrtl.c: Likewise.
18659         * lib/stat-time.h: Likewise.
18660         * lib/stdio--.h: Likewise.
18661         * lib/stdio-safer.h: Likewise.
18662         * lib/stdlib--.h: Likewise.
18663         * lib/stdlib-safer.h: Likewise.
18664         * lib/stdlib.in.h: Likewise.
18665         * lib/stpcpy.c: Likewise.
18666         * lib/stpncpy.c: Likewise.
18667         * lib/strchrnul.c: Likewise.
18668         * lib/strcspn.c: Likewise.
18669         * lib/strerror.c: Likewise.
18670         * lib/strftime.c: Likewise.
18671         * lib/strftime.h: Likewise.
18672         * lib/striconveh.c: Likewise.
18673         * lib/striconveh.h: Likewise.
18674         * lib/striconveha.c: Likewise.
18675         * lib/striconveha.h: Likewise.
18676         * lib/stripslash.c: Likewise.
18677         * lib/strnlen1.c: Likewise.
18678         * lib/strnlen1.h: Likewise.
18679         * lib/strtod.c: Likewise.
18680         * lib/strtoimax.c: Likewise.
18681         * lib/strtok_r.c: Likewise.
18682         * lib/strtol.c: Likewise.
18683         * lib/strtoll.c: Likewise.
18684         * lib/strtoul.c: Likewise.
18685         * lib/strtoull.c: Likewise.
18686         * lib/sysexits.in.h: Likewise.
18687         * lib/tempname.c: Likewise.
18688         * lib/tempname.h: Likewise.
18689         * lib/timespec.h: Likewise.
18690         * lib/tls.c: Likewise.
18691         * lib/tls.h: Likewise.
18692         * lib/tmpdir.c: Likewise.
18693         * lib/tmpdir.h: Likewise.
18694         * lib/tmpfile-safer.c: Likewise.
18695         * lib/tmpfile.c: Likewise.
18696         * lib/trigl.c: Likewise.
18697         * lib/trigl.h: Likewise.
18698         * lib/trim.c: Likewise.
18699         * lib/trim.h: Likewise.
18700         * lib/trunc.c: Likewise.
18701         * lib/truncf.c: Likewise.
18702         * lib/truncl.c: Likewise.
18703         * lib/tsearch.c: Likewise.
18704         * lib/unicodeio.c: Likewise.
18705         * lib/unicodeio.h: Likewise.
18706         * lib/unistd--.h: Likewise.
18707         * lib/unistd-safer.h: Likewise.
18708         * lib/unistdio/ulc-fprintf.c: Likewise.
18709         * lib/unistdio/ulc-vfprintf.c: Likewise.
18710         * lib/unlinkdir.c: Likewise.
18711         * lib/unlinkdir.h: Likewise.
18712         * lib/unlocked-io.h: Likewise.
18713         * lib/unsetenv.c: Likewise.
18714         * lib/userspec.c: Likewise.
18715         * lib/utime.c: Likewise.
18716         * lib/utimecmp.c: Likewise.
18717         * lib/utimecmp.h: Likewise.
18718         * lib/utimens.c: Likewise.
18719         * lib/verify.h: Likewise.
18720         * lib/verror.c: Likewise.
18721         * lib/verror.h: Likewise.
18722         * lib/version-etc-fsf.c: Likewise.
18723         * lib/version-etc.c: Likewise.
18724         * lib/version-etc.h: Likewise.
18725         * lib/vfprintf.c: Likewise.
18726         * lib/vprintf.c: Likewise.
18727         * lib/vsprintf.c: Likewise.
18728         * lib/w32spawn.h: Likewise.
18729         * lib/wait-process.c: Likewise.
18730         * lib/wait-process.h: Likewise.
18731         * lib/wcwidth.c: Likewise.
18732         * lib/write-any-file.c: Likewise.
18733         * lib/xalloc-die.c: Likewise.
18734         * lib/xalloc.h: Likewise.
18735         * lib/xasprintf.c: Likewise.
18736         * lib/xgetcwd.c: Likewise.
18737         * lib/xgetcwd.h: Likewise.
18738         * lib/xgetdomainname.c: Likewise.
18739         * lib/xgetdomainname.h: Likewise.
18740         * lib/xgethostname.c: Likewise.
18741         * lib/xmalloc.c: Likewise.
18742         * lib/xmalloca.c: Likewise.
18743         * lib/xmalloca.h: Likewise.
18744         * lib/xmemcoll.c: Likewise.
18745         * lib/xnanosleep.c: Likewise.
18746         * lib/xreadlink.c: Likewise.
18747         * lib/xreadlink.h: Likewise.
18748         * lib/xsetenv.c: Likewise.
18749         * lib/xsetenv.h: Likewise.
18750         * lib/xstriconv.c: Likewise.
18751         * lib/xstriconv.h: Likewise.
18752         * lib/xstrndup.c: Likewise.
18753         * lib/xstrndup.h: Likewise.
18754         * lib/xstrtod.c: Likewise.
18755         * lib/xstrtod.h: Likewise.
18756         * lib/xstrtol-error.c: Likewise.
18757         * lib/xstrtol.c: Likewise.
18758         * lib/xstrtol.h: Likewise.
18759         * lib/xtime.h: Likewise.
18760         * lib/xvasprintf.c: Likewise.
18761         * lib/xvasprintf.h: Likewise.
18762         * lib/yesno.c: Likewise.
18763         * lib/yesno.h: Likewise.
18764         * posix-modules: Likewise.
18765         * tests/test-alloca-opt.c: Likewise.
18766         * tests/test-arcfour.c: Likewise.
18767         * tests/test-arctwo.c: Likewise.
18768         * tests/test-argmatch.c: Likewise.
18769         * tests/test-argp-2.sh: Likewise.
18770         * tests/test-argp.c: Likewise.
18771         * tests/test-arpa_inet.c: Likewise.
18772         * tests/test-array_list.c: Likewise.
18773         * tests/test-array_oset.c: Likewise.
18774         * tests/test-atexit.c: Likewise.
18775         * tests/test-avltree_list.c: Likewise.
18776         * tests/test-avltree_oset.c: Likewise.
18777         * tests/test-avltreehash_list.c: Likewise.
18778         * tests/test-base64.c: Likewise.
18779         * tests/test-binary-io.c: Likewise.
18780         * tests/test-byteswap.c: Likewise.
18781         * tests/test-c-ctype.c: Likewise.
18782         * tests/test-c-strcasecmp.c: Likewise.
18783         * tests/test-c-strcasestr.c: Likewise.
18784         * tests/test-c-strncasecmp.c: Likewise.
18785         * tests/test-c-strstr.c: Likewise.
18786         * tests/test-canonicalize-lgpl.c: Likewise.
18787         * tests/test-canonicalize.c: Likewise.
18788         * tests/test-carray_list.c: Likewise.
18789         * tests/test-ceilf.c: Likewise.
18790         * tests/test-ceill.c: Likewise.
18791         * tests/test-count-one-bits.c: Likewise.
18792         * tests/test-crc.c: Likewise.
18793         * tests/test-dirname.c: Likewise.
18794         * tests/test-fbufmode.c: Likewise.
18795         * tests/test-fcntl.c: Likewise.
18796         * tests/test-fflush.c: Likewise.
18797         * tests/test-floorf.c: Likewise.
18798         * tests/test-floorl.c: Likewise.
18799         * tests/test-fopen.c: Likewise.
18800         * tests/test-fprintf-posix.c: Likewise.
18801         * tests/test-fprintf-posix.h: Likewise.
18802         * tests/test-fpurge.c: Likewise.
18803         * tests/test-freadable.c: Likewise.
18804         * tests/test-freadahead.c: Likewise.
18805         * tests/test-freading.c: Likewise.
18806         * tests/test-freopen.c: Likewise.
18807         * tests/test-frexp.c: Likewise.
18808         * tests/test-frexpl.c: Likewise.
18809         * tests/test-fseek.c: Likewise.
18810         * tests/test-fseeko.c: Likewise.
18811         * tests/test-fseterr.c: Likewise.
18812         * tests/test-fstrcmp.c: Likewise.
18813         * tests/test-ftell.c: Likewise.
18814         * tests/test-ftello.c: Likewise.
18815         * tests/test-fwritable.c: Likewise.
18816         * tests/test-fwriting.c: Likewise.
18817         * tests/test-getaddrinfo.c: Likewise.
18818         * tests/test-getpass.c: Likewise.
18819         * tests/test-gettimeofday.c: Likewise.
18820         * tests/test-hmac-md5.c: Likewise.
18821         * tests/test-hmac-sha1.c: Likewise.
18822         * tests/test-iconv.c: Likewise.
18823         * tests/test-iconvme.c: Likewise.
18824         * tests/test-inttypes.c: Likewise.
18825         * tests/test-isnan.c: Likewise.
18826         * tests/test-isnanf.c: Likewise.
18827         * tests/test-isnanl-nolibm.c: Likewise.
18828         * tests/test-isnanl.c: Likewise.
18829         * tests/test-isnanl.h: Likewise.
18830         * tests/test-ldexpl.c: Likewise.
18831         * tests/test-linked_list.c: Likewise.
18832         * tests/test-linkedhash_list.c: Likewise.
18833         * tests/test-locale.c: Likewise.
18834         * tests/test-localename.c: Likewise.
18835         * tests/test-lock.c: Likewise.
18836         * tests/test-lseek.c: Likewise.
18837         * tests/test-malloca.c: Likewise.
18838         * tests/test-math.c: Likewise.
18839         * tests/test-mbscasecmp.c: Likewise.
18840         * tests/test-mbscasestr1.c: Likewise.
18841         * tests/test-mbscasestr2.c: Likewise.
18842         * tests/test-mbscasestr3.c: Likewise.
18843         * tests/test-mbscasestr4.c: Likewise.
18844         * tests/test-mbschr.c: Likewise.
18845         * tests/test-mbscspn.c: Likewise.
18846         * tests/test-mbsncasecmp.c: Likewise.
18847         * tests/test-mbspbrk.c: Likewise.
18848         * tests/test-mbspcasecmp.c: Likewise.
18849         * tests/test-mbsrchr.c: Likewise.
18850         * tests/test-mbsspn.c: Likewise.
18851         * tests/test-mbsstr1.c: Likewise.
18852         * tests/test-mbsstr2.c: Likewise.
18853         * tests/test-mbsstr3.c: Likewise.
18854         * tests/test-md5.c: Likewise.
18855         * tests/test-memmem.c: Likewise.
18856         * tests/test-netinet_in.c: Likewise.
18857         * tests/test-open.c: Likewise.
18858         * tests/test-printf-frexp.c: Likewise.
18859         * tests/test-printf-frexpl.c: Likewise.
18860         * tests/test-printf-posix.c: Likewise.
18861         * tests/test-printf-posix.h: Likewise.
18862         * tests/test-rbtree_list.c: Likewise.
18863         * tests/test-rbtree_oset.c: Likewise.
18864         * tests/test-rbtreehash_list.c: Likewise.
18865         * tests/test-read-file.c: Likewise.
18866         * tests/test-rijndael.c: Likewise.
18867         * tests/test-search.c: Likewise.
18868         * tests/test-signbit.c: Likewise.
18869         * tests/test-sleep.c: Likewise.
18870         * tests/test-snprintf-posix.c: Likewise.
18871         * tests/test-snprintf-posix.h: Likewise.
18872         * tests/test-snprintf.c: Likewise.
18873         * tests/test-sprintf-posix.c: Likewise.
18874         * tests/test-sprintf-posix.h: Likewise.
18875         * tests/test-stat-time.c: Likewise.
18876         * tests/test-stdbool.c: Likewise.
18877         * tests/test-stdint.c: Likewise.
18878         * tests/test-stdio.c: Likewise.
18879         * tests/test-stdlib.c: Likewise.
18880         * tests/test-stpncpy.c: Likewise.
18881         * tests/test-strcasestr.c: Likewise.
18882         * tests/test-striconv.c: Likewise.
18883         * tests/test-striconveh.c: Likewise.
18884         * tests/test-striconveha.c: Likewise.
18885         * tests/test-string.c: Likewise.
18886         * tests/test-sys_select.c: Likewise.
18887         * tests/test-sys_socket.c: Likewise.
18888         * tests/test-sys_stat.c: Likewise.
18889         * tests/test-sys_time.c: Likewise.
18890         * tests/test-sysexits.c: Likewise.
18891         * tests/test-time.c: Likewise.
18892         * tests/test-tls.c: Likewise.
18893         * tests/test-trunc.c: Likewise.
18894         * tests/test-truncf.c: Likewise.
18895         * tests/test-truncl.c: Likewise.
18896         * tests/test-unistd.c: Likewise.
18897         * tests/test-vasnprintf-posix.c: Likewise.
18898         * tests/test-vasnprintf-posix2.c: Likewise.
18899         * tests/test-vasnprintf.c: Likewise.
18900         * tests/test-vasprintf-posix.c: Likewise.
18901         * tests/test-vasprintf.c: Likewise.
18902         * tests/test-verify.c: Likewise.
18903         * tests/test-vfprintf-posix.c: Likewise.
18904         * tests/test-vprintf-posix.c: Likewise.
18905         * tests/test-vsnprintf-posix.c: Likewise.
18906         * tests/test-vsnprintf.c: Likewise.
18907         * tests/test-vsprintf-posix.c: Likewise.
18908         * tests/test-wchar.c: Likewise.
18909         * tests/test-wctype.c: Likewise.
18910         * tests/test-wcwidth.c: Likewise.
18911         * tests/test-xstrtol.c: Likewise.
18912         * tests/test-xvasprintf.c: Likewise.
18913         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18914         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18915         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18916         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18917         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18918         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18919         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18920         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18921         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18922         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18923         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18924         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18925         * tests/uniname/test-uninames.c: Likewise.
18926         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18927         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
18928         * tests/unistdio/test-u16-printf1.h: Likewise.
18929         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18930         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18931         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18932         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18933         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18934         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18935         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18936         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
18937         * tests/unistdio/test-u32-printf1.h: Likewise.
18938         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18939         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18940         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18941         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18942         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18943         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18944         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18945         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
18946         * tests/unistdio/test-u8-printf1.h: Likewise.
18947         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18948         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18949         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18950         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18951         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18952         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18953         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18954         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
18955         * tests/unistdio/test-ulc-printf1.h: Likewise.
18956         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18957         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18958         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18959         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18960         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18961         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18962         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18963         * tests/uniwidth/test-u16-width.c: Likewise.
18964         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18965         * tests/uniwidth/test-u32-width.c: Likewise.
18966         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18967         * tests/uniwidth/test-u8-width.c: Likewise.
18968         * tests/uniwidth/test-uc_width.c: Likewise.
18969         * config/srclist-update: Likewise.
18970         (fixlicense): Update to GPLv3+.
18971
18972         Change copyright notice from LGPLv2.1+ to LGPLv3+.
18973         * tests/test-tsearch.c: Change copyright notice.
18974
18975         Change copyright notice from LGPLv2.0+ to LGPLv3+.
18976         * lib/c-strcaseeq.h: Change copyright notice.
18977         * lib/streq.h: Likewise.
18978         * lib/uniconv.h: Likewise.
18979         * lib/uniconv/u-conv-from-enc.h: Likewise.
18980         * lib/uniconv/u-conv-to-enc.h: Likewise.
18981         * lib/uniconv/u-strconv-from-enc.h: Likewise.
18982         * lib/uniconv/u-strconv-to-enc.h: Likewise.
18983         * lib/uniconv/u16-conv-from-enc.c: Likewise.
18984         * lib/uniconv/u16-conv-to-enc.c: Likewise.
18985         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
18986         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
18987         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
18988         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
18989         * lib/uniconv/u32-conv-from-enc.c: Likewise.
18990         * lib/uniconv/u32-conv-to-enc.c: Likewise.
18991         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
18992         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
18993         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
18994         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
18995         * lib/uniconv/u8-conv-from-enc.c: Likewise.
18996         * lib/uniconv/u8-conv-to-enc.c: Likewise.
18997         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
18998         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
18999         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
19000         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
19001         * lib/uniname.h: Likewise.
19002         * lib/uniname/uniname.c: Likewise.
19003         * lib/unistdio.h: Likewise.
19004         * lib/unistdio/u-asnprintf.h: Likewise.
19005         * lib/unistdio/u-asprintf.h: Likewise.
19006         * lib/unistdio/u-printf-args.c: Likewise.
19007         * lib/unistdio/u-printf-args.h: Likewise.
19008         * lib/unistdio/u-printf-parse.h: Likewise.
19009         * lib/unistdio/u-snprintf.h: Likewise.
19010         * lib/unistdio/u-sprintf.h: Likewise.
19011         * lib/unistdio/u-vasprintf.h: Likewise.
19012         * lib/unistdio/u-vsnprintf.h: Likewise.
19013         * lib/unistdio/u-vsprintf.h: Likewise.
19014         * lib/unistdio/u16-asnprintf.c: Likewise.
19015         * lib/unistdio/u16-asprintf.c: Likewise.
19016         * lib/unistdio/u16-printf-parse.c: Likewise.
19017         * lib/unistdio/u16-snprintf.c: Likewise.
19018         * lib/unistdio/u16-sprintf.c: Likewise.
19019         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
19020         * lib/unistdio/u16-u16-asprintf.c: Likewise.
19021         * lib/unistdio/u16-u16-snprintf.c: Likewise.
19022         * lib/unistdio/u16-u16-sprintf.c: Likewise.
19023         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
19024         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
19025         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
19026         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
19027         * lib/unistdio/u16-vasnprintf.c: Likewise.
19028         * lib/unistdio/u16-vasprintf.c: Likewise.
19029         * lib/unistdio/u16-vsnprintf.c: Likewise.
19030         * lib/unistdio/u16-vsprintf.c: Likewise.
19031         * lib/unistdio/u32-asnprintf.c: Likewise.
19032         * lib/unistdio/u32-asprintf.c: Likewise.
19033         * lib/unistdio/u32-printf-parse.c: Likewise.
19034         * lib/unistdio/u32-snprintf.c: Likewise.
19035         * lib/unistdio/u32-sprintf.c: Likewise.
19036         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
19037         * lib/unistdio/u32-u32-asprintf.c: Likewise.
19038         * lib/unistdio/u32-u32-snprintf.c: Likewise.
19039         * lib/unistdio/u32-u32-sprintf.c: Likewise.
19040         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
19041         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
19042         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
19043         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
19044         * lib/unistdio/u32-vasnprintf.c: Likewise.
19045         * lib/unistdio/u32-vasprintf.c: Likewise.
19046         * lib/unistdio/u32-vsnprintf.c: Likewise.
19047         * lib/unistdio/u32-vsprintf.c: Likewise.
19048         * lib/unistdio/u8-asnprintf.c: Likewise.
19049         * lib/unistdio/u8-asprintf.c: Likewise.
19050         * lib/unistdio/u8-printf-parse.c: Likewise.
19051         * lib/unistdio/u8-snprintf.c: Likewise.
19052         * lib/unistdio/u8-sprintf.c: Likewise.
19053         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
19054         * lib/unistdio/u8-u8-asprintf.c: Likewise.
19055         * lib/unistdio/u8-u8-snprintf.c: Likewise.
19056         * lib/unistdio/u8-u8-sprintf.c: Likewise.
19057         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
19058         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
19059         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
19060         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
19061         * lib/unistdio/u8-vasnprintf.c: Likewise.
19062         * lib/unistdio/u8-vasprintf.c: Likewise.
19063         * lib/unistdio/u8-vsnprintf.c: Likewise.
19064         * lib/unistdio/u8-vsprintf.c: Likewise.
19065         * lib/unistdio/ulc-asnprintf.c: Likewise.
19066         * lib/unistdio/ulc-asprintf.c: Likewise.
19067         * lib/unistdio/ulc-printf-parse.c: Likewise.
19068         * lib/unistdio/ulc-snprintf.c: Likewise.
19069         * lib/unistdio/ulc-sprintf.c: Likewise.
19070         * lib/unistdio/ulc-vasnprintf.c: Likewise.
19071         * lib/unistdio/ulc-vasprintf.c: Likewise.
19072         * lib/unistdio/ulc-vsnprintf.c: Likewise.
19073         * lib/unistdio/ulc-vsprintf.c: Likewise.
19074         * lib/unistr.h: Likewise.
19075         * lib/unistr/u-cpy-alloc.h: Likewise.
19076         * lib/unistr/u-cpy.h: Likewise.
19077         * lib/unistr/u-endswith.h: Likewise.
19078         * lib/unistr/u-move.h: Likewise.
19079         * lib/unistr/u-set.h: Likewise.
19080         * lib/unistr/u-startswith.h: Likewise.
19081         * lib/unistr/u-stpcpy.h: Likewise.
19082         * lib/unistr/u-stpncpy.h: Likewise.
19083         * lib/unistr/u-strcat.h: Likewise.
19084         * lib/unistr/u-strcpy.h: Likewise.
19085         * lib/unistr/u-strcspn.h: Likewise.
19086         * lib/unistr/u-strdup.h: Likewise.
19087         * lib/unistr/u-strlen.h: Likewise.
19088         * lib/unistr/u-strncat.h: Likewise.
19089         * lib/unistr/u-strncpy.h: Likewise.
19090         * lib/unistr/u-strnlen.h: Likewise.
19091         * lib/unistr/u-strpbrk.h: Likewise.
19092         * lib/unistr/u-strspn.h: Likewise.
19093         * lib/unistr/u-strstr.h: Likewise.
19094         * lib/unistr/u-strtok.h: Likewise.
19095         * lib/unistr/u16-check.c: Likewise.
19096         * lib/unistr/u16-chr.c: Likewise.
19097         * lib/unistr/u16-cmp.c: Likewise.
19098         * lib/unistr/u16-cpy-alloc.c: Likewise.
19099         * lib/unistr/u16-cpy.c: Likewise.
19100         * lib/unistr/u16-endswith.c: Likewise.
19101         * lib/unistr/u16-mblen.c: Likewise.
19102         * lib/unistr/u16-mbsnlen.c: Likewise.
19103         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19104         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19105         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19106         * lib/unistr/u16-mbtouc.c: Likewise.
19107         * lib/unistr/u16-mbtoucr.c: Likewise.
19108         * lib/unistr/u16-move.c: Likewise.
19109         * lib/unistr/u16-next.c: Likewise.
19110         * lib/unistr/u16-prev.c: Likewise.
19111         * lib/unistr/u16-set.c: Likewise.
19112         * lib/unistr/u16-startswith.c: Likewise.
19113         * lib/unistr/u16-stpcpy.c: Likewise.
19114         * lib/unistr/u16-stpncpy.c: Likewise.
19115         * lib/unistr/u16-strcat.c: Likewise.
19116         * lib/unistr/u16-strchr.c: Likewise.
19117         * lib/unistr/u16-strcmp.c: Likewise.
19118         * lib/unistr/u16-strcpy.c: Likewise.
19119         * lib/unistr/u16-strcspn.c: Likewise.
19120         * lib/unistr/u16-strdup.c: Likewise.
19121         * lib/unistr/u16-strlen.c: Likewise.
19122         * lib/unistr/u16-strmblen.c: Likewise.
19123         * lib/unistr/u16-strmbtouc.c: Likewise.
19124         * lib/unistr/u16-strncat.c: Likewise.
19125         * lib/unistr/u16-strncmp.c: Likewise.
19126         * lib/unistr/u16-strncpy.c: Likewise.
19127         * lib/unistr/u16-strnlen.c: Likewise.
19128         * lib/unistr/u16-strpbrk.c: Likewise.
19129         * lib/unistr/u16-strrchr.c: Likewise.
19130         * lib/unistr/u16-strspn.c: Likewise.
19131         * lib/unistr/u16-strstr.c: Likewise.
19132         * lib/unistr/u16-strtok.c: Likewise.
19133         * lib/unistr/u16-to-u32.c: Likewise.
19134         * lib/unistr/u16-to-u8.c: Likewise.
19135         * lib/unistr/u16-uctomb-aux.c: Likewise.
19136         * lib/unistr/u16-uctomb.c: Likewise.
19137         * lib/unistr/u32-check.c: Likewise.
19138         * lib/unistr/u32-chr.c: Likewise.
19139         * lib/unistr/u32-cmp.c: Likewise.
19140         * lib/unistr/u32-cpy-alloc.c: Likewise.
19141         * lib/unistr/u32-cpy.c: Likewise.
19142         * lib/unistr/u32-endswith.c: Likewise.
19143         * lib/unistr/u32-mblen.c: Likewise.
19144         * lib/unistr/u32-mbsnlen.c: Likewise.
19145         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19146         * lib/unistr/u32-mbtouc.c: Likewise.
19147         * lib/unistr/u32-mbtoucr.c: Likewise.
19148         * lib/unistr/u32-move.c: Likewise.
19149         * lib/unistr/u32-next.c: Likewise.
19150         * lib/unistr/u32-prev.c: Likewise.
19151         * lib/unistr/u32-set.c: Likewise.
19152         * lib/unistr/u32-startswith.c: Likewise.
19153         * lib/unistr/u32-stpcpy.c: Likewise.
19154         * lib/unistr/u32-stpncpy.c: Likewise.
19155         * lib/unistr/u32-strcat.c: Likewise.
19156         * lib/unistr/u32-strchr.c: Likewise.
19157         * lib/unistr/u32-strcmp.c: Likewise.
19158         * lib/unistr/u32-strcpy.c: Likewise.
19159         * lib/unistr/u32-strcspn.c: Likewise.
19160         * lib/unistr/u32-strdup.c: Likewise.
19161         * lib/unistr/u32-strlen.c: Likewise.
19162         * lib/unistr/u32-strmblen.c: Likewise.
19163         * lib/unistr/u32-strmbtouc.c: Likewise.
19164         * lib/unistr/u32-strncat.c: Likewise.
19165         * lib/unistr/u32-strncmp.c: Likewise.
19166         * lib/unistr/u32-strncpy.c: Likewise.
19167         * lib/unistr/u32-strnlen.c: Likewise.
19168         * lib/unistr/u32-strpbrk.c: Likewise.
19169         * lib/unistr/u32-strrchr.c: Likewise.
19170         * lib/unistr/u32-strspn.c: Likewise.
19171         * lib/unistr/u32-strstr.c: Likewise.
19172         * lib/unistr/u32-strtok.c: Likewise.
19173         * lib/unistr/u32-to-u16.c: Likewise.
19174         * lib/unistr/u32-to-u8.c: Likewise.
19175         * lib/unistr/u32-uctomb.c: Likewise.
19176         * lib/unistr/u8-check.c: Likewise.
19177         * lib/unistr/u8-chr.c: Likewise.
19178         * lib/unistr/u8-cmp.c: Likewise.
19179         * lib/unistr/u8-cpy-alloc.c: Likewise.
19180         * lib/unistr/u8-cpy.c: Likewise.
19181         * lib/unistr/u8-endswith.c: Likewise.
19182         * lib/unistr/u8-mblen.c: Likewise.
19183         * lib/unistr/u8-mbsnlen.c: Likewise.
19184         * lib/unistr/u8-mbtouc-aux.c: Likewise.
19185         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19186         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19187         * lib/unistr/u8-mbtouc.c: Likewise.
19188         * lib/unistr/u8-mbtoucr.c: Likewise.
19189         * lib/unistr/u8-move.c: Likewise.
19190         * lib/unistr/u8-next.c: Likewise.
19191         * lib/unistr/u8-prev.c: Likewise.
19192         * lib/unistr/u8-set.c: Likewise.
19193         * lib/unistr/u8-startswith.c: Likewise.
19194         * lib/unistr/u8-stpcpy.c: Likewise.
19195         * lib/unistr/u8-stpncpy.c: Likewise.
19196         * lib/unistr/u8-strcat.c: Likewise.
19197         * lib/unistr/u8-strchr.c: Likewise.
19198         * lib/unistr/u8-strcmp.c: Likewise.
19199         * lib/unistr/u8-strcpy.c: Likewise.
19200         * lib/unistr/u8-strcspn.c: Likewise.
19201         * lib/unistr/u8-strdup.c: Likewise.
19202         * lib/unistr/u8-strlen.c: Likewise.
19203         * lib/unistr/u8-strmblen.c: Likewise.
19204         * lib/unistr/u8-strmbtouc.c: Likewise.
19205         * lib/unistr/u8-strncat.c: Likewise.
19206         * lib/unistr/u8-strncmp.c: Likewise.
19207         * lib/unistr/u8-strncpy.c: Likewise.
19208         * lib/unistr/u8-strnlen.c: Likewise.
19209         * lib/unistr/u8-strpbrk.c: Likewise.
19210         * lib/unistr/u8-strrchr.c: Likewise.
19211         * lib/unistr/u8-strspn.c: Likewise.
19212         * lib/unistr/u8-strstr.c: Likewise.
19213         * lib/unistr/u8-strtok.c: Likewise.
19214         * lib/unistr/u8-to-u16.c: Likewise.
19215         * lib/unistr/u8-to-u32.c: Likewise.
19216         * lib/unistr/u8-uctomb-aux.c: Likewise.
19217         * lib/unistr/u8-uctomb.c: Likewise.
19218         * lib/unitypes.h: Likewise.
19219         * lib/uniwidth.h: Likewise.
19220         * lib/uniwidth/cjk.h: Likewise.
19221         * lib/uniwidth/u16-strwidth.c: Likewise.
19222         * lib/uniwidth/u16-width.c: Likewise.
19223         * lib/uniwidth/u32-strwidth.c: Likewise.
19224         * lib/uniwidth/u32-width.c: Likewise.
19225         * lib/uniwidth/u8-strwidth.c: Likewise.
19226         * lib/uniwidth/u8-width.c: Likewise.
19227         * lib/uniwidth/width.c: Likewise.
19228
19229 2007-10-07  Bruno Haible  <bruno@clisp.org>
19230
19231         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
19232         The file is still under LGPL (see modules/inttypes).
19233
19234 2007-10-06  Bruno Haible  <bruno@clisp.org>
19235
19236         * modules/trunc (Dependencies): Add 'extensions'.
19237         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
19238         Reported by Ben Pfaff <blp@gnu.org>.
19239
19240 2007-10-06  Bruno Haible  <bruno@clisp.org>
19241
19242         * modules/freopen-tests: New file.
19243         * tests/test-freopen.c: New file.
19244
19245         * modules/fopen-tests: New file.
19246         * tests/test-fopen.c: New file.
19247
19248         * modules/fopen: New file.
19249         * lib/fopen.c: New file.
19250         * m4/fopen.m4: New file.
19251         * modules/freopen: New file.
19252         * lib/freopen.c: New file.
19253         * m4/freopen.m4: New file.
19254         * lib/stdio.in.h (fopen, freopen): New declarations.
19255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
19256         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19257         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19258         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19259         * doc/functions/fopen.texi: Mention the 'fopen' module.
19260         * doc/functions/freopen.texi: Mention the 'freopen' module.
19261
19262 2007-10-06  Bruno Haible  <bruno@clisp.org>
19263
19264         * modules/open-tests: New file.
19265         * tests/test-open.c: New file.
19266
19267         * modules/open: New file.
19268         * lib/open.c: New file.
19269         * m4/open.m4: New file.
19270         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
19271         lib/open.c does.
19272         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
19273         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
19274         macros.
19275         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
19276         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
19277         REPLACE_OPEN.
19278         * doc/functions/open.texi: Mention the 'open' module.
19279
19280 2007-10-04  Bruno Haible  <bruno@clisp.org>
19281
19282         * modules/ceill-tests: New file.
19283         * tests/test-ceill.c: New file.
19284
19285         * modules/ceill: New file.
19286         * lib/ceill.c: Replace entire file.
19287         * m4/ceill.m4: New file.
19288         * lib/math.in.h (ceill): Replace declaration.
19289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
19290         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
19291         * doc/functions/ceill.texi: Mention the 'ceill' module.
19292         * modules/mathl (Files): Remove lib/ceill.c.
19293         (Depends-on): Add ceill.
19294
19295 2007-10-04  Bruno Haible  <bruno@clisp.org>
19296
19297         * modules/ceilf-tests: New file.
19298         * tests/test-ceilf.c: New file.
19299
19300         * modules/ceilf: New file.
19301         * lib/ceil.c: New file.
19302         * lib/ceilf.c: New file.
19303         * m4/ceilf.m4: New file.
19304         * lib/math.in.h (ceilf): New declaration.
19305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
19306         HAVE_DECL_CEILF.
19307         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
19308         HAVE_DECL_CEILF.
19309         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
19310
19311 2007-10-04  Bruno Haible  <bruno@clisp.org>
19312
19313         * modules/floorl-tests: New file.
19314         * tests/test-floorl.c: New file.
19315
19316         * modules/floorl: New file.
19317         * lib/floorl.c: Replace entire file.
19318         * m4/floorl.m4: New file.
19319         * lib/math.in.h (floorl): Replace declaration.
19320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
19321         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
19322         * doc/functions/floorl.texi: Mention the 'floorl' module.
19323         * modules/mathl (Files): Remove lib/floorl.c.
19324         (Depends-on): Add floorl.
19325
19326 2007-10-04  Bruno Haible  <bruno@clisp.org>
19327
19328         * modules/floorf-tests: New file.
19329         * tests/test-floorf.c: New file.
19330
19331         * modules/floorf: New file.
19332         * lib/floor.c: New file.
19333         * lib/floorf.c: New file.
19334         * m4/floorf.m4: New file.
19335         * lib/math.in.h (floorf): New declaration.
19336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
19337         HAVE_DECL_FLOORF.
19338         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
19339         HAVE_DECL_FLOORF.
19340         * doc/functions/floorf.texi: Mention the 'floorf' module.
19341
19342 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
19343             Bruno Haible  <bruno@clisp.org>
19344
19345         Advertise for the Git server instead of the CVS server.
19346         * doc/gnulib-intro.texi (Steady Development): Mention the Git
19347         repository instead of the CVS one.
19348         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
19349         about all VCS systems generically.
19350         * doc/gnulib.texi (Introduction): Capitalize `Git'.
19351
19352 2007-10-04  Bruno Haible  <bruno@clisp.org>
19353
19354         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
19355         means.
19356         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
19357
19358 2007-10-04  Bruno Haible  <bruno@clisp.org>
19359
19360         * modules/truncl-tests: New file.
19361         * tests/test-truncl.c: New file.
19362
19363         * modules/truncl: New file.
19364         * lib/truncl.c: New file.
19365         * m4/truncl.m4: New file.
19366         * lib/math.in.h (truncl): New declaration.
19367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
19368         HAVE_DECL_TRUNCL.
19369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
19370         HAVE_DECL_TRUNCL.
19371         * doc/functions/truncl.texi: Mention the 'truncl' module.
19372
19373 2007-10-04  Bruno Haible  <bruno@clisp.org>
19374
19375         * modules/truncf-tests: New file.
19376         * tests/test-truncf.c: New file.
19377
19378         * modules/truncf: New file.
19379         * lib/trunc.c: Make paramerizable through USE_* macros.
19380         * lib/truncf.c: New file.
19381         * m4/truncf.m4: New file.
19382         * lib/math.in.h (truncf): New declaration.
19383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
19384         HAVE_DECL_TRUNCF.
19385         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
19386         HAVE_DECL_TRUNCF.
19387         * doc/functions/truncf.texi: Mention the 'truncf' module.
19388
19389 2007-10-03  Bruno Haible  <bruno@clisp.org>
19390
19391         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19392         augmentation also for tests modules.
19393         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
19394         * modules/atexit-tests (Makefile.am): Likewise.
19395         * modules/binary-io-tests (Makefile.am): Likewise.
19396         * modules/c-strcase-tests (Makefile.am): Likewise.
19397         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
19398         * modules/canonicalize-tests (Makefile.am): Likewise.
19399         * modules/closein-tests (Makefile.am): Likewise.
19400         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19401         * modules/freadahead-tests (Makefile.am): Likewise.
19402         * modules/fseek-tests (Makefile.am): Likewise.
19403         * modules/fseeko-tests (Makefile.am): Likewise.
19404         * modules/ftell-tests (Makefile.am): Likewise.
19405         * modules/ftello-tests (Makefile.am): Likewise.
19406         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
19407         * modules/isnanl-tests (Makefile.am): Likewise.
19408         * modules/lseek-tests (Makefile.am): Likewise.
19409         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19410         * modules/mbscasestr-tests (Makefile.am): Likewise.
19411         * modules/mbschr-tests (Makefile.am): Likewise.
19412         * modules/mbscspn-tests (Makefile.am): Likewise.
19413         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19414         * modules/mbspbrk-tests (Makefile.am): Likewise.
19415         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19416         * modules/mbsrchr-tests (Makefile.am): Likewise.
19417         * modules/mbsspn-tests (Makefile.am): Likewise.
19418         * modules/mbsstr-tests (Makefile.am): Likewise.
19419         * modules/printf-posix-tests (Makefile.am): Likewise.
19420         * modules/snprintf-posix-tests (Makefile.am): Likewise.
19421         * modules/sprintf-posix-tests (Makefile.am): Likewise.
19422         * modules/tsearch-tests (Makefile.am): Likewise.
19423         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19424         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19425         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19426         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19427         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19428         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19429         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19430         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19431         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
19432         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
19433         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19434         * modules/xstrtol-tests (Makefile.am): Likewise.
19435         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19436         * modules/yesno-tests (Makefile.am): Likewise.
19437
19438 2007-10-03  Bruno Haible  <bruno@clisp.org>
19439
19440         * modules/trunc-tests: New file.
19441         * tests/test-trunc.c: New file.
19442
19443         * modules/trunc: New file.
19444         * lib/trunc.c: New file.
19445         * m4/trunc.m4: New file.
19446         * lib/math.in.h (trunc): New declaration.
19447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
19448         HAVE_DECL_TRUNC.
19449         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
19450         HAVE_DECL_TRUNC.
19451         * doc/functions/trunc.texi: Mention the 'trunc' module.
19452
19453 2007-10-03  Bruno Haible  <bruno@clisp.org>
19454
19455         * tests/test-fpending.c: New file, mostly copied
19456         from coreutils/lib/t-fpending.c.
19457         * modules/fpending-tests: New file.
19458
19459 2007-10-03  Bruno Haible  <bruno@clisp.org>
19460
19461         Port the stdio extensions to QNX (untested).
19462         * lib/fseterr.c (fseterr): Add support for QNX.
19463         * lib/fbufmode.c (fbufmode): Likewise.
19464         * lib/freadable.c (freadable): Likewise.
19465         * lib/fwritable.c (fwritable): Likewise.
19466         * lib/freading.c (freading): Likewise.
19467         * lib/fwriting.c (fwriting): Likewise.
19468         * lib/freadahead.c (freadahed): Likewise.
19469         * lib/fpurge.c (fpurge): Likewise.
19470         * lib/fseeko.c (rpl_fseeko): Likewise.
19471
19472 2007-10-03  Bruno Haible  <bruno@clisp.org>
19473             Jim Meyering  <jim@meyering.net>
19474             Eric Blake  <ebb9@byu.net>
19475
19476         * doc/relocatable.texi: Use @command instead of @program.
19477
19478 2007-10-02  Jim Meyering  <jim@meyering.net>
19479
19480         Perform one more "_.h" -> ".in.h" substitution.
19481         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
19482         instead of unistd_.h here, too.
19483
19484 2007-10-01  Bruno Haible  <bruno@clisp.org>
19485
19486         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
19487         Needed for the alloca-opt module.
19488
19489 2007-09-30  Bruno Haible  <bruno@clisp.org>
19490
19491         * lib/alloca.in.h: Renamed from lib/alloca_.h.
19492         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
19493         alloca_.h.
19494         * lib/argz.in.h: Renamed from lib/argz_.h.
19495         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
19496         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
19497         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
19498         byteswap_.h.
19499         * lib/dirent.in.h: Renamed from lib/dirent_.h.
19500         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
19501         dirent_.h.
19502         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
19503         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
19504         fcntl_.h.
19505         * lib/float.in.h: Renamed from lib/float_.h.
19506         * modules/float (Files, Makefile.am): Use float.in.h instead of
19507         float_.h.
19508         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
19509         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
19510         fnmatch_.h.
19511         * lib/getopt.in.h: Renamed from lib/getopt_.h.
19512         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
19513         getopt_.h.
19514         * lib/glob.in.h: Renamed from lib/glob_.h.
19515         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
19516         * lib/iconv.in.h: Renamed from lib/iconv_.h.
19517         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
19518         iconv_.h.
19519         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
19520         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
19521         inttypes_.h.
19522         * lib/locale.in.h: Renamed from lib/locale_.h.
19523         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
19524         locale_.h.
19525         * lib/math.in.h: Renamed from lib/math_.h.
19526         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
19527         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
19528         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
19529         of netinet_in_.h. Add dependency.
19530         * lib/poll.in.h: Renamed from lib/poll_.h.
19531         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
19532         * lib/search.in.h: Renamed from lib/search_.h.
19533         * modules/search (Files, Makefile.am): Use search.in.h instead of
19534         search_.h.
19535         * lib/signal.in.h: Renamed from lib/signal_.h.
19536         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
19537         _signal.h.
19538         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
19539         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
19540         stdbool_.h.
19541         * lib/stdint.in.h: Renamed from lib/stdint_.h.
19542         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
19543         stdint_.h.
19544         * lib/stdio.in.h: Renamed from lib/stdio_.h.
19545         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
19546         stdio_.h.
19547         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
19548         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
19549         stdlib_.h.
19550         * lib/string.in.h: Renamed from lib/string_.h.
19551         * modules/string (Files, Makefile.am): Use string.in.h instead of
19552         string_.h.
19553         * doc/gnulib-tool.texi (Initial import): Update.
19554         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
19555         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
19556         of sys_select_.h. Add dependency.
19557         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
19558         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
19559         of sys_socket_.h.
19560         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
19561         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
19562         sys_stat_.h.
19563         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
19564         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
19565         sys_time_.h.
19566         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
19567         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
19568         sysexits_.h.
19569         * lib/time.in.h: Renamed from lib/time_.h.
19570         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
19571         * lib/unistd.in.h: Renamed from lib/unistd_.h.
19572         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
19573         unistd_.h.
19574         * lib/wchar.in.h: Renamed from lib/wchar_.h.
19575         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
19576         wchar_.h.
19577         * lib/wctype.in.h: Renamed from lib/wctype_.h.
19578         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
19579         wctype_.h.
19580         * build-aux/bootstrap (slurp): Update.
19581         * lib/.cppi-disable: Update.
19582
19583 2007-09-30  Bruno Haible  <bruno@clisp.org>
19584
19585         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
19586         Needed on BeOS.
19587
19588 2007-09-30  Bruno Haible  <bruno@clisp.org>
19589
19590         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
19591
19592 2007-09-29  Bruno Haible  <bruno@clisp.org>
19593
19594         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
19595
19596 2007-09-29  Bruno Haible  <bruno@clisp.org>
19597
19598         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
19599         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
19600         * build-aux/install-reloc: Compile also areadlink.c.
19601         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
19602
19603 2007-09-29  Bruno Haible  <bruno@clisp.org>
19604
19605         * gnulib-tool (func_emit_initmacro_done): Indentation.
19606
19607 2007-09-29  Bruno Haible  <bruno@clisp.org>
19608
19609         * README: Add CVS checkout update instructions.
19610         Info from Bob Proulx <bob@proulx.com>.
19611
19612 2007-09-28  Eric Blake  <ebb9@byu.net>
19613
19614         Provide move-if-change.
19615         * build-aux/move-if-change: New file, based on best practice
19616         rather than any canonical upstream location.
19617
19618 2007-09-28  Jim Meyering  <jim@meyering.net>
19619
19620         Fix canonicalize loop-detection corner case.
19621         Do not attempt to stat the symlink values stored via seen_triple.
19622         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
19623         on linux-2.6.18, (but not 2.6.22).
19624         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
19625         triple_compare.  The former compares dev,ino,filename, while the latter
19626         would actually stat dirname(filename) when dev and ino were equal.
19627         * lib/hash-triple.c: Install <string.h>.
19628         (STREQ): Define.
19629         (triple_compare_ino_str): New function.
19630         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
19631
19632 2007-09-28  Eric Blake  <ebb9@byu.net>
19633
19634         Enforce that AC_REPLACE_FUNCS files exist.
19635         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
19636         override check for typos.
19637
19638         Fix test-closein on Solaris 10.
19639         * tests/test-closein.c (main): Don't assume stdin can be inherited
19640         closed on all systems.
19641         * tests/test-closein.sh: Likewise.
19642         Reported by Piotr Tarnowski.
19643
19644 2007-09-28  Jim Meyering  <jim@meyering.net>
19645
19646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
19647
19648 2007-09-27  Jim Meyering  <jim@meyering.net>
19649
19650         canonicalize: Avoid a false-positive cycle failure.
19651         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
19652         Sort.  Remove cycle-check.
19653         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
19654         not cycle-check.h.
19655         (seen_triple): New function.
19656         (canonicalize_filename_mode): Use it instead of cycle-check.
19657         * tests/test-canonicalize.c: Add a test for this bug.
19658         * tests/test-canonicalize.sh: Set up and run the test.
19659
19660         New module, file-set, from coreutils.
19661         * modules/file-set: Define it.
19662         * lib/file-set.c, lib/file-set.h: Implement.
19663
19664         New module, hash-triple, from coreutils.
19665         * modules/hash-triple: Define it.
19666         * lib/hash-triple.c, lib/hash-triple.h: Implement.
19667
19668 2007-09-25  Eric Blake  <ebb9@byu.net>
19669
19670         Fix strerror on Interix.
19671         * lib/string_.h (strerror): Declare replacement.
19672         * doc/functions/strerror.texi (strerror): Document the Interix
19673         shortcoming.
19674         * modules/string (Makefile.am): Support new hooks.
19675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
19676         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
19677         gl_FUNC_STRERROR_SEPARATE.
19678         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
19679         * lib/strerror.c (rpl_strerror): Provide replacement.
19680         * modules/strerror (Depends-on): Add string.
19681         (configure.ac): Detect use of module.
19682         * tests/test-strerror.c: New file.
19683         * modules/strerror-tests: New test module.
19684         * modules/argp (Depends-on): Add strerror.
19685         * modules/error (Depends-on): Likewise.
19686         Reported by Martin Koeppe.
19687
19688 2007-09-24  Bruno Haible  <bruno@clisp.org>
19689
19690         * README: Update git instructions.
19691
19692 2007-09-24  Eric Blake  <ebb9@byu.net>
19693
19694         Revert fpending breakage from 2007-09-08.
19695         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
19696         __fpending.c.
19697
19698 2007-09-24  Jim Meyering  <jim@meyering.net>
19699
19700         filenamecat.c: Add a test.
19701         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
19702         showing how the function works when DIR is the empty string.
19703
19704 2007-09-21  Simon Josefsson  <simon@josefsson.org>
19705
19706         * tests/test-canonicalize.sh: Turn on executable bit.
19707
19708 2007-09-19  Eric Blake  <ebb9@byu.net>
19709
19710         * README: Update CVS instructions.
19711
19712 2007-09-18  Bruno Haible  <bruno@clisp.org>
19713
19714         * modules/areadlink: New file.
19715         * lib/areadlink.h (areadlink): New declaration.
19716         * lib/areadlink.c: New file, based on lib/xreadlink.c.
19717
19718 2007-09-17  Jim Meyering  <jim@meyering.net>
19719
19720         * lib/savewd.c (ESTALE) [!defined]: Define.
19721         Reported to be required on Interix by Martin Koeppe.
19722
19723 2007-09-17  Bruno Haible  <bruno@clisp.org>
19724
19725         * gnulib-tool (func_version): Use $version.
19726
19727 2007-09-16  Bruno Haible  <bruno@clisp.org>
19728
19729         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
19730         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
19731         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
19732         Reported by Greg Schafer <gschafer@zip.com.au>.
19733
19734 2007-09-15  Bruno Haible  <bruno@clisp.org>
19735
19736         * gnulib-tool (sed): Try a little harder to make bash understand the
19737         alias.
19738         Reported by Bruce Korb <bruce.korb@gmail.com>.
19739
19740 2007-09-13  Eric Blake  <ebb9@byu.net>
19741
19742         * ChangeLog: Remove conflict markers.
19743
19744 2007-09-13  Simon Josefsson  <simon@josefsson.org>
19745
19746         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
19747         Reported by Bruno Haible <bruno@clisp.org>.
19748
19749 2007-09-12  Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
19752         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
19753         is not defined.
19754
19755 2007-09-12  Eric Blake  <ebb9@byu.net>
19756
19757         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
19758         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
19759         Autoconf definition.
19760         * modules/euidaccess (Depends-on): Add extensions, for
19761         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
19762         * modules/fnmatch (Depends-on): Likewise.
19763         * modules/getaddrinfo (Depends-on): Likewise.
19764         * modules/getdelim (Depends-on): Likewise.
19765         * modules/getline (Depends-on): Likewise.
19766         * modules/getsubopt (Depends-on): Likewise.
19767         * modules/gettext (Depends-on): Likewise.
19768         * modules/group-member (Depends-on): Likewise.
19769         * modules/mbchar (Depends-on): Likewise.
19770         * modules/memmem (Depends-on): Likewise.
19771         * modules/mempcpy (Depends-on): Likewise.
19772         * modules/memrchr (Depends-on): Likewise.
19773         * modules/pagealign_alloc (Depends-on): Likewise.
19774         * modules/readutmp (Depends-on): Likewise.
19775         * modules/stpcpy (Depends-on): Likewise.
19776         * modules/stpncpy (Depends-on): Likewise.
19777         * modules/strchrnul (Depends-on): Likewise.
19778         * modules/strndup (Depends-on): Likewise.
19779         * modules/strsep (Depends-on): Likewise.
19780         * modules/strverscmp (Depends-on): Likewise.
19781         * modules/vasprintf (Depends-on): Likewise.
19782         * modules/wcwidth (Depends-on): Likewise.
19783         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
19784         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
19785         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
19786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
19787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19789         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
19790         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19791         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
19792         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19794         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19795         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19796         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19797         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
19798         * m4/readutmp.m4 (gl_READUTMP): Likewise.
19799         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19800         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19804         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19805         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
19807         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
19808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19809         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
19810         so that lock.m4 can be used in gettext without extensions module.
19811
19812 2007-09-11  Bruno Haible  <bruno@clisp.org>
19813
19814         * m4/isc-posix.m4: Remove file.
19815         Suggested by Eric Blake.
19816
19817 2007-09-11  Eric Blake  <ebb9@byu.net>
19818
19819         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
19820
19821 2007-09-10  Bruno Haible  <bruno@clisp.org>
19822
19823         * posix-modules: Fix typo in error message.
19824         Reported by Matt <mkraai@beckman.com>.
19825
19826 2007-09-09  Bruno Haible  <bruno@clisp.org>
19827
19828         * doc/functions/getdelim.texi: Update list of platforms lacking the
19829         function.
19830         * doc/functions/getline.texi: Likewise.
19831
19832 2007-09-09  Jim Meyering  <jim@meyering.net>
19833
19834         * lib/hash.c (hash_initialize): Detect calloc failure.
19835         Reported by Bruno Haible.
19836
19837 2007-09-09  Bruno Haible  <bruno@clisp.org>
19838
19839         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
19840         malloc or realloc fails.
19841
19842 2007-09-09  Bruno Haible  <bruno@clisp.org>
19843
19844         * modules/getcwd (Depends-on): Add malloc-posix.
19845         * modules/glob (Depends-on): Likewise.
19846         * modules/putenv (Depends-on): Likewise.
19847         * modules/strdup (Depends-on): Likewise.
19848         * modules/getdelim (Depends-on): Add realloc-posix.
19849         * modules/read-file (Depends-on): Likewise.
19850
19851 2007-09-09  Bruno Haible  <bruno@clisp.org>
19852
19853         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
19854         (gl_FUNC_MALLOC_POSIX): Require it.
19855         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
19856         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
19857         * modules/realloc (Files): Add m4/malloc.m4.
19858         * modules/calloc (Files): Likewise.
19859
19860 2007-09-09  Bruno Haible  <bruno@clisp.org>
19861
19862         * modules/malloc-posix: New file.
19863         * modules/malloc (Depends-on): Add malloc-posix.
19864         * lib/malloc.c: Include errno.h.
19865         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
19866         and a POSIX-compatible malloc into a single function. Set ENOMEM
19867         when returning NULL.
19868         * m4/malloc.m4: New file.
19869         * doc/functions/malloc.texi: Mention the malloc-posix module.
19870         * lib/stdlib_.h (malloc): New declaration.
19871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19872         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
19873         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
19874         and HAVE_MALLOC_POSIX.
19875
19876 2007-09-09  Bruno Haible  <bruno@clisp.org>
19877
19878         * modules/realloc-posix: New file.
19879         * modules/realloc (Depends-on): Add realloc-posix.
19880         * lib/realloc.c: Include errno.h.
19881         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
19882         and a POSIX-compatible realloc into a single function. Set ENOMEM
19883         when returning NULL.
19884         * m4/realloc.m4: New file.
19885         * doc/functions/realloc.texi: Mention the realloc-posix module.
19886         * lib/stdlib_.h (realloc): New declaration.
19887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19888         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
19889         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
19890         and HAVE_REALLOC_POSIX.
19891
19892 2007-09-09  Bruno Haible  <bruno@clisp.org>
19893
19894         * modules/calloc-posix: New file.
19895         * modules/calloc (Depends-on): Add calloc-posix.
19896         * lib/calloc.c: Include errno.h.
19897         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
19898         and a POSIX-compatible calloc into a single function. Set ENOMEM
19899         when returning NULL.
19900         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
19901         * doc/functions/calloc.texi: Mention the calloc-posix module.
19902         * lib/stdlib_.h (calloc): New declaration.
19903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19904         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
19905         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
19906         and HAVE_CALLOC_POSIX.
19907
19908 2007-09-09  Bruno Haible  <bruno@clisp.org>
19909
19910         Allow for modules to show an arbitrary notice.
19911         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
19912         * gnulib-tool: New option --extract-notice.
19913         (func_usage): Document it.
19914         (sed_extract_prog): Update.
19915         (func_get_notice): New function.
19916         (func_modules_notice): New function.
19917         (func_import, func_create_testdir): Invoke it.
19918         Suggested by Jim Meyering.
19919
19920 2007-09-09  Bruno Haible  <bruno@clisp.org>
19921
19922         * gnulib-tool: New options --verbose, --quiet.
19923         (func_usage): Document them.
19924         (verbose): New variable.
19925         (func_execute_command): New function.
19926         (func_import): Don't show the module list and the file list if
19927         $verbose < 0.
19928         (func_create_testdir): Likewise. Use func_execute_command.
19929         (func_create_megatestdir): Use func_execute_command.
19930
19931 2007-09-08  Bruno Haible  <bruno@clisp.org>
19932
19933         * gnulib-tool (func_import): Prefer rsync over wget when available,
19934         for fetching the PO files.
19935
19936 2007-09-08  Bruno Haible  <bruno@clisp.org>
19937
19938         * posix-modules: New file. Portions copied from gnulib-tool.
19939         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
19940
19941 2007-09-08  Jim Meyering  <jim@meyering.net>
19942
19943         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
19944         * lib/fpending.h: Rename from __fpending.h.
19945         * lib/fpending.c: Rename from __fpending.c.
19946         Include "fpending.h", not "__fpending.h".
19947         * lib/__fpending.h, lib/__fpending.c: Remove files.
19948         * modules/fpending (Files): Reflect new file names.
19949         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
19950
19951 2007-09-08  Bruno Haible  <bruno@clisp.org>
19952
19953         * m4/inttypes-h.m4: Remove stub file.
19954
19955 2007-09-07  Simon Josefsson  <simon@josefsson.org>
19956
19957         * doc/headers/stdint.texi: Discuss #include_next issue.
19958
19959 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19960
19961         * build-aux/bootstrap: Remove obsolete comment about wget --help.
19962
19963 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19964
19965         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
19966         in variable name.
19967
19968 2007-09-03  Jim Meyering  <jim@meyering.net>
19969
19970         New module: git-version-gen.
19971         * modules/git-version-gen: New file.
19972
19973         Import changes from coreutils for bootstrap script.
19974
19975         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
19976
19977         bootstrap: uses rsync to download the .po files
19978         * build-aux/bootstrap (po_download_command_format): New global.
19979         (download_po_files): Use rsync.
19980         (update_po_files): Don't remove .po files after download,
19981         so future rsync runs can take advantage of the copies.
19982
19983         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
19984
19985         Solve the unnecessary-.po-file-regeneration problem once and for all.
19986         * build-aux/bootstrap (download_po_files): New function, renamed from
19987         get_translations.  Now, downloads, but doesn't update LINGUAS.
19988         (update_po_files): New function.
19989
19990         bootstrap: Ignore more.
19991         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
19992         uniwidth to e.g., lib/.gitignore.
19993         (slurp): Handle the sys_stat_.h -> sys mapping, too.
19994
19995         * build-aux/bootstrap: New setting: vc_ignore.
19996         (insert_sorted_if_absent): Create $file if absent.
19997         Adapt to new, possibly empty, list: $vc_ignore.
19998
19999         bootstrap: generate more ignorable names
20000         * build-aux/bootstrap (slurp): When generating ignorable names,
20001         also map .sin to .sed, .gperf to .c, and .y to .c.
20002
20003 2007-09-03  Jim Meyering  <jim@meyering.net>
20004
20005         * build-aux/git-version-gen: New file, from coreutils.  For details, see
20006         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
20007
20008 2007-09-02  Bruno Haible  <bruno@clisp.org>
20009
20010         Fix mis-recognition of 'mcs' on QNX 6.
20011         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
20012         output contains the string "Mono".
20013         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
20014         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
20015
20016 2007-09-01  Bruno Haible  <bruno@clisp.org>
20017
20018         Fix collision between uniwidth/* and linebreak modules.
20019         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
20020         u32_width): Remove declarations.
20021         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
20022         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
20023         streq3, streq2, streq1, streq0): Remove functions.
20024         (STREQ): Remove macro.
20025         (is_cjk_encoding): Remove function.
20026         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
20027         (uc_width, u8_width, u16_width, u32_width): Remove functions.
20028         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
20029         * NEWS: Document the change.
20030
20031 2007-09-01  Bruno Haible  <bruno@clisp.org>
20032
20033         * lib/streq.h: Add double-inclusion guard.
20034
20035 2007-09-01  Karl Berry  <karl@gnu.org>
20036
20037         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
20038
20039 2007-08-28  Jim Meyering  <jim@meyering.net>
20040
20041         Rename mreadlink_with_size to areadlink_with_size.
20042         * NEWS: Document the change.
20043         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
20044         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
20045         * lib/mreadlink.h: Rename this to...
20046         * lib/areadlink.h: ...this.
20047         * modules/mreadlink-with-size: Rename this to...
20048         * modules/areadlink-with-size: ...this.
20049         * lib/canonicalize.c: Reflect the renaming.
20050         * modules/canonicalize: Likewise.
20051
20052 2007-08-26  Bruno Haible  <bruno@clisp.org>
20053
20054         * gnulib-tool (func_import): When deciding which files to remove,
20055         consider also dangling symbolic links.
20056         Reported by Eric Blake.
20057
20058 2007-08-26  Bruno Haible  <bruno@clisp.org>
20059
20060         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
20061
20062 2007-08-23  Simon Josefsson  <simon@josefsson.org>
20063
20064         * lib/readline.c: Don't include getline.h, the prototype is now
20065         found in stdio.h.
20066
20067 2007-08-23  Jim Meyering  <jim@meyering.net>
20068
20069         Getdelim touchup.
20070         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
20071         around the funlockfile call, since funlockfile never sets errno.
20072         Don't set errno upon failed realloc.
20073
20074 2007-08-22  Eric Blake  <ebb9@byu.net>
20075
20076         Getline touchups.
20077         * lib/getdelim.c (getdelim): Revert regression that required *n to
20078         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
20079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
20080         getdelim, rather than whether implementation is missing.
20081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
20082         * lib/stdio_.h (getline): Also declare if replacement is
20083         required.
20084         * doc/functions/getdelim.texi: New file.
20085         * doc/functions/getline.texi: Likewise.
20086         * doc/gnulib.texi (Function Substitutes): Add new files.
20087         Reported by Bruno Haible.
20088
20089 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
20090
20091         * users.txt: Add Guile.
20092
20093 2007-08-22  Eric Blake  <ebb9@byu.net>
20094
20095         * tests/test-getdelim.c (main): Use remove, not unlink.
20096         * tests/test-getline.c (main): Likewise.
20097
20098         Move getline and getdelim into stdio.h, per POSIX 200x.
20099         * modules/getline (Files): Remove getline.h.
20100         (Depends-on): Add stdio.
20101         (configure.ac): Add module indicator.
20102         * modules/getdelim (Files): Remove getdelim.h.
20103         (Depends-on): Add stdio.
20104         (configure.ac): Add module indicator.
20105         * modules/stdio (Makefile.am): Work with new indicators.
20106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
20108         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20109         * lib/getdelim.h: Delete.
20110         * lib/getline.h: Delete.
20111         * lib/stdio_.h (getdelim, getline): Declare.
20112         * modules/getdelim-tests: New module.
20113         * modules/getline-tests: Likewise.
20114         * tests/test-getdelim.c: New file.
20115         * tests/test-getline.c: Likewise.
20116         * NEWS: Document the change.
20117         * lib/getline.c: Update choice of header.
20118         * lib/csharpcomp.c: Likewise.
20119         * lib/getpass.c: Likewise.
20120         * lib/javacomp.c: Likewise.
20121         * lib/javaversion.c: Likewise.
20122         * lib/yesno.c: Likewise.
20123         * lib/getdelim.c: Likewise.
20124         (getdelim): Set errno on failure, and avoid memory leak.
20125
20126 2007-08-19  Bruno Haible  <bruno@clisp.org>
20127
20128         * modules/closein (Depends-on): Add freadahead.
20129         * lib/closein.c: Include freadahead.h.
20130         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
20131         is zero.
20132
20133 2007-08-19  Bruno Haible  <bruno@clisp.org>
20134
20135         * modules/freadahead-tests: New file.
20136         * tests/test-freadahead.sh: New file.
20137         * tests/test-freadahead.c: New file.
20138
20139         * modules/freadahead: New file.
20140         * lib/freadahead.h: New file.
20141         * lib/freadahead.c: New file.
20142         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
20143         fbufmode, fpurge, freadable, fwritable.
20144
20145 2007-08-19  Eric Blake  <ebb9@byu.net>
20146
20147         Test yesno in combination with closein.
20148         * lib/yesno.c (yesno): Document use of stdin.
20149         * modules/yesno-tests (Files): New module.
20150         * tests/test-yesno.c (main): New file.
20151         * tests/test-yesno.sh: Likewise.
20152
20153 2007-08-19  Bruno Haible  <bruno@clisp.org>
20154
20155         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
20156         * lib/fseeko.c (rpl_fseeko): Likewise.
20157         * lib/fseterr.c (fseterr): Likewise.
20158
20159 2007-08-19  Bruno Haible  <bruno@clisp.org>
20160
20161         * tests/test-lseek.c (main): Disable a test for BeOS.
20162         * doc/functions/lseek.texi: Document the BeOS bug.
20163
20164 2007-08-19  Bruno Haible  <bruno@clisp.org>
20165             Eric Blake  <ebb9@byu.net>
20166
20167         * lib/lseek.c: Include <sys/stat.h>.
20168         (rpl_lseek): Add workaround code also for Unix platforms.
20169         Needed for BeOS.
20170         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
20171         * doc/functions/lseek.texi: Document BeOS definiency.
20172
20173 2007-08-18  Bruno Haible  <bruno@clisp.org>
20174
20175         * modules/fstrcmp-tests: New file.
20176         * tests/test-fstrcmp.c: New file.
20177
20178 2007-08-18  Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/fstrcmp: New file, from GNU gettext with modifications.
20181         * lib/fstrcmp.h: New file, from GNU gettext.
20182         * lib/fstrcmp.c: New file, from GNU gettext.
20183         * MODULES.html.sh (String handling): Add fstrcmp.
20184
20185 2007-08-18  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
20188         'bool'.
20189         (diag, compareseq): Remove const from the ctxt argument.
20190         (USE_HEURISTIC): Undefine at the end.
20191
20192 2007-08-18  Jim Meyering  <jim@meyering.net>
20193
20194         New file: lib/idcache.h
20195         * NEWS: Mention the addition.
20196         * modules/idcache (Files): Add lib/idcache.h
20197         * lib/idcache.c: Include "idcache.h".
20198         Don't include <sys/types.h>.
20199         Add a FIXME comment.
20200         Move file-scoped "static" declarations to the top.
20201         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
20202
20203 2007-08-17  Bruno Haible  <bruno@clisp.org>
20204         and Paul Eggert  <eggert@cs.ucla.edu>
20205
20206         * MODULES.html.sh: Add diffseq.
20207         * modules/diffseq: New file.
20208         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
20209         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
20210
20211 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20212
20213         Import changes from coreutils for bootstrap script.
20214
20215         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
20216
20217         * build-aux/bootstrap (slurp): Work even in environments where
20218         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
20219         current code does not slurp files whose names start with ".", and
20220         this looks like it might be a troublesome area.
20221
20222         2007-07-11  Jim Meyering  <jim@meyering.net>
20223
20224         If there's a GPL vN copyright comment, require that N == 3.
20225
20226         2007-07-08  Jim Meyering  <jim@meyering.net>
20227
20228         Run the coreutils-specific code only if tests/Makefile.am.in exists.
20229         * build-aux/bootstrap (mam_template): Move definition out of loop.
20230
20231         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
20232
20233         * build-aux/bootstrap (symlink_to_dir): Rename function from
20234         symlink_to_gnulib.  Add a directory parameter.  Update all
20235         callers.
20236         (cp_mark_as_generated): Also check for -- and link to -- files in
20237         gl/.
20238
20239         2007-07-08  Jim Meyering  <jim@meyering.net>
20240
20241         Adapt to deeper hierarchy in gnulib.
20242         * build-aux/bootstrap (symlink_to_dir): If the destination
20243         directory doesn't exist, create it. This is required at least for
20244         "lib/uniwidth/cjk.h".
20245
20246         2007-05-15  Jim Meyering  <jim@meyering.net>
20247
20248         * build-aux/bootstrap: Now that generated Makefile.am files
20249         are no longer under version control, they must be created at
20250         bootstrap time.
20251
20252 2007-08-14  Ben Pfaff  <blp@gnu.org>
20253
20254         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
20255
20256 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20257
20258         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
20259         given the changes below.
20260         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
20261         even on hosts that have padding bits beyond the supported 64.
20262
20263 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20264
20265         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
20266         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
20267         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
20268         depends on it.
20269         (xstrtol_error): Remove.
20270         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
20271         but with a different signature.
20272         (ATTRIBUTE_NORETURN, __attribute__): New macros.
20273         * lib/xstrtol-error.c: Include exitfail.h.
20274         (xstrtol_fatal): New function, with a different signature from the
20275         old xstrtol_error, so that the caller need not worry about passing
20276         in an exit status, or about storage management of the option argument.
20277         (xstrtol_error): Now a static function.  Redo signature to
20278         implement xstrtol_fatal.  Output the correct number of hyphens in
20279         front of the option so that the caller need not worry about
20280         storage management.
20281         (N_): New macro.
20282         (_): Remove; not used now.
20283         * modules/xstrtol: Depend on getopt.
20284         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
20285         of old STRTOL_FATAL_ERROR macro.
20286         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
20287         of test program.
20288         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
20289         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
20290
20291 2007-08-08  Eric Blake  <ebb9@byu.net>
20292
20293         * lib/xstrtol-error.c: Add missing include.
20294
20295         Move xstrtol messages into gnulib domain, when --pobase is used.
20296         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
20297         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
20298         * modules/xstrtol (Files): Distribute new file.
20299         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
20300         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
20301         * tests/test-xstrtol.c: ...into new file.
20302         * tests/test-xstrtoul.c: Also test xstrtoul.
20303         * tests/test-xstrtoimax.c: Also test xstrtoimax.
20304         * tests/test-xstrtoumax.c: Also test xstrtoumax.
20305         * tests/test-xstrtol.sh: Drive the tests.
20306         * tests/test-xstrtoimax.sh: Likewise.
20307         * tests/test-xstrtoumax.sh: Likewise.
20308         * modules/xstrtol-tests: New module.
20309         * modules/xstrtoimax-tests: Likewise.
20310         * modules/xstrtoumax-tests: Likewise.
20311
20312 2007-08-08  Jim Meyering  <jim@meyering.net>
20313
20314         New function: mfile_name_concat.
20315         * lib/filenamecat.c (mfile_name_concat): New function, just like
20316         file_name_concat, but return NULL upon failure rather than exiting
20317         with a diagnostic.
20318         * lib/filenamecat.h: Declare it.
20319
20320 2007-08-07  Bruno Haible  <bruno@clisp.org>
20321
20322         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
20323         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
20324         warning from gcc.
20325         Reported by Eric Blake.
20326
20327 2007-08-07  Simon Josefsson  <simon@josefsson.org>
20328
20329         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
20330         * modules/crypto/arcfour (License): Likewise.
20331         * modules/crypto/des-tests (License): Likewise.
20332         * modules/crypto/gc-arctwo-tests (License): Likewise.
20333         * modules/crypto/gc-des-tests (License): Likewise.
20334         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
20335         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
20336         * modules/crypto/gc-md2-tests (License): Likewise.
20337         * modules/crypto/gc-md4-tests (License): Likewise.
20338         * modules/crypto/gc-md5-tests (License): Likewise.
20339         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
20340         * modules/crypto/gc-rijndael-tests (License): Likewise.
20341         * modules/crypto/gc-sha1-tests (License): Likewise.
20342         * modules/crypto/gc-tests (License): Likewise.
20343         * modules/crypto/hmac-md5 (License): Likewise.
20344         * modules/crypto/hmac-sha1 (License): Likewise.
20345         * modules/crypto/md2-tests (License): Likewise.
20346         * modules/crypto/md4-tests (License): Likewise.
20347         * modules/crypto/md5 (License): Likewise.
20348         * modules/crypto/rijndael (License): Likewise.
20349         * modules/crypto/sha1 (License): Likewise.
20350         * modules/memxor (License): Likewise.
20351
20352 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20353         and Bruno Haible  <bruno@clisp.org>
20354
20355         * NEWS: Describe interface changes to human, xstrtol.
20356         * lib/human.h: Include <xstrtol.h>.
20357         (human_options): Return enum strtol_error, not int.  Remove
20358         bool arg; take int * instead.
20359         * lib/human.c: Don't include "gettext.h".
20360         (_): Remove; no longer used.
20361         Don't include <xstrtol.h>, since human.h does it.
20362         (human_options): Adjust to abovementioned interface changes.
20363         Do not report error to stderr; that's now the caller's
20364         responsibility.
20365         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
20366         interface change.
20367         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
20368         Str, Argument_type_string.  All uses changed.  Put " argument"
20369         in diagnostics to make them clearer.  Change wording of suffix
20370         message for clarity.
20371         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
20372         Argument_type_string.
20373         (STRTOL_FATAL_WARN): Remove; no longer used.
20374         * modules/human (Depends-on): Remove gettext-h.
20375
20376 2007-08-06  Simon Josefsson  <simon@josefsson.org>
20377
20378         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
20379
20380 2007-07-31  Bruno Haible  <bruno@clisp.org>
20381
20382         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
20383         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
20384         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
20385
20386 2007-07-31  Bruno Haible  <bruno@clisp.org>
20387
20388         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
20389         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
20390
20391 2007-07-30  Bruno Haible  <bruno@clisp.org>
20392
20393         * modules/base64 (License): Use the synonymous term "LGPLv2+".
20394         * modules/c-ctype (License): Likewise.
20395         * modules/c-strcase (License): Likewise.
20396         * modules/check-version (License): Likewise.
20397         * modules/iconv (License): Likewise.
20398         * modules/iconv_open (License): Likewise.
20399         * modules/read-file (License): Likewise.
20400         * modules/striconv (License): Likewise.
20401         * modules/strverscmp (License): Likewise.
20402         * modules/vasprintf (License): Likewise.
20403         * modules/crypto/des (License): Likewise.
20404         * modules/crypto/gc (License): Likewise.
20405         * modules/crypto/gc-arcfour (License): Likewise.
20406         * modules/crypto/gc-arctwo (License): Likewise.
20407         * modules/crypto/gc-des (License): Likewise.
20408         * modules/crypto/gc-hmac-md5 (License): Likewise.
20409         * modules/crypto/gc-hmac-sha1 (License): Likewise.
20410         * modules/crypto/gc-md2 (License): Likewise.
20411         * modules/crypto/gc-md4 (License): Likewise.
20412         * modules/crypto/gc-md5 (License): Likewise.
20413         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
20414         * modules/crypto/gc-random (License): Likewise.
20415         * modules/crypto/gc-rijndael (License): Likewise.
20416         * modules/crypto/gc-sha1 (License): Likewise.
20417         * modules/crypto/md2 (License): Likewise.
20418         * modules/crypto/md4 (License): Likewise.
20419
20420 2007-07-30  Jim Meyering  <jim@meyering.net>
20421
20422         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
20423         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
20424         it has valid stat data.  This bug would cause du not to count the
20425         sizes of inaccessible directories.
20426         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
20427         in <http://bugzilla.redhat.com/250077>.
20428
20429 2007-07-25  Peter O'Gorman  <peter@pogma.com>
20430             Bruno Haible  <bruno@clisp.org>
20431
20432         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
20433         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
20434         #include_next, gives a diagnostic about it, but reports no error in
20435         the exit code.
20436         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20437
20438 2007-07-24  Ben Pfaff  <blp@gnu.org>
20439
20440         Improve name: "count-one-bits" is better than "popcount".
20441         * MODULES.html.sh: Update name.
20442         * lib/popcount.h: Renamed lib/count-one-bits.h.
20443         (popcount): Renamed count_one_bits.
20444         (popcountl): Renamed count_one_bits_l.
20445         (popcountll): Renamed count_one_bits_ll.
20446         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
20447         * modules/popcount: Renamed module/count-one-bits.
20448         * modules/popcount-tests: Renamed module/count-one-bits-tests.
20449         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
20450
20451 2007-07-23  Ben Pfaff  <blp@gnu.org>
20452
20453         * lib/popcount.h (popcount32): Reduce size of constants, to allow
20454         better code generation, and add U to large constants to avoid
20455         warnings, in non-GCC case.
20456         Suggested by Bruno Haible.
20457
20458 2007-07-23  Ben Pfaff  <blp@gnu.org>
20459
20460         * lib/popcount.h: Use verify_true instead of if...abort.
20461         * modules/popcount: Depend on verify module.
20462         Suggested by Jim Meyering.
20463
20464 2007-07-23  Bruno Haible  <bruno@clisp.org>
20465
20466         * gnulib-tool (func_import): Create a .cvsignore file also when the
20467         directory is not yet in CVS but the toplevel directory is. When
20468         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
20469         Reported by Karl Berry.
20470
20471 2007-07-22  Ben Pfaff  <blp@gnu.org>
20472
20473         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
20474         case.
20475         Suggested by Eric Blake.
20476
20477 2007-07-22  Ben Pfaff  <blp@gnu.org>
20478
20479         New module: popcount.
20480         * MODULES.html.sh: Add popcount.
20481         * modules/popcount: New file.
20482         * modules/popcount-tests: New file.
20483         * tests/test-popcount.c: New file.
20484         * lib/popcount.h: New file.
20485         * m4/popcount.m4: New file.
20486
20487 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20488
20489         * build-aux/announce-gen: Update to GPLv3.
20490
20491         * build-aux/config.guess: Update from config.
20492
20493 2007-07-21  Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
20496         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
20497
20498 2007-07-20  Jim Meyering  <jim@meyering.net>
20499
20500         * check-module: Diagnose a self-dependency.
20501
20502 2007-07-19  Bruno Haible  <bruno@clisp.org>
20503
20504         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
20505         empty.
20506         Reported by Eric Blake.
20507
20508 2007-07-18  Bruno Haible  <bruno@clisp.org>
20509
20510         * gnulib-tool: New options --po-base, --po-domain.
20511         (func_usage): Document them.
20512         (pobase, po_domain): New variables.
20513         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
20514         DEFAULT_TEXT_DOMAIN.
20515         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
20516         (func_import): Consider pobase and po_domain. Create a po/ directory.
20517         (func_create_testdir): Set pobase and po_domain to empty.
20518         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
20519         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
20520
20521 2007-07-18  Bruno Haible  <bruno@clisp.org>
20522
20523         * gnulib-tool (func_get_automake_snippet): Synthesize also an
20524         EXTRA_DIST augmentation for files in build-aux/.
20525
20526 2007-07-16  Bruno Haible  <bruno@clisp.org>
20527
20528         * modules/lseek (License): Use the synonymous term "LGPLv2+".
20529         * modules/getdelim (License): Likewise.
20530
20531 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20532
20533         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
20534         * modules/d-type (License): Likewise.
20535         * modules/extensions (License): Likewise.
20536         * modules/fnmatch (License): Likewise.
20537         * modules/fseeko (License): Likewise.
20538         * modules/getaddrinfo (License): Likewise.
20539         * modules/getline (License): Likewise.
20540         * modules/getlogin_r (License): Likewise.
20541         * modules/getpass (License): Likewise.
20542         * modules/gettimeofday (License): Likewise.
20543         * modules/glob (License): Likewise.
20544         * modules/inet_ntop (License): Likewise.
20545         * modules/malloc (License): Likewise.
20546         * modules/malloca (License): Likewise.
20547         * modules/memmem (License): Likewise.
20548         * modules/mempcpy (License): Likewise.
20549         * modules/memset (License): Likewise.
20550         * modules/minmax (License): Likewise.
20551         * modules/mktime (License): Likewise.
20552         * modules/netinet_in (License): Likewise.
20553         * modules/pathmax (License): Likewise.
20554         * modules/poll (License): Likewise.
20555         * modules/regex (License): Likewise.
20556         * modules/snprintf (License): Likewise.
20557         * modules/stdbool (License): Likewise.
20558         * modules/stdint (License): Likewise.
20559         * modules/stdio (License): Likewise.
20560         * modules/strcase (License): Likewise.
20561         * modules/strcasestr (License): Likewise.
20562         * modules/strdup (License): Likewise.
20563         * modules/string (License): Likewise.
20564         * modules/strndup (License): Likewise.
20565         * modules/strnlen (License): Likewise.
20566         * modules/strpbrk (License): Likewise.
20567         * modules/strptime (License): Likewise.
20568         * modules/strsep (License): Likewise.
20569         * modules/sys_select (License): Likewise.
20570         * modules/sys_socket (License): Likewise.
20571         * modules/sys_stat (License): Likewise.
20572         * modules/sys_time (License): Likewise.
20573         * modules/time (License): Likewise.
20574         * modules/time_r (License): Likewise.
20575         * modules/timegm (License): Likewise.
20576         * modules/unistd (License): Likewise.
20577         * modules/vsnprintf (License): Likewise.
20578         * modules/wctype (License): Likewise.
20579
20580 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20581
20582         * modules/argz (License): LGPLv2+.
20583
20584 2007-07-15  Karl Berry  <karl@gnu.org>
20585
20586         * doc/gnulib.texi: revise node structure per new fdl.texi.
20587
20588 2007-07-14  Bruno Haible  <bruno@clisp.org>
20589
20590         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
20591         the output file.
20592         * lib/uniname/uninames.h: Regenerated.
20593
20594 2007-07-14  Karl Berry  <karl@gnu.org>
20595
20596         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
20597         omitting sectioning and index commands.
20598
20599 2007-07-13  Bruno Haible  <bruno@clisp.org>
20600
20601         New gnulib-tool option --more-symlinks.
20602         * gnulib-tool (func_usage): Document --more-symlinks.
20603         (do_copyrights): New variable.
20604         Recognize option --more-symlinks.
20605         (func_import): Don't add a copyright notice transform to
20606         sed_transform_lib_file if do_copyrights is empty.
20607
20608 2007-07-13  Bruno Haible  <bruno@clisp.org>
20609
20610         * lib/vasnprintf.c (decimal_point_char): Define also if
20611         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
20612         && !NEED_PRINTF_DIRECTIVE_A.
20613         Reported by Clemens Koller <clemens.koller@anagramm.de> via
20614         Gary V. Vaughan <gary@gnu.org>.
20615
20616 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         * lib/inttypes_.h: Undo previous change, since it was fixed
20619         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
20620
20621 2007-07-13  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
20624         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
20625
20626 2007-07-13  Jim Meyering  <jim@meyering.net>
20627
20628         df: Don't fail for Tru64's "file-on-file mount".
20629         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
20630         so we fall through and use statfs instead.  Details here:
20631         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
20632         Reported by Albert Chin.
20633
20634 2007-07-13  Bruno Haible  <bruno@clisp.org>
20635
20636         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
20637         * modules/configmake (License): Likewise.
20638         * modules/gettext (License): Likewise.
20639         * modules/gettext-h (License): Likewise.
20640         * modules/include_next (License): Likewise.
20641         * modules/link-warning (License): Likewise.
20642         * modules/localcharset (License): Likewise.
20643         * modules/localename (License): Likewise.
20644         * modules/lock (License): Likewise.
20645         * modules/relocatable-lib-lgpl (License): Likewise.
20646         * modules/size_max (License): Likewise.
20647         * modules/vasnprintf (License): Likewise.
20648         * modules/wchar (License): Likewise.
20649         * modules/xsize (License): Likewise.
20650
20651 2007-07-13  Bruno Haible  <bruno@clisp.org>
20652
20653         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
20654         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
20655
20656 2007-07-12  Bruno Haible  <bruno@clisp.org>
20657
20658         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
20659         in the modules files.
20660
20661 2007-07-11  Karl Berry  <karl@gnu.org>
20662
20663         * MODULES.html.sh (func_module): use
20664          sed -e '\|^'"${includefile}"'$|d'
20665          instead of /.../d, to avoid errors on $includefile's containing /.
20666
20667 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20668
20669         * gnulib-tool (func_import): Avoid duplication of --avoid
20670         statements
20671         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
20672         names to `_' in variable names.
20673
20674 2007-07-10  Eric Blake  <ebb9@byu.net>
20675
20676         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
20677         * NEWS: Document this change.
20678
20679 2007-07-08  Bruno Haible  <bruno@clisp.org>
20680
20681         Update to Unicode 5.0.
20682         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
20683         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
20684         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
20685         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
20686         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
20687         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
20688         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
20689         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
20690         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
20691         U+10A3F, U+1D242..U+1D244.
20692         (nonspacing_table_ind): Update.
20693         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
20694         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
20695
20696 2007-07-08  Bruno Haible  <bruno@clisp.org>
20697
20698         Update to Unicode 5.0.
20699         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
20700         code transform. Extend the name index field of unicode_name_to_code and
20701         unicode_code_to_name from 16 to 24 bits.
20702         * lib/uniname/uniname.c (unicode_character_name,
20703         unicode_name_character): Add the range 0x12xxx to the code transform.
20704         * lib/uniname/uninames.h: Regenerated.
20705         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
20706
20707 2007-07-07  Bruno Haible  <bruno@clisp.org>
20708
20709         * modules/wcwidth-tests: New file.
20710         * tests/test-wcwidth.c: New file.
20711
20712         Work around MacOS X wcwidth() bug.
20713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
20714         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
20715         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
20716         original wcwidth in non-UTF-8 locales.
20717         * modules/wcwidth (Depends-on): Add localcharset, streq,
20718         uniwidth/width.
20719         * doc/functions/wcwidth.texi: Update.
20720
20721 2007-07-07  Bruno Haible  <bruno@clisp.org>
20722
20723         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
20724         (wcwidth): New declaration.
20725         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
20726         macros.
20727         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
20728         here. Prepare for creating <wchar.h> unconditionally.
20729         * modules/wchar (Depends-on): Add link-warning.
20730         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
20731         REPLACE_WCWIDTH, and GL_LINK_WARNING.
20732         * lib/wcwidth.h: Remove file.
20733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
20734         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
20735         * modules/wcwidth (Files): Remove lib/wcwidth.h.
20736         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
20737         (Include): Replace wcwidth.h with <wchar.h>.
20738         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
20739         * lib/mbchar.h: Don't include wcwidth.h.
20740         * lib/mbswidth.c: Likewise.
20741         * NEWS: Mention the change.
20742
20743 2007-07-07  Bruno Haible  <bruno@clisp.org>
20744
20745         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
20746         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
20747         definition with an external declaration.
20748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
20749         defined as a function. Remove AC_C_INLINE requirement.
20750         * modules/wcwidth (Files): Add lib/wcwidth.c.
20751         (Makefile.am): Remove redundant statement.
20752
20753 2007-07-07  Bruno Haible  <bruno@clisp.org>
20754
20755         * MODULES.html.sh (Unicode string functions): Add the new modules.
20756
20757         * tests/uniwidth/test-u32-strwidth.c: New file.
20758         * modules/uniwidth/u32-strwidth-tests: New file.
20759
20760         * lib/uniwidth/u32-strwidth.c: New file.
20761         * modules/uniwidth/u32-strwidth: New file.
20762
20763         * tests/uniwidth/test-u16-strwidth.c: New file.
20764         * modules/uniwidth/u16-strwidth-tests: New file.
20765
20766         * lib/uniwidth/u16-strwidth.c: New file.
20767         * modules/uniwidth/u16-strwidth: New file.
20768
20769         * tests/uniwidth/test-u8-strwidth.c: New file.
20770         * modules/uniwidth/u8-strwidth-tests: New file.
20771
20772         * lib/uniwidth/u8-strwidth.c: New file.
20773         * modules/uniwidth/u8-strwidth: New file.
20774
20775         * tests/uniwidth/test-u32-width.c: New file.
20776         * modules/uniwidth/u32-width-tests: New file.
20777
20778         * lib/uniwidth/u32-width.c: New file.
20779         * modules/uniwidth/u32-width: New file.
20780
20781         * tests/uniwidth/test-u16-width.c: New file.
20782         * modules/uniwidth/u16-width-tests: New file.
20783
20784         * lib/uniwidth/u16-width.c: New file.
20785         * modules/uniwidth/u16-width: New file.
20786
20787         * tests/uniwidth/test-u8-width.c: New file.
20788         * modules/uniwidth/u8-width-tests: New file.
20789
20790         * lib/uniwidth/u8-width.c: New file.
20791         * modules/uniwidth/u8-width: New file.
20792
20793         * tests/uniwidth/test-uc_width.c: New file.
20794         * modules/uniwidth/width-tests: New file.
20795
20796         * lib/uniwidth/width.c: New file, from GNU libiconv.
20797         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
20798         * modules/uniwidth/width: New file.
20799
20800         * lib/uniwidth.h: New file, from GNU libiconv.
20801         * modules/uniwidth/base: New file.
20802
20803 2007-07-07  Bruno Haible  <bruno@clisp.org>
20804
20805         * lib/uniname.h: New file, from GNU gettext.
20806         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
20807         * lib/uniname/uninames.h: New file, from GNU gettext.
20808         * lib/uniname/uniname.c: New file, from GNU gettext.
20809         * tests/uniname/test-uninames.sh: New file.
20810         * tests/uniname/test-uninames.c: New file, from GNU gettext.
20811         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
20812         * modules/uniname/base: New file.
20813         * modules/uniname/uniname: New file.
20814         * modules/uniname/uniname-tests: New file.
20815         * MODULES.html.sh (Unicode string functions): Add the new modules.
20816
20817 2007-07-06  Bruno Haible  <bruno@clisp.org>
20818
20819         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
20820
20821 2007-07-06  Bruno Haible  <bruno@clisp.org>
20822
20823         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
20824         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
20825         includes <cygwin/sys_time.h> which includes <sys/select.h> which
20826         include <sys/time.h>.
20827         Reported by Eric Blake.
20828
20829 2007-07-06  Eric Blake  <ebb9@byu.net>
20830
20831         Fix testing canonicalize on cygwin.
20832         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
20833         Revert patch from 2007-06-19.
20834         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
20835         canonicalize module is also in use.
20836         * tests/test-canonicalize.c: New file.
20837         * tests/test-canonicalize.sh: Likewise.
20838         * modules/canonicalize-tests: Likewise.
20839
20840 2007-07-06  Jim Meyering  <jim@meyering.net>
20841
20842         * lib/getugroups.c (getugroups): Detect getgrent failure.
20843         Adjust comment to reflect reality: this function may return -1.
20844
20845 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20846
20847         * build-aux/bootstrap (TP_URL,get_translations): Update to use
20848         the new TP address.
20849         (usage): Fix typo
20850         (gnulib_mk): New variable.
20851
20852 2007-07-05  Jim Meyering  <jim@meyering.net>
20853
20854         Don't let endgrent clobber errno, no matter how improbable.
20855         * lib/getugroups.c (getugroups): Save and restore errno around
20856         endgrent call.
20857
20858         Close the group DB even when failing with 2^31 or more members.
20859         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
20860
20861 2007-07-04  Jim Meyering  <jim@meyering.net>
20862
20863         * lib/getugroups.h: New file.
20864         * lib/getugroups.c: Include "getugroups.h".
20865         Remove uses of "register" keyword.
20866         Move local variable, "cp", down into scope where used.
20867         Give "username" parameter the "const" attribute.
20868         * modules/getugroups (Files): Add lib/getugroups.h
20869
20870 2007-07-04  Karl Berry  <karl@gnu.org>
20871
20872         * MODULES.html.sh (func_all_modules): Complete rename of
20873         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
20874
20875 2007-07-02  Bruno Haible  <bruno@clisp.org>
20876
20877         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
20878         mode, when inttypes.h comes from gnulib.
20879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20880
20881 2007-07-02  Simon Josefsson  <simon@josefsson.org>
20882
20883         * NEWS: Mention lgpl module name change.
20884
20885         * modules/lgpl-2.1: Renamed from lgpl.
20886
20887         * NEWS: Mention gpl module name change.
20888
20889         * modules/gpl-3.0: New file, based on gpl-2.0.
20890
20891         * modules/gpl-2.0: Renamed from gpl.
20892
20893         * modules/gpl: Fix filename, doc/gpl.texi is now found at
20894         doc/gpl-2.0.texi.
20895
20896 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
20899         #define __STDC_LIMIT_MACROS temporarily while including
20900         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
20901         Problem reported by Joel E. Denny in
20902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
20903
20904 2007-07-01  Bruno Haible  <bruno@clisp.org>
20905
20906         * lib/unistdio.h: New file.
20907         * lib/unistdio/u-asnprintf.h: New file.
20908         * lib/unistdio/u-asprintf.h: New file.
20909         * lib/unistdio/u-printf-args.c: New file.
20910         * lib/unistdio/u-printf-args.h: New file.
20911         * lib/unistdio/u-printf-parse.h: New file.
20912         * lib/unistdio/u-snprintf.h: New file.
20913         * lib/unistdio/u-sprintf.h: New file.
20914         * lib/unistdio/u-vasprintf.h: New file.
20915         * lib/unistdio/u-vsnprintf.h: New file.
20916         * lib/unistdio/u-vsprintf.h: New file.
20917         * lib/unistdio/ulc-asnprintf.c: New file.
20918         * lib/unistdio/ulc-asprintf.c: New file.
20919         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
20920         * lib/unistdio/ulc-printf-parse.c: New file.
20921         * lib/unistdio/ulc-snprintf.c: New file.
20922         * lib/unistdio/ulc-sprintf.c: New file.
20923         * lib/unistdio/ulc-vasnprintf.c: New file.
20924         * lib/unistdio/ulc-vasprintf.c: New file.
20925         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
20926         * lib/unistdio/ulc-vsnprintf.c: New file.
20927         * lib/unistdio/ulc-vsprintf.c: New file.
20928         * lib/unistdio/u8-asnprintf.c: New file.
20929         * lib/unistdio/u8-asprintf.c: New file.
20930         * lib/unistdio/u8-printf-parse.c: New file.
20931         * lib/unistdio/u8-snprintf.c: New file.
20932         * lib/unistdio/u8-sprintf.c: New file.
20933         * lib/unistdio/u8-vasnprintf.c: New file.
20934         * lib/unistdio/u8-vasprintf.c: New file.
20935         * lib/unistdio/u8-vsnprintf.c: New file.
20936         * lib/unistdio/u8-vsprintf.c: New file.
20937         * lib/unistdio/u8-u8-asnprintf.c: New file.
20938         * lib/unistdio/u8-u8-asprintf.c: New file.
20939         * lib/unistdio/u8-u8-snprintf.c: New file.
20940         * lib/unistdio/u8-u8-sprintf.c: New file.
20941         * lib/unistdio/u8-u8-vasnprintf.c: New file.
20942         * lib/unistdio/u8-u8-vasprintf.c: New file.
20943         * lib/unistdio/u8-u8-vsnprintf.c: New file.
20944         * lib/unistdio/u8-u8-vsprintf.c: New file.
20945         * lib/unistdio/u16-asnprintf.c: New file.
20946         * lib/unistdio/u16-asprintf.c: New file.
20947         * lib/unistdio/u16-printf-parse.c: New file.
20948         * lib/unistdio/u16-snprintf.c: New file.
20949         * lib/unistdio/u16-sprintf.c: New file.
20950         * lib/unistdio/u16-vasnprintf.c: New file.
20951         * lib/unistdio/u16-vasprintf.c: New file.
20952         * lib/unistdio/u16-vsnprintf.c: New file.
20953         * lib/unistdio/u16-vsprintf.c: New file.
20954         * lib/unistdio/u16-u16-asnprintf.c: New file.
20955         * lib/unistdio/u16-u16-asprintf.c: New file.
20956         * lib/unistdio/u16-u16-snprintf.c: New file.
20957         * lib/unistdio/u16-u16-sprintf.c: New file.
20958         * lib/unistdio/u16-u16-vasnprintf.c: New file.
20959         * lib/unistdio/u16-u16-vasprintf.c: New file.
20960         * lib/unistdio/u16-u16-vsnprintf.c: New file.
20961         * lib/unistdio/u16-u16-vsprintf.c: New file.
20962         * lib/unistdio/u32-asnprintf.c: New file.
20963         * lib/unistdio/u32-asprintf.c: New file.
20964         * lib/unistdio/u32-printf-parse.c: New file.
20965         * lib/unistdio/u32-snprintf.c: New file.
20966         * lib/unistdio/u32-sprintf.c: New file.
20967         * lib/unistdio/u32-vasnprintf.c: New file.
20968         * lib/unistdio/u32-vasprintf.c: New file.
20969         * lib/unistdio/u32-vsnprintf.c: New file.
20970         * lib/unistdio/u32-vsprintf.c: New file.
20971         * lib/unistdio/u32-u32-asnprintf.c: New file.
20972         * lib/unistdio/u32-u32-asprintf.c: New file.
20973         * lib/unistdio/u32-u32-snprintf.c: New file.
20974         * lib/unistdio/u32-u32-sprintf.c: New file.
20975         * lib/unistdio/u32-u32-vasnprintf.c: New file.
20976         * lib/unistdio/u32-u32-vasprintf.c: New file.
20977         * lib/unistdio/u32-u32-vsnprintf.c: New file.
20978         * lib/unistdio/u32-u32-vsprintf.c: New file.
20979         * tests/unistdio/test-ulc-asnprintf1.c: New file.
20980         * tests/unistdio/test-ulc-asnprintf1.h: New file.
20981         * tests/unistdio/test-ulc-printf1.h: New file.
20982         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
20983         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
20984         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
20985         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
20986         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
20987         * tests/unistdio/test-ulc-vasprintf1.c: New file.
20988         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
20989         * tests/unistdio/test-ulc-vsprintf1.c: New file.
20990         * tests/unistdio/test-u8-asnprintf1.c: New file.
20991         * tests/unistdio/test-u8-asnprintf1.h: New file.
20992         * tests/unistdio/test-u8-printf1.h: New file.
20993         * tests/unistdio/test-u8-vasnprintf1.c: New file.
20994         * tests/unistdio/test-u8-vasnprintf2.c: New file.
20995         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
20996         * tests/unistdio/test-u8-vasnprintf3.c: New file.
20997         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
20998         * tests/unistdio/test-u8-vasprintf1.c: New file.
20999         * tests/unistdio/test-u8-vsnprintf1.c: New file.
21000         * tests/unistdio/test-u8-vsprintf1.c: New file.
21001         * tests/unistdio/test-u16-asnprintf1.c: New file.
21002         * tests/unistdio/test-u16-asnprintf1.h: New file.
21003         * tests/unistdio/test-u16-printf1.h: New file.
21004         * tests/unistdio/test-u16-vasnprintf1.c: New file.
21005         * tests/unistdio/test-u16-vasnprintf2.c: New file.
21006         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
21007         * tests/unistdio/test-u16-vasnprintf3.c: New file.
21008         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
21009         * tests/unistdio/test-u16-vasprintf1.c: New file.
21010         * tests/unistdio/test-u16-vsnprintf1.c: New file.
21011         * tests/unistdio/test-u16-vsprintf1.c: New file.
21012         * tests/unistdio/test-u32-asnprintf1.c: New file.
21013         * tests/unistdio/test-u32-asnprintf1.h: New file.
21014         * tests/unistdio/test-u32-printf1.h: New file.
21015         * tests/unistdio/test-u32-vasnprintf1.c: New file.
21016         * tests/unistdio/test-u32-vasnprintf2.c: New file.
21017         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
21018         * tests/unistdio/test-u32-vasnprintf3.c: New file.
21019         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
21020         * tests/unistdio/test-u32-vasprintf1.c: New file.
21021         * tests/unistdio/test-u32-vsnprintf1.c: New file.
21022         * tests/unistdio/test-u32-vsprintf1.c: New file.
21023         * modules/unistdio/base: New file.
21024         * modules/unistdio/u-printf-args: New file.
21025         * modules/unistdio/ulc-asnprintf: New file.
21026         * modules/unistdio/ulc-asprintf: New file.
21027         * modules/unistdio/ulc-fprintf: New file.
21028         * modules/unistdio/ulc-printf-parse: New file.
21029         * modules/unistdio/ulc-snprintf: New file.
21030         * modules/unistdio/ulc-sprintf: New file.
21031         * modules/unistdio/ulc-vasnprintf: New file.
21032         * modules/unistdio/ulc-vasprintf: New file.
21033         * modules/unistdio/ulc-vfprintf: New file.
21034         * modules/unistdio/ulc-vsnprintf: New file.
21035         * modules/unistdio/ulc-vsprintf: New file.
21036         * modules/unistdio/u8-asnprintf: New file.
21037         * modules/unistdio/u8-asprintf: New file.
21038         * modules/unistdio/u8-printf-parse: New file.
21039         * modules/unistdio/u8-snprintf: New file.
21040         * modules/unistdio/u8-sprintf: New file.
21041         * modules/unistdio/u8-vasnprintf: New file.
21042         * modules/unistdio/u8-vasprintf: New file.
21043         * modules/unistdio/u8-vsnprintf: New file.
21044         * modules/unistdio/u8-vsprintf: New file.
21045         * modules/unistdio/u8-u8-asnprintf: New file.
21046         * modules/unistdio/u8-u8-asprintf: New file.
21047         * modules/unistdio/u8-u8-snprintf: New file.
21048         * modules/unistdio/u8-u8-sprintf: New file.
21049         * modules/unistdio/u8-u8-vasnprintf: New file.
21050         * modules/unistdio/u8-u8-vasprintf: New file.
21051         * modules/unistdio/u8-u8-vsnprintf: New file.
21052         * modules/unistdio/u8-u8-vsprintf: New file.
21053         * modules/unistdio/u16-asnprintf: New file.
21054         * modules/unistdio/u16-asprintf: New file.
21055         * modules/unistdio/u16-printf-parse: New file.
21056         * modules/unistdio/u16-snprintf: New file.
21057         * modules/unistdio/u16-sprintf: New file.
21058         * modules/unistdio/u16-vasnprintf: New file.
21059         * modules/unistdio/u16-vasprintf: New file.
21060         * modules/unistdio/u16-vsnprintf: New file.
21061         * modules/unistdio/u16-vsprintf: New file.
21062         * modules/unistdio/u16-u16-asnprintf: New file.
21063         * modules/unistdio/u16-u16-asprintf: New file.
21064         * modules/unistdio/u16-u16-snprintf: New file.
21065         * modules/unistdio/u16-u16-sprintf: New file.
21066         * modules/unistdio/u16-u16-vasnprintf: New file.
21067         * modules/unistdio/u16-u16-vasprintf: New file.
21068         * modules/unistdio/u16-u16-vsnprintf: New file.
21069         * modules/unistdio/u16-u16-vsprintf: New file.
21070         * modules/unistdio/u32-asnprintf: New file.
21071         * modules/unistdio/u32-asprintf: New file.
21072         * modules/unistdio/u32-printf-parse: New file.
21073         * modules/unistdio/u32-snprintf: New file.
21074         * modules/unistdio/u32-sprintf: New file.
21075         * modules/unistdio/u32-vasnprintf: New file.
21076         * modules/unistdio/u32-vasprintf: New file.
21077         * modules/unistdio/u32-vsnprintf: New file.
21078         * modules/unistdio/u32-vsprintf: New file.
21079         * modules/unistdio/u32-u32-asnprintf: New file.
21080         * modules/unistdio/u32-u32-asprintf: New file.
21081         * modules/unistdio/u32-u32-snprintf: New file.
21082         * modules/unistdio/u32-u32-sprintf: New file.
21083         * modules/unistdio/u32-u32-vasnprintf: New file.
21084         * modules/unistdio/u32-u32-vasprintf: New file.
21085         * modules/unistdio/u32-u32-vsnprintf: New file.
21086         * modules/unistdio/u32-u32-vsprintf: New file.
21087         * modules/unistdio/ulc-asnprintf-tests: New file.
21088         * modules/unistdio/ulc-vasnprintf-tests: New file.
21089         * modules/unistdio/ulc-vasprintf-tests: New file.
21090         * modules/unistdio/ulc-vsnprintf-tests: New file.
21091         * modules/unistdio/ulc-vsprintf-tests: New file.
21092         * modules/unistdio/u8-asnprintf-tests: New file.
21093         * modules/unistdio/u8-vasnprintf-tests: New file.
21094         * modules/unistdio/u8-vasprintf-tests: New file.
21095         * modules/unistdio/u8-vsnprintf-tests: New file.
21096         * modules/unistdio/u8-vsprintf-tests: New file.
21097         * modules/unistdio/u16-asnprintf-tests: New file.
21098         * modules/unistdio/u16-vasnprintf-tests: New file.
21099         * modules/unistdio/u16-vasprintf-tests: New file.
21100         * modules/unistdio/u16-vsnprintf-tests: New file.
21101         * modules/unistdio/u16-vsprintf-tests: New file.
21102         * modules/unistdio/u32-asnprintf-tests: New file.
21103         * modules/unistdio/u32-vasnprintf-tests: New file.
21104         * modules/unistdio/u32-vasprintf-tests: New file.
21105         * modules/unistdio/u32-vsnprintf-tests: New file.
21106         * modules/unistdio/u32-vsprintf-tests: New file.
21107         * MODULES.html.sh (Unicode string functions): Add the new modules.
21108
21109 2007-07-01  Bruno Haible  <bruno@clisp.org>
21110
21111         * lib/sprintf.c (sprintf): Limit the available length estimation,
21112         to avoid address wraparound.
21113         * lib/vsprintf.c (vsprintf): Likewise.
21114         * modules/sprintf-posix (Dependencies): Add stdint.
21115         * modules/vsprintf-posix (Dependencies): Likewise.
21116
21117 2007-07-01  Bruno Haible  <bruno@clisp.org>
21118
21119         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
21120         Windows PATH as well. Conservative double-quoting. Comments.
21121
21122 2007-07-01  Bruno Haible  <bruno@clisp.org>
21123             Eric Blake  <ebb9@byu.net>
21124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21125
21126         * gnulib-tool (self_abspathname): Fix algorithm to cope with
21127         empty components in $PATH, denoting '.'.
21128
21129 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21130
21131         * gnulib-tool: Fix indentation.
21132         (func_create_megatestdir): Likewise.
21133         Report by Bruno Haible.
21134
21135 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21136
21137         Sync from Automake.
21138         * build-aux/gnupload: Fix shell portability issues with for loops.
21139         Report by Karl Berry.
21140
21141 2007-06-29  Simon Josefsson  <simon@josefsson.org>
21142
21143         * build-aux/maint.mk (POURL): Use translationproject.org.
21144
21145 2007-06-27  Simon Josefsson  <simon@josefsson.org>
21146             Bruno Haible  <bruno@clisp.org>
21147
21148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
21149         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
21150         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
21151         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
21152         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
21153
21154 2007-06-27  Bruno Haible  <bruno@clisp.org>
21155
21156         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
21157         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
21158
21159 2007-06-26  Karl Berry  <karl@gnu.org>
21160
21161         * MODULES.html.sh: remove xreadlink-with-size.
21162
21163 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
21166         method that I hope also handles the double-include problem noted
21167         by Bruno Haible in
21168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
21169
21170 2007-06-23  Bruno Haible  <bruno@clisp.org>
21171
21172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21173         Don't let the 'mostlyclean' target fail if the last subdirectory could
21174         not be removed.
21175         Reported by Karl Berry.
21176
21177 2007-06-23  Bruno Haible  <bruno@clisp.org>
21178
21179         * gnulib-tool (echo): Add a speedier workaround for ksh.
21180         * tests/test-echo.sh: Likewise.
21181
21182 2007-06-23  Bruno Haible  <bruno@clisp.org>
21183
21184         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
21185         * tests/test-echo.sh: Likewise.
21186
21187 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21188
21189         * gnulib-tool (IFS): Initialize early, so we don't set it to
21190         empty later.
21191         (self_abspathname): Rewrite algorithm to set it, reindent.
21192         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21193         (func_create_megatestdir): Merge some sed scripts.
21194
21195 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21196
21197         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
21198         exposed by Sun Studio 11 cc on Solaris 8.
21199
21200 2007-06-22  Bruno Haible  <bruno@clisp.org>
21201
21202         * gnulib-tool (echo): Ensure the echo primitive does not interpret
21203         backslashes.
21204         * tests/test-echo.sh: New file.
21205
21206 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21207
21208         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
21209         simplify `sed_replace_build_aux' scripts, they are portable but
21210         echoing them with `echo' is not.
21211         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
21212
21213 2007-06-21  Karl Berry  <karl@gnu.org>
21214
21215         * config/srclist.txt: guess we can't handle the licenses via
21216         srclist at the moment.
21217
21218 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21219
21220         * MODULES.html.sh: Add include_next.
21221         * modules/include_next: New file.
21222
21223 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
21226         INCLUDE_NEXT.
21227         (gl_CHECK_NEXT_HEADERS): New macro.
21228         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
21229         the obsolescent gl_ABSOLUTE_HEADER.
21230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21231         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21232         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21234         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21235         * m4/math_h.m4 (gl_MATH_H): Likewise.
21236         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21237         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21238         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21239         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21240         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21241         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21243         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21244         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21247         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21248         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
21249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21250         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21252         * m4/inttypes.m4 (gl_INTTYPES_H): Define
21253         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
21254         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
21255         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
21256         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
21257         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
21258         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
21259         * lib/float_.h: Likewise.
21260         * lib/inttypes_.h: Likewise.
21261         * lib/math_.h: Likewise.
21262         * lib/search_.h: Likewise.
21263         * lib/signal_.h: Likewise.
21264         * lib/stdint_.h: Likewise.
21265         * lib/stdio_.h: Likewise.
21266         * lib/stdlib_.h: Likewise.
21267         * lib/string_.h: Likewise.
21268         * lib/sys_stat_.h: Likewise.
21269         * lib/sys_time_.h: Likewise.
21270         * lib/time_.h: Likewise.
21271         * lib/unistd_.h: Likewise.
21272         * lib/wchar_.h: Likewise.
21273         * lib/wctype_.h: Likewise.
21274         * lib/dirent_.h: Likewise.
21275         * lib/iconv_.h: Likewise.
21276         * lib/locale_.h: Likewise.
21277         * lib/netinet_in_.h: Likewise.
21278         * lib/sys_select_.h: Likewise.
21279         * lib/sys_socket_.h: Likewise.
21280         * lib/sysexits_.h: Likewise.
21281         * modules/fcntl (Depends-on): Depend on include_next, not
21282         absolute_header.
21283         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
21284         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
21285         * modules/fchdir: Likewise.
21286         * modules/float: Likewise.
21287         * modules/iconv_open: Likewise.
21288         * modules/inttypes: Likewise.
21289         * modules/locale: Likewise.
21290         * modules/math: Likewise.
21291         * modules/netinet_in: Likewise.
21292         * modules/search: Likewise.
21293         * modules/signal: Likewise.
21294         * modules/stdint: Likewise.
21295         * modules/stdio: Likewise.
21296         * modules/stdlib: Likewise.
21297         * modules/string: Likewise.
21298         * modules/sys_select: Likewise.
21299         * modules/sys_socket: Likewise.
21300         * modules/sys_stat: Likewise.
21301         * modules/sys_time: Likewise.
21302         * modules/sysexits: Likewise.
21303         * modules/time: Likewise.
21304         * modules/unistd: Likewise.
21305         * modules/wchar: Likewise.
21306         * modules/wctype: Likewise.
21307         * modules/sys_stat: Change maintainer to "all".
21308         * modules/unistd: Likewise.
21309
21310 2007-06-20  Karl Berry  <karl@gnu.org>
21311
21312         * config/srclist.txt: track www changes in license files.
21313
21314 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
21315
21316         * build-aux/bootstrap: Remove stray dot.
21317         Make sure build_aux settings are honored when linking
21318         gnulib_extra_files.
21319
21320 2007-06-19  Eric Blake  <ebb9@byu.net>
21321
21322         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21323         Allow compilation on cygwin.
21324
21325 2007-06-19  Jim Meyering  <jim@meyering.net>
21326
21327         xreadlink-with-size: Remove module.  No longer used.
21328         Ex-callers now use xreadlink or mreadlink-with-size.
21329         * modules/xreadlink-with-size: Remove module.
21330         * lib/xreadlink-with-size.c: Remove file.
21331         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
21332         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
21333         just before the function definition *is* accurate.
21334
21335         Eliminate one way canonicalize_filename_mode could exit.
21336         * lib/canonicalize.c (canonicalize_filename_mode):
21337         Use mreadlink_with_size, not xreadlink_with_size.
21338
21339 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
21340
21341         Detect porting problems to FreeBSD/arm, which has time_t wider than
21342         long int.  Original problem reported for GNU diff by Xin Li in
21343         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
21344         * modules/getdate (Depends-on): Add intprops, verify.
21345         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
21346         is an integer type no wider than long int.
21347
21348 2007-06-18  Jim Meyering  <jim@meyering.net>
21349
21350         New module: mreadlink-with-size.
21351         * MODULES.html.sh: Add mreadlink-with-size.
21352         * modules/mreadlink-with-size: New module
21353         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
21354         not xreadlink-with-size.
21355         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
21356
21357 2007-06-16  Bruno Haible  <bruno@clisp.org>
21358
21359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
21360         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
21361         Reported by Gary V. Vaughan <gary@gnu.org>.
21362
21363 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         Revamp lchown so that it lives in unistd.h where it belongs.
21366         * lib/lchown.h: Remove.
21367         * lib/dirchownmod.c: Don't include lib/lchown.h.
21368         * lib/fchownat.c: Likewise.
21369         * lib/openat.c: Likewise.
21370         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
21371         does not follow symlinks.
21372         (EOPNOTSUPP): Define if not defined.
21373         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
21374         is defined to 0.
21375         (lchown): New decl.
21376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
21377         Do not check for lchown decl.
21378         Set REPLACE_LCHOWN.
21379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
21380         REPLACE_LCHOWN.
21381         * modules/chown: Make it clear it follows symlinks.
21382         * modules/lchown: Make it clear it doesn't follow symlinks.
21383         (Files): Remove lib/lchown.h
21384         (Depends-on): Add unistd.
21385         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
21386         (Include): Include <unistd.h>, not "lchown.h".
21387         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
21388         REPLACE_LCHOWN.
21389
21390 2007-06-15  Jim Meyering  <jim@meyering.net>
21391
21392         Change license (GPL to LGPL) of fsusage and dependents.
21393         * modules/fsusage (License): Change to LGPL.
21394         * modules/full-read (License): Likewise.
21395         * modules/full-write (License): Likewise.
21396         * modules/safe-read (License): Likewise.
21397         * modules/safe-write (License): Likewise.
21398
21399 2007-06-14  Ben Pfaff  <blp@gnu.org>
21400
21401         Missing part of allocsa -> malloca transition.
21402         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
21403         gl_MALLOCA.
21404
21405 2007-06-12  Bruno Haible  <bruno@clisp.org>
21406
21407         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
21408         to ia64, x86_64, i386.
21409         Reported by Eric Blake.
21410
21411 2007-06-12  Bruno Haible  <bruno@clisp.org>
21412
21413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
21414         cross-compiling to x86_64.
21415
21416 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
21417
21418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
21419         glitch reported by Ralf Wildenhues in
21420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
21421
21422         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
21423         Vin Shelton.
21424
21425 2007-06-11  Bruno Haible  <bruno@clisp.org>
21426
21427         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
21428         replacement string.
21429         Reported by Eric Blake.
21430
21431 2007-06-10  Bruno Haible  <bruno@clisp.org>
21432
21433         Prepare vasnprintf code for use with Unicode strings.
21434         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
21435         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
21436         TYPE_U32_STRING.
21437         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
21438         a_u32_string variants.
21439         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21440         * lib/printf-args.c: Don't include config.h and the specification
21441         header if PRINTF_FETCHARGS is already defined.
21442         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21443         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
21444         TYPE_U16_STRING, TYPE_U32_STRING.
21445         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
21446         u16_directive, u16_directives, u32_directive, u32_directives): New
21447         types.
21448         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
21449         New declarations.
21450         * lib/printf-parse.c: Don't include config.h and the specification
21451         header if PRINTF_PARSE is already defined. Eliminate the set of
21452         parameters for WIDE_CHAR_VERSION; the user of this file must provide
21453         them now. Include c-ctype.h.
21454         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
21455         directive and CHAR_T_ONLY_ASCII.
21456         * lib/vasnprintf.c: Don't include config.h and the specification header
21457         if VASNPRINTF is already defined.
21458         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
21459         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
21460         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
21461         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
21462         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
21463         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
21464         code accordingly.
21465         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
21466         pad_ourselves also in this case, with the 'c' and 's' directives, and
21467         with a different notion of "width".
21468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
21469
21470 2007-06-10  Bruno Haible  <bruno@clisp.org>
21471
21472         * modules/unistr/u32-mbsnlen: New file.
21473         * lib/unistr/u32-mbsnlen.c: New file.
21474
21475         * modules/unistr/u16-mbsnlen: New file.
21476         * lib/unistr/u16-mbsnlen.c: New file.
21477
21478         * modules/unistr/u8-mbsnlen: New file.
21479         * lib/unistr/u8-mbsnlen.c: New file.
21480
21481         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
21482         declarations.
21483
21484 2007-06-10  Bruno Haible  <bruno@clisp.org>
21485
21486         * lib/string_.h (mbsnlen): New declaration.
21487         * lib/mbsnlen.c: New file.
21488         * m4/mbsnlen.m4: New file.
21489         * modules/mbsnlen: New file.
21490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
21491         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
21492         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
21493
21494 2007-06-10  Bruno Haible  <bruno@clisp.org>
21495
21496         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
21497
21498 2007-06-10  Bruno Haible  <bruno@clisp.org>
21499
21500         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
21501         * lib/mbuiter.h: Likewise.
21502
21503 2007-06-10  Bruno Haible  <bruno@clisp.org>
21504
21505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
21506         declaration.
21507
21508 2007-06-10  Karl Berry  <karl@gnu.org>
21509
21510         * config/srclist.txt: remove gettext entries, Bruno prefers
21511         to update individually.
21512
21513 2007-06-10  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
21516         'maxlen'. Ensure only length + width bytes are allocated, not
21517         length + 1 + width.
21518
21519 2007-06-09  Bruno Haible  <bruno@clisp.org>
21520
21521         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
21522         (CHAR_T): Remove macro.
21523         (VASNPRINTF): Update.
21524
21525 2007-06-09  Bruno Haible  <bruno@clisp.org>
21526
21527         * MODULES.html.sh (Unicode string functions): Add the new modules.
21528
21529         * modules/uniconv/u32-conv-to-enc: New file.
21530         * lib/uniconv/u32-conv-to-enc.c: New file.
21531         * modules/uniconv/u32-conv-to-enc-tests: New file.
21532         * tests/uniconv/test-u32-conv-to-enc.c: New file.
21533
21534         * modules/uniconv/u16-conv-to-enc: New file.
21535         * lib/uniconv/u16-conv-to-enc.c: New file.
21536         * lib/uniconv/u-conv-to-enc.h: New file.
21537         * modules/uniconv/u16-conv-to-enc-tests: New file.
21538         * tests/uniconv/test-u16-conv-to-enc.c: New file.
21539
21540         * modules/uniconv/u8-conv-to-enc: New file.
21541         * lib/uniconv/u8-conv-to-enc.c: New file.
21542         * modules/uniconv/u8-conv-to-enc-tests: New file.
21543         * tests/uniconv/test-u8-conv-to-enc.c: New file.
21544
21545         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21546         u32_conv_to_encoding): New declarations.
21547
21548 2007-06-09  Bruno Haible  <bruno@clisp.org>
21549
21550         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
21551
21552 2007-06-09  Bruno Haible  <bruno@clisp.org>
21553
21554         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
21555         * modules/malloca: Renamed from modules/allocsa, updated.
21556         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
21557         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
21558         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
21559         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
21560         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
21561         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
21562         * modules/xmalloca: Renamed from modules/xallocsa, updated.
21563         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
21564         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
21565         * modules/c-strcasestr (Depends-on): Update.
21566         * lib/c-strcasestr.c: Update.
21567         * modules/c-strstr (Depends-on): Update.
21568         * lib/c-strstr.c: Update.
21569         * modules/canonicalize-lgpl (Depends-on): Update.
21570         * lib/canonicalize-lgpl.c: Update.
21571         * modules/clean-temp (Depends-on): Update.
21572         * lib/clean-temp.c: Update.
21573         * modules/csharpcomp (Depends-on): Update.
21574         * lib/csharpcomp.c: Update.
21575         * modules/csharpexec (Depends-on): Update.
21576         * lib/csharpexec.c: Update.
21577         * modules/javacomp (Depends-on): Update.
21578         * lib/javacomp.c: Update.
21579         * modules/javaexec (Depends-on): Update.
21580         * lib/javaexec.c: Update.
21581         * modules/mbscasestr (Depends-on): Update.
21582         * lib/mbscasestr.c: Update.
21583         * modules/mbsstr (Depends-on): Update.
21584         * lib/mbsstr.c: Update.
21585         * modules/setenv (Depends-on): Update.
21586         * lib/setenv.c: Update.
21587         * modules/strcasestr (Depends-on): Update.
21588         * lib/strcasestr.c: Update.
21589         * modules/striconveha (Depends-on): Update.
21590         * lib/striconveha.c: Update.
21591         * modules/relocatable-prog-wrapper (Files): Update.
21592         * lib/relocwrapper.c: Update.
21593         * build-aux/install-reloc: Update.
21594         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
21595
21596 2007-06-08  Bruno Haible  <bruno@clisp.org>
21597
21598         Port to uClibc.
21599         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
21600         * lib/fpurge.c (fpurge): Likewise.
21601         * lib/freading.c (freading): Likewise.
21602         * lib/fseeko.c (rpl_fseeko): Likewise.
21603         * lib/fseterr.c (fseterr): Likewise.
21604         * lib/fwriting.c (fwriting): Likewise.
21605         * tests/test-fflush.c (main): Avoid a failure on uClibc.
21606
21607 2007-06-08  Bruno Haible  <bruno@clisp.org>
21608
21609         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
21610         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
21611         * modules/gettext (Files): Add m4/intlmacosx.m4.
21612
21613 2007-06-07  Bruno Haible  <bruno@clisp.org>
21614
21615         * modules/localename-tests: New file.
21616         * tests/test-localename.c: New file.
21617
21618         New module 'localename'.
21619         * lib/localename.h: New file.
21620         * lib/localename.c: New file, from GNU gettext.
21621         * m4/localename.m4: New file.
21622         * modules/localename: New file.
21623
21624 2007-06-07  Bruno Haible  <bruno@clisp.org>
21625
21626         Work around the lack of <wchar.h> on some builds of uClibc.
21627         * doc/headers/wchar.texi: Update.
21628         * lib/wchar_.h: Include <wchar.h> only if it exists.
21629         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
21630         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
21631         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
21632         doesn't exist.
21633         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
21634         * modules/mbfile (Depends-on): Add wchar.
21635         * modules/mbiter (Depends-on): Likewise.
21636         * modules/mbuiter (Depends-on): Likewise.
21637         Reported by Simon Josefsson.
21638
21639 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21640
21641         Work around problem reported by Steven M. Schweda in
21642         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
21643         Tru64 5.1B with the Compaq compiler environment installed declares
21644         an 'isblank' function but does not define it in the C library.
21645         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
21646         * lib/regex_internal.h (isblank): Likewise.
21647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
21648         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21649
21650 2007-06-05  Bruno Haible  <bruno@clisp.org>
21651
21652         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
21653         ia64.
21654         * modules/printf-safe: New file.
21655         * modules/fprintf-posix (Depends-on): Add printf-safe.
21656         * modules/printf-posix (Depends-on): Likewise.
21657         * modules/snprintf-posix (Depends-on): Likewise.
21658         * modules/sprintf-posix (Depends-on): Likewise.
21659         * modules/vasnprintf-posix (Depends-on): Likewise.
21660         * modules/vasprintf-posix (Depends-on): Likewise.
21661         * modules/vfprintf-posix (Depends-on): Likewise.
21662         * modules/vprintf-posix (Depends-on): Likewise.
21663         * modules/vsnprintf-posix (Depends-on): Likewise.
21664         * modules/vsprintf-posix (Depends-on): Likewise.
21665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
21666         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
21667         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
21668         "no" on i386, x86_64, ia64.
21669         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
21670         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21671         on i386, x86_64, ia64.
21672         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
21673         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21674         on i386, x86_64, ia64.
21675         * tests/test-vasnprintf-posix.c: Include float.h.
21676         (LDBL80_WORDS): New macro.
21677         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21678         on i386, x86_64, ia64.
21679         * tests/test-vasprintf-posix.c: Include float.h.
21680         (LDBL80_WORDS): New macro.
21681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
21682         on i386, x86_64, ia64.
21683         * tests/test-snprintf-posix.c: Include float.h.
21684         * tests/test-sprintf-posix.c: Likewise.
21685         * tests/test-vsnprintf-posix.c: Likewise.
21686         * tests/test-vsprintf-posix.c: Likewise.
21687
21688 2007-06-05  Bruno Haible  <bruno@clisp.org>
21689
21690         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
21691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
21692         non-IEEE numbers on i386, x86_64, ia64.
21693         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
21694         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
21695         * tests/test-isnanl.h: Include float.h.
21696         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
21697
21698 2007-06-05  Bruno Haible  <bruno@clisp.org>
21699
21700         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
21701         also the %a / %A. Handle the %a / %A code before this extra handling.
21702
21703 2007-06-05  Bruno Haible  <bruno@clisp.org>
21704
21705         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
21706         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
21707
21708 2007-06-05  Bruno Haible  <bruno@clisp.org>
21709
21710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
21711         typo in variable name.
21712
21713 2007-06-05  Eric Blake  <ebb9@byu.net>
21714
21715         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
21716         Reported by Simon Josefsson.
21717
21718 2007-06-04  Bruno Haible  <bruno@clisp.org>
21719
21720         Avoid test failures on some PowerPC platforms.
21721         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
21722         Define differently for PowerPC.
21723         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
21724         Reported by Gary V. Vaughan <gary@gnu.org>.
21725
21726 2007-06-02  Bruno Haible  <bruno@clisp.org>
21727
21728         Fix test-stdint failure on FreeBSD/ia64.
21729         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
21730         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
21731         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
21732         * doc/headers/stdint.texi: Update.
21733
21734 2007-06-01  Bruno Haible  <bruno@clisp.org>
21735
21736         * tests/test-binary-io.c (main): Pass a third argument to open().
21737         Reported by Gary V. Vaughan <gary@gnu.org>.
21738
21739 2007-06-01  Bruno Haible  <bruno@clisp.org>
21740
21741         * doc/functions/frexpl.texi: Update for mingw.
21742
21743 2007-06-01  Bruno Haible  <bruno@clisp.org>
21744
21745         * tests/test-lseek.c (main): Disable test of errno for invalid third
21746         argument.
21747         * doc/functions/lseek.texi: Update.
21748         Reported by Gary V. Vaughan <gary@gnu.org>.
21749
21750 2007-05-28  Bruno Haible  <bruno@clisp.org>
21751
21752         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
21753
21754 2007-05-31  Eric Blake  <ebb9@byu.net>
21755
21756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
21757         cross compiling.
21758
21759 2007-05-30  Eric Blake  <ebb9@byu.net>
21760         and Bruno Haible  <bruno@clisp.org>
21761
21762         Work around mingw test failures exposed by m4-1.4.9b.
21763         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
21764         * tests/test-unistd.c: Disable uid_t and git_t tests for the
21765         moment.
21766
21767 2007-05-30  Bruno Haible  <bruno@clisp.org>
21768
21769         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
21770         assuming that they are closed. Needed on HP-UX 11.
21771
21772 2007-05-29  Bruno Haible  <bruno@clisp.org>
21773
21774         Fix a problem with #include_next.
21775         * lib/dirent_.h: Split the double-inclusion guard.
21776         * lib/fcntl_.h: Likewise.
21777         * lib/float_.h: Likewise.
21778         * lib/iconv_.h: Likewise.
21779         * lib/inttypes_.h: Likewise.
21780         * lib/locale_.h: Likewise.
21781         * lib/math_.h: Likewise.
21782         * lib/netinet_in_.h: Likewise.
21783         * lib/search_.h: Likewise.
21784         * lib/signal_.h: Likewise.
21785         * lib/stdint_.h: Likewise.
21786         * lib/stdio_.h: Likewise.
21787         * lib/stdlib_.h: Likewise.
21788         * lib/string_.h: Likewise.
21789         * lib/sys_select_.h: Likewise.
21790         * lib/sys_socket_.h: Likewise.
21791         * lib/sys_stat_.h: Likewise.
21792         * lib/sys_time_.h: Likewise.
21793         * lib/sysexits_.h: Likewise.
21794         * lib/time_.h: Likewise.
21795         * lib/unistd_.h: Likewise.
21796         * lib/wchar_.h: Likewise.
21797         * lib/wctype_.h: Likewise.
21798
21799 2007-05-29  Bruno Haible  <bruno@clisp.org>
21800
21801         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
21802         for the moment.
21803
21804 2007-05-29  Bruno Haible  <bruno@clisp.org>
21805
21806         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
21807         invocation.
21808         Reported by Eric Blake.
21809
21810 2007-05-29  Bruno Haible  <bruno@clisp.org>
21811
21812         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
21813         compiling case.
21814
21815 2007-05-29  Eric Blake  <ebb9@byu.net>
21816             Bruno Haible  <bruno@clisp.org>
21817
21818         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
21819         cross compiles.
21820
21821 2007-05-28  Eric Blake  <ebb9@byu.net>
21822
21823         * modules/closein-tests (test_closein_LDADD): Support test on
21824         cygwin with libtool.
21825
21826 2007-05-28  Bruno Haible  <bruno@clisp.org>
21827
21828         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
21829         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21830         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21831         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21832         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21833         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21834         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21835         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21836         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21837
21838 2007-05-28  Eric Blake  <ebb9@byu.net>
21839
21840         Unconditionally include <config.h> in unit tests.
21841         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
21842         * tests/test-allocsa.c, tests/test-arcfour.c,
21843         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
21844         tests/test-array_list.c, tests/test-array_oset.c,
21845         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
21846         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
21847         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
21848         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
21849         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
21850         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
21851         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
21852         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
21853         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
21854         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
21855         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
21856         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
21857         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
21858         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
21859         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
21860         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
21861         test-md5.c, test-memmem.c, test-printf-posix.c,
21862         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
21863         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
21864         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
21865         test-strcasestr.c, test-striconv.c, test-striconveh.c,
21866         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
21867         test-vasnprintf-posix2.c, test-vasnprintf.c,
21868         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
21869         test-vfprintf-posix.c, test-vprintf-posix.c,
21870         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
21871         test-xvasprintf.c: Likewise.
21872
21873 2007-05-28  Bruno Haible  <bruno@clisp.org>
21874
21875         * gnulib-tool (func_import): Remember the --with-tests command-line
21876         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
21877         Reported by Eric Blake.
21878
21879 2007-05-28  Bruno Haible  <bruno@clisp.org>
21880
21881         * modules/ftell-tests: New file.
21882         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
21883         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
21884
21885         * lib/ftell.c: New file.
21886         * modules/ftell: New file.
21887         * m4/ftell.m4: New file.
21888         * doc/functions/ftell.texi: Update.
21889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
21890         REPLACE_FTELL.
21891         * lib/stdio_.h (rpl_ftell): New declaration.
21892         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
21893         REPLACE_FTELL.
21894
21895 2007-05-28  Eric Blake  <ebb9@byu.net>
21896
21897         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
21898
21899 2007-05-28  Bruno Haible  <bruno@clisp.org>
21900
21901         * modules/fseek-tests: New file.
21902         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
21903         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
21904
21905         * lib/fseek.c: New file.
21906         * modules/fseek: New file.
21907         * m4/fseek.m4: New file.
21908         * doc/functions/fseek.texi: Update.
21909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
21910         REPLACE_FSEEK.
21911         * lib/stdio_.h (rpl_fseek): New declaration.
21912         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
21913         REPLACE_FSEEK.
21914
21915 2007-05-28  Bruno Haible  <bruno@clisp.org>
21916
21917         * lib/stdio_.h (fflush): More comments.
21918
21919 2007-05-28  Bruno Haible  <bruno@clisp.org>
21920
21921         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
21922         runtime test.
21923
21924 2007-05-28  Eric Blake  <ebb9@byu.net>
21925
21926         Improve lseek module.
21927         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
21928         * lib/unistd_.h (lseek): Scale back link warning message.
21929         * tests/test-lseek.c: Beef up test.
21930         * tests/test-lseek.sh: Exercise more facets of lseek.
21931         Reported by Bruno Haible.
21932
21933 2007-05-28  Bruno Haible  <bruno@clisp.org>
21934
21935         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
21936         to define.
21937
21938 2007-05-27  Bruno Haible  <bruno@clisp.org>
21939
21940         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
21941
21942 2007-05-27  Bruno Haible  <bruno@clisp.org>
21943
21944         * modules/openmp: New file.
21945         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
21946         Noah Misch.
21947
21948 2007-05-26  Bruno Haible  <bruno@clisp.org>
21949
21950         * modules/chdir-long (Depends-on): Add fchdir.
21951         * modules/chdir-safer (Depends-on): Likewise.
21952         * modules/fts (Depends-on): Likewise.
21953         * modules/fts-lgpl (Depends-on): Likewise.
21954         * modules/openat (Depends-on): Likewise.
21955         * modules/savewd (Depends-on): Likewise.
21956
21957 2007-05-24  Eric Blake  <ebb9@byu.net>
21958
21959         Fix lseek on mingw.
21960         * modules/lseek: New module.
21961         * m4/lseek.m4: New file.
21962         * lib/lseek.c: New file.
21963         * modules/lseek-tests: New file.
21964         * tests/test-lseek.c: New file.
21965         * tests/test-lseek.sh: New file.
21966         * MODULES.html.sh: Document lseek module.
21967         * modules/fflush (Depends-on): Add lseek, fseeko.
21968         * modules/fseeko (Depends-on): Likewise.
21969         * modules/ftello (Depends-on): Likewise.
21970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
21971         broken.
21972         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
21973         broken.
21974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
21975         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
21976         * lib/ftello.c (rpl_ftello): Likewise.
21977         * tests/test-fseeko.c (main): Test this.
21978         * tests/test-fseeko.sh: Likewise.
21979         * tests/test-ftello.c (main): Likewise.
21980         * tests/test-ftello.sh: Likewise.
21981         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
21982         implies replacing fseek.
21983         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
21984         HAVE_FTELLO.
21985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
21986         * modules/unistd (Makefile.am): Likewise.
21987         * lib/unistd_.h (lseek): Declare a replacement.
21988         * doc/functions/lseek.texi (lseek): Document this fix.
21989         * doc/functions/fseek.texi (fseek): Likewise.
21990         * doc/functions/ftell.texi (ftell): Likewise.
21991
21992 2007-05-24  Bruno Haible  <bruno@clisp.org>
21993
21994         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
21995         in the printed representation of a NaN.
21996         * tests/test-vasprintf-posix.c (test_function): Likewise.
21997         * tests/test-snprintf-posix.h (test_function): Likewise.
21998         * tests/test-sprintf-posix.h (test_function): Likewise.
21999         Reported by Eric Blake.
22000
22001 2007-05-23  Eric Blake  <ebb9@byu.net>
22002
22003         Fix fseeko/ftello on cygwin 1.5.24.
22004         * doc/functions/fseeko.texi (fseeko): Document the fix.
22005         * doc/functions/ftello.texi (ftello): Document the fix.
22006         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
22007         * doc/functions/stdout.text (stdout): New file.
22008         * doc/functions/stderr.text (stderr): New file.
22009         * doc/gnulib.texi (Function Substitutes): Use new files.
22010         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
22011         prior to 1.7.0.
22012         * tests/test-ftello.c (main): Likewise for ftello.
22013         * tests/test-fseeko.sh: New file.
22014         * tests/test-ftello.sh: New file.
22015         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
22016         with seekable stdin.
22017         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
22018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
22019         (gl_REPLACE_FSEEKO): New macro.
22020         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
22021         * modules/fseeko (Files): Distribute fseeko.c.
22022         * modules/ftello (Files): Distribute ftello.c.
22023         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
22024         mode.
22025         * lib/ftello.c (rpl_ftello): New file.
22026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
22027         fseeko, ftello.
22028         (gl_STDIN_LARGE_OFFSET): New macro.
22029         * modules/stdio (Makefile.am): Perform the replacement.
22030         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
22031
22032 2007-05-23  Bruno Haible  <bruno@clisp.org>
22033
22034         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
22035         GNULIB_POSIXCHECK is defined.
22036
22037 2007-05-21  Bruno Haible  <bruno@clisp.org>
22038
22039         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
22040         Check also the output for NaN arguments. When cross-compiling, guess
22041         no on IRIX.
22042         * lib/vasnprintf.c: Update comments.
22043         * tests/test-vasnprintf-posix.c (strisnan): New function.
22044         (test_function): Use it.
22045         * tests/test-vasprintf-posix.c (strisnan): New function.
22046         (test_function): Use it.
22047         * tests/test-snprintf-posix.h (strisnan): New function.
22048         (test_function): Use it.
22049         * tests/test-sprintf-posix.h (strisnan): New function.
22050         (test_function): Use it.
22051         Reported by Eric Blake.
22052
22053 2007-05-20  Bruno Haible  <bruno@clisp.org>
22054
22055         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
22056         numbers that fails on BeOS.
22057         * doc/functions/frexpl.texi: Update.
22058
22059 2007-05-20  Jim Meyering  <jim@meyering.net>
22060
22061         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
22062         forced upon us by glibc-2.6.
22063
22064 2007-05-20  Bruno Haible  <bruno@clisp.org>
22065
22066         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
22067         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
22068         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
22069         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
22070         NEED_PRINTF_INFINITE.
22071         (is_infinitel): New function.
22072         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
22073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
22074         gl_PREREQ_VASNPRINTF_INFINITE.
22075         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
22076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22077         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
22078         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
22079         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
22080         gl_PREREQ_VASNPRINTF_INFINITE.
22081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22088         * doc/functions/fprintf.texi: Update.
22089         * doc/functions/printf.texi: Update.
22090         * doc/functions/snprintf.texi: Update.
22091         * doc/functions/sprintf.texi: Update.
22092         * doc/functions/vfprintf.texi: Update.
22093         * doc/functions/vprintf.texi: Update.
22094         * doc/functions/vsnprintf.texi: Update.
22095         * doc/functions/vsprintf.texi: Update.
22096
22097 2007-05-20  Bruno Haible  <bruno@clisp.org>
22098
22099         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
22100         was not found in libc.
22101         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22102
22103 2007-05-20  Bruno Haible  <bruno@clisp.org>
22104
22105         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22106         printed as "-nan" instead of "nan".
22107         * tests/test-vasprintf-posix.c (test_function): Likewise.
22108         * tests/test-snprintf-posix.h (test_function): Likewise.
22109         * tests/test-sprintf-posix.h (test_function): Likewise.
22110         Needed for HP-UX 11.
22111
22112 2007-05-20  Jim Meyering  <jim@meyering.net>
22113
22114         Fix buggy test for the fchownat-deref bug.
22115         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
22116         symlink required for the run-test.  Without it, this test would
22117         always declare that fchownat doesn't work, and client code would
22118         unnecessarily use the replacement function with fixed libc.
22119         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
22120         Reported by Greg Schafer.
22121
22122 2007-05-19  Bruno Haible  <bruno@clisp.org>
22123
22124         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
22125         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
22126         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
22127         Needed for IRIX 6.5 and Solaris 2.5.1.
22128
22129 2007-05-19  Bruno Haible  <bruno@clisp.org>
22130
22131         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
22132         (test_function): Skip tests involving -0.0 on platforms where
22133         -0.0 = 0.0.
22134         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
22135         (test_function): Skip tests involving -0.0 on platforms where
22136         -0.0 = 0.0.
22137         * tests/test-snprintf-posix.h (have_minus_zero): New function.
22138         (test_function): Skip tests involving -0.0 on platforms where
22139         -0.0 = 0.0.
22140         * tests/test-sprintf-posix.h (have_minus_zero): New function.
22141         (test_function): Skip tests involving -0.0 on platforms where
22142         -0.0 = 0.0.
22143         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
22144         tests.
22145         * tests/test-printf-posix.h (test_function): Likewise.
22146         * tests/test-printf-posix.output: Remove all -0.0 related results.
22147         Needed for IRIX 6.5.
22148
22149 2007-05-19  Bruno Haible  <bruno@clisp.org>
22150
22151         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22152         printed as "nan0x7fffffff" instead of "nan".
22153         * tests/test-vasprintf-posix.c (test_function): Likewise.
22154         * tests/test-snprintf-posix.h (test_function): Likewise.
22155         * tests/test-sprintf-posix.h (test_function): Likewise.
22156         * tests/test-fprintf-posix.h (NaN): Remove macro.
22157         (test_function): Remove all NaN related tests.
22158         * tests/test-printf-posix.h (NaN): Remove macro.
22159         (test_function): Remove all NaN related tests.
22160         * tests/test-printf-posix.output: Remove all NaN related results.
22161         Needed for IRIX 6.5.
22162
22163 2007-05-19  Bruno Haible  <bruno@clisp.org>
22164
22165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
22166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22167
22168 2007-05-19  Bruno Haible  <bruno@clisp.org>
22169
22170         * lib/float_.h: New file.
22171         * m4/float_h.m4: New file.
22172         * modules/float: New file.
22173         * modules/isnanl (Dependencies): Add float.
22174         * modules/isnanl-nolibm (Dependencies): Likewise.
22175         * modules/mathl (Dependencies): Likewise.
22176         * modules/printf-frexpl (Dependencies): Likewise.
22177         * modules/signbit (Dependencies): Likewise.
22178         * modules/vasnprintf (Dependencies): Likewise.
22179         * doc/headers/float.texi: Update.
22180
22181 2007-05-19  Jim Meyering  <jim@meyering.net>
22182
22183         * lib/utimens.c (gl_futimens): Rename from futimens,
22184         now that glibc-2.6 declares futimens.
22185         * lib/utimens.h: Likewise.
22186
22187 2007-05-19  Bruno Haible  <bruno@clisp.org>
22188
22189         Avoid test failures on mingw.
22190         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
22191         * tests/test-printf-posix.sh: Likewise.
22192         * tests/test-vfprintf-posix.sh: Likewise.
22193         * tests/test-vprintf-posix.sh: Likewise.
22194
22195 2007-05-19  Bruno Haible  <bruno@clisp.org>
22196
22197         Fix *printf result for NaN, Inf, -0.0 on mingw.
22198         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
22199         * lib/vasnprintf.c: Include math.h and isnan.h.
22200         (is_infinite_or_zero): New function.
22201         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
22202         values in the %f, %F, %e, %E, %g, %G directives.
22203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
22204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22205         gl_PRINTF_INFINITE and test its result. Invoke
22206         gl_PREREQ_VASNPRINTF_INFINITE.
22207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22214         * doc/functions/fprintf.texi: Update.
22215         * doc/functions/printf.texi: Update.
22216         * doc/functions/snprintf.texi: Update.
22217         * doc/functions/sprintf.texi: Update.
22218         * doc/functions/vfprintf.texi: Update.
22219         * doc/functions/vprintf.texi: Update.
22220         * doc/functions/vsnprintf.texi: Update.
22221         * doc/functions/vsprintf.texi: Update.
22222
22223 2007-05-19  Bruno Haible  <bruno@clisp.org>
22224
22225         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
22226         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
22227         Instead of multiplying with 10^k, set extra_zeroes to k.
22228         (scale10_round_long_double): Remove function.
22229
22230 2007-05-18  Bruno Haible  <bruno@clisp.org>
22231
22232         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
22233         introduced on 2007-05-06.
22234
22235 2007-05-18  Bruno Haible  <bruno@clisp.org>
22236
22237         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
22238         %g directives.
22239         * tests/test-vasprintf-posix.c (test_function): Likewise.
22240         * tests/test-snprintf-posix.h (test_function): Likewise.
22241         * tests/test-sprintf-posix.h (test_function): Likewise.
22242
22243 2007-05-18  Bruno Haible  <bruno@clisp.org>
22244
22245         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
22246         (strmatch): New function.
22247         (test_function): Test the %f directive on numbers of various exponents.
22248         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
22249         (strmatch): New function.
22250         (test_function): Test the %f directive on numbers of various exponents.
22251         * tests/test-snprintf-posix.h (strmatch): New function.
22252         (test_function): Test the %f directive on numbers of various exponents.
22253         * tests/test-sprintf-posix.h (strmatch): New function.
22254         (test_function): Test the %f directive on numbers of various exponents.
22255         * tests/test-snprintf-posix.c (SIZEOF): New macro.
22256         * tests/test-sprintf-posix.c (SIZEOF): New macro.
22257         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
22258         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
22259
22260 2007-05-18  Bruno Haible  <bruno@clisp.org>
22261
22262         Add support for 'long double' number output.
22263         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
22264         * lib/vasnprintf.c: Include math.h and float+.h.
22265         (mp_limb_t): New type.
22266         (GMP_LIMB_BITS): New macro.
22267         (mp_twolimb_t): New type.
22268         (GMP_TWOLIMB_BITS): New macro.
22269         (mpn_t): New type.
22270         (multiply, divide, convert_to_decimal, decode_long_double,
22271         scale10_round_long_double, scale10_round_decimal_long_double,
22272         floorlog10l): New functions.
22273         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
22274         for the %f, %F, %e, %E, %g, %G directives.
22275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
22276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22277         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
22278         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
22279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22286         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
22287         * modules/snprintf-posix (Depends-on): Likewise.
22288         * modules/sprintf-posix (Depends-on): Likewise.
22289         * modules/vasnprintf-posix (Depends-on): Likewise.
22290         * modules/vasprintf-posix (Depends-on): Likewise.
22291         * modules/vfprintf-posix (Depends-on): Likewise.
22292         * modules/vsnprintf-posix (Depends-on): Likewise.
22293         * modules/vsprintf-posix (Depends-on): Likewise.
22294         * modules/vasnprintf (Files): Add lib/float+.h.
22295         * doc/functions/fprintf.texi: Update.
22296         * doc/functions/printf.texi: Update.
22297         * doc/functions/snprintf.texi: Update.
22298         * doc/functions/sprintf.texi: Update.
22299         * doc/functions/vfprintf.texi: Update.
22300         * doc/functions/vprintf.texi: Update.
22301         * doc/functions/vsnprintf.texi: Update.
22302         * doc/functions/vsprintf.texi: Update.
22303
22304 2007-05-18  Bruno Haible  <bruno@clisp.org>
22305
22306         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
22307
22308 2007-05-18  Bruno Haible  <bruno@clisp.org>
22309
22310         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
22311         for printing 64-bit integers. Needed for mingw.
22312
22313 2007-05-18  Bruno Haible  <bruno@clisp.org>
22314
22315         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22316         gl_FUNC_FREXPL_WORKS.
22317         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
22318
22319 2007-05-18  Bruno Haible  <bruno@clisp.org>
22320
22321         * modules/frexpl-nolibm-tests: New file.
22322
22323         * modules/frexpl-nolibm: New file.
22324         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
22325
22326 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22327
22328         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
22329         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22330         GCC 4.2, which otherwise issues a lot of warnings.
22331         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
22332         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
22333         Likewise.
22334         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
22335         * modules/iconv_open (iconv.h): Likewise.
22336         * modules/locale (locale.h): Likewise.
22337         * modules/netinet_in (netinet/in.h): Likewise.
22338         * modules/sys_select (sys_select.h): Likewise.
22339         * modules/sys_socket (sys/socket.h): Likewise.
22340         * modules/sys_stat (sys/stat.h): Likewise.
22341         * modules/sysexits (sysexits.h): Likewise.
22342         * modules/unistd (unistd.h): Likewise.
22343
22344 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22345
22346         * modules/closein-tests (Makefile.am): Distribute
22347         `test-closein.sh'.
22348
22349 2007-05-17  Bruno Haible  <bruno@clisp.org>
22350
22351         * tests/test-printf-posix.output: Renamed from
22352         tests/test-fprintf-posix.out.
22353         * modules/fprintf-posix-tests: Update.
22354         * modules/printf-posix-tests: Update.
22355         * modules/vfprintf-posix-tests: Update.
22356         * modules/vprintf-posix-tests: Update.
22357         * tests/test-fprintf-posix.sh: Update.
22358         * tests/test-printf-posix.sh: Update.
22359         * tests/test-vfprintf-posix.sh: Update.
22360         * tests/test-vprintf-posix.sh: Update.
22361         Reported by Ralf Wildenhues.
22362
22363 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
22366         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22367         GCC 4.2, which otherwise issues a lot of warnings.
22368         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
22369         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
22370         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
22371         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
22372         it should no longer be needed.
22373         * lib/string_.h: Likewise.
22374         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
22375         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
22376         * modules/inttypes (inttypes.h): Likewise.
22377         * modules/math (math.h): Likewise.
22378         * modules/search (search.h): Likewise.
22379         * modules/signal (signal.h): Likewise.
22380         * modules/stdint (stdint.h): Likewise.
22381         * modules/stdio (stdio.h): Likewise.
22382         * modules/stdlib (stdlib.h): Likewise.
22383         * modules/string (string.h): Likewise.
22384         * modules/sys_time (sys/time.h): Likewise.
22385         * modules/time (time.h): Likewise.
22386         * modules/wchar (wchar.h): Likewise.
22387         * modules/wctype (wtype.h): Likewise.
22388
22389 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22390
22391         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
22392
22393 2007-05-13  Bruno Haible  <bruno@clisp.org>
22394
22395         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
22396         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22397         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
22398         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22399         (gl_PREREQ_STRTOK_R): Don't require it here.
22400
22401 2007-05-13  Bruno Haible  <bruno@clisp.org>
22402
22403         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
22404         when used in C++ mode.
22405
22406 2007-05-12  Bruno Haible  <bruno@clisp.org>
22407
22408         * lib/linebuffer.h: Tweak doc.
22409         * lib/linebuffer.c: Likewise.
22410
22411 2007-05-12  James Youngman  <jay@gnu.org>
22412
22413         * lib/linebuffer.c (readlinebuffer_delim): New function,
22414         like readlinebuffer, but use a caller-specified delimiter.
22415         (readlinebuffer): Just call readlinebuffer_delim with '\n'
22416         as the delimiter.
22417         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
22418
22419 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22420
22421         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
22422         * modules/openat (Files): Remove openat-die.c.
22423         (Depends-on): Add openat-die.
22424         * modules/openat-die: New module.
22425
22426 2007-05-06  Bruno Haible  <bruno@clisp.org>
22427
22428         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
22429         Update with info about Cygwin.
22430         * doc/functions/fprintf.texi: Update.
22431         * doc/functions/printf.texi: Update.
22432         * doc/functions/snprintf.texi: Update.
22433         * doc/functions/sprintf.texi: Update.
22434         * doc/functions/vfprintf.texi: Update.
22435         * doc/functions/vprintf.texi: Update.
22436         * doc/functions/vsnprintf.texi: Update.
22437         * doc/functions/vsprintf.texi: Update.
22438         Reported by Eric Blake.
22439
22440 2007-05-06  Bruno Haible  <bruno@clisp.org>
22441
22442         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
22443         padding ourselves for the floating-point directives.
22444         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
22445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
22446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22447         gl_PRINTF_FLAG_ZERO and test its result. Invoke
22448         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
22449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22456         * tests/test-snprintf-posix.h (test_function): Also check the width
22457         and some flags in the %f directive.
22458         * tests/test-sprintf-posix.h (test_function): Likewise.
22459         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22460         * tests/test-vasprintf-posix.c (test_function): Likewise.
22461         * doc/functions/fprintf.texi: Update.
22462         * doc/functions/printf.texi: Update.
22463         * doc/functions/snprintf.texi: Update.
22464         * doc/functions/sprintf.texi: Update.
22465         * doc/functions/vfprintf.texi: Update.
22466         * doc/functions/vprintf.texi: Update.
22467         * doc/functions/vsnprintf.texi: Update.
22468         * doc/functions/vsprintf.texi: Update.
22469
22470 2007-05-06  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
22473         pass the ' flag character to sprintf or snprintf.
22474         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
22475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
22476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22477         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
22478         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
22479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
22481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22486         * tests/test-snprintf-posix.h (test_function): Also check the grouping
22487         flag.
22488         * tests/test-sprintf-posix.h (test_function): Likewise.
22489         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22490         * tests/test-vasprintf-posix.c (test_function): Likewise.
22491         * doc/functions/fprintf.texi: Update.
22492         * doc/functions/printf.texi: Update.
22493         * doc/functions/snprintf.texi: Update.
22494         * doc/functions/sprintf.texi: Update.
22495         * doc/functions/vfprintf.texi: Update.
22496         * doc/functions/vprintf.texi: Update.
22497         * doc/functions/vsnprintf.texi: Update.
22498         * doc/functions/vsprintf.texi: Update.
22499
22500 2007-05-01  Bruno Haible  <bruno@clisp.org>
22501
22502         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
22503
22504 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
22505
22506         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
22507         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
22508
22509 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22510
22511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
22512         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
22513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
22514
22515 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
22516
22517         * lib/argp-help.c (struct hol_entry): New member `ord'.
22518         (HOL_ENTRY_PTRCMP): Use ord for comparison
22519         (hol_sort): Initialize ord.
22520
22521 2007-05-01  Bruno Haible  <bruno@clisp.org>
22522
22523         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
22524         Reported by Eric Blake.
22525         * doc/gnulib.texi (Function Substitutes): Update.
22526
22527 2007-05-01  Bruno Haible  <bruno@clisp.org>
22528
22529         * doc/functions.texi: Remove file, now redundant through
22530         doc/functions/*.texi.
22531
22532 2007-05-01  Bruno Haible  <bruno@clisp.org>
22533
22534         * modules/argp (Depends-on): Add sleep.
22535
22536 2007-05-01  Bruno Haible  <bruno@clisp.org>
22537
22538         * modules/sleep-tests: New file.
22539         * tests/test-sleep.c: New file.
22540
22541         * modules/sleep: New file.
22542         * lib/sleep.c: New file.
22543         * m4/sleep.m4: New file.
22544         * lib/unistd_.h (sleep): New declaration.
22545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
22546         HAVE_SLEEP.
22547         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
22548         * doc/functions/sleep.texi: Document the sleep module.
22549
22550 2007-05-01  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/sigprocmask.h: Remove file.
22553         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
22554         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
22555         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
22556         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
22557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
22558         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
22559         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
22560         HAVE_SIGSET_T as a shell variable.
22561         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
22562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
22563         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
22564         (Depends-on): Add signal. Remove verify.
22565         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
22566         (Include): Mention <signal.h> instead of sigprocmask.h.
22567         * NEWS: Mention the change.
22568         * lib/fatal-signal.c: Don't include sigprocmask.h.
22569
22570 2007-05-01  Bruno Haible  <bruno@clisp.org>
22571
22572         * modules/signal: New file.
22573         * lib/signal_.h: New file.
22574         * m4/signal_h.m4: New file.
22575
22576 2007-05-01  Bruno Haible  <bruno@clisp.org>
22577
22578         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
22579         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
22580         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
22581         HAVE_WCTYPE_CTMP_BUG into wctype.h.
22582
22583 2007-05-01  Bruno Haible  <bruno@clisp.org>
22584
22585         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
22586         configure time.
22587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
22588         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
22589         * modules/sys_stat (Makefile.am): Substitute their values into
22590         sys/stat.h.
22591
22592 2007-05-01  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
22595         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
22596         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
22597
22598 2007-05-01  Bruno Haible  <bruno@clisp.org>
22599
22600         * doc/header/assert.texi: Undo last change: don't mention the gnulib
22601         'assert' module here.
22602
22603 2007-05-01  Bruno Haible  <bruno@clisp.org>
22604
22605         * doc/functions/*.texi: New files.
22606         * doc/functions/google-ranking.txt: New file.
22607         * doc/gnulib.texi (Function Substitutes): New chapter.
22608         (ctime, inet_ntoa): Remove sections.
22609         * doc/ctime.texi: Remove file.
22610         * doc/inet_ntoa.texi: Remove file.
22611         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
22612         dependencies.
22613         (%.info): New rule, specifying a --reference-limit.
22614
22615 2007-05-01  Bruno Haible  <bruno@clisp.org>
22616
22617         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
22618
22619 2007-05-01  Bruno Haible  <bruno@clisp.org>
22620
22621         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
22622         the portability of 'mkdir' to mingw systems.
22623
22624 2007-05-01  Bruno Haible  <bruno@clisp.org>
22625
22626         * doc/headers/google-ranking.txt: New file.
22627
22628 2007-04-30  Eric Blake  <ebb9@byu.net>
22629
22630         Prefer fseeko to fseek.
22631         * modules/getpass (Depends-on): Add fseeko.
22632         * lib/getpass.c (getpass): Use fseeko, not fseek.
22633
22634 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
22635
22636         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
22637         assumes the sorting is stable, while most qsort implementations
22638         are not.  Use argument addresses to ensure they never compare as
22639         equal.
22640
22641         * tests/test-argp-2.sh (usage-indent test): Fix output
22642         (func_compare): Restore diff options
22643         * tests/test-argp.c: Restore #include "progname.h"
22644
22645 2007-04-29  Bruno Haible  <bruno@clisp.org>
22646
22647         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
22648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22649         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
22650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22651         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
22652         (configure.ac): Define CHECK_SNPRINTF_POSIX.
22653         (TESTS, check_PROGRAMS): Add test-snprintf.
22654         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
22655         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
22656         (TESTS, check_PROGRAMS): Add test-vsnprintf.
22657         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
22658         assertions that fail on HP-UX, OSF/1, or IRIX.
22659         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
22660
22661 2007-04-29  Bruno Haible  <bruno@clisp.org>
22662
22663         * MODULES.html.sh (posix_functions): Remove 'contents'.
22664
22665 2007-04-29  Karl Berry  <karl@gnu.org>
22666
22667         * config/srclist.txt (gendocs_template_min): new entry.
22668
22669 2007-04-29  Bruno Haible  <bruno@clisp.org>
22670
22671         Work around fpurge bug on BSD systems.
22672         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
22673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
22674         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
22675         fpurge to rpl_fpurge if the system already has this function.
22676         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
22677         the case where the system already has this function. Correct invariants
22678         on BSD systems.
22679         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
22680         BSD systems.
22681
22682 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
22683
22684         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
22685         proposed by Sven Verdoolaege.
22686
22687         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
22688         options.
22689         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
22690         (usage and help tests): Update
22691
22692 2007-04-29  Bruno Haible  <bruno@clisp.org>
22693
22694         * tests/test-fflush.c (main): Use a file of size 17, not 10.
22695         Print more information in case of failure. Disable a test on BeOS.
22696
22697 2007-04-29  Bruno Haible  <bruno@clisp.org>
22698
22699         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
22700         This helps debugging on systems on which no gdb is available.
22701
22702 2007-04-29  Bruno Haible  <bruno@clisp.org>
22703
22704         * lib/freading.h: Improve comments.
22705         * lib/fwriting.h: Likewise.
22706         * tests/test-freading.c (main): Don't check freading immediately after
22707         repositioning. Needed for glibc.
22708
22709 2007-04-29  Bruno Haible  <bruno@clisp.org>
22710
22711         * lib/freading.c (freading): Trivial simplification.
22712
22713 2007-04-28  Bruno Haible  <bruno@clisp.org>
22714
22715         * tests/test-fwriting.c (main): Also test the interaction between
22716         fflush and fwriting.
22717         * modules/fwriting-tests (Depends-on): Add fflush.
22718
22719         * tests/test-freading.c (main): Also test the interaction between
22720         fflush and freading.
22721         * modules/freading-tests (Depends-on): Add fflush.
22722
22723 2007-04-28  Bruno Haible  <bruno@clisp.org>
22724
22725         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
22726         fseeko and ftello.
22727         Suggested by Eric Blake.
22728
22729 2007-04-28  Jim Meyering  <jim@meyering.net>
22730
22731         Avoid false-negative in gl_STDINT_H's C99 conformance test.
22732         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
22733         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
22734
22735 2007-04-27  Eric Blake  <ebb9@byu.net>
22736
22737         * doc/headers/assert.texi (assert.h): Document assert module use.
22738
22739 2007-04-27  Bruno Haible  <bruno@clisp.org>
22740
22741         * doc/headers/*.texi: New files.
22742         * doc/gnulib.texi (Header File Substitutes): New chapter.
22743         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
22744         dependencies.
22745         (standards.info ,standards.html, standards.dvi): Update dependencies.
22746         (mostlyclean, clean): New targets.
22747
22748 2007-04-27  Bruno Haible  <bruno@clisp.org>
22749
22750         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
22751         * modules/sysexits (Files, Makefile.am): Update.
22752
22753         * lib/sys_socket_.h: Renamed from lib/socket_.h.
22754         * modules/sys_socket (Files, Makefile.am): Update.
22755
22756         * lib/sys_stat_.h: Renamed from lib/stat_.h.
22757         * modules/sys_stat (Files, Makefile.am): Update.
22758
22759 2007-04-27  Eric Blake  <ebb9@byu.net>
22760
22761         * lib/freading.h: Improve comments.
22762         * lib/fwriting.h: Likewise.
22763         * lib/fflush.c: Likewise.
22764
22765         Fix closein for mingw.
22766         * modules/closein-tests: Add tests for closein.
22767         * tests/test-closein.c: New file.
22768         * tests/test-closein.sh: Likewise.
22769         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
22770         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
22771
22772 2007-04-27  Bruno Haible  <bruno@clisp.org>
22773
22774         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
22775         version is < 6.
22776         * lib/math_.h [__DECC]: Likewise.
22777         * lib/stdio_.h [__DECC]: Likewise.
22778         * lib/stdlib_.h [__DECC]: Likewise.
22779         * lib/string_.h [__DECC]: Likewise.
22780         * lib/time_.h [__DECC]: Likewise.
22781         * lib/wchar_.h [__DECC]: Likewise.
22782         * lib/wctype_.h [__DECC]: Likewise.
22783
22784 2007-04-27  Bruno Haible  <bruno@clisp.org>
22785
22786         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
22787
22788 2007-04-27  Bruno Haible  <bruno@clisp.org>
22789
22790         * lib/fflush.c: Add comments.
22791         * modules/fpurge-tests (Depends-on): Add fflush.
22792         * modules/freadable-tests (Depends-on): Likewise.
22793         * modules/fwritable-tests (Depends-on): Likewise.
22794
22795 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
22796
22797         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
22798         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
22799         Report by Bruno Haible <bruno@clisp.org>.
22800
22801 2007-04-26  Eric Blake  <ebb9@byu.net>
22802
22803         Fix fflush on mingw.
22804         * modules/fflush (Depends-on): Add freading.
22805         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
22806         but unread data.
22807
22808 2007-04-26  Eric Blake  <ebb9@byu.net>
22809         and Bruno Haible  <bruno@clisp.org>
22810
22811         Implement freading and fwriting.
22812         * lib/freading.c: New file.
22813         * lib/freading.h: Likewise.
22814         * m4/freading.m4: Likewise.
22815         * modules/freading: Likewise.
22816         * modules/freading-tests: Likewise.
22817         * tests/test-freading.c: Likewise.
22818         * lib/fwriting.c: New file.
22819         * lib/fwriting.h: Likewise.
22820         * m4/fwriting.m4: Likewise.
22821         * modules/fwriting: Likewise.
22822         * modules/fwriting-tests: Likewise.
22823         * tests/test-fwriting.c: Likewise.
22824         * MODULES.html.sh (File stream based Input/Output): Mention them.
22825
22826 2007-04-26  Bruno Haible  <bruno@clisp.org>
22827
22828         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
22829         'long' when we assume it.
22830         Suggested by Eric Blake.
22831
22832 2007-04-26  Bruno Haible  <bruno@clisp.org>
22833
22834         Ensure fseeko, ftello are declared on glibc systems.
22835         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
22836         * modules/fseeko (configure.ac-early): Likewise.
22837         * modules/ftello (configure.ac-early): Likewise.
22838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
22839         AC_FUNC_FSEEKO for this.
22840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
22841         (gl_CHECK_FSEEKO): Remove macro.
22842
22843 2007-04-26  Bruno Haible  <bruno@clisp.org>
22844
22845         * tests/test-fflush.c (main): Also check the ftell result after
22846         fflush and fseek/fseeko.
22847         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
22848         file descriptor position cache in the stream.
22849         * lib/fseeko.c (rpl_fseeko): Likewise.
22850
22851 2007-04-26  Bruno Haible  <bruno@clisp.org>
22852
22853         * modules/fflush-tests (Depends-on): Add fseeko.
22854
22855 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
22856             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22857
22858         * lib/argz_.h: ensure error_t definition is obtained in same
22859         mechanism system argz.h would have.
22860         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
22861         argz facilities are known bad.  Err on the side of caution if
22862         cross-compiling.
22863
22864 2007-04-25  Eric Blake  <ebb9@byu.net>
22865
22866         * lib/fpurge.c (includes): Use stdlib.h for free.
22867         * tests/test-fflush.c (main): Also test fflush-fseeko.
22868
22869 2007-04-25  Bruno Haible  <bruno@clisp.org>
22870
22871         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
22872         * lib/fseeko.c: New file.
22873         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
22874         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
22875         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
22876         gl_FUNC_FSEEKO.
22877         (gl_FUNC_FSEEKO): Invoke it.
22878         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
22879         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
22880         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
22881
22882 2007-04-25  Bruno Haible  <bruno@clisp.org>
22883
22884         * modules/fflush (Depends-on): Add ftello.
22885
22886 2007-04-25  Bruno Haible  <bruno@clisp.org>
22887
22888         * modules/ftello-tests: New file.
22889         * tests/test-ftello.c: New file.
22890
22891         * modules/ftello: New file.
22892         * m4/ftello.m4: New file.
22893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
22894         HAVE_FTELLO.
22895         * lib/stdio_.h (ftello): New declaration.
22896         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
22897         HAVE_FTELLO.
22898
22899 2007-04-25  Bruno Haible  <bruno@clisp.org>
22900
22901         * modules/fseeko-tests: New file.
22902         * tests/test-fseeko.c: New file.
22903
22904         * modules/fseeko: New file.
22905         * m4/fseeko.m4: New file.
22906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
22907         HAVE_FSEEKO.
22908         * lib/stdio_.h (fseeko): New declaration.
22909         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
22910         HAVE_FSEEKO.
22911
22912 2007-04-25  Bruno Haible  <bruno@clisp.org>
22913
22914         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
22915
22916 2007-04-25  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
22919         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
22920         * tests/test-unistd.c: Likewise.
22921         * tests/test-fcntl.c: Likewise.
22922
22923 2007-04-23  Eric Blake  <ebb9@byu.net>
22924
22925         * lib/fflush.c: Fix missing include.
22926         Reported by Bruno Haible.
22927
22928 2007-04-23  Bruno Haible  <bruno@clisp.org>
22929
22930         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
22931         Reported by Eric Blake.
22932
22933 2007-04-23  Bruno Haible  <bruno@clisp.org>
22934
22935         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
22936
22937 2007-04-23  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
22940
22941 2007-04-23  Bruno Haible  <bruno@clisp.org>
22942
22943         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
22944         Needed on HP-UX 11.
22945
22946 2007-04-16  Eric Blake  <ebb9@byu.net>
22947
22948         Make fflush rely on fpurge.
22949         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
22950         open coding all variants.
22951         * modules/fflush (Depends-on): Add fpurge and unistd.
22952         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
22953         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
22954
22955         Fix --with-tests compilation on cygwin.
22956         * modules/argmatch-tests (Makefile.am): List gnulib library first
22957         in LDADD.
22958         * modules/argp-tests (Makefile.am): Likewise.
22959         * modules/array-list-tests (Makefile.am): Likewise.
22960         * modules/array-oset-tests (Makefile.am): Likewise.
22961         * modules/avltree-list-tests (Makefile.am): Likewise.
22962         * modules/avltree-oset-tests (Makefile.am): Likewise.
22963         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22964         * modules/carray-list-tests (Makefile.am): Likewise.
22965         * modules/dirname-tests (Makefile.am): Likewise.
22966         * modules/frexp-tests (Makefile.am): Likewise.
22967         * modules/isnanl-tests (Makefile.am): Likewise.
22968         * modules/linked-list-tests (Makefile.am): Likewise.
22969         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22970         * modules/lock-tests (Makefile.am): Likewise.
22971         * modules/rbtree-list-tests (Makefile.am): Likewise.
22972         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22973         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22974         * modules/tls-tests (Makefile.am): Likewise.
22975         * modules/tsearch-tests (Makefile.am): Likewise.
22976         * modules/xvasprintf-tests (Makefile.am): Likewise.
22977
22978         Fix fpurge for cygwin.
22979         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
22980         value.
22981         * modules/fpurge-tests (Depends-on): Clean up trash.
22982
22983 2007-04-16  Simon Josefsson  <simon@josefsson.org>
22984
22985         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
22986
22987         * m4/autobuild.m4: Re-indent.
22988
22989 2007-04-13  Bruno Haible  <bruno@clisp.org>
22990
22991         * modules/fpurge-tests: New file.
22992         * tests/test-fpurge.c: New file.
22993
22994         * modules/fpurge: New file.
22995         * lib/fpurge.h: New file.
22996         * lib/fpurge.c: New file.
22997         * m4/fpurge.m4: New file.
22998
22999 2007-04-13  Bruno Haible  <bruno@clisp.org>
23000
23001         * modules/fbufmode-tests: New file.
23002         * tests/test-fbufmode.c: New file.
23003
23004         * modules/fbufmode: New file.
23005         * lib/fbufmode.h: New file.
23006         * lib/fbufmode.c: New file.
23007         * m4/fbufmode.m4: New file.
23008
23009 2007-04-13  Bruno Haible  <bruno@clisp.org>
23010
23011         * modules/fwritable-tests: New file.
23012         * tests/test-fwritable.c: New file.
23013
23014         * modules/fwritable: New file.
23015         * lib/fwritable.h: New file.
23016         * lib/fwritable.c: New file.
23017         * m4/fwritable.m4: New file.
23018
23019 2007-04-13  Bruno Haible  <bruno@clisp.org>
23020
23021         * modules/freadable-tests: New file.
23022         * tests/test-freadable.c: New file.
23023
23024         * modules/freadable: New file.
23025         * lib/freadable.h: New file.
23026         * lib/freadable.c: New file.
23027         * m4/freadable.m4: New file.
23028
23029 2007-04-13  Bruno Haible  <bruno@clisp.org>
23030
23031         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
23032         MOSTLYCLEANFILES.
23033
23034 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23035
23036         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
23037         gzip bootstrap.conf to avoid dragging in i18n machinery.
23038         (gnulib_tool_option): Use it.
23039
23040 2007-04-13  Bruno Haible  <bruno@clisp.org>
23041
23042         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
23043         %F directives.
23044         * tests/test-vasprintf-posix.c (test_function): Likewise.
23045         * tests/test-snprintf-posix.h (test_function): Likewise.
23046         * tests/test-sprintf-posix.h (test_function): Likewise.
23047         * tests/test-fprintf-posix.h (test_function): Likewise.
23048         * tests/test-printf-posix.h (test_function): Likewise.
23049         * tests/test-fprintf-posix.out: Likewise.
23050
23051 2007-04-13  Bruno Haible  <bruno@clisp.org>
23052
23053         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
23054         * modules/tls-tests (configure.ac): Likewise.
23055         Reported by Arto C. Nirkko <anirkko@insel.ch>.
23056
23057 2007-04-13  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/tls.c (glthread_tls_get): Fix return type.
23060         Patch by Arto C. Nirkko <anirkko@insel.ch>.
23061
23062 2007-04-12  Eric Blake  <ebb9@byu.net>
23063
23064         * modules/gettime (Depends-on): Remove gettime.
23065         Reported by Dmitry V. Levin.
23066
23067 2007-04-12  Bruno Haible  <bruno@clisp.org>
23068
23069         * modules/fflush (Include): Mention <stdio.h>.
23070         * modules/strtoimax (Include): Mention <inttypes.h>.
23071         * modules/strtoumax (Include): Likewise.
23072
23073 2007-04-12  Eric Blake  <ebb9@byu.net>
23074
23075         * .cvsignore: New file.
23076         * .gitignore: Likewise.
23077
23078 2007-04-12  Bruno Haible  <bruno@clisp.org>
23079
23080         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
23081         not before, since $(LDADD) often contains libgnu.a.
23082         * modules/striconv-tests (test_striconv_LDADD): Likewise.
23083         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
23084         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
23085         Needed on Cygwin.
23086
23087 2007-04-12  Eric Blake  <ebb9@byu.net>
23088
23089         Work around glibc's failure to flush stdin on fclose.
23090         * lib/closein.c (close_stdin): Flush stdin before closing.
23091
23092         Work around glibc's failure to reset seekable stdin on exit.
23093         * modules/closein: New module.
23094         * lib/closein.c: New file.
23095         * lib/closein.h: Likewise.
23096         * m4/closein.m4: Likewise.
23097         * MODULES.html.sh (File stream based Input/Output): Document it.
23098
23099 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23100
23101         * gnulib-tool: Rename generated 'autobuild' script to
23102         'do-autobuild' in --create-megatestdir output.
23103
23104         * doc/gnulib.texi (Build robot for gnulib): Fix.
23105
23106 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23107
23108         * modules/sysexits (Depends-on): Add absolute-header.
23109
23110 2007-04-12  Eric Blake  <ebb9@byu.net>
23111
23112         No need to preserve errno on success.
23113         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
23114         Reported by Bruno Haible.
23115
23116 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23117
23118         * MODULES.html.sh (Support for maintaining and releasing
23119         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
23120
23121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23122
23123         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
23124
23125 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23126
23127         * modules/autobuild: New module.
23128
23129         * m4/autobuild.m4: New file.
23130
23131 2007-04-11  Bruno Haible  <bruno@clisp.org>
23132
23133         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
23134         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
23135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
23136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
23137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
23144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
23147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
23150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
23153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
23156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
23159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23161         Reported by Eric Blake.
23162
23163 2007-04-11  Bruno Haible  <bruno@clisp.org>
23164
23165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
23166
23167 2007-04-10  Bruno Haible  <bruno@clisp.org>
23168
23169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
23170         for NaN and Infinity. Needed on FreeBSD 6.1.
23171         * tests/test-vasnprintf-posix.c (test_function): Undo last change
23172         regarding results for "%010a" of Infinity and NaN.
23173         * tests/test-vasprintf-posix.c (test_function): Likewise.
23174         * tests/test-snprintf-posix.h (test_function): Likewise.
23175         * tests/test-sprintf-posix.h (test_function): Likewise.
23176         * tests/test-fprintf-posix.h (test_function): Likewise.
23177         * tests/test-printf-posix.h (test_function): Likewise.
23178         * tests/test-fprintf-posix.out: Likewise.
23179
23180 2007-04-10  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/locale-tests: New file.
23183         * tests/test-locale.c: New file.
23184
23185         * modules/locale: New file.
23186         * lib/locale_.h: New file.
23187         * m4/locale_h.m4: New file.
23188
23189 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23190             Bruno Haible  <bruno@clisp.org>
23191
23192         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
23193         be determined, test for availability of the copysignf, copysign,
23194         copysignl functions.
23195         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
23196         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
23197         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
23198
23199 2007-04-09  Eric Blake  <ebb9@byu.net>
23200
23201         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
23202         * modules/stdio (Makefile.am): Support fflush.
23203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23204         * modules/fflush: New file.
23205         * lib/fflush.c: Likewise.
23206         * m4/fflush.m4: Likewise.
23207         * modules/fflush-tests: New test.
23208         * tests/test-fflush.c: Likewise.
23209         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
23210
23211 2007-04-06  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
23214         (VASNPRINTF): Use signbit for faster determination whether to print a
23215         minus sign.
23216         * modules/vasnprintf (Files): Remove lib/float+.h.
23217         * modules/fprintf-posix (Depends-on): Add signbit.
23218         * modules/snprintf-posix (Depends-on): Likewise.
23219         * modules/sprintf-posix (Depends-on): Likewise.
23220         * modules/vasnprintf-posix (Depends-on): Likewise.
23221         * modules/vasprintf-posix (Depends-on): Likewise.
23222         * modules/vfprintf-posix (Depends-on): Likewise.
23223         * modules/vsnprintf-posix (Depends-on): Likewise.
23224         * modules/vsprintf-posix (Depends-on): Likewise.
23225
23226 2007-04-06  Bruno Haible  <bruno@clisp.org>
23227
23228         * tests/test-frexp.c (main): Test also the sign bit of zero results.
23229         * tests/test-frexpl.c (main): Likewise.
23230         * tests/test-ldexpl.c (main): Likewise.
23231         * modules/frexp-tests (Depends-on): Add signbit.
23232         * modules/frexpl-tests (Depdends-on): Likewise.
23233         * modules/ldexpl-tests (Depdends-on): Likewise.
23234
23235 2007-04-06  Bruno Haible  <bruno@clisp.org>
23236
23237         * modules/signbit-tests: New file.
23238         * tests/test-signbit.c: New file.
23239
23240         * modules/signbit: New file.
23241         * lib/signbitf.c: New file.
23242         * lib/signbitd.c: New file.
23243         * lib/signbitl.c: New file.
23244         * m4/signbit.m4: New file.
23245         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
23246         (signbit): New macro.
23247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
23248         REPLACE_SIGNBIT.
23249         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
23250         REPLACE_FREXPL into math.h.
23251
23252 2007-04-06  Bruno Haible  <bruno@clisp.org>
23253
23254         * modules/isnanf-nolibm-tests: New file.
23255         * tests/test-isnanf.c: New file.
23256
23257         * modules/isnanf-nolibm: New file.
23258         * lib/isnanf.h: New file.
23259         * lib/isnanf.c: New file.
23260         * lib/isnan.c: Consider the USE_FLOAT macro.
23261         * m4/isnanf.m4: New file.
23262
23263 2007-04-06  Bruno Haible  <bruno@clisp.org>
23264
23265         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
23266         (Link): New section.
23267
23268         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
23269
23270 2007-04-06  Bruno Haible  <bruno@clisp.org>
23271
23272         Assume the 'long double' type.
23273         * m4/longdouble.m4: Remove file.
23274         * config/srclist.txt: Don't mention longdouble.m4.
23275         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
23276         * lib/float+.h: Likewise.
23277         * lib/frexp.c: Likewise.
23278         * lib/printf-args.h: Likewise.
23279         * lib/printf-args.c: Likewise.
23280         * lib/printf-frexp.c: Likewise.
23281         * lib/printf-parse.c: Likewise.
23282         * lib/vasnprintf.c: Likewise.
23283         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
23284         * m4/intl.m4: Likewise.
23285         * m4/isnanl.m4: Likewise.
23286         * m4/printf.m4: Likewise.
23287         * m4/printf-frexpl.m4: Likewise.
23288         * m4/vasnprintf.m4: Likewise.
23289         * modules/allocsa (Files): Remove m4/longdouble.m4.
23290         * modules/gettext (Files): Likewise.
23291         * modules/relocatable-prog-wrapper (Files): Likewise.
23292         * modules/vasnprintf (Files): Likewise.
23293         * modules/isnanl (Files): Likewise.
23294         (Include): Simplify.
23295         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
23296         (Include): Simplify.
23297         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
23298         (Include): Simplify.
23299         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
23300         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23301         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
23302         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23303         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23304         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23305         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
23306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23307         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23309         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
23310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23311         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
23312         * tests/test-isnanl.c: Likewise.
23313         * tests/test-snprintf-posix.h: Likewise.
23314         * tests/test-sprintf-posix.h: Likewise.
23315         * tests/test-vasnprintf-posix.c: Likewise.
23316         * tests/test-vasnprintf-posix2.c: Likewise.
23317         * tests/test-vasprintf-posix.c: Likewise.
23318
23319 2007-04-06  Bruno Haible  <bruno@clisp.org>
23320
23321         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
23322         * lib/math_.h [__DECC]: Include the overridden include file through
23323         #include_next, outside the double-inclusion guard.
23324         * lib/stdio_.h [__DECC]: Likewise.
23325         * lib/stdlib_.h [__DECC]: Likewise.
23326         * lib/string_.h [__DECC]: Likewise.
23327         * lib/time_.h [__DECC]: Likewise.
23328         * lib/wchar_.h [__DECC]: Likewise.
23329         * lib/wctype_.h [__DECC]: Likewise.
23330         * lib/inttypes_.h [__DECC]: Likewise.
23331         Reported by Albert Chin <china@thewrittenword.com> in
23332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
23333
23334 2007-04-04  Eric Blake  <ebb9@byu.net>
23335
23336         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
23337         1.5.x.
23338
23339 2007-04-04  Bruno Haible  <bruno@clisp.org>
23340
23341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
23342         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
23343
23344 2007-04-04  Bruno Haible  <bruno@clisp.org>
23345
23346         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
23347         results for "%010a" of Infinity and NaN.
23348         * tests/test-vasprintf-posix.c (test_function): Likewise.
23349         * tests/test-snprintf-posix.h (test_function): Likewise.
23350         * tests/test-sprintf-posix.h (test_function): Likewise.
23351         * tests/test-fprintf-posix.h (test_function): Remove these tests.
23352         * tests/test-printf-posix.h (test_function): Likewise.
23353         * tests/test-fprintf-posix.out: Update.
23354         Needed for FreeBSD 6.1.
23355
23356 2007-04-04  Bruno Haible  <bruno@clisp.org>
23357
23358         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
23359         directly used by the gnulib modules nor by gnulib-tool.
23360
23361 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         * DEPENDENCIES: Give overall description of version dependency
23364         desirability.  Use more-typical names for apps.
23365         Add shell, coreutils, diffutils, grep, tar, gzip.
23366
23367 2007-04-04  Simon Josefsson  <simon@josefsson.org>
23368
23369         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
23370
23371 2007-04-04  Karl Berry  <karl@gnu.org>
23372
23373         * MODULES.html.sh (func_module): missing '.
23374
23375 2007-04-03  Bruno Haible  <bruno@clisp.org>
23376
23377         * modules/argmatch-tests (Makefile.am): New variable
23378         test_argmatch_LDADD.
23379         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
23380         * modules/array-list-tests (Makefile.am): New variable
23381         test_array_list_LDADD.
23382         * modules/array-oset-tests (Makefile.am): New variable
23383         test_array_oset_LDADD.
23384         * modules/avltree-list-tests (Makefile.am): New variable
23385         test_avltree_list_LDADD.
23386         * modules/avltree-oset-tests (Makefile.am): New variable
23387         test_avltree_oset_LDADD.
23388         * modules/avltreehash-list-tests (Makefile.am): New variable
23389         test_avltreehash_list_LDADD.
23390         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
23391         test_canonicalize_lgpl_LDADD.
23392         * modules/carray-list-tests (Makefile.am): New variable
23393         test_carray_list_LDADD.
23394         * modules/dirname-tests (Makefile.am): New variable
23395         test_dirname_LDADD.
23396         * modules/linked-list-tests (Makefile.am): New variable
23397         test_linked_list_LDADD.
23398         * modules/linkedhash-list-tests (Makefile.am): New variable
23399         test_linkedhash_list_LDADD.
23400         * modules/rbtree-list-tests (Makefile.am): New variable
23401         test_rbtree_list_LDADD.
23402         * modules/rbtree-oset-tests (Makefile.am): New variable
23403         test_rbtree_oset_LDADD.
23404         * modules/rbtreehash-list-tests (Makefile.am): New variable
23405         test_rbtreehash_list_LDADD.
23406         * modules/xvasprintf-tests (Makefile.am): New variable
23407         test_xvasprintf_LDADD.
23408         Reported by Eric Blake.
23409
23410 2007-04-03  Eric Blake  <ebb9@byu.net>
23411
23412         * DEPENDENCIES: Weaken m4 requirements.
23413
23414 2007-04-03  Bruno Haible  <bruno@clisp.org>
23415
23416         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
23417         * modules/isnanl-tests (configure.ac): Likewise.
23418
23419 2007-04-03  Ben Pfaff  <blp@gnu.org>
23420
23421         * modules/iconv_open: Add $(srcdir)/ to source directory
23422         references in Makefile fragments that call gperf, to fix VPATH
23423         builds.
23424
23425 2007-04-03  Bruno Haible  <bruno@clisp.org>
23426
23427         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
23428         * lib/ldexpl.c: Undo last change.
23429
23430 2007-04-03  Bruno Haible  <bruno@clisp.org>
23431
23432         * modules/printf-frexpl (Depends-on): Undo last change.
23433         (Files): Add m4/ldexpl.m4.
23434
23435 2007-04-03  Bruno Haible  <bruno@clisp.org>
23436
23437         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
23438         * modules/isnanl (Link): New section.
23439
23440         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
23441         * modules/frexp (Link): New section.
23442
23443         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
23444         * modules/frexpl (Link): New section.
23445
23446         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
23447         * modules/ldexpl (Link): New section.
23448
23449 2007-04-03  Bruno Haible  <bruno@clisp.org>
23450
23451         * modules/TEMPLATE-EXTENDED: New file.
23452         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
23453
23454 2007-04-03  Bruno Haible  <bruno@clisp.org>
23455
23456         * DEPENDENCIES: New file.
23457         Suggested by Simon Josefsson.
23458
23459 2007-04-03  Bruno Haible  <bruno@clisp.org>
23460
23461         * doc/gnulib.texi: Escape @.
23462
23463 2007-04-03  James Youngman  <jay@gnu.org>
23464         and Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
23467         birthtime on all systems that have birthtime, not just those which
23468         use st_birthtimensec rather than st_birthtim.  Putting zero in
23469         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
23470         that the birth time is not available for files on an NFS mount.
23471
23472 2007-04-03  Simon Josefsson  <simon@josefsson.org>
23473
23474         * modules/memxor: Move back from crypto/, suggested by Bruno.
23475         * modules/crypto/hmac-sha1: Fix memxor dependency.
23476
23477         * modules/crypto/gc: Moved from ../.
23478
23479 2007-04-02  Eric Blake  <ebb9@byu.net>
23480
23481         * lib/ldexpl.c (includes): Avoid libm.
23482
23483         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
23484
23485 2007-04-02  Bruno Haible  <bruno@clisp.org>
23486
23487         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
23488         on IRIX.
23489
23490 2007-04-02  Bruno Haible  <bruno@clisp.org>
23491
23492         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
23493         x86 or x86_64 platforms running MacOS X.
23494         Reported by Ryan Schmidt <@ryandesign.com>.
23495
23496 2007-04-02  Bruno Haible  <bruno@clisp.org>
23497
23498         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
23499         i386.
23500
23501 2007-04-01  Simon Josefsson  <simon@josefsson.org>
23502
23503         * modules/crypto/arcfour: Moved from ../.
23504         * modules/crypto/arcfour-tests: Moved from ../.
23505         * modules/crypto/arctwo: Moved from ../.
23506         * modules/crypto/arctwo-tests: Moved from ../.
23507         * modules/crypto/des: Moved from ../.
23508         * modules/crypto/des-tests: Moved from ../.
23509         * modules/crypto/gc-arcfour: Moved from ../.
23510         * modules/crypto/gc-arcfour-tests: Moved from ../.
23511         * modules/crypto/gc-arctwo: Moved from ../.
23512         * modules/crypto/gc-arctwo-tests: Moved from ../.
23513         * modules/crypto/gc-des: Moved from ../.
23514         * modules/crypto/gc-des-tests: Moved from ../.
23515         * modules/crypto/gc-hmac-md5: Moved from ../.
23516         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
23517         * modules/crypto/gc-hmac-sha1: Moved from ../.
23518         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
23519         * modules/crypto/gc-md2: Moved from ../.
23520         * modules/crypto/gc-md2-tests: Moved from ../.
23521         * modules/crypto/gc-md4: Moved from ../.
23522         * modules/crypto/gc-md4-tests: Moved from ../.
23523         * modules/crypto/gc-md5: Moved from ../.
23524         * modules/crypto/gc-md5-tests: Moved from ../.
23525         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
23526         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
23527         * modules/crypto/gc-random: Moved from ../.
23528         * modules/crypto/gc-rijndael: Moved from ../.
23529         * modules/crypto/gc-rijndael-tests: Moved from ../.
23530         * modules/crypto/gc-sha1: Moved from ../.
23531         * modules/crypto/gc-sha1-tests: Moved from ../.
23532         * modules/crypto/gc-tests: Moved from ../.
23533         * modules/crypto/hmac-md5: Moved from ../.
23534         * modules/crypto/hmac-md5-tests: Moved from ../.
23535         * modules/crypto/hmac-sha1: Moved from ../.
23536         * modules/crypto/hmac-sha1-tests: Moved from ../.
23537         * modules/crypto/md2: Moved from ../.
23538         * modules/crypto/md2-tests: Moved from ../.
23539         * modules/crypto/md4: Moved from ../.
23540         * modules/crypto/md4-tests: Moved from ../.
23541         * modules/crypto/md5: Moved from ../.
23542         * modules/crypto/md5-tests: Moved from ../.
23543         * modules/crypto/memxor: Moved from ../.
23544         * modules/crypto/rijndael: Moved from ../.
23545         * modules/crypto/rijndael-tests: Moved from ../.
23546         * modules/crypto/sha1: Moved from ../.
23547
23548 2007-03-30  James Youngman  <jay@gnu.org>
23549
23550         * tests/test-stat-time.c (prepare_test): use chmod() rather than
23551         rename() to change the ctime of a file (because ctime is unaffected
23552         by rename on jfs2 on AIX 5.1).
23553         (main): Start by doing cleanup, in case a previous run failed leaving
23554         test files behind.
23555
23556 2007-03-31  Bruno Haible  <bruno@clisp.org>
23557
23558         Support old proprietary implementations of iconv.
23559         * modules/iconv_open: New file.
23560         * lib/iconv_.h: New file.
23561         * m4/iconv_h.m4: New file.
23562         * lib/iconv_open.c: New file.
23563         * lib/iconv_open-aix.gperf: New file.
23564         * lib/iconv_open-hpux.gperf: New file.
23565         * lib/iconv_open-irix.gperf: New file.
23566         * lib/iconv_open-osf.gperf: New file.
23567         * m4/iconv_open.m4: New file.
23568         * modules/linebreak (Depends-on): Add iconv_open.
23569         * modules/striconv (Depends-on): Likewise.
23570         * modules/striconveh (Depends-on): Likewise.
23571         * modules/unicodeio (Depends-on): Likewise.
23572         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
23573         (iconv_t)(-1).
23574         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
23575         conversion if cd is (iconv_t)(-1).
23576         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
23577         is not possible.
23578
23579 2007-03-31  Bruno Haible  <bruno@clisp.org>
23580
23581         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23582         work on Solaris either. Protect also second use of "autodetect_jp".
23583
23584 2007-03-31  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
23587         the function is not present.
23588
23589 2007-03-31  Bruno Haible  <bruno@clisp.org>
23590
23591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
23592         the function is not present.
23593
23594 2007-03-31  Bruno Haible  <bruno@clisp.org>
23595
23596         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
23597         a bug in HP-UX iconv_open().
23598
23599 2007-03-31  Bruno Haible  <bruno@clisp.org>
23600
23601         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
23602         (Mathematics <math.h>): New section, add fpieee.
23603         (Input/output <stdio.h>): Add fseterr.
23604         (Mathematics <math.h>): New section, add printf-frexp.
23605         (Container data structures): Add sublist.
23606         (Core language properties): Add fpucw, inline.
23607         (Functions for greatest-width integer types <inttypes.h>): Add
23608         imaxabs, imaxdiv, inttypes.
23609         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
23610         isnanl-nolibm, ldexp.
23611         (Mathematics <math.h>): New section, add printf-frexpl.
23612         (Support for systems lacking POSIX:2001): Add fprintf-posix,
23613         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
23614         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
23615         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
23616         (Unicode string functions): Add unistr/u*-mbtoucr.
23617         (Java): Add javacomp-script, javaexec-script.
23618         (C#): Add csharpcomp-script, csharpexec-script.
23619         (Support for building libraries and executables): Add havelib,
23620         relocatable-*.
23621         (Support for maintaining and releasing projects): Renamed from
23622         'Support for maintaining and release projects'. Add announce-gen.
23623
23624 2007-03-31  Bruno Haible  <bruno@clisp.org>
23625
23626         * README: Talk primarily about git.
23627         (git and CVS): Renamed from CVS.
23628         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
23629         gnulib is available through git.
23630         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
23631
23632 2007-03-30  Bruno Haible  <bruno@clisp.org>
23633
23634         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
23635         * lib/poll_.h: Likewise.
23636         * lib/stat_.h: Likewise.
23637         * lib/sys_time_.h: Likewise.
23638         * lib/sysexit_.h: Likewise.
23639         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
23640         * lib/stdbool_.h: Likewise.
23641         * lib/byteswap_.h: Add double-inclusion guard.
23642
23643 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
23644
23645         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
23646
23647 2007-03-30  Karl Berry  <karl@gnu.org>
23648
23649         * config/srclist-update: double space after USA in the license
23650         substitution, since that's how it's usually (?) written.
23651
23652 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23653
23654         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
23655         reported by Bruno Haible.
23656
23657 2007-03-29  Bruno Haible  <bruno@clisp.org>
23658
23659         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
23660         a bug in AIX iconv().
23661
23662 2007-03-29  Bruno Haible  <bruno@clisp.org>
23663
23664         * modules/ldexpl-tests: New file.
23665         * tests/test-ldexpl.c: New file.
23666
23667 2007-03-29  Bruno Haible  <bruno@clisp.org>
23668
23669         * lib/ldexpl.c: Include fpucw.h.
23670         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
23671         multiplication.
23672         * modules/ldexpl (Depends-on): Add fpucw.
23673
23674 2007-03-29  Bruno Haible  <bruno@clisp.org>
23675
23676         * modules/ldexpl: New file.
23677         * m4/ldexpl.m4: New file.
23678         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
23679         set.
23680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
23681         REPLACE_LDEXPL.
23682         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
23683         REPLACE_LDEXPL.
23684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23685         gl_FUNC_LDEXPL_WORKS.
23686         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
23687         * modules/mathl (Files): Remove lib/ldexpl.c.
23688         (Depends-on): Add ldexpl.
23689
23690 2007-03-29  Bruno Haible  <bruno@clisp.org>
23691
23692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
23693
23694 2007-03-29  Bruno Haible  <bruno@clisp.org>
23695
23696         * tests/test-striconveh.c (main): Don't assume that a direct conversion
23697         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
23698         and possibly also HP-UX.
23699         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
23700         work on AIX, IRIX, HP-UX, OSF/1.
23701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23702         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23703         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23704         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23705         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
23706         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23707
23708 2007-03-29  Bruno Haible  <bruno@clisp.org>
23709
23710         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
23711
23712 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23713
23714         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
23715         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
23716
23717 2007-03-29  Eric Blake  <ebb9@byu.net>
23718
23719         * lib/acl-internal.h: Remove redundant include.
23720         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
23721         Cygwin when a file is locked.
23722
23723 2007-03-29  Bruno Haible  <bruno@clisp.org>
23724
23725         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
23726         file.
23727         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
23728
23729 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
23732         try to remove a parent directory if the child couldn't be removed
23733         (except for the first rmdir, which could fail because the child
23734         doesn't exist).  Problem reported by Jeff Blaine in
23735         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
23736
23737 2007-03-28  Bruno Haible  <bruno@clisp.org>
23738
23739         * lib/striconveh.c (utf8conv_carefully): New function.
23740         (mem_cd_iconveh_internal): Invoke it.
23741
23742 2007-03-28  Bruno Haible  <bruno@clisp.org>
23743
23744         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
23745         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
23746         input.
23747         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
23748         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
23749         unistr/u8-uctomb.
23750
23751 2007-03-28  Bruno Haible  <bruno@clisp.org>
23752
23753         * modules/unistr/u8-mbtoucr: New file.
23754         * lib/unistr/u8-mbtoucr.c: New file.
23755         * modules/unistr/u16-mbtoucr: New file.
23756         * lib/unistr/u16-mbtoucr.c: New file.
23757         * modules/unistr/u16-mbtoucr: New file.
23758         * lib/unistr/u16-mbtoucr.c: New file.
23759         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
23760
23761 2007-03-27  Simon Josefsson  <simon@josefsson.org>
23762             Bruno Haible  <bruno@clisp.org>
23763
23764         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
23765         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
23766         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
23767
23768         * m4/stdio_h.m4: Add stubs for vasprintf too.
23769
23770         * modules/stdio: Support vasprintf in sed command.
23771
23772         * modules/vasprintf: Depend on stdio for prototypes.  Remove
23773         vasprintf.h.  Add stdio module indicator.
23774
23775         * lib/stdio_.h: Declare asprintf and vasprintf, based on
23776         vasprintf.h.
23777
23778         * lib/vasprintf.h: File removed.
23779
23780         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
23781         * lib/vasprintf.c: Ditto.
23782         * lib/xvasprintf.c: Ditto.
23783         * tests/test-vasprintf-posix.c: Ditto.
23784         * tests/test-vasprintf.c: Ditto.
23785
23786 2007-03-27  Bruno Haible  <bruno@clisp.org>
23787
23788         Make vasnprintf multithread-safe.
23789         * lib/vasnprintf.c (decimal_point_char): New function.
23790         (VASNPRINTF): Use it.
23791         Suggested by Simon Josefsson.
23792
23793 2007-03-27  Eric Blake  <ebb9@byu.net>
23794
23795         Support sub-second birthtime on cygwin.
23796         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
23797         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
23798         (get_stat_birthtime): Also work with st_birthtim.
23799
23800 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23801
23802         * lib/stat-time.h (USE_BIRTHTIME): Remove.
23803         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
23804         (get_stat_birthtime_ns): Do not try to use "spare" fields.
23805         (get_stat_birthtime_ns): Simplify compile-time tests.
23806         (get_stat_birthtime): Change the API to look like
23807         get_stat_mtime etc., except return a negative tv_nsec on error.
23808         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
23809         Don't check for "spare" fields.
23810         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
23811         or for struct stat.st_birthtime, as these tests aren't used.
23812         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
23813
23814 2007-03-27  Bruno Haible  <bruno@clisp.org>
23815
23816         * lib/stat-time.h: Include <sys/stat.h>.
23817
23818 2007-03-27  James Youngman  <jay@gnu.org>
23819
23820         * lib/stat-time.h (get_stat_birthtime): New function for
23821           retrieving st_birthtime as provided by UFS2 (hence *BSD).
23822         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
23823           and its variants.
23824         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
23825         * modules/stat-time-test: New file.
23826         * tests/test-stat-time.c: New test, devised by Bruno Haible.
23827
23828 2007-03-26  Bruno Haible  <bruno@clisp.org>
23829
23830         Better support of signalling NaNs.
23831         * lib/atanl.c: Include isnanl.h.
23832         (atanl): Perform test for NaN at the beginning of the function and
23833         through a call to isnanl.
23834         * lib/cosl.c: Include isnanl.h.
23835         (cosl): Perform test for NaN at the beginning of the function and
23836         through a call to isnanl.
23837         * lib/ldexpl.c: Include isnanl.h.
23838         (ldexpl): Perform test for NaN through a call to isnanl.
23839         * lib/logl.c: Include isnanl.h.
23840         (logl): Perform test for NaN at the beginning of the function and
23841         through a call to isnanl.
23842         * lib/sinl.c: Include isnanl.h.
23843         (sinl): Perform test for NaN at the beginning of the function and
23844         through a call to isnanl.
23845         * lib/sqrtl.c: Include isnanl.h.
23846         (sqrtl): Perform test for NaN at the beginning of the function and
23847         through a call to isnanl.
23848         * lib/tanl.c: Include isnanl.h.
23849         (tanl): Perform test for NaN at the beginning of the function and
23850         through a call to isnanl.
23851         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
23852         * modules/mathl (Depends-on): Add isnanl.
23853
23854 2007-03-26  Eric Blake  <ebb9@byu.net>
23855
23856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
23857         regression in logic sense of previous patch.
23858
23859 2007-03-26  Bruno Haible  <bruno@clisp.org>
23860
23861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
23862         unportable shell command "if ! ...".
23863         Reported by Ralf Wildenhues.
23864
23865 2007-03-25  Bruno Haible  <bruno@clisp.org>
23866
23867         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
23868         <sysexits.h> file, and only add EX_CONFIG.
23869         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
23870         absolute file name and whether it is sufficient. Substitute also
23871         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
23872         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
23873         ABSOLUTE_SYSEXITS_H into sysexits.h.
23874
23875 2007-03-25  Bruno Haible  <bruno@clisp.org>
23876
23877         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
23878         hints is NULL.
23879
23880 2007-03-25  Bruno Haible  <bruno@clisp.org>
23881
23882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
23883         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23884
23885 2007-03-25  Bruno Haible  <bruno@clisp.org>
23886
23887         * lib/vasnprintf.c: Include langinfo.h.
23888         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
23889         multithread-safe.
23890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
23891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
23892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
23898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23899         Reported by Simon Josefsson.
23900
23901 2007-03-25  Bruno Haible  <bruno@clisp.org>
23902
23903         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
23904         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
23905         * modules/vasnprintf (Depends-on): Add stdint.
23906
23907 2007-03-25  Bruno Haible  <bruno@clisp.org>
23908
23909         * modules/fpieee: New file.
23910         * m4/fpieee.m4: New file.
23911         * modules/isnan-nolibm (Depends-on): Add fpieee.
23912         * modules/isnanl-nolibm (Depends-on): Add fpieee.
23913         * modules/isnanl (Depends-on): Add fpieee.
23914
23915 2007-03-25  Bruno Haible  <bruno@clisp.org>
23916
23917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
23918
23919 2007-03-25  Bruno Haible  <bruno@clisp.org>
23920
23921         Avoid test failures on IRIX 6.5.
23922         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
23923         (main): Use it.
23924         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
23925         macros.
23926         (main): Use them.
23927
23928 2007-03-25  Bruno Haible  <bruno@clisp.org>
23929
23930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
23931         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
23932         exists but doesn't work.
23933         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
23934         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
23935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
23936         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
23937
23938 2007-03-25  Bruno Haible  <bruno@clisp.org>
23939
23940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
23941         returns inf. Needed on IRIX 6.5.
23942
23943 2007-03-25  Bruno Haible  <bruno@clisp.org>
23944
23945         * tests/test-frexpl.c: Include isnanl-nolibm.h.
23946         (main): Use isnanl instead of x != x idiom.
23947         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
23948
23949         * tests/test-frexp.c: Include isnan.h.
23950         (main): Use isnan instead of x != x idiom.
23951         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
23952
23953 2007-03-25  Bruno Haible  <bruno@clisp.org>
23954
23955         * tests/test-frexp.c (NaN): New function/macro.
23956         (main): Use it instead of 0.0 / 0.0.
23957         * tests/test-isnan.c (NaN): New function/macro.
23958         (main): Use it instead of 0.0 / 0.0.
23959         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
23960         (test_function): Use it instead of 0.0 / 0.0.
23961         * tests/test-vasprintf-posix.c (NaN): New function/macro.
23962         (test_function): Use it instead of 0.0 / 0.0.
23963         * tests/test-snprintf-posix.h (NaN): New function/macro.
23964         (test_function): Use it instead of 0.0 / 0.0.
23965         * tests/test-sprintf-posix.h (NaN): New function/macro.
23966         (test_function): Use it instead of 0.0 / 0.0.
23967         * tests/test-fprintf-posix.h (NaN): New function/macro.
23968         (test_function): Use it instead of 0.0 / 0.0.
23969         * tests/test-printf-posix.h (NaN): New function/macro.
23970         (test_function): Use it instead of 0.0 / 0.0.
23971
23972         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
23973
23974 2007-03-25  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
23977
23978 2007-03-25  Bruno Haible  <bruno@clisp.org>
23979
23980         * lib/regexec.c (merge_state_with_log): Make static.
23981
23982 2007-03-25  Bruno Haible  <bruno@clisp.org>
23983
23984         * lib/trigl.c (kernel_rem_pio2): Make static.
23985
23986 2007-03-25  Bruno Haible  <bruno@clisp.org>
23987
23988         * lib/sincosl.c (sincosl_table): Make static.
23989
23990 2007-03-25  Bruno Haible  <bruno@clisp.org>
23991
23992         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
23993         if the compiler does not support C99.
23994
23995 2007-03-25  Bruno Haible  <bruno@clisp.org>
23996
23997         * modules/time (Makefile.am): Ensure all rule action lines start with a
23998         tab.
23999
24000 2007-03-24  Bruno Haible  <bruno@clisp.org>
24001
24002         * modules/tsearch-tests: New file.
24003         * tests/test-tsearch.sh: New file.
24004         * tests/test-tsearch.c: New file, mostly copied from glibc.
24005
24006         * modules/search-tests: New file.
24007         * tests/test-search.c: New file.
24008
24009         * modules/search: New file.
24010         * lib/search_.h: New file, incorporating lib/tsearch.h.
24011         * m4/search_h.m4: New file.
24012         * lib/tsearch.h: Remove file.
24013         * lib/tsearch.c: Include search.h instead of tsearch.h.
24014         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
24015         HAVE_TSEARCH.
24016         * modules/tsearch (Files): Remove lib/tsearch.h.
24017         (Depends-on): Add search.
24018         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
24019         (Include): Change tsearch.h into search.h.
24020
24021 2007-03-24  Bruno Haible  <bruno@clisp.org>
24022
24023         * modules/fpucw: New file.
24024         * lib/fpucw.h: New file.
24025         * lib/frexp.c: Include fpucw.h.
24026         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24027         (FUNC): Use them.
24028         * lib/printf-frexp.c: Include fpucw.h.
24029         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24030         (FUNC): Use them.
24031         * lib/vasnprintf.c: Include fpucw.h.
24032         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
24033         'long double' calculations.
24034         * tests/test-frexpl.c: Include fpucw.h.
24035         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24036         * tests/test-printf-frexpl.c: Include fpucw.h.
24037         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24038         * modules/frexpl (Depends-on): Add fpucw.
24039         * modules/printf-frexpl (Depends-on): Likewise.
24040         * modules/fprintf-posix (Depends-on): Likewise.
24041         * modules/snprintf-posix (Depends-on): Likewise.
24042         * modules/sprintf-posix (Depends-on): Likewise.
24043         * modules/vasnprintf-posix (Depends-on): Likewise.
24044         * modules/vasprintf-posix (Depends-on): Likewise.
24045         * modules/vfprintf-posix (Depends-on): Likewise.
24046         * modules/vsnprintf-posix (Depends-on): Likewise.
24047         * modules/vsprintf-posix (Depends-on): Likewise.
24048         * modules/frexpl-tests (Depends-on): Likewise.
24049         * modules/printf-frexpl-tests (Depends-on): Likewise.
24050
24051 2007-03-24  Bruno Haible  <bruno@clisp.org>
24052
24053         * lib/float+.h: New file.
24054         * lib/isnan.c: Include float+.h.
24055         (SIZE): New macro.
24056         (FUNC): Compare only SIZE bytes of the value.
24057         * lib/vasnprintf.c: Include float+.h.
24058         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
24059         SIZEOF_LDBL or SIZEOF_DBL bytes.
24060         * modules/isnan-nolibm (Files): Add lib/float+.h.
24061         * modules/isnanl-nolibm (Files): Add lib/float+.h.
24062         * modules/isnanl (Files): Add lib/float+.h.
24063         * modules/vasnprintf (Files): Add lib/float+.h.
24064
24065 2007-03-24  Bruno Haible  <bruno@clisp.org>
24066
24067         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
24068         include isnanl-nolibm.h.
24069
24070 2007-03-24  Bruno Haible  <bruno@clisp.org>
24071
24072         * tests/test-read-file.c (main): Don't produce spurious output for
24073         expected situations. Make the test fail if it encountered unexpected
24074         results.
24075
24076 2007-03-24  Bruno Haible  <bruno@clisp.org>
24077
24078         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
24079         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
24080
24081 2007-03-24  Bruno Haible  <bruno@clisp.org>
24082
24083         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
24084
24085 2007-03-24  Bruno Haible  <bruno@clisp.org>
24086
24087         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
24088         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
24089
24090         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
24091         * modules/utf8-ucs4: Turn into a symbolic link to module
24092         unistr/u8-mbtouc.
24093
24094         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
24095         utf8-ucs4-unsafe.
24096         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
24097         unistr/u8-mbtouc-unsafe.
24098
24099         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
24100         * modules/utf16-ucs4: Turn into a symbolic link to module
24101         unistr/u16-mbtouc.
24102
24103         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
24104         utf16-ucs4-unsafe.
24105         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
24106         unistr/u16-mbtouc-unsafe.
24107
24108         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
24109         * modules/ucs4-utf8: Turn into a symbolic link to module
24110         unistr/u8-ubtomb.
24111
24112         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
24113         * modules/ucs4-utf16: Turn into a symbolic link to module
24114         unistr/u16-ubtomb.
24115
24116 2007-03-24  Bruno Haible  <bruno@clisp.org>
24117
24118         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
24119         Enable the function only if HAVE_INLINE.
24120         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
24121         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24122         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
24123         Enable the function only if HAVE_INLINE.
24124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
24125         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24126         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
24127         Enable the function only if HAVE_INLINE.
24128         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
24129         Enable the function only if HAVE_INLINE.
24130         * modules/utf8-ucs4: Update.
24131         * modules/utf8-ucs4-unsafe: Update.
24132         * modules/utf16-ucs4: Update.
24133         * modules/utf16-ucs4-unsafe: Update.
24134         * modules/ucs4-utf8: Update.
24135         * modules/ucs4-utf16: Update.
24136
24137 2007-03-24  Bruno Haible  <bruno@clisp.org>
24138
24139         * lib/utf8-ucs4.h: Remove file.
24140         * lib/utf8-ucs4-unsafe.h: Remove file.
24141         * lib/utf16-ucs4.h: Remove file.
24142         * lib/utf16-ucs4-unsafe.h: Remove file.
24143         * lib/ucs4-utf8.h: Remove file.
24144         * lib/ucs4-utf16.h: Remove file.
24145         * lib/unistr.h: Include their previous contents.
24146         * m4/utf-ucs4.m4: Remove file.
24147         * m4/ucs4-utf.m4: Remove file.
24148         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
24149         (Depends-on): Add unistr/base.
24150         (configure.ac): Remove gl_UTF_UCS4.
24151         (Makefile.am): Update.
24152         (Include): Change to unistr.h.
24153         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
24154         (Depends-on): Add unistr/base.
24155         (configure.ac): Remove gl_UTF_UCS4.
24156         (Makefile.am): Update.
24157         (Include): Change to unistr.h.
24158         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
24159         (Depends-on): Add unistr/base.
24160         (configure.ac): Remove gl_UTF_UCS4.
24161         (Makefile.am): Update.
24162         (Include): Change to unistr.h.
24163         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
24164         (Depends-on): Add unistr/base.
24165         (configure.ac): Remove gl_UTF_UCS4.
24166         (Makefile.am): Update.
24167         (Include): Change to unistr.h.
24168         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
24169         (Depends-on): Add unistr/base.
24170         (configure.ac): Remove gl_UCS4_UTF.
24171         (Makefile.am): Update.
24172         (Include): Change to unistr.h.
24173         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
24174         (Depends-on): Add unistr/base.
24175         (configure.ac): Remove gl_UCS4_UTF.
24176         (Makefile.am): Update.
24177         (Include): Change to unistr.h.
24178         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
24179         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
24180         utf8-ucs4-unsafe.h.
24181         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
24182         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
24183         utf16-ucs4-unsafe.h.
24184         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
24185         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
24186         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
24187         * lib/unistr/u8-strchr.c: Likewise.
24188         * lib/unistr/u8-strrchr.c: Likewise.
24189         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
24190         * lib/unistr/u16-strchr.c: Likewise.
24191         * lib/unistr/u16-strrchr.c: Likewise.
24192         * lib/striconveh.c: Update.
24193         * lib/linebreak.c: Update.
24194
24195 2007-03-24  Bruno Haible  <bruno@clisp.org>
24196
24197         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
24198         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
24199
24200 2007-03-22  Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
24203
24204 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24205
24206         * MODULES.html.sh (File system functions): New module write-any-file.
24207         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
24208         * m4/write-any-file.m4: New files.
24209
24210 2007-03-23  Eric Blake  <ebb9@byu.net>
24211
24212         * gnulib-tool: Rearrange space-tab sequences, since some editors
24213         like to eat them.
24214
24215 2007-03-23  Eric Blake  <ebb9@byu.net>
24216
24217         * lib/version-etc.c (version_etc_va): Update license wording to
24218         be more concise.  Recommended by Richard Stallman.
24219
24220 2007-03-22  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/poll.c (MSG_PEEK): New fallback definition.
24223
24224 2007-03-22  Bruno Haible  <bruno@clisp.org>
24225
24226         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
24227         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
24228         (main): Update.
24229         Fixes a compilation error on BeOS.
24230
24231 2007-03-22  Bruno Haible  <bruno@clisp.org>
24232
24233         * modules/frexpl-tests: New file.
24234         * tests/test-frexpl.c: New file.
24235
24236         * modules/frexpl: New file.
24237         * m4/frexpl.m4: New file.
24238         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
24239         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
24240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
24241         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
24242         (Depends-on): Add frexpl. Remove isnanl-nolibm.
24243         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
24244
24245 2007-03-22  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/frexpl.c: Share code with lib/frexp.c.
24248         * modules/mathl (Files): Add lib/frexp.c.
24249         (Depends-on): Add isnanl-nolibm.
24250
24251 2007-03-22  Bruno Haible  <bruno@clisp.org>
24252
24253         * modules/printf-frexp (Files): Add m4/frexp.m4.
24254         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
24255         only if the found frexp function actually works.
24256
24257 2007-03-22  Bruno Haible  <bruno@clisp.org>
24258
24259         * lib/frexp.c: Remove older implementation that uses divisions.
24260
24261 2007-03-21  Bruno Haible  <bruno@clisp.org>
24262
24263         * modules/frexp-tests: New file.
24264         * tests/test-frexp.c: New file.
24265
24266         * modules/frexp: New file.
24267         * lib/frexp.c: New file.
24268         * m4/frexp.m4: New file.
24269         * lib/math_.h (frexp): New declaration.
24270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
24271         REPLACE_FREXP.
24272         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
24273
24274 2007-03-21  Bruno Haible  <bruno@clisp.org>
24275
24276         * modules/isnanl-tests: New file.
24277         * tests/test-isnanl.c: New file.
24278
24279         * modules/isnanl: New file.
24280         * lib/isnanl.h: New file.
24281         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
24282         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
24283         gl_FUNC_ISNANL_WORKS.
24284         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
24285         New macros.
24286
24287 2007-03-21  Bruno Haible  <bruno@clisp.org>
24288
24289         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
24290         lib/isnanl.h.
24291         (Include): Update.
24292         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
24293         * lib/vasnprintf.c: Update.
24294         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
24295         tests/test-isnanl.h, remove tests/test-isnanl.c.
24296         (Makefile.am): Update.
24297         * tests/test-isnanl-nolibm.c: New file.
24298         * tests/test-isnanl.h: New file.
24299         * tests/test-isnanl.c: Remove file.
24300
24301 2007-03-21  Jim Meyering  <jim@meyering.net>
24302
24303         When trying to open ".", treat ESTALE like EACCES.
24304         * lib/savewd.c (savewd_save): Resort to forking not just upon
24305         failure with EACCES, but also when errno is ESTALE.
24306
24307 2007-03-20  Bruno Haible  <bruno@clisp.org>
24308
24309         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
24310         Needed on AIX 5.1. Reported by Matthew Woehlke.
24311
24312 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24313
24314         Suggestions by Bruno Haible:
24315         * lib/acl-internal.h: Include "gettext.h" rather than rolling
24316         our own.
24317         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
24318         * modules/acl (Depends-on): Add gettext.
24319
24320 2007-03-19  Bruno Haible  <bruno@clisp.org>
24321
24322         * modules/iconvme: Remove file.
24323         * lib/iconvme.h: Remove file.
24324         * lib/iconvme.c: Remove file.
24325         * m4/iconvme.m4: Remove file.
24326
24327 2007-03-19  Bruno Haible  <bruno@clisp.org>
24328
24329         * doc/relocatable-maint.texi: Break long shell script line.
24330         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24331
24332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
24335         handle file_has_acl.
24336         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
24337         * lib/acl.c: Move header inclusions and related macro defns into
24338         lib/acl-internal.h.
24339         (S_ISLNK): Remove defn, since that's now done for us.
24340         (file_has_acl): Move to lib/file-has-acl.c.
24341         Call acl_trivial if available.  This is the crucial part of the fix.
24342         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
24343         shared within the library.  Rewrite a bit, partly to make it compatible
24344         with the GNU coding style.
24345         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
24346         Remove unnecessary double-quotes.
24347         Don't test for acl_to_text; the build will catch that.
24348         Replace acl_entries if it doesn't exist and it is needed.
24349         Check for -lsec and acl_trivial (as used on Solaris 10).
24350         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
24351         lib/file-has-acl.c.
24352         (Depends-on): Add sys_stat, for S_ISLNK.
24353
24354 2007-03-19  Ben Pfaff  <blp@gnu.org>
24355
24356         * doc/gnulib.texi: Fix typos.
24357         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24358
24359 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24360
24361         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
24362         If size is zero here, buf must be zero.
24363
24364 2007-03-19  Simon Josefsson  <simon@josefsson.org>
24365
24366         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
24367         <bruno@clisp.org>.
24368
24369 2007-03-18  Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
24372         Suggested by Eric Blake.
24373
24374 2007-03-18  Ben Pfaff  <blp@gnu.org>
24375
24376         * doc/relocatable.texi: Recommend using as prefix a directory
24377         that does not exist and will never be created.  Based on
24378         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
24379         and others.
24380
24381 2007-03-17  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/fchownat.c: Include lchown.h.
24384
24385 2007-03-17  Bruno Haible  <bruno@clisp.org>
24386
24387         Fix endless loop when the given allocated size was > INT_MAX.
24388         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
24389         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
24390         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
24391         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
24392         * lib/sprintf.c (sprintf): Likewise.
24393
24394 2007-03-17  Bruno Haible  <bruno@clisp.org>
24395
24396         * tests/test-argp-2.sh (func_compare): Output a context diff.
24397
24398 2007-03-17  Bruno Haible  <bruno@clisp.org>
24399
24400         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
24401         locale's decimal-point character.
24402
24403 2007-03-17  Bruno Haible  <bruno@clisp.org>
24404
24405         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
24406         before comparing it. Needed because on some platforms (e.g. x86) a
24407         'long double' occupies less bytes than sizeof (long double).
24408
24409 2007-03-17  Bruno Haible  <bruno@clisp.org>
24410
24411         * tests/test-crc.c (main): Make printf statements 64-bit clean.
24412         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
24413         * tests/test-getaddrinfo.c (simple): Likewise.
24414         * tests/test-read-file.c (main): Likewise.
24415
24416 2007-03-17  Bruno Haible  <bruno@clisp.org>
24417
24418         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
24419
24420 2007-03-17  Bruno Haible  <bruno@clisp.org>
24421
24422         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
24423         unused variable.
24424
24425 2007-03-17  Bruno Haible  <bruno@clisp.org>
24426
24427         * tests/test-c-strcasecmp.c: Include c-strcase.h.
24428         * tests/test-c-strncasecmp.c: Likewise.
24429
24430 2007-03-17  Bruno Haible  <bruno@clisp.org>
24431
24432         * modules/stdlib (Depends-on): Add unistd.
24433         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
24434         Needed for MacOS X 10.3.
24435
24436 2007-03-17  Bruno Haible  <bruno@clisp.org>
24437
24438         * lib/unistr/u-strdup.h: Include <stdlib.h>.
24439
24440 2007-03-17  Bruno Haible  <bruno@clisp.org>
24441
24442         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
24443
24444 2007-03-17  Bruno Haible  <bruno@clisp.org>
24445
24446         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
24447         to reflect files copied from gnulib (with or without modifications).
24448         Suggested by Jim Meyering.
24449
24450 2007-03-17  Eric Blake  <ebb9@byu.net>
24451
24452         * NEWS: Document stdlib change from 2007-02-18.
24453
24454 2007-03-17  Jim Meyering  <jim@meyering.net>
24455
24456         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
24457         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
24458         someone uses a name containing shell meta-characters.
24459         Reported by Alfred M. Szmidt.
24460
24461         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
24462
24463 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24464
24465         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
24466         and copy gettext configuration files only if configure.ac contains
24467         a use of AM_GNU_GETTEXT_VERSION.
24468
24469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
24470
24471         * build-aux/bootstrap (gnulib_name): New variable.
24472         (gnulib_tool_options): Use it.
24473
24474 2007-03-13  Simon Josefsson  <simon@josefsson.org>
24475
24476         * tests/test-des.c: Use new namespace.
24477
24478 2007-03-15  Bruno Haible  <bruno@clisp.org>
24479
24480         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
24481         Reported by James Youngman <jay@gnu.org>.
24482
24483 2007-03-15  Bruno Haible  <bruno@clisp.org>
24484
24485         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
24486         declared prototype. Needed with cc on OSF/1 5.1.
24487
24488 2007-03-15  Bruno Haible  <bruno@clisp.org>
24489
24490         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
24491         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
24492         (struct gl_list_implementation): Add dispose_fn argument to the
24493         'create_empty', 'create' methods.
24494         (struct gl_list_impl_base): Add field 'dispose_fn'.
24495         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
24496         argument.
24497         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
24498         dispose_fn argument.
24499         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
24500         dispose_fn on the dropped values.
24501         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
24502         dispose_fn argument.
24503         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
24504         dropped values.
24505         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
24506         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24507         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
24508         (gl_tree_remove_node): Call dispose_fn on the dropped value.
24509         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
24510         argument.
24511         (gl_tree_list_free): Call dispose_fn on the dropped values.
24512         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
24513         the dropped values.
24514         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
24515         Add dispose_fn argument.
24516         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
24517         Call dispose_fn on the dropped values.
24518         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
24519         Add dispose_fn argument.
24520         (gl_sublist_create): Initialize the 'dispose_fn' field.
24521         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
24522         * tests/test-array_list.c (main): Update.
24523         * tests/test-carray_list.c (main): Update.
24524         * tests/test-avltree_list.c (main): Update.
24525         * tests/test-rbtree_list.c (main): Update.
24526         * tests/test-avltreehash_list.c (main): Update.
24527         * tests/test-rbtreehash_list.c (main): Update.
24528         * tests/test-linked_list.c (main): Update.
24529         * tests/test-linkedhash_list.c (main): Update.
24530         * tests/test-array_oset.c (main): Update.
24531
24532 2007-03-15  Bruno Haible  <bruno@clisp.org>
24533
24534         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
24535         (gl_oset_create_empty): Add dispose_fn argument.
24536         (struct gl_oset_implementation): Add dispose_fn argument to
24537         'create_empty' method.
24538         (struct gl_oset_impl_base): Add dispose_fn field.
24539         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
24540         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
24541         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
24542         values.
24543         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
24544         (gl_tree_oset_free): Call dispose_fn on the dropped values.
24545         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24546         dropped value.
24547         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
24548         dropped value.
24549         * tests/test-array_oset.c (main): Update.
24550         * tests/test-avltree_oset.c (main): Update.
24551         * tests/test-rbtree_oset.c (main): Update.
24552         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
24553
24554 2007-03-13  Bruno Haible  <bruno@clisp.org>
24555
24556         * tests/test-stdbool.c (i): Update after last patch.
24557
24558 2007-03-12  Bruno Haible  <bruno@clisp.org>
24559
24560         * lib/quotearg.c: Include <wctype.h> early, before the definition of
24561         the iswprint macro. Needed on Solaris 2.5.1.
24562
24563 2007-03-12  Bruno Haible  <bruno@clisp.org>
24564
24565         * tests/test-printf-frexp.c (main): Declare x as volatile.
24566
24567 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24568
24569         * doc/gnulib.texi (Build robot for gnulib): New section.
24570
24571 2007-03-12  Jim Meyering  <jim@meyering.net>
24572
24573         * build-aux/bootstrap: New file.
24574         * build-aux/bootstrap.conf: New file, from coreutils.
24575
24576 2007-03-11  Bruno Haible  <bruno@clisp.org>
24577
24578         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
24579
24580 2007-03-12  Simon Josefsson  <simon@josefsson.org>
24581
24582         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
24583         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
24584         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
24585
24586 2007-03-11  Bruno Haible  <bruno@clisp.org>
24587
24588         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
24589         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
24590
24591 2007-03-11  Bruno Haible  <bruno@clisp.org>
24592
24593         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
24594         formula. Needed for SunPRO C 5.0.
24595
24596 2007-03-11  Bruno Haible  <bruno@clisp.org>
24597
24598         * modules/long-options (Depends-on): Add getopt.
24599
24600 2007-03-11  Bruno Haible  <bruno@clisp.org>
24601
24602         * modules/modechange (Depends-on): Add stdbool.
24603
24604 2007-03-11  Bruno Haible  <bruno@clisp.org>
24605
24606         * modules/i-ring (Depends-on): Add stdbool.
24607
24608 2007-03-11  Bruno Haible  <bruno@clisp.org>
24609
24610         * modules/gc-des (Depends-on): Add stdbool.
24611
24612 2007-03-11  Bruno Haible  <bruno@clisp.org>
24613
24614         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
24615
24616 2007-03-11  Bruno Haible  <bruno@clisp.org>
24617
24618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
24619
24620 2007-03-11  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
24623
24624 2007-03-11  Bruno Haible  <bruno@clisp.org>
24625
24626         * lib/vasnprintf.c (sprintf): Undefine.
24627
24628 2007-03-11  Bruno Haible  <bruno@clisp.org>
24629
24630         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
24631         initializers in SunPRO C and Compaq C compilers.
24632
24633 2007-03-11  Bruno Haible  <bruno@clisp.org>
24634
24635         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
24636         decrementing code ANSI C compliant.
24637
24638 2007-03-11  Bruno Haible  <bruno@clisp.org>
24639
24640         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
24641         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
24642
24643 2007-03-11  Bruno Haible  <bruno@clisp.org>
24644
24645         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
24646         <stdbool.h> substitute doesn't pass.
24647
24648 2007-03-11  Bruno Haible  <bruno@clisp.org>
24649
24650         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
24651
24652 2007-03-11  Bruno Haible  <bruno@clisp.org>
24653
24654         * gnulib-tool (func_create_megatestdir): Create also an autobuild
24655         script, for submission to autobuild.josefsson.org.
24656
24657 2007-03-10  Bruno Haible  <bruno@clisp.org>
24658
24659         * modules/canonicalize-lgpl-tests: New file.
24660         * tests/test-canonicalize-lgpl.sh: New file.
24661         * tests/test-canonicalize-lgpl.c: New file.
24662
24663         * modules/c-strcase-tests: New file.
24664         * tests/test-c-strcase.sh: New file.
24665         * tests/test-c-strcasecmp.c: New file.
24666         * tests/test-c-strncasecmp.c: New file.
24667
24668         * modules/atexit-tests: New file.
24669         * tests/test-atexit.sh: New file.
24670         * tests/test-atexit.c: New file.
24671
24672 2007-03-10  Bruno Haible  <bruno@clisp.org>
24673
24674         * tests/test-binary-io.sh: Use temporary filenames that are not so
24675         likely to clash with those of other tests (in a parallel make).
24676         * tests/test-binary-io.c: Likewise.
24677
24678 2007-03-10  Bruno Haible  <bruno@clisp.org>
24679
24680         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
24681         fallback; use #error instead.
24682         Suggested by Simon Josefsson.
24683
24684 2007-03-10  Bruno Haible  <bruno@clisp.org>
24685
24686         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
24687         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
24688         first and the last.
24689
24690 2007-03-10  Bruno Haible  <bruno@clisp.org>
24691
24692         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
24693
24694 2007-03-10  Bruno Haible  <bruno@clisp.org>
24695
24696         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
24697         "make distcheck".
24698         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
24699         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
24700         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
24701
24702 2007-03-10  Bruno Haible  <bruno@clisp.org>
24703
24704         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
24705         variable.
24706         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
24707         variable.
24708
24709 2007-03-09  Eric Blake  <ebb9@byu.net>
24710         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
24711
24712         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
24713         types are not being provided by gnulib.
24714         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
24715         types are supported.
24716
24717 2007-03-10  Bruno Haible  <bruno@clisp.org>
24718
24719         * lib/stdio_.h (__attribute__): New macro.
24720         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
24721         vsprintf): Specify __attribute__ __format__ for GCC.
24722         Suggested by Eric Blake.
24723
24724 2007-03-09  Bruno Haible  <bruno@clisp.org>
24725
24726         * modules/printf-posix-tests: New file.
24727         * tests/test-printf-posix.sh: New file.
24728         * tests/test-printf-posix.c: New file.
24729
24730         * modules/printf-posix: New file.
24731         * lib/printf.c: New file.
24732         * m4/printf-posix-rpl.m4: New file.
24733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
24734         REPLACE_PRINTF.
24735         * lib/stdio_.h (printf): New declaration.
24736         (format, __format__, ____printf____, ____scanf____, ____strftime____,
24737         ____strfmon____): New macros.
24738         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
24739         REPLACE_PRINTF.
24740
24741 2007-03-09  Bruno Haible  <bruno@clisp.org>
24742
24743         * tests/test-vasnprintf-posix2.sh: New file.
24744         * tests/test-vasnprintf-posix2.c: New file.
24745         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
24746         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24747         (Makefile.am): Activate test-vasnprintf-posix2.sh.
24748
24749         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
24750         a locale dependent decimal point, rather than always '.'.
24751
24752 2007-03-09  Eric Blake  <ebb9@byu.net>
24753
24754         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
24755         spite of platforms like Tandem/NSK that define it to -1.
24756
24757 2007-03-08  Bruno Haible  <bruno@clisp.org>
24758
24759         * modules/vprintf-posix-tests: New file.
24760         * tests/test-vprintf-posix.sh: New file.
24761         * tests/test-vprintf-posix.c: New file.
24762         * tests/test-printf-posix.h: New file.
24763
24764         * modules/vprintf-posix: New file.
24765         * lib/vprintf.c: New file.
24766         * m4/vprintf-posix.m4: New file.
24767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
24768         REPLACE_VPRINTF.
24769         * lib/stdio_.h (vprintf): New declaration.
24770         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
24771         REPLACE_VPRINTF.
24772
24773 2007-03-08  Bruno Haible  <bruno@clisp.org>
24774
24775         * modules/fprintf-posix-tests: New file.
24776         * tests/test-fprintf-posix.sh: New file.
24777         * tests/test-fprintf-posix.c: New file.
24778
24779         * modules/fprintf-posix: New file.
24780         * lib/fprintf.c: New file.
24781         * m4/fprintf-posix.m4: New file.
24782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
24783         REPLACE_FPRINTF.
24784         * lib/stdio_.h (fprintf): New declaration.
24785         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
24786         REPLACE_FPRINTF.
24787
24788 2007-03-08  Bruno Haible  <bruno@clisp.org>
24789
24790         * modules/vfprintf-posix-tests: New file.
24791         * tests/test-vfprintf-posix.sh: New file.
24792         * tests/test-vfprintf-posix.c: New file.
24793         * tests/test-fprintf-posix.h: New file.
24794         * tests/test-fprintf-posix.out: New file.
24795
24796         * modules/vfprintf-posix: New file.
24797         * lib/vfprintf.c: New file.
24798         * m4/vfprintf-posix.m4: New file.
24799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
24800         REPLACE_VFPRINTF.
24801         * lib/stdio_.h (vfprintf): New declaration.
24802         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
24803         REPLACE_VFPRINTF.
24804
24805 2007-03-08  Bruno Haible  <bruno@clisp.org>
24806
24807         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
24808
24809 2007-03-08  Bruno Haible  <bruno@clisp.org>
24810
24811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
24812         instead of 'expr' invocations.
24813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24817         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24818         Suggested by Paul Eggert.
24819
24820 2007-03-08  Bruno Haible  <bruno@clisp.org>
24821
24822         * modules/fseterr-tests: New file.
24823         * tests/test-fseterr.c: New file.
24824
24825         * modules/fseterr: New file.
24826         * lib/fseterr.h: New file.
24827         * lib/fseterr.c: New file.
24828
24829 2007-03-08  Bruno Haible  <bruno@clisp.org>
24830
24831         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
24832         * lib/getopt_.h: Likewise.
24833         * lib/mbswidth.h: Likewise.
24834         * lib/setenv.h: Likewise.
24835         * lib/vasnprintf.h: Likewise.
24836         * lib/vasprintf.h: Likewise.
24837         * lib/verror.h: Likewise.
24838         * lib/xsetenv.h: Likewise.
24839         * lib/xvasprintf.h: Likewise.
24840
24841 2007-03-08  Jim Meyering  <jim@meyering.net>
24842
24843         * users.txt: Add parted.
24844
24845         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
24846
24847 2007-03-07  Bruno Haible  <bruno@clisp.org>
24848
24849         * m4/printf.m4: Make the shell script snippets copy&pastable.
24850
24851 2007-03-02  Bruno Haible  <bruno@clisp.org>
24852
24853         * lib/netinet_in_.h: New file.
24854         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
24855         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
24856         * modules/netinet_in (Files): Add lib/netinet_in_.h.
24857         (Depends-on): Add absolute-header.
24858         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
24859         into netinet/in.h.
24860
24861 2007-03-03  Bruno Haible  <bruno@clisp.org>
24862
24863         * lib/sys_select_.h: New file.
24864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
24865         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
24866         * modules/sys_select (Files): Add lib/sys_select_.h.
24867         (Depends-on): Add absolute-header.
24868         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
24869         into sys/select.h.
24870
24871 2007-03-02  Bruno Haible  <bruno@clisp.org>
24872
24873         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
24874         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
24875         values.
24876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
24877         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
24878         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
24879         * modules/sys_socket (Depends-on): Add absolute-header.
24880         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
24881         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
24882         (Include): Remove requirement of inclusion of <sys/types.h>.
24883
24884 2007-03-02  Bruno Haible  <bruno@clisp.org>
24885
24886         * lib/byteswap_.h (bswap_32): Fix formula.
24887
24888 2007-03-06  Bruno Haible  <bruno@clisp.org>
24889
24890         * modules/sprintf-posix-tests: New file.
24891         * tests/test-sprintf-posix.c: New file.
24892
24893         * modules/sprintf-posix: New file.
24894         * lib/sprintf.c: New file.
24895         * m4/sprintf-posix.m4: New file.
24896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
24897         REPLACE_SPRINTF.
24898         * lib/stdio_.h (sprintf): New declaration.
24899         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
24900         REPLACE_SPRINTF.
24901
24902 2007-03-06  Bruno Haible  <bruno@clisp.org>
24903
24904         * modules/vsprintf-posix-tests: New file.
24905         * tests/test-vsprintf-posix.c: New file.
24906         * tests/test-sprintf-posix.h: New file.
24907
24908         * modules/vsprintf-posix: New file.
24909         * lib/vsprintf.c: New file.
24910         * m4/vsprintf-posix.m4: New file.
24911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
24912         REPLACE_VSPRINTF.
24913         * lib/stdio_.h (vsprintf): New declaration.
24914         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
24915         REPLACE_VSPRINTF.
24916
24917 2007-03-06  Bruno Haible  <bruno@clisp.org>
24918
24919         * modules/vsnprintf (Depend-on): Remove minmax.
24920
24921 2007-03-06  Bruno Haible  <bruno@clisp.org>
24922
24923         * modules/snprintf-posix-tests: New file.
24924         * tests/test-snprintf-posix.c: New file.
24925
24926         * modules/snprintf-posix: New file.
24927         * m4/snprintf-posix.m4: New file.
24928         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
24929         gl_FUNC_SNPRINTF.
24930         (gl_FUNC_SNPRINTF): Invoke it.
24931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
24932         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
24933         is set.
24934         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
24935
24936 2007-03-06  Bruno Haible  <bruno@clisp.org>
24937
24938         * modules/vsnprintf-posix-tests: New file.
24939         * tests/test-vsnprintf-posix.c: New file.
24940         * tests/test-snprintf-posix.h: New file.
24941
24942         * modules/vsnprintf-posix: New file.
24943         * m4/vsnprintf-posix.m4: New file.
24944         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
24945         gl_FUNC_VSNPRINTF.
24946         (gl_FUNC_VSNPRINTF): Invoke it.
24947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
24948         * lib/stdio_.h (vsnprintf): Define as a replacement if
24949         REPLACE_VSNPRINTF is set.
24950         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
24951
24952 2007-03-06  Bruno Haible  <bruno@clisp.org>
24953
24954         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
24955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
24956
24957 2007-03-06  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
24960         (asinl): Declare also if HAVE_DECL_ASINL is set.
24961         (atanl): Declare also if HAVE_DECL_ATANL is set.
24962         (ceill): Declare also if HAVE_DECL_CEILL is set.
24963         (cosl): Declare also if HAVE_DECL_COSL is set.
24964         (expl): Declare also if HAVE_DECL_EXPL is set.
24965         (floorl): Declare also if HAVE_DECL_FLOORL is set.
24966         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
24967         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
24968         (logl): Declare also if HAVE_DECL_LOGL is set.
24969         (sinl): Declare also if HAVE_DECL_SINL is set.
24970         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
24971         (tanl): Declare also if HAVE_DECL_TANL is set.
24972         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
24973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
24974         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
24975         declaration of frexpl, ldexpl.
24976         * modules/printf-frexpl (Depends-on): Add math.
24977         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
24978
24979 2007-03-05  Bruno Haible  <bruno@clisp.org>
24980
24981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
24982         frexpl and ldexpl are declared.
24983         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
24984
24985 2007-03-05  Bruno Haible  <bruno@clisp.org>
24986
24987         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
24988         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
24989
24990 2007-03-05  Bruno Haible  <bruno@clisp.org>
24991
24992         * lib/stdio_.h: Include <stddef.h>.
24993
24994 2007-03-05  Bruno Haible  <bruno@clisp.org>
24995
24996         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
24997
24998 2007-03-05  Bruno Haible  <bruno@clisp.org>
24999
25000         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
25001         NetBSD 4, from Ralf Wildenhues.
25002
25003 2007-03-04  Bruno Haible  <bruno@clisp.org>
25004
25005         * lib/vasprintf.h: Update #if logic for the case when the functions
25006         exist but are overridden.
25007
25008 2007-03-04  Bruno Haible  <bruno@clisp.org>
25009
25010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
25011         implementations: glibc-2.4 and MacOS X 10.3.
25012         * tests/test-vasnprintf-posix.c (test_function): Test also the case
25013         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
25014         * tests/test-vasprintf-posix.c (test_function): Likewise.
25015
25016 2007-03-04  Bruno Haible  <bruno@clisp.org>
25017
25018         * modules/vasprintf-posix-tests: New file.
25019         * tests/test-vasprintf-posix.c: New file.
25020
25021         * modules/vasprintf-posix: New file.
25022         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
25023         defined.
25024         * m4/vasprintf-posix.m4: New file.
25025         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
25026         gl_FUNC_VASPRINTF.
25027         (gl_FUNC_VASPRINTF): Invoke it.
25028         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
25029         here.
25030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
25031
25032 2007-03-04  Bruno Haible  <bruno@clisp.org>
25033
25034         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
25035         REPLACE_GETTIMEOFDAY.
25036         * modules/sys_time (Makefile.am): Likewise.
25037         * m4/sys_time_h.m4: Likewise.
25038         * m4/gettimeofday.m4: Likewise.
25039
25040 2007-03-04  Bruno Haible  <bruno@clisp.org>
25041
25042         * modules/vasnprintf-posix-tests: New file.
25043         * tests/test-vasnprintf-posix.c: New file.
25044
25045         * modules/vasnprintf-posix: New file.
25046         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
25047         printf-frexpl.h.
25048         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
25049         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
25050         REPLACE_VASNPRINTF is defined.
25051         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
25052         gl_FUNC_VASNPRINTF.
25053         (gl_FUNC_VASNPRINTF): Invoke it.
25054         * m4/vasnprintf-posix.m4: New file.
25055         * m4/printf.m4: New file.
25056
25057 2007-03-04  Bruno Haible  <bruno@clisp.org>
25058
25059         Compile progreloc.c only if --enable-relocatable is specified.
25060         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
25061         if --enable-relocatable was specified.
25062         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
25063         lib_SOURCES.
25064
25065 2007-03-04  Jim Meyering  <jim@meyering.net>
25066
25067         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
25068         Use it consistently, rather than enumerating errno constants.
25069
25070 2007-03-04  Bruno Haible  <bruno@clisp.org>
25071
25072         * modules/xvasprintf-tests: New file.
25073         * tests/test-xvasprintf.c: New file.
25074
25075         * modules/vasprintf-tests: New file.
25076         * tests/test-vasprintf.c: New file.
25077
25078         * modules/vasnprintf-tests: New file.
25079         * tests/test-vasnprintf.c: New file.
25080
25081         * modules/vsnprintf-tests: New file.
25082         * tests/test-vsnprintf.c: New file.
25083
25084         * modules/snprintf-tests: New file.
25085         * tests/test-snprintf.c: New file.
25086
25087 2007-03-04  Bruno Haible  <bruno@clisp.org>
25088
25089         Compile relocatable.c only if --enable-relocatable is specified.
25090         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
25091         gl_RELOCATABLE_LIBRARY.
25092         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
25093         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
25094         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
25095         gl_RELOCATABLE_LIBRARY.
25096         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
25097         (Makefile.am): Remove lib_SOURCES.
25098         * modules/relocatable-lib-lgpl (configure.ac): Invoke
25099         gl_RELOCATABLE_LIBRARY.
25100         (Makefile.am): Remove lib_SOURCES.
25101         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
25102         always.
25103         * modules/relocatable-prog-wrapper (configure.ac): Invoke
25104         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
25105
25106 2007-03-04  Bruno Haible  <bruno@clisp.org>
25107
25108         * modules/argmatch-tests: New file.
25109         * tests/test-argmatch.c: New file.
25110
25111         * tests/test-allocsa.c (main): Halve the number of loop runs.
25112
25113         * modules/alloca-opt-tests: New file.
25114         * tests/test-alloca-opt.c: New file.
25115
25116 2007-03-04  Jim Meyering  <jim@meyering.net>
25117
25118         Work around difference between Linux ACLs and Solaris 10 ZFS.
25119         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
25120         for EINVAL.
25121
25122 2007-03-03  Bruno Haible  <bruno@clisp.org>
25123
25124         * modules/relocatable-prog (Depends-on): Add back progreloc's
25125         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
25126
25127 2007-03-03  Bruno Haible  <bruno@clisp.org>
25128
25129         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
25130         * modules/relocatable-lib: New file.
25131
25132 2007-03-03  Bruno Haible  <bruno@clisp.org>
25133
25134         * modules/relocatable-prog: Renamed from modules/relocatable.
25135         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
25136
25137 2007-03-03  Bruno Haible  <bruno@clisp.org>
25138
25139         * modules/relocatable-script (Files): Add doc/relocatable.texi,
25140         m4/relocatable-lib.m4.
25141         (Depends-on): Remove 'relocatable'.
25142         (configure.ac): Add gl_RELOCATABLE_NOP.
25143
25144 2007-03-03  Bruno Haible  <bruno@clisp.org>
25145
25146         * modules/relocatable-prog-wrapper: New file.
25147         * modules/relocatable (Depends-on): Add it. Remove all other
25148         dependencies except progname.
25149         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
25150
25151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
25152         (gl_FUNC_STRERROR): Nop.
25153         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
25154
25155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
25156         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
25157
25158         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
25159         (gl_FUNC_READLINK): Update.
25160
25161         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
25162
25163 2007-03-03  Bruno Haible  <bruno@clisp.org>
25164
25165         * lib/xreadlink.c: Include <unistd.h> unconditionally.
25166         * modules/xreadlink (Depends-on): Add unistd.
25167         * modules/xreadlink-with-size (Depends-on): Likewise.
25168
25169 2007-03-03  Bruno Haible  <bruno@clisp.org>
25170
25171         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
25172         extracted from gt_FUNC_SETENV.
25173         (gt_FUNC_SETENV): Remove macro.
25174         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
25175         remove gt_FUNC_SETENV.
25176
25177 2007-03-03  Bruno Haible  <bruno@clisp.org>
25178
25179         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
25180         ENABLE_RELOCATABLE here.
25181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
25182
25183 2007-03-03  Bruno Haible  <bruno@clisp.org>
25184
25185         * modules/rbtreehash-list-tests (Depends-on): Add progname.
25186         * tests/test-rbtreehash_list.c: Include progname.h.
25187         (main): Call set_program_name.
25188
25189         * modules/rbtree-oset-tests (Depends-on): Add progname.
25190         * tests/test-rbtree_oset.c: Include progname.h.
25191         (main): Call set_program_name.
25192
25193         * modules/rbtree-list-tests (Depends-on): Add progname.
25194         * tests/test-rbtree_list.c: Include progname.h.
25195         (main): Call set_program_name.
25196
25197         * modules/linked-list-tests (Depends-on): Add progname.
25198         * tests/test-linked_list.c: Include progname.h.
25199         (main): Call set_program_name.
25200
25201 2007-03-03  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
25204         All uses of __restrict changed to _Restrict_.
25205         * lib/glob_.h (__restrict): Remove macro.
25206
25207 2007-03-02  Bruno Haible  <bruno@clisp.org>
25208
25209         * modules/gettext (configure.ac): Require gettext infrastructure
25210         from version 0.16.1.
25211
25212 2007-03-02  Bruno Haible  <bruno@clisp.org>
25213
25214         * modules/linkedhash-list-tests (Depends-on): Add progname.
25215         * tests/test-linkedhash_list.c: Include progname.h.
25216         (main): Call set_program_name.
25217
25218         * modules/carray-list-tests (Depends-on): Add progname.
25219         * tests/test-carray_list.c: Include progname.h.
25220         (main): Call set_program_name.
25221
25222         * modules/avltreehash-list-tests (Depends-on): Add progname.
25223         * tests/test-avltreehash_list.c: Include progname.h.
25224         (main): Call set_program_name.
25225
25226         * modules/avltree-oset-tests (Depends-on): Add progname.
25227         * tests/test-avltree_oset.c: Include progname.h.
25228         (main): Call set_program_name.
25229
25230         * modules/avltree-list-tests (Depends-on): Add progname.
25231         * tests/test-avltree_list.c: Include progname.h.
25232         (main): Call set_program_name.
25233
25234         * modules/array-oset-tests (Depends-on): Add progname.
25235         * tests/test-array_oset.c: Include progname.h.
25236         (main): Call set_program_name.
25237
25238         * modules/array-list-tests (Depends-on): Add progname.
25239         * tests/test-array_list.c: Include progname.h.
25240         (main): Call set_program_name.
25241
25242         * modules/argp-tests (Depends-on): Add progname.
25243         * tests/test-argp.c: Include argp.h first. Include progname.h.
25244         (main): Call set_program_name.
25245
25246 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         * doc/gnulib-tool.texi (Initial import): Reword description of
25249         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
25250         limited effect even if defined after the first system include.
25251
25252 2007-03-01  Bruno Haible  <bruno@clisp.org>
25253
25254         * build-aux/config.libpath: Update to libtool-1.5.22.
25255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25256
25257 2007-03-01  Bruno Haible  <bruno@clisp.org>
25258
25259         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
25260         foo_CFLAGS.
25261         Reported by Ralf Wildenhues.
25262
25263 2007-03-01  Bruno Haible  <bruno@clisp.org>
25264
25265         * build-aux/install-reloc: Remove object files left over by some
25266         compilers.
25267         Reported by Ralf Wildenhues.
25268
25269 2007-03-01  Bruno Haible  <bruno@clisp.org>
25270
25271         * build-aux/install-reloc: Break long lines.
25272
25273 2007-03-01  Bruno Haible  <bruno@clisp.org>
25274
25275         * doc/relocatable.texi: Document that it may not work on OpenBSD.
25276         Reported by Ralf Wildenhues.
25277
25278 2007-03-01  Bruno Haible  <bruno@clisp.org>
25279
25280         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
25281         include ordering constraints.
25282
25283 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25284
25285         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
25286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
25287         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
25288         as another example.
25289         * lib/time_.h: Fix misspelling.
25290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25291         Require gl_HEADER_TIME_H_DEFAULTS.
25292         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
25293         * m4/time_r.m4 (gl_TIME_R): Likewise.
25294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
25295
25296 2007-03-01  Bruno Haible  <bruno@clisp.org>
25297
25298         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
25299         * m4/utimens.m4 (gl_UTIMENS): Likewise.
25300
25301 2007-03-01  Jim Meyering  <jim@meyering.net>
25302
25303         * modules/xreadlink (Maintainer): Add my name.
25304         * modules/xreadlink-with-size (Depends-on): Alphabetize.
25305
25306 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
25307             Bruno Haible  <bruno@clisp.org>
25308
25309         * build-aux/install-reloc: Compile also c-ctype.c.
25310         * build-aux/relocatable.sh.in: New file.
25311         * doc/relocatable.texi: New file.
25312         * doc/relocatable-maint.texi: New file.
25313         * doc/gnulib.texi: Include relocatable-maint.texi.
25314         * lib/progreloc.c: Include unistd.h unconditionally.
25315         * lib/relocwrapper.c: Include unistd.h unconditionally.
25316         Include c-ctype.h.
25317         (add_dotbin): Use c_tolower.
25318         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
25319         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
25320         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
25321         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
25322         to m4/relocatable-lib.m4.
25323         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
25324         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
25325         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
25326         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
25327         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
25328         * modules/relocatable: New file.
25329         * modules/relocatable-lib: New file.
25330         * modules/relocatable-script: New file.
25331
25332 2007-02-28  Bruno Haible  <bruno@clisp.org>
25333
25334         Import --enable-relocatable infrastructure.
25335         * build-aux/config.libpath: New file, from GNU gettext.
25336         * build-aux/install-reloc: New file, from GNU gettext.
25337         * build-aux/reloc-ldflags: New file, from GNU gettext.
25338         * lib/relocatable.h: New file, from GNU gettext.
25339         * lib/relocatable.c: New file, from GNU gettext.
25340         * lib/relocwrapper.c: New file, from GNU gettext.
25341         * m4/relocatable.m4: New file, from GNU gettext.
25342
25343 2007-02-28  Bruno Haible  <bruno@clisp.org>
25344
25345         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
25346
25347         * modules/xreadlink: New file, from GNU gettext with modifications.
25348         * lib/xreadlink.c: New file, from GNU gettext.
25349         * lib/xreadlink.h: Add comments.
25350         (xreadlink): New declaration.
25351
25352         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
25353         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
25354         lib/xreadlink-with-size.c.
25355         (configure.ac): Remove gl_XREADLINK invocation.
25356         (Makefile.am): Augment lib_SOURCES.
25357         * m4/xreadlink.m4: Remove file.
25358         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
25359         (xreadlink_with_size): Renamed from xreadink.
25360         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
25361         * modules/canonicalize (Depends-on): Replace xreadlink with
25362         xreadlink-with-size.
25363         * lib/canonicalize.c (canonicalize_filename_mode): Update.
25364
25365 2007-02-25  Jim Meyering  <jim@meyering.net>
25366
25367         * build-aux/announce-gen: When complaining about excess arguments,
25368         list them.
25369
25370 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25371
25372         * README: Document signed integer overflow situation more
25373         accurately.
25374
25375 2007-02-25  Bruno Haible  <bruno@clisp.org>
25376
25377         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
25378         'a' or 'A' conversion.
25379
25380 2007-02-25  Bruno Haible  <bruno@clisp.org>
25381
25382         * modules/filename: Renamed from modules/pathname.
25383         (Files): Replace lib/pathname.h with lib/filename.h. Replace
25384         lib/concatpath.c with lib/concat-filename.c.
25385         (Makefile.am): Update.
25386         (Include): Replace pathname.h with filename.h.
25387         * lib/filename.h: Renamed from lib/pathname.h.
25388         (concatenated_filename): Renamed from concatenated_pathname.
25389         * lib/concat-filename.c: Renamed from lib/concatpath.c.
25390         (concatenated_filename): Renamed from concatenated_pathname.
25391         * lib/findprog.c: Include filename.h instead of pathname.h.
25392         (find_in_path): Update.
25393         * lib/javacomp.c: Include filename.h instead of pathname.h.
25394         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25395         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25396         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25397         is_oldgcj_14_13_usable, is_javac_usable): Update.
25398         * lib/javaexec.c: Include filename.h instead of pathname.h.
25399         (execute_java_class): Update.
25400         * modules/findprog: Update.
25401         * modules/javacomp: Update.
25402         * modules/javaexec: Update.
25403         * MODULES.html.sh (File system functions): Add 'filename', remove
25404         'pathname'.
25405
25406 2007-02-25  Bruno Haible  <bruno@clisp.org>
25407
25408         * modules/printf-frexpl-tests: New file.
25409         * tests/test-printf-frexpl.c: New file.
25410
25411         * modules/printf-frexpl: New file.
25412         * lib/printf-frexpl.h: New file.
25413         * lib/printf-frexpl.c: New file.
25414         * m4/printf-frexpl.m4: New file.
25415
25416 2007-02-25  Bruno Haible  <bruno@clisp.org>
25417
25418         * modules/printf-frexp-tests: New file.
25419         * tests/test-printf-frexp.c: New file.
25420
25421         * modules/printf-frexp: New file.
25422         * lib/printf-frexp.h: New file.
25423         * lib/printf-frexp.c: New file.
25424         * m4/printf-frexp.m4: New file.
25425
25426 2007-02-25  Bruno Haible  <bruno@clisp.org>
25427
25428         Assume automake >= 1.10 for the tests.
25429         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
25430         * modules/arctwo-tests: Likewise.
25431         * modules/argp-tests: Likewise.
25432         * modules/avltree-list-tests: Likewise.
25433         * modules/avltree-oset-tests: Likewise.
25434         * modules/avltreehash-list-tests: Likewise.
25435         * modules/carray-list-tests: Likewise.
25436         * modules/crc-tests: Likewise.
25437         * modules/des-tests: Likewise.
25438         * modules/gc-arcfour-tests: Likewise.
25439         * modules/gc-arctwo-tests: Likewise.
25440         * modules/gc-des-tests: Likewise.
25441         * modules/gc-hmac-md5-tests: Likewise.
25442         * modules/gc-hmac-sha1-tests: Likewise.
25443         * modules/gc-md2-tests: Likewise.
25444         * modules/gc-md4-tests: Likewise.
25445         * modules/gc-md5-tests: Likewise.
25446         * modules/gc-pbkdf2-sha1-tests: Likewise.
25447         * modules/gc-rijndael-tests: Likewise.
25448         * modules/gc-sha1-tests: Likewise.
25449         * modules/gc-tests: Likewise.
25450         * modules/getaddrinfo-tests: Likewise.
25451         * modules/hmac-md5-tests: Likewise.
25452         * modules/hmac-sha1-tests: Likewise.
25453         * modules/linked-list-tests: Likewise.
25454         * modules/linkedhash-list-tests: Likewise.
25455         * modules/lock-tests: Likewise.
25456         * modules/md2-tests: Likewise.
25457         * modules/md4-tests: Likewise.
25458         * modules/md5-tests: Likewise.
25459         * modules/rbtree-list-tests: Likewise.
25460         * modules/rbtree-oset-tests: Likewise.
25461         * modules/rbtreehash-list-tests: Likewise.
25462         * modules/read-file-tests: Likewise.
25463         * modules/rijndael-tests: Likewise.
25464         * modules/stdint-tests: Likewise.
25465         * modules/tls-tests: Likewise.
25466
25467 2007-02-24  Bruno Haible  <bruno@clisp.org>
25468
25469         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
25470         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
25471         function; instead check whether isnan with a double argument links.
25472         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
25473         function; instead check whether isnan with a 'long double' argument
25474         links.
25475         Reported by Eric Blake <ebb9@byu.net>.
25476
25477 2007-02-24  Bruno Haible  <bruno@clisp.org>
25478
25479         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
25480         defined.
25481         * lib/isnanl.c: Remove all code. Just include isnan.c.
25482         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
25483
25484 2007-02-25  Jim Meyering  <jim@meyering.net>
25485
25486         Avoid conflicting types for 'unsetenv' on FreeBSD.
25487         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
25488         conflicting with FreeBSD's (5.0 and 6.1) function declaration
25489         in stdlib.h.
25490
25491 2007-02-24  Bruno Haible  <bruno@clisp.org>
25492
25493         * modules/isnanl-nolibm-tests: New file.
25494         * tests/test-isnanl.c: New file.
25495
25496         * modules/isnanl-nolibm: New file.
25497         * lib/isnanl.h: New file.
25498         * lib/isnanl.c: New file.
25499         * m4/isnanl.m4: New file.
25500
25501 2007-02-24  Bruno Haible  <bruno@clisp.org>
25502
25503         * modules/isnan-nolibm-tests: New file.
25504         * tests/test-isnan.c: New file.
25505
25506         * modules/isnan-nolibm: New file.
25507         * lib/isnan.h: New file.
25508         * lib/isnan.c: New file.
25509         * m4/isnan.m4: New file.
25510
25511 2007-02-24  Bruno Haible  <bruno@clisp.org>
25512
25513         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
25514         assume that an exponent fits in 20 bits.
25515
25516 2007-02-24  Jim Meyering  <jim@meyering.net>
25517
25518         * m4/regex.m4: Update the description of the configure-time option,
25519         --without-included-regex, to state accurately what the defaults are,
25520         and perhaps to give people an idea why using this option is risky.
25521
25522 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25523
25524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
25525         loops on small arguments.  This attempts to avoid the problem
25526         Bruno Haible reported for AIX 4.3.2 in
25527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
25528
25529 2007-02-23  Bruno Haible  <bruno@clisp.org>
25530
25531         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
25532         Needed for help2man.
25533
25534 2007-02-23  Karl Berry  <karl@gnu.org>
25535
25536         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
25537         exists, foo.h should be cvs-ignored, not committed.
25538
25539 2007-02-23  Eric Blake  <ebb9@byu.net>
25540
25541         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
25542         * lib/stat-time.h (includes): Likewise.
25543         * lib/utimecmp.c (includes): Likewise.
25544         * lib/utimens.h (includes): Likewise.
25545         * lib/getdate.y (includes): Also include "timespec.h" for use
25546         internal to the module.
25547         * modules/utimens (Depends-on): Revert yesterday's patch.
25548         * modules/nanosleep (Depends-on): Add missing dependency.
25549
25550 2007-02-22  Bruno Haible  <bruno@clisp.org>
25551
25552         * lib/glob.c: Don't include getlogin_r.h.
25553
25554 2007-02-22  Jim Meyering  <jim@meyering.net>
25555
25556         * modules/utimens (Depends-on): Add timespec, required for
25557         utimens.h's inclusion of timespec.h.
25558
25559 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25560
25561         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
25562         long unreadable paths in GNU/Linux.  Problem reported by Andreas
25563         Schwab in
25564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
25565         I'll try to think of a better way to fix the Solaris problem.
25566
25567         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
25568         like glibc; on Solaris 10, it fails with errno == EINVAL.
25569         POSIX says the behavior is unspecified if the first argument is NULL,
25570         so play it safe and never pass NULL to the system getcwd.
25571
25572 2007-02-21  Jim Meyering  <jim@meyering.net>
25573
25574         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
25575         of gettimeofday.  It would conflict with the one now always
25576         provided via sys_time_.h.  Reported by Matthew Woehlke, as
25577         an IRIX 6.5 build failure.
25578
25579 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25580
25581         Minor fixups to port to Solaris 10 with Sun C 5.8.
25582         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
25583         * modules/getcwd (Depends-on): Add dirfd.
25584         * lib/putenv.c (putenv): #undef it.
25585         (rpl_putenv): New decl.
25586         (malloc, free): Include <stdlib.h> rather than prototyping separately.
25587
25588 2007-02-20  Bruno Haible  <bruno@clisp.org>
25589
25590         * modules/stdio-tests: New file.
25591         * tests/test-stdio.c: New file.
25592
25593         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
25594         (Depends-on): Add stdio.
25595         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25596         (Include): Use <stdio.h> instead of vsnprintf.h.
25597         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25598         HAVE_DECL_VSNPRINTF.
25599         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
25600
25601         * modules/snprintf (Files): Remove lib/snprintf.h.
25602         (Depends-on): Add stdio.
25603         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25604         (Include): Use <stdio.h> instead of snprintf.h.
25605         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
25606         HAVE_DECL_SNPRINTF.
25607         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
25608         * lib/getaddrinfo.c: Likewise.
25609
25610         * modules/stdio: New file.
25611         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
25612         * lib/snprintf.h: Remove file.
25613         * lib/vsnprintf.h: Remove file.
25614         * lib/.cppi-disable: Remove snprintf.h.
25615         * m4/stdio_h.m4: New file.
25616         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
25617
25618 2007-02-20  Jim Meyering  <jim@meyering.net>
25619
25620         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
25621         used by e.g., mingw.  From Bruno Haible.
25622
25623 2007-02-19  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
25626         warnings.
25627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25628
25629 2007-02-19  Bruno Haible  <bruno@clisp.org>
25630
25631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
25632         from mingw users.
25633
25634 2007-02-19  Bruno Haible  <bruno@clisp.org>
25635
25636         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
25637         warnings.
25638         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
25639
25640 2007-02-19  Jim Meyering  <jim@meyering.net>
25641
25642         Don't use FD after a successful "fdopendir (fd)".
25643         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
25644         Reset it by calling dirfd on the just-obtained DIR*.
25645
25646         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
25647         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
25648
25649 2007-02-18  Bruno Haible  <bruno@clisp.org>
25650
25651         * lib/readlink.c: Include <unistd.h>.
25652         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
25653         HAVE_READLINK.
25654         * modules/readlink (Depends-on): Add unistd.
25655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25656         (Include): Add <unistd.h>.
25657
25658         * lib/getlogin_r.h: Remove file.
25659         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
25660         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
25661         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
25662         HAVE_DECL_GETLOGIN_R.
25663         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
25664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25665         (Include): Use <unistd.h> instead of getlogin_r.h.
25666
25667         * lib/getcwd.h: Remove file.
25668         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
25669         * lib/xgetcwd.c: Likewise.
25670         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
25671         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
25672         * modules/getcwd (Files): Remove lib/getcwd.h.
25673         (Depends-on): Add unistd.
25674         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25675         (Include): Use <unistd.h> instad of getcwd.h.
25676
25677         * lib/ftruncate.c: Include <unistd.h> first.
25678         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
25679         Set HAVE_FTRUNCATE.
25680         * modules/ftruncate (Depends-on): Add unistd.
25681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25682
25683         * lib/fchdir.c: Include <unistd.h> first.
25684         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
25685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
25686         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
25687         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25688         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
25689
25690         * lib/dup2.c: Include <unistd.h> first.
25691         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
25692         HAVE_DUP2.
25693         * modules/dup2 (Depends-on): Add unistd.
25694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25695
25696         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
25697         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
25698         REPLACE_CHOWN. Don't define chown as a macro here.
25699         * modules/chown (Depends-on): Add unistd.
25700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25701
25702         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
25703         Add definition for GL_LINK_WARNING.
25704         (chown, dup2): New declarations.
25705         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
25706         link warning.
25707         (ftruncate): New declaration.
25708         (getcwd): New declaration, taken from old getcwd.h.
25709         (getlogin_r): New declaration, taken from old getlogin_r.h.
25710         (readlink): New declaration.
25711         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
25712         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
25713         (gl_PREREQ_UNISTD): Remove macro.
25714         (gl_UNISTD_MODULE_INDICATOR): New macro.
25715         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
25716         many new variables. Don't set UNISTD_H.
25717         * modules/unistd (Description): Change.
25718         (Depends-on): Add link-warning.
25719         (configure.ac): Update.
25720         (Makefile.am): Create unistd.h always. Substitute many new variables
25721         into it.
25722
25723 2007-02-18  Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
25726         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
25727         HAVE_GETSUBOPT.
25728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
25729         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
25730         * lib/getsubopt.h: Remove file.
25731         * modules/getsubopt (Files): Remove lib/getsubopt.h.
25732         (Depends-on): Add stdlib.
25733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25734         (Includes): Use <stdlib.h> instead of getsubopt.h.
25735         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
25736         Set HAVE_GETSUBOPT.
25737         * lib/getsubopt.c: Don't include getsubopt.h.
25738
25739 2007-02-18  Bruno Haible  <bruno@clisp.org>
25740
25741         * modules/fchdir (Depends-on): Add dup2.
25742
25743 2007-02-18  Bruno Haible  <bruno@clisp.org>
25744
25745         * lib/stdlib_.h: Handle glibc's special invocation convention
25746         specially.
25747
25748 2007-02-18  Bruno Haible  <bruno@clisp.org>
25749
25750         * modules/stdlib-tests: New file.
25751         * tests/test-stdlib.c: New file.
25752
25753         * modules/mkstemp (Files): Remove lib/mkstemp.h.
25754         (Depends-on): Add stdlib.
25755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25756         (Includes): Use <stdlib.h> instead of mkstemp.h.
25757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25758         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
25759         * lib/mkstemp.c: Don't include mkstemp.h.
25760         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
25761         * lib/stdlib--.h: Don't include mkstemp.h.
25762
25763         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
25764         (Depends-on): Add stdlib.
25765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25766         (Includes): Use <stdlib.h> instead of mkdtemp.h.
25767         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
25768         HAVE_MKDTEMP.
25769         * lib/mkdtemp.c: Don't include mkdtemp.h.
25770         * lib/clean-temp.c: Don't include mkdtemp.h.
25771
25772         * modules/exit (Files): Remove lib/exit.h.
25773         (Depends-on): Add stdlib.
25774         (Makefile.am): Remove lib_SOURCES.
25775         (Include): Use <stdlib.h> instead of exit.h.
25776         * lib/argmatch.c: Don't include exit.h.
25777         * lib/execute.c: Likewise.
25778         * lib/pagealign_alloc.c: Likewise.
25779         * lib/pipe.c: Likewise.
25780         * lib/wait-process.c: Likewise.
25781         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
25782         * lib/exitfail.c: Likewise.
25783         * lib/savewd.c: Likewise.
25784         * lib/xsetenv.c: Likewise.
25785
25786         * modules/stdlib: New file.
25787         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
25788         and extra comments about mkstemp().
25789         * lib/exit.h: Remove file.
25790         * lib/mkdtemp.h: Remove file.
25791         * lib/mkstemp.h: Remove file.
25792         * m4/stdlib_h.m4: New file.
25793         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
25794
25795 2007-02-18  Bruno Haible  <bruno@clisp.org>
25796
25797         * modules/math-tests: New file.
25798         * tests/test-math.c: New file.
25799
25800         * modules/math: New file.
25801         * modules/mathl (Files): Remove lib/mathl.h.
25802         (Depends-on): Add math.
25803         (Makefile.am): Don't mention mathl.h.
25804         (Include): Use <math.h> instead of mathl.h.
25805         * lib/math_.h: New file.
25806         * lib/mathl.h: Remove file.
25807         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
25808         mathl.h.
25809         * lib/asinl.c: Likewise.
25810         * lib/atanl.c: Likewise.
25811         * lib/ceill.c: Likewise.
25812         * lib/cosl.c: Likewise.
25813         * lib/expl.c: Likewise.
25814         * lib/floorl.c: Likewise.
25815         * lib/frexpl.c: Likewise.
25816         * lib/ldexpl.c: Likewise.
25817         * lib/logl.c: Likewise.
25818         * lib/sincosl.c: Likewise.
25819         * lib/sinl.c: Likewise.
25820         * lib/sqrtl.c: Likewise.
25821         * lib/tanl.c: Likewise.
25822         * lib/trigl.c: Likewise.
25823         * m4/math_h.m4: New file.
25824         * MODULES.html.sh (Mathematics): Add math.
25825
25826 2007-02-17  Bruno Haible  <bruno@clisp.org>
25827
25828         * modules/wctype-tests: New file.
25829         * tests/test-wctype.c: New file.
25830
25831         * modules/wchar-tests: New file.
25832         * tests/test-wchar.c: New file.
25833
25834         * modules/unistd-tests: New file.
25835         * tests/test-unistd.c: New file.
25836
25837         * modules/time-tests: New file.
25838         * tests/test-time.c: New file.
25839
25840         * modules/sysexits-tests: New file.
25841         * tests/test-sysexits.c: New file.
25842
25843         * modules/sys_time-tests: New file.
25844         * tests/test-sys_time.c: New file.
25845
25846         * modules/sys_stat-tests: New file.
25847         * tests/test-sys_stat.c: New file.
25848
25849         * modules/sys_socket-tests: New file.
25850         * tests/test-sys_socket.c: New file.
25851
25852         * modules/sys_select-tests: New file.
25853         * tests/test-sys_select.c: New file.
25854
25855         * modules/string-tests: New file.
25856         * tests/test-string.c: New file.
25857
25858         * modules/stdbool-tests: New file.
25859         * tests/test-stdbool.c: New file.
25860
25861         * modules/netinet_in-tests: New file.
25862         * tests/test-netinet_in.c: New file.
25863
25864         * modules/inttypes-tests: New file.
25865         * tests/test-inttypes.c: New file.
25866
25867         * modules/fcntl-tests: New file.
25868         * tests/test-fcntl.c: New file.
25869
25870         * modules/byteswap-tests: New file.
25871         * tests/test-byteswap.c: New file.
25872
25873         * modules/arpa_inet-tests: New file.
25874         * tests/test-arpa_inet.c: New file.
25875
25876 2007-02-17  Bruno Haible  <bruno@clisp.org>
25877
25878         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
25879         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
25880         if the corresponding module is not enabled. Emit link warnings if
25881         the function is used nevertheless.
25882         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
25883         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
25884         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
25885         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
25886         * modules/inttypes (Depends-on): Add link-warning.
25887         (Makefile.am): Copy the contents of build-aux/link-warning.h into
25888         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
25889         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
25890         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
25891         * modules/imaxdiv (configure.ac): Likewise.
25892         * modules/strtoimax (configure.ac): Likewise.
25893         * modules/strtoumax (configure.ac): Likewise.
25894
25895 2007-02-17  Bruno Haible  <bruno@clisp.org>
25896
25897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
25898         gl_STRING_MODULE_INDICATOR_DEFAULTS.
25899         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
25900         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
25901
25902 2007-02-17  Bruno Haible  <bruno@clisp.org>
25903
25904         * modules/link-warning: New file.
25905         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
25906         * lib/string_.h (GL_LINK_WARNING): Remove definition.
25907         * modules/string (Depends-on): Add link-warning.
25908         (Makefile.am): Copy the contents of build-aux/link-warning.h into
25909         string.h.
25910         * MODULES.html.sh (Support for building libraries and executables): Add
25911         link-warning.
25912
25913 2007-02-17  Bruno Haible  <bruno@clisp.org>
25914
25915         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
25916         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
25917         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
25918         long lines.
25919
25920 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
25921             Bruno Haible  <bruno@clisp.org>
25922
25923         * modules/tmpfile: New file.
25924         * lib/tmpfile.c: New file.
25925         * m4/tmpfile.m4: New file.
25926         * MODULES.html.sh (func_all_modules): New section "Input/output".
25927
25928 2007-02-15  Bruno Haible  <bruno@clisp.org>
25929
25930         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
25931         (supports_delete_on_close): New function.
25932         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
25933
25934 2007-02-14  Bruno Haible  <bruno@clisp.org>
25935
25936         * modules/mbspcasecmp-tests: New file.
25937         * tests/test-mbspcasecmp.sh: New file.
25938         * tests/test-mbspcasecmp.c: New file.
25939
25940         New module mbspcasecmp.
25941         * modules/mbspcasecmp: New file.
25942         * lib/mbspcasecmp.c: New file.
25943         * lib/string_.h (strncasecmp): Change warning message.
25944         (mbspcasecmp): New declaration.
25945         * m4/mbspcasecmp.m4: New file.
25946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25947         GNULIB_MBSPCASECMP.
25948         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
25949         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
25950
25951 2007-02-14  Bruno Haible  <bruno@clisp.org>
25952
25953         * modules/mbsncasecmp-tests: New file.
25954         * tests/test-mbsncasecmp.sh: New file.
25955         * tests/test-mbsncasecmp.c: New file.
25956
25957         New module mbsncasecmp.
25958         * modules/mbsncasecmp: New file.
25959         * lib/mbsncasecmp.c: New file.
25960         * lib/string_.h (mbsncasecmp): New declaration.
25961         * m4/mbsncasecmp.m4: New file.
25962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
25963         GNULIB_MBSNCASECMP.
25964         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
25965         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
25966
25967 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25968
25969         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
25970         Verify that it doesn't overlap with our flags.
25971         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
25972         do not have the desired effect in multibyte locales; instead, use
25973         mbscasecmp.
25974         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
25975         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
25976         we don't require GNU fnmatch ourselves (if our users require it, they
25977         should do so explicitly).
25978
25979         Fix regex code so it doesn't rely on strcasecmp.
25980         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
25981         Otherwise, include gnulib's langinfo.h.
25982         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
25983         undesirable behavior in non-C locales.  Instead, rely on localecharset.
25984         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
25985         * modules/regex (FILES): Remove m4/codeset.m4.
25986         (Depends-on): Add localcharset.  Remove strcase.
25987
25988 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25989
25990         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
25991         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25992
25993 2007-02-13  Bruno Haible  <bruno@clisp.org>
25994
25995         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
25996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25997
25998 2007-02-12  Bruno Haible  <bruno@clisp.org>
25999
26000         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26001         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
26002         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
26003         time warning rather than a link error.
26004
26005 2007-02-12  Bruno Haible  <bruno@clisp.org>
26006
26007         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
26008         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26010
26011 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26012
26013         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
26014         args, not 2.
26015
26016 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26017
26018         New module 'time', so that apps can include <time.h> as per
26019         POSIX and GNU instead of separate include files like time_r.h
26020         and timegm.h.  This implementation tries out a simpler approach
26021         for replacing decls in standard include files (as compared to
26022         the string module), somewhat as an experiment.
26023
26024         * config/srclist.txt: Comment out mktime.c for now.
26025         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
26026         since it doesn't apply any more.  Use generic wording instead.
26027         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
26028         'time'.
26029         * lib/time_.h, m4/time_h.m4, modules/time: New files.
26030         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
26031         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
26032         Don't include <sys/types.h>; no longer needed since we assume C89.
26033         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
26034         * lib/strftime.c: Likewise.
26035         * lib/time_r.c: Likewise.
26036         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
26037         * lib/nanosleep.c: Include <time.h> first, to check interface.
26038         * lib/strptime.c: Likewise.
26039         * lib/time_r.c: Likewise.
26040         * lib/timegm.c: Likewise.
26041         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
26042         needed.
26043         * lib/timegm.c: Don't include timegm.h; no longer needed.
26044         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
26045         time.h now handles any problems in that area.
26046         (struct timespec, nanosleep): Remove; time.h now arranges for these.
26047         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
26048         that time.h defines struct timespec.
26049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
26050         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
26051         handles that.
26052         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
26053         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
26054         needed.  Set REPLACE_LOCALTIME.
26055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
26056         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
26057         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
26058         nanosleep; time_h.m4 now does that.  Don't require
26059         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
26060         module handles this now.
26061         * modules/getdate (Depends-on): Remove timespec.  Add time.
26062         * modules/nanosleep (Depends-on): Likewise.
26063         * modules/stat-time (Depends-on): Likewise.
26064         * modules/nanosleep (Include): Include time.h, not timespec.h.
26065         * modules/strptime (Files): Remove lib/strptime.h.
26066         (Depends-on): Add extensions, time.
26067         (Include): Include time.h, not strptime.h.
26068         * modules/time_r (Files): Remove lib/time_r.h.
26069         (Depends-on): Add time.
26070         (Include): Include time.h, not time_r.h.
26071         * modules/timegm: Likewise.
26072         * modules/timespec (Description): Now does timespec-related decls
26073         of our own, instead of struct timespec itself.
26074         (Depends-on): Add time; remove extensions.
26075         (Maintainer): Add self.
26076         * modules/utimecmp (Depends-on): Add time; remove timespec.
26077         * modules/utimens (Depends-on): Likewise.
26078         * modules/xnanosleep (Depends-on): Likewise.
26079
26080 2007-02-11  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/c-strstr.c: Include allocsa.h.
26083         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26084         * lib/c-strcasestr.c: Include allocsa.h.
26085         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26086         * lib/strcasestr.c: Include allocsa.h.
26087         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26088         * lib/mbsstr.c: Include allocsa.h.
26089         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26090         allocsa/freesa instead of malloc/free.
26091         * lib/mbscasestr.c: Include allocsa.h.
26092         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26093         allocsa/freesa instead of malloc/free.
26094         * modules/c-strstr (Depends-on): Add allocsa.
26095         * modules/c-strcasestr (Depends-on): Likewise.
26096         * modules/strcasestr (Depends-on): Likewise.
26097         * modules/mbsstr (Depends-on): Likewise.
26098         * modules/mbscasestr (Depends-on): Likewise.
26099
26100 2007-02-11  Bruno Haible  <bruno@clisp.org>
26101
26102         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
26103
26104         * modules/mbsspn-tests: New file.
26105         * tests/test-mbsspn.sh: New file.
26106         * tests/test-mbsspn.c: New file.
26107
26108 2007-02-11  Bruno Haible  <bruno@clisp.org>
26109
26110         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
26111
26112         * modules/mbspbrk-tests: New file.
26113         * tests/test-mbspbrk.sh: New file.
26114         * tests/test-mbspbrk.c: New file.
26115
26116 2007-02-11  Bruno Haible  <bruno@clisp.org>
26117
26118         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
26119         unneeded cast.
26120
26121         * modules/mbscspn-tests: New file.
26122         * tests/test-mbscspn.sh: New file.
26123         * tests/test-mbscspn.c: New file.
26124
26125 2007-02-11  Bruno Haible  <bruno@clisp.org>
26126
26127         * modules/mbscasecmp-tests: New file.
26128         * tests/test-mbscasecmp.sh: New file.
26129         * tests/test-mbscasecmp.c: New file.
26130
26131 2007-02-11  Bruno Haible  <bruno@clisp.org>
26132
26133         Ensure O(n) worst-case complexity of mbscasestr.
26134         * lib/mbscasestr.c: Include stdbool.h.
26135         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26136         functions.
26137         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
26138         the bookkeeping indicates that it's worth it.
26139         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
26140
26141         * modules/mbscasestr-tests: New file.
26142         * tests/test-mbscasestr1.c: New file.
26143         * tests/test-mbscasestr2.sh: New file.
26144         * tests/test-mbscasestr2.c: New file.
26145         * tests/test-mbscasestr3.sh: New file.
26146         * tests/test-mbscasestr3.c: New file.
26147         * tests/test-mbscasestr4.sh: New file.
26148         * tests/test-mbscasestr4.c: New file.
26149         * m4/locale-tr.m4: New file.
26150
26151 2007-02-11  Bruno Haible  <bruno@clisp.org>
26152
26153         Ensure O(n) worst-case complexity of mbsstr.
26154         * lib/mbsstr.c: Include stdbool.h.
26155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26156         functions.
26157         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
26158         bookkeeping indicates that it's worth it.
26159         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
26160
26161         * modules/mbsstr-tests: New file.
26162         * tests/test-mbsstr1.c: New file.
26163         * tests/test-mbsstr2.sh: New file.
26164         * tests/test-mbsstr2.c: New file.
26165         * tests/test-mbsstr3.sh: New file.
26166         * tests/test-mbsstr3.c: New file.
26167         * m4/locale-fr.m4: New file.
26168
26169 2007-02-11  Bruno Haible  <bruno@clisp.org>
26170
26171         * lib/mbsrchr.c (mbsrchr): Fix bug.
26172
26173         * modules/mbsrchr-tests: New file.
26174         * tests/test-mbsrchr.sh: New file.
26175         * tests/test-mbsrchr.c: New file.
26176
26177 2007-02-11  Bruno Haible  <bruno@clisp.org>
26178
26179         * lib/mbschr.c (mbschr): Fix bug.
26180
26181         * modules/mbschr-tests: New file.
26182         * tests/test-mbschr.sh: New file.
26183         * tests/test-mbschr.c: New file.
26184         * m4/locale-zh.m4: New file.
26185
26186 2007-02-11  Bruno Haible  <bruno@clisp.org>
26187
26188         Support for copying multibyte string iterators.
26189         * lib/mbiter.h: Include <string.h>.
26190         (mbiter_multi_copy): New function.
26191         (mbi_copy): New macro.
26192         * lib/mbuiter.h: Include <string.h>.
26193         (mbuiter_multi_copy): New function.
26194         (mbui_copy): New macro.
26195
26196 2007-02-11  Bruno Haible  <bruno@clisp.org>
26197
26198         New module mbslen.
26199         * modules/mbslen: New file.
26200         * lib/mbslen.c: New file.
26201         * lib/string_.h (mbslen): New declaration.
26202         * m4/mbslen.m4: New file.
26203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26204         GNULIB_MBSLEN.
26205         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
26206         * MODULES.html.sh (Internationalization functions): Add mbslen.
26207
26208 2007-02-11  Bruno Haible  <bruno@clisp.org>
26209
26210         Ensure O(n) worst-case complexity of strcasestr substitute.
26211         * lib/strcasestr.c: Include stdbool.h.
26212         (knuth_morris_pratt): New function.
26213         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26214         bookkeeping indicates that it's worth it.
26215         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
26216
26217         * modules/strcasestr-tests: New file.
26218         * tests/test-strcasestr.c: New file.
26219
26220 2007-02-11  Bruno Haible  <bruno@clisp.org>
26221
26222         Ensure O(n) worst-case complexity of c_strcasestr.
26223         * lib/c-strcasestr.c: Include stdbool.h, string.h.
26224         (knuth_morris_pratt): New function.
26225         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
26226         the bookkeeping indicates that it's worth it.
26227         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
26228
26229         * modules/c-strcasestr-tests: New file.
26230         * tests/test-c-strcasestr.c: New file.
26231
26232 2007-02-11  Bruno Haible  <bruno@clisp.org>
26233
26234         Ensure O(n) worst-case complexity of c_strstr.
26235         * lib/c-strstr.c: Include stdbool.h, string.h.
26236         (knuth_morris_pratt): New function.
26237         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26238         bookkeeping indicates that it's worth it.
26239         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
26240
26241         * lib/c-strstr.c: Complete rewrite for maintainability.
26242
26243         * modules/c-strstr-tests: New file.
26244         * tests/test-c-strstr.c: New file.
26245
26246 2007-02-11  Bruno Haible  <bruno@clisp.org>
26247
26248         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
26249         5.2.1 and earlier, whereby \055 was treated just like the range
26250         delimiter '-'.
26251         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26252
26253 2007-02-08  Bruno Haible  <bruno@clisp.org>
26254
26255         * modules/regex (Depends-on): Add stdbool.
26256         Reported by Dalibor Topic <robilad@kaffe.org>.
26257
26258 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26259
26260         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
26261         Prefer returning from main to exiting from it.
26262         Remove unnecessary parens after sizeof.
26263
26264 2007-02-05  Bruno Haible  <bruno@clisp.org>
26265
26266         New module mbssep.
26267         * modules/mbssep: New file.
26268         * lib/mbssep.c: New file.
26269         * lib/string_.h (strsep): Add a conditional link warning.
26270         (mbssep): New declaration.
26271         * m4/mbssep.m4: New file.
26272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26273         GNULIB_MBSSEP.
26274         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
26275         * MODULES.html.sh (Internationalization functions): Add mbssep.
26276
26277 2007-02-05  Bruno Haible  <bruno@clisp.org>
26278
26279         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
26280         Optimize search in case of 1 delimiter.
26281
26282 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26283
26284         * lib/acl.h: Include sys/types.h before sys/acl.h.
26285
26286 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26287
26288         Merge upstream fix for glibc bugzilla #3957:
26289
26290         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
26291
26292         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
26293         bit for RE_HAT_LISTS_NOT_NEWLINE.
26294         (build_charclass_op): Remove bogus comment.
26295
26296 2007-02-05  Simon Josefsson  <simon@josefsson.org>
26297
26298         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
26299
26300 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
26303         * lib/memmem.c [!defined _LIBC]: Include config.h.
26304
26305 2007-02-04  Bruno Haible  <bruno@clisp.org>
26306
26307         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
26308         warning message.
26309
26310 2007-02-04  Bruno Haible  <bruno@clisp.org>
26311
26312         New module mbstok_r.
26313         * modules/mbstok_r: New file.
26314         * lib/mbstok_r.c: New file.
26315         * lib/string_.h (strtok_r): Change argument names to match the
26316         comments. Add a conditional link warning.
26317         (mbstok_r): New declaration.
26318         * m4/mbstok_r.m4: New file.
26319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26320         GNULIB_MBSTOK_R.
26321         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
26322         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
26323
26324 2007-02-04  Bruno Haible  <bruno@clisp.org>
26325
26326         New module mbsspn.
26327         * modules/mbsspn: New file.
26328         * lib/mbsspn.c: New file.
26329         * lib/string_.h (strspn): Add a conditional link warning.
26330         (mbsspn): New declaration.
26331         * m4/mbsspn.m4: New file.
26332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26333         GNULIB_MBSSPN.
26334         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
26335         * MODULES.html.sh (Internationalization functions): Add mbsspn.
26336
26337 2007-02-04  Bruno Haible  <bruno@clisp.org>
26338
26339         New module mbspbrk.
26340         * modules/mbspbrk: New file.
26341         * lib/mbspbrk.c: New file.
26342         * lib/string_.h (strpbrk): Add a conditional link warning.
26343         (mbspbrk): New declaration.
26344         * m4/mbspbrk.m4: New file.
26345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26346         GNULIB_MBSPBRK.
26347         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
26348         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
26349
26350 2007-02-04  Bruno Haible  <bruno@clisp.org>
26351
26352         New module mbscspn.
26353         * modules/mbscspn: New file.
26354         * lib/mbscspn.c: New file.
26355         * lib/string_.h (strcspn): Add a conditional link warning.
26356         (mbscspn): New declaration.
26357         * m4/mbscspn.m4: New file.
26358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26359         GNULIB_MBSCSPN.
26360         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
26361         * MODULES.html.sh (Internationalization functions): Add mbscspn.
26362
26363 2007-02-04  Bruno Haible  <bruno@clisp.org>
26364
26365         New module mbscasestr, reduced goal of strcasestr.
26366         * modules/mbscasestr: New file.
26367         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
26368         (mbscasestr): Renamed from strcasestr.
26369         * lib/strcasestr.c: Don't include mbuiter.h.
26370         (strcasestr): Remove support for multibyte locales.
26371         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
26372         Change the conditional link warning.
26373         (mbscasestr): New declaration.
26374         * m4/mbscasestr.m4: New file.
26375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
26376         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
26377         REPLACE_STRCASESTR.
26378         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
26379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26380         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26381         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
26382         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
26383         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26384         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
26385         (Depends-on): Remove mbuiter.
26386         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
26387
26388 2007-02-04  Bruno Haible  <bruno@clisp.org>
26389
26390         Simplify handling of strncasecmp.
26391         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
26392         the conditional link warning.
26393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26394         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
26395         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
26396         * modules/strcase (configure.ac): Don't invoke
26397         gl_STRING_MODULE_INDICATOR.
26398         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
26399
26400 2007-02-04  Bruno Haible  <bruno@clisp.org>
26401
26402         New module mbscasecmp, reduced goal of strcasecmp.
26403         * modules/mbscasecmp: New file.
26404         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
26405         (mbscasecmp): Renamed from strcasecmp.
26406         * lib/strcasecmp.c: Don't include mbuiter.h.
26407         (strcasecmp): Remove support for multibyte locales.
26408         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
26409         Change the conditional link warning.
26410         (mbscasecmp): New declaration.
26411         * m4/mbscasecmp.m4: New file.
26412         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
26413         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
26414         REPLACE_STRCASECMP.
26415         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
26416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26417         GNULIB_MBSCASECMP.
26418         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
26419         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
26420         * modules/strcase (Files): Remove m4/mbrtowc.m4.
26421         (Depends-on): Remove mbuiter.
26422         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
26423
26424 2007-02-04  Bruno Haible  <bruno@clisp.org>
26425
26426         New module mbsstr. Remove module strstr.
26427         * modules/mbsstr: New file.
26428         * modules/strstr: Remove file.
26429         * lib/mbsstr.c: Renamed from lib/strstr.c.
26430         (mbsstr): Renamed from strstr.
26431         * lib/string_.h (strstr): Remove declaration. Change the conditional
26432         link warning.
26433         (mbsstr): New declaration.
26434         * m4/mbsstr.m4: New file.
26435         * m4/strstr.m4: Remove file.
26436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26437         REPLACE_STRSTR.
26438         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
26439         Don't initialize GNULIB_STRSTR.
26440         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
26441         substitute GNULIB_STRSTR and REPLACE_STRSTR.
26442         * MODULES.html.sh (Internationalization functions): Add mbsstr.
26443         (Support for systems lacking ANSI C 89): Remove strstr.
26444
26445 2007-02-04  Bruno Haible  <bruno@clisp.org>
26446
26447         New module mbsrchr.
26448         * modules/mbsrchr: New file.
26449         * lib/mbsrchr.c: New file.
26450         * lib/string_.h (strrchr): Add a conditional link warning.
26451         (mbsrchr): New declaration.
26452         * m4/mbsrchr.m4: New file.
26453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26454         GNULIB_MBSRCHR.
26455         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
26456         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
26457
26458 2007-02-04  Bruno Haible  <bruno@clisp.org>
26459
26460         New module mbschr.
26461         * modules/mbschr: New file.
26462         * lib/mbschr.c: New file.
26463         * lib/string_.h (strchr): Add a conditional link warning.
26464         (mbschr): New declaration.
26465         * m4/mbschr.m4: New file.
26466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26467         GNULIB_MBSCHR.
26468         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
26469         * MODULES.html.sh (Internationalization functions): Add mbschr.
26470
26471 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26472
26473         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
26474
26475         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
26476
26477 2007-02-04  Bruno Haible  <bruno@clisp.org>
26478
26479         New module description section 'configure.ac-early'.
26480         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
26481         (func_get_autoconf_early_snippet): New function.
26482         (func_import, func_create_testdir): Use it. Remove special cases for
26483         modules 'extensions' and 'lock'.
26484         * modules/extensions (configure.ac-early): Require
26485         gl_USE_SYSTEM_EXTENSIONS.
26486         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
26487
26488 2007-02-04  Bruno Haible  <bruno@clisp.org>
26489
26490         Make use of gcj-4.3's -fsource and -ftarget option.
26491         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
26492         and if so try the options -fsource and -ftarget.
26493         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
26494         source_version, ftarget_option, target_version arguments.
26495         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
26496         (is_envjavac_oldgcj_14_14_usable): Renamed from
26497         is_envjavac_gcj_14_14_usable.
26498         (is_envjavac_oldgcj_14_13_usable): Renamed from
26499         is_envjavac_gcj_14_13_usable.
26500         (is_gcj_present): Update.
26501         (is_gcj_43, is_gcj43_usable): New functions.
26502         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
26503         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
26504         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
26505         try the options -fsource and -ftarget.
26506
26507 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26508
26509         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
26510         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
26511         larger value.
26512
26513 2007-02-03  Jim Meyering  <jim@meyering.net>
26514
26515         Give tools a better chance to allocate space for very large buffers.
26516         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
26517
26518         Make pwd and readlink work also when run with an unreadable parent dir
26519         on systems with openat support.
26520         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
26521         provided getcwd function, even when we have openat support.
26522         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
26523
26524 2007-02-02  Bruno Haible  <bruno@clisp.org>
26525
26526         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26527         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
26528         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
26529         portability problems if one of these functions is only used on specific
26530         platforms.
26531         Reported by Paul Eggert.
26532
26533 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
26534
26535         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
26536         is causing more trouble than it's curing.
26537         * lib/regex_internal.h (__mempcpy): Remove.
26538         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
26539         (and make the code a tad smaller to boot).
26540         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
26541
26542 2007-02-02  Jim Meyering  <jim@meyering.net>
26543
26544         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
26545         section, not in the Makefile.am: one.
26546
26547 2007-02-02  Eric Blake  <ebb9@byu.net>
26548
26549         * lib/strchrnul.c: Always include config.h first.
26550
26551         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
26552         gnulib strstr is not necessary here.
26553
26554 2007-02-02  Simon Josefsson  <simon@josefsson.org>
26555
26556         * m4/socklen.m4: Fix typo.
26557
26558 2007-02-02  Eric Blake  <ebb9@byu.net>
26559
26560         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
26561         * modules/netinet_in (Makefile.am): Likewise.
26562
26563 2007-02-01  Bruno Haible  <bruno@clisp.org>
26564
26565         * lib/string_.h (GL_LINK_WARNING): New macro.
26566         (strcasecmp, strstr, strcasestr): If provided by the system,
26567         conditionally define as a macro that leads to a warning instead of to
26568         an error.
26569         (strncasecmp): Conditionally define as a macro that leads to a warning.
26570
26571 2007-02-01  Karl Berry  <karl@gnu.org>
26572
26573         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
26574
26575 2007-02-01  Bruno Haible  <bruno@clisp.org>
26576
26577         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
26578         renamings.
26579
26580 2007-02-01  Eric Blake  <ebb9@byu.net>
26581
26582         * modules/regex (Depends-on): Revert dependence on mempcpy.
26583         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
26584         module's definition of mempcpy.
26585         Reported by Paul Eggert.
26586
26587 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26588
26589         * lib/string_.h: If the gnulib module XYZ is not present, undefine
26590         the symbol XYZ before redefining it.  This fixes a problem with
26591         programs that don't use XYZ, when compiled on systems that define
26592         XYZ to something else.
26593
26594 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
26595
26596         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
26597         occurs when "mkdir -m foo" creates a setgid directory that is (1)
26598         writeable to group or other and (2) is intended to have a special
26599         mode bit that is set or cleared.  In such a case, the directory
26600         should be neither group- nor other-writeable until the special
26601         mode bits are right.
26602
26603 2007-01-31  Eric Blake  <ebb9@byu.net>
26604
26605         * modules/mountlist (Depends-on): Add strstr.
26606
26607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
26608         bug.
26609         * modules/string (Makefile.am): Remove redundant replacement.
26610         * modules/regex (Depends-on): Add mempcpy.
26611
26612 2007-01-31  Bruno Haible  <bruno@clisp.org>
26613
26614         New module description field 'Link'.
26615         * gnulib-tool (func_usage): Document --extract-link-directive.
26616         (sed_extract_prog): Recognize 'Link' directive.
26617         (func_get_link_directive): New function.
26618         (func_import): Show summary of link directives.
26619         Handle --extract-link-directive option.
26620         * modules/acl (Link): New section.
26621         * modules/clock-time (Link): New section.
26622         * modules/euidaccess (Link): New section.
26623         * modules/gettext (Link): New section.
26624         * modules/iconv (Link): New section.
26625         * modules/lock (Link): New section.
26626         * modules/nanosleep (Link): New section.
26627         * modules/readline (Link): New section.
26628
26629 2007-01-27  Bruno Haible  <bruno@clisp.org>
26630
26631         Enforce the use of gnulib modules for unportable <string.h> functions.
26632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
26633         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
26634         (gl_HEADER_STRING_H_BODY): Require it.
26635         * lib/string_.h: If the gnulib module XYZ is not present, redefine
26636         the symbol XYZ to one that gives a link error.
26637         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
26638         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
26639         * modules/mempcpy (configure.ac): Likewise.
26640         * modules/memrchr (configure.ac): Likewise.
26641         * modules/stpcpy (configure.ac): Likewise.
26642         * modules/stpncpy (configure.ac): Likewise.
26643         * modules/strcase (configure.ac): Likewise.
26644         * modules/strcasestr (configure.ac): Likewise.
26645         * modules/strchrnul (configure.ac): Likewise.
26646         * modules/strdup (configure.ac): Likewise.
26647         * modules/strndup (configure.ac): Likewise.
26648         * modules/strnlen (configure.ac): Likewise.
26649         * modules/strpbrk (configure.ac): Likewise.
26650         * modules/strsep (configure.ac): Likewise.
26651         * modules/strstr (configure.ac): Likewise.
26652         * modules/strtok_r (configure.ac): Likewise.
26653
26654 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
26655
26656         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
26657
26658 2007-01-30  Jim Meyering  <jim@meyering.net>
26659
26660         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
26661
26662 2007-01-29  Bruno Haible  <bruno@clisp.org>
26663
26664         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
26665         * lib/execute.c: Likewise.
26666         * lib/pipe.c: Likewise.
26667         * lib/printf-args.h: Likewise.
26668         * lib/printf-args.c: Likewise.
26669         * lib/printf-parse.c: Likewise.
26670         * lib/vasnprintf.c: Likewise.
26671
26672 2007-01-29  Eric Blake  <ebb9@byu.net>
26673
26674         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
26675         declaration.
26676
26677 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26678
26679         * lib/strptime.h (strptime): Use 'restrict' for args where
26680         POSIX requires this.
26681         * lib/strptime.c (strptime): Likewise.
26682         Change license notice from LGPL to GPL, since gnulib-tool will
26683         change this as needed.
26684         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
26685         defined.
26686         Include "strptime.h" first, to check interface.
26687         Do not #undef _LIBC and _NL_CURRENT.
26688         Do not include <stdlib.h>; no longer needed.
26689         Include "time_r.h" and declare ptime_locale_status
26690         only if _LIBC is not defined.
26691         (__P): Remove unused macro.
26692         (match_string): Bring back glibc version, but use it only if _LIBC
26693         is defined.
26694         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
26695         Remove unnecessary assertion and abort() call.
26696         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
26697         * m4/strptime.m4: Fix serial number comment.
26698         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
26699         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
26700         (Depends-on): Add time_r.
26701
26702 2007-01-29  Bruno Haible  <bruno@clisp.org>
26703
26704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26705         strptime.
26706         * modules/strptime (Depends-on): Add stdbool.
26707         * lib/strptime.h: Include <time.h> always. Add comments.
26708
26709 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26710
26711         * modules/strptime: New file.
26712         * lib/strptime.h: New file.
26713         * lib/strptime.c: New file.
26714         * m4/strptime.m4: New file.
26715
26716 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26717
26718         * MODULES.html.sh: New module mpsort.
26719         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
26720
26721         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
26722         a circularity problem with HP-UX ia64 reported by Bob Proulx in
26723         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
26724         All uses changed.
26725         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
26726         All uses changed.
26727         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
26728         to _Restrict_.
26729         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
26730         the parameter matches the prototype.
26731
26732 2007-01-28  Jim Meyering  <jim@meyering.net>
26733
26734         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
26735         sys/time.h here, reverting that part of the previous patch:
26736         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
26737
26738 2007-01-28  Bruno Haible  <bruno@clisp.org>
26739
26740         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
26741         value of $(SYS_TIME_H).
26742         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
26743         remove it conditionally, too. [added by Jim Meyering]
26744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
26745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
26746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
26747         GETTIMEOFDAY_REPLACEMENT to 1.
26748
26749 2007-01-28  Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
26752         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
26753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
26754         Set UNISTD_H instead of UNISTD_H2.
26755         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
26756
26757 2007-01-28  Bruno Haible  <bruno@clisp.org>
26758
26759         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
26760         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
26761
26762 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26763
26764         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
26765         (func_create_testdir): Ensure C locale for `grep' and `tr'
26766         character ranges.
26767         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
26768         ACLOCAL_AMFLAGS parsing state machine.
26769
26770 2007-01-27  Bruno Haible  <bruno@clisp.org>
26771
26772         * modules/unistr/base: Update.
26773
26774 2007-01-27  Bruno Haible  <bruno@clisp.org>
26775
26776         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
26777         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
26778         * modules/unistr/u32-mbtouc-unsafe: Renamed from
26779         modules/unistr/u32-mbtouc.
26780         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
26781         * lib/unistr.h: Update.
26782         * lib/linebreak.c: Update.
26783         * modules/unistr/u32-mbtouc: Renamed from
26784         modules/unistr/u32-mbtouc-safe.
26785         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
26786         * lib/unistr.h: Update.
26787         * lib/unistr/u32-to-u8.c: Update.
26788         * lib/unistr/u32-to-u16.c: Update.
26789
26790 2007-01-27  Bruno Haible  <bruno@clisp.org>
26791
26792         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
26793         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
26794         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
26795         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
26796         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
26797         * modules/unistr/u16-mbtouc-unsafe: Renamed from
26798         modules/unistr/u16-mbtouc.
26799         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
26800         * lib/unistr.h: Update.
26801         * lib/linebreak.c: Update.
26802         * modules/linebreak: Update.
26803         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
26804         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
26805         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
26806         * modules/unistr/u16-mbtouc: Renamed from
26807         modules/unistr/u16-mbtouc-safe.
26808         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
26809         * lib/unistr.h: Update.
26810         * lib/unistr/u16-to-u8.c: Update.
26811         * modules/unistr/u16-to-u8: Update.
26812         * lib/unistr/u16-to-u32.c: Update.
26813         * modules/unistr/u16-to-u32: Update.
26814
26815 2007-01-27  Bruno Haible  <bruno@clisp.org>
26816
26817         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
26818         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
26819         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
26820         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
26821         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
26822         * modules/unistr/u8-mbtouc-unsafe: Renamed from
26823         modules/unistr/u8-mbtouc.
26824         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
26825         * lib/unistr.h: Update.
26826         * lib/striconveh.c: Update.
26827         * modules/striconveh: Update.
26828         * lib/linebreak.c: Update.
26829         * modules/linebreak: Update.
26830         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
26831         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
26832         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
26833         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
26834         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
26835         * lib/unistr.h: Update.
26836         * lib/striconveh.c: Update.
26837         * modules/striconveh: Update.
26838         * lib/unistr/u8-to-u16.c: Update.
26839         * modules/unistr/u8-to-u16: Update.
26840         * lib/unistr/u8-to-u32.c: Update.
26841         * modules/unistr/u8-to-u32: Update.
26842
26843 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26844
26845         Sync from Libtool.
26846         * lib/argz.c: Do not include strings.h nor memory.h, include
26847         string.h unconditionally.  Patch by Simon Josefsson.
26848
26849 2007-01-27  Bruno Haible  <bruno@clisp.org>
26850
26851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
26852         from gl_HEADER_STRING_H_BODY.
26853         (gl_HEADER_STRING_H_BODY): Require it.
26854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
26855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
26856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
26857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
26858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26859         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
26860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26861         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
26862         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
26863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26864         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
26865         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
26866         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
26867         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26868         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
26869
26870 2007-01-27  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
26873         check_PROGRAMS into noinst_PROGRAMS.
26874         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
26875         check_PROGRAMS in this case.
26876         (func_import): Set for_test to false.
26877         (func_create_testdir): Set for_test to true.
26878
26879 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26880             Bruno Haible  <bruno@clisp.org>
26881
26882         * modules/strcasestr (Files): Remove lib/strcasestr.h.
26883         (Depends-on): Add string.
26884         (Includes): Use <string.h> instead of strcasestr.h.
26885         * modules/string (Makefile.am): Also substitute the value of
26886         REPLACE_STRCASESTR.
26887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
26888         assume strcasestr is declared in <string.h> not <strings.h>. Also
26889         set REPLACE_STRCASESTR.
26890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
26891         REPLACE_STRCASESTR.
26892         * lib/strcasestr.h: Remove file.
26893         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
26894         * lib/string_.h (strcasestr): New declaration.
26895
26896 2007-01-27  Bruno Haible  <bruno@clisp.org>
26897
26898         * lib/string_.h: Use 'extern'.
26899
26900 2007-01-27  Jim Meyering  <jim@meyering.net>
26901
26902         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
26903         of set-but-not-used local, "q".
26904
26905         * lib/mempcpy.c: Include <config.h> before <string.h>.
26906         This fixes a compilation error on HP-UX, due to the system's
26907         "restrict"-using mempcpy prototype.
26908
26909 2007-01-26  Bruno Haible  <bruno@clisp.org>
26910
26911         Small optimization.
26912         * lib/javacomp.c: Include c-strstr.h.
26913          (is_envjavac_gcj): Use c_strstr instead of strstr.
26914         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
26915
26916 2007-01-26  Bruno Haible  <bruno@clisp.org>
26917
26918         * MODULES.html.sh (Unicode string functions): Add the new modules.
26919
26920         * modules/uniconv/u32-strconv-to-locale: New file.
26921         * lib/uniconv/u32-strconv-to-locale.c: New file.
26922
26923         * modules/uniconv/u16-strconv-to-locale: New file.
26924         * lib/uniconv/u16-strconv-to-locale.c: New file.
26925
26926         * modules/uniconv/u8-strconv-to-locale: New file.
26927         * lib/uniconv/u8-strconv-to-locale.c: New file.
26928
26929         * modules/uniconv/u32-strconv-from-locale: New file.
26930         * lib/uniconv/u32-strconv-from-locale.c: New file.
26931
26932         * modules/uniconv/u16-strconv-from-locale: New file.
26933         * lib/uniconv/u16-strconv-from-locale.c: New file.
26934
26935         * modules/uniconv/u8-strconv-from-locale: New file.
26936         * lib/uniconv/u8-strconv-from-locale.c: New file.
26937
26938         * modules/uniconv/u32-strconv-to-enc: New file.
26939         * lib/uniconv/u32-strconv-to-enc.c: New file.
26940         * modules/uniconv/u32-strconv-to-enc-tests: New file.
26941         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
26942
26943         * modules/uniconv/u16-strconv-to-enc: New file.
26944         * lib/uniconv/u16-strconv-to-enc.c: New file.
26945         * lib/uniconv/u-strconv-to-enc.h: New file.
26946         * modules/uniconv/u16-strconv-to-enc-tests: New file.
26947         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
26948
26949         * modules/uniconv/u8-strconv-to-enc: New file.
26950         * lib/uniconv/u8-strconv-to-enc.c: New file.
26951         * modules/uniconv/u8-strconv-to-enc-tests: New file.
26952         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
26953
26954         * modules/uniconv/u32-strconv-from-enc: New file.
26955         * lib/uniconv/u32-strconv-from-enc.c: New file.
26956         * modules/uniconv/u32-strconv-from-enc-tests: New file.
26957         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
26958
26959         * modules/uniconv/u16-strconv-from-enc: New file.
26960         * lib/uniconv/u16-strconv-from-enc.c: New file.
26961         * modules/uniconv/u16-strconv-from-enc-tests: New file.
26962         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
26963
26964         * modules/uniconv/u8-strconv-from-enc: New file.
26965         * lib/uniconv/u8-strconv-from-enc.c: New file.
26966         * lib/uniconv/u-strconv-from-enc.h: New file.
26967         * modules/uniconv/u8-strconv-from-enc-tests: New file.
26968         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
26969
26970         * modules/uniconv/u32-conv-from-enc: New file.
26971         * lib/uniconv/u32-conv-from-enc.c: New file.
26972         * modules/uniconv/u32-conv-from-enc-tests: New file.
26973         * tests/uniconv/test-u32-conv-from-enc.c: New file.
26974
26975         * modules/uniconv/u16-conv-from-enc: New file.
26976         * lib/uniconv/u16-conv-from-enc.c: New file.
26977         * lib/uniconv/u-conv-from-enc.h: New file.
26978         * modules/uniconv/u16-conv-from-enc-tests: New file.
26979         * tests/uniconv/test-u16-conv-from-enc.c: New file.
26980
26981         * modules/uniconv/u8-conv-from-enc: New file.
26982         * lib/uniconv/u8-conv-from-enc.c: New file.
26983         * modules/uniconv/u8-conv-from-enc-tests: New file.
26984         * tests/uniconv/test-u8-conv-from-enc.c: New file.
26985
26986         * modules/uniconv/base: New file.
26987         * lib/uniconv.h: New file.
26988
26989 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26990
26991         * doc/gnulib-tool.texi (Initial import): Update to match current
26992         behavior with strdup module.
26993         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
26994         * lib/memmem.h: Remove; all uses removed.  This is now done
26995         by <string.h>.
26996         * lib/mempcpy.h: Likewise.
26997         * lib/memrchr.h: Likewise.
26998         * lib/stpcpy.h: Likewise.
26999         * lib/stpncpy.h: Likewise.
27000         * lib/strcase.h: Likewise.
27001         * lib/strchrnul.h: Likewise.
27002         * lib/strdup.h: Likewise.
27003         * lib/strndup.h: Likewise.
27004         * lib/strnlen.h: Likewise.
27005         * lib/strpbrk.h: Likewise.
27006         * lib/strsep.h: Likewise.
27007         * lib/strstr.h: Likewise.
27008         * lib/strtok_r.h: Likewise.
27009         * lib/string_.h: New file.
27010         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
27011         Rely on <string.h> instead.
27012         * lib/canon-host.c: Likewise.
27013         * lib/chdir-long.c: Likewise.
27014         * lib/concatpath.c: Likewise.
27015         * lib/exclude.c: Likewise.
27016         * lib/fchdir.c: Likewise.
27017         * lib/getaddrinfo.c: Likewise.
27018         * lib/getcwd.c: Likewise.
27019         * lib/getsubopt.c: Likewise.
27020         * lib/glob.c: Likewise.
27021         * lib/hard-locale.c: Likewise.
27022         * lib/iconvme.c: Likewise.
27023         * lib/javacomp.c: Likewise.
27024         * lib/mempcpy.c: Likewise.
27025         * lib/memrchr.c: Likewise.
27026         * lib/regex_internal.h: Likewise.
27027         * lib/stpncpy.c: Likewise.
27028         * lib/strcasecmp.c: Likewise.
27029         * lib/strchrnul.c: Likewise.
27030         * lib/strdup.c: Likewise.
27031         * lib/striconv.c: Likewise.
27032         * lib/striconveh.c: Likewise.
27033         * lib/striconveha.c: Likewise.
27034         * lib/strncasecmp.c: Likewise.
27035         * lib/strndup.c: Likewise.
27036         * lib/strnlen.c: Likewise.
27037         * lib/strsep.c: Likewise.
27038         * lib/strstr.c: Likewise.
27039         * lib/strtok_r.c: Likewise.
27040         * lib/userspec.c: Likewise.
27041         * lib/w32spawn.h: Likewise.
27042         * lib/xstrndup.c: Likewise.
27043         * lib/mountlist.c (strstr): Remove decl.
27044         * m4/string_h.m4: New file.
27045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
27046         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
27047         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
27048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
27049         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
27050         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
27051         Set REPLACE_STRCASECMP if necessary.
27052         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
27053         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
27054         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
27055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
27056         HAVE_DECL_STRDUP if necessary.
27057         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
27058         since gl_FUNC_STRNDUP does that now.
27059         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
27060         Check for decl here...
27061         (gl_PREREQ_STRNLEN): ... not here.
27062         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
27063         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
27064         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
27065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
27066         necessary.
27067         * modules/string: New file.
27068         * modules/memmem (Files): Remove special-purpose include file.
27069         (Depends-on): Add string.
27070         (Include): Include <string.h>, not the removed file.
27071         * modules/mempcpy: Likewise.
27072         * modules/memrchr: Likewise.
27073         * modules/stpcpy: Likewise.
27074         * modules/stpncpy: Likewise.
27075         * modules/strcase: Likewise.
27076         * modules/strchrnul: Likewise.
27077         * modules/strdup: Likewise.
27078         * modules/strndup: Likewise.
27079         * modules/strnlen: Likewise.
27080         * modules/strpbrk: Likewise.
27081         * modules/strsep: Likewise.
27082         * modules/strstr: Likewise.
27083         * modules/strtok_r: Likewise.
27084         * tests/test-dirname.c: Don't include "strdup.h", since
27085         <string.h> now suffices.
27086         * tests/test-memmem.c: Don't include "memmem.h", since
27087         <string.h> now suffices.
27088
27089 2007-01-25  Bruno Haible  <bruno@clisp.org>
27090
27091         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
27092         *resultp is 0.
27093
27094         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
27095         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
27096         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
27097         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
27098
27099         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
27100         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
27101         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
27102         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
27103         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
27104         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
27105
27106 2007-01-24  Bruno Haible  <bruno@clisp.org>
27107
27108         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
27109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
27110         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
27111         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
27112         gl_FUNC_FTS_CORE.
27113         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
27114         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
27115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27116         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
27117         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
27118         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
27119         gl_FUNC_FCHOWNAT.
27120         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
27121         gl_FUNC_STRFTIME.
27122         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
27123         Reported by Ralf Wildenhues.
27124
27125 2007-01-24  Bruno Haible  <bruno@clisp.org>
27126
27127         Drop AC_REQUIRE calls that are redundant with the module dependencies.
27128         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
27129         gl_GETADDRINFO.
27130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
27131         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
27132         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
27133
27134 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27135
27136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
27137         Don't use 'exit'; just return from 'main'.
27138         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
27139
27140         * lib/fnmatch_.h: Readjust white space and comments to match
27141         glibc, to avoid spurious diffs.
27142
27143 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27144
27145         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
27146         2004-12-01 change by Jakub Jelinek, since this code won't compile
27147         if !LIBC.  Problem reported by Bob Proulx.
27148
27149 2007-01-23  Bruno Haible  <bruno@clisp.org>
27150
27151         * lib/striconveh.c: Include c-strcaseeq.h.
27152         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
27153         * modules/striconveh (Depends-on): Add c-strcaseeq.
27154
27155 2007-01-23  Bruno Haible  <bruno@clisp.org>
27156
27157         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
27158
27159         * modules/c-strcaseeq: New file.
27160         * lib/c-strcaseeq.h: New file.
27161
27162         * modules/streq: New file.
27163         * lib/streq.h: New file.
27164
27165 2007-01-23  Bruno Haible  <bruno@clisp.org>
27166
27167         * modules/striconveha-tests: New file.
27168         * tests/test-striconveha.c: New file.
27169
27170         * lib/striconveha.h: Include <stdbool.h>.
27171         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
27172         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
27173         (mem_iconveha_notranslit): Renamed from mem_iconveha.
27174         (mem_iconveha): New function.
27175         (str_iconveha_notranslit): Renamed from str_iconveha.
27176         (str_iconveha): New function.
27177         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
27178         c-strcase.
27179
27180 2007-01-23  Bruno Haible  <bruno@clisp.org>
27181
27182         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
27183         encodings without forgiving before trying any encoding with handler.
27184         (str_iconveha): Try all encodings without forgiving before trying any
27185         encoding with handler.
27186
27187 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27188
27189         Import the following changes from libc.
27190
27191         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27192
27193         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
27194
27195         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27196
27197         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
27198         normal_bracket label.
27199
27200         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
27201
27202         [BZ #361]
27203         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
27204         to normal_bracket after fetching the next character.
27205
27206 2007-01-22  Bruno Haible  <bruno@clisp.org>
27207
27208         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
27209         argument.
27210         * lib/striconveh.c (iconv_carefully_1): New function.
27211         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
27212         argument.
27213         (str_cd_iconveh): Update.
27214         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
27215         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
27216         * tests/test-striconveh.c (MAGIC): New macro.
27217         (new_offsets): New function.
27218         (main): Test call with and without offsets.
27219
27220 2007-01-22  Bruno Haible  <bruno@clisp.org>
27221
27222         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
27223         * modules/sys_select (Makefile.am): Likewise.
27224         * modules/sys_socket (Makefile.am): Likewise.
27225         * modules/sys_time (Makefile.am): Likewise.
27226
27227 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         * modules/gettimeofday (License): Change from GPL to LGPL, since
27230         gettimeofday is a library function.
27231
27232 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27233
27234         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
27235
27236 2007-01-21  Bruno Haible  <bruno@clisp.org>
27237
27238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
27239
27240 2007-01-21  Bruno Haible  <bruno@clisp.org>
27241
27242         * modules/striconveha: New file.
27243         * lib/striconveha.h: New file.
27244         * lib/striconveha.c: New file.
27245         * MODULES.html.sh (Internationalization functions): Add striconveha.
27246         * lib/striconv.c (str_iconv): Optimize the case of an empty input
27247         string.
27248         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
27249
27250 2007-01-21  Bruno Haible  <bruno@clisp.org>
27251
27252         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
27253         * lib/striconveh.c (str_iconveh): Likewise.
27254
27255 2007-01-21  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/striconveh.h (mem_iconveh): New declaration.
27258         * lib/striconveh.c (mem_iconveh): New function.
27259         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
27260
27261 2007-01-21  Bruno Haible  <bruno@clisp.org>
27262
27263         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
27264
27265         * lib/striconveh.h (mem_cd_iconveh): Change specification.
27266         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
27267         original result buffer.
27268         (str_cd_iconveh): Update.
27269         * tests/test-striconveh.c (main): Update.
27270
27271         * lib/striconv.h (mem_cd_iconv): Change specification.
27272         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
27273         result buffer.
27274         (str_cd_iconv): Update.
27275         * tests/test-striconv.c (main): Update.
27276
27277 2007-01-21  Bruno Haible  <bruno@clisp.org>
27278
27279         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
27280
27281 2007-01-20  Jim Meyering  <jim@meyering.net>
27282
27283         * lib/userspec.c (parse_with_separator): If a user or group string
27284         starts with "+", skip the corresponding name-to-ID look-up, since
27285         such a look-up must fail: user and group names may not include "+".
27286
27287 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27288
27289         * lib/poll.c: Include sys/time.h and time.h unconditionally,
27290         since we now assume the sys_time module.
27291         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
27292         check for sys/time.h; no longer needed.
27293         * modules/poll (Depends-on): Depend on sys_time.
27294
27295 2007-01-18  Bruno Haible  <bruno@clisp.org>
27296
27297         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
27298         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27299
27300         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
27301         gettimeofday.
27302
27303         * tests/test-gettimeofday.c: Include <time.h>.
27304         (dummy): Remove variable.
27305
27306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
27307         gl_HEADER_SYS_TIME_H.
27308         (gl_HEADER_SYS_TIME_H): New macro.
27309
27310         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
27311         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
27313         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
27314         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
27316         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
27317         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27318         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
27319         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
27320         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27321
27322         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
27323         last change; it caused a compilation error when cross-compiling to
27324         Cygwin.
27325
27326 2007-01-18  Jim Meyering  <jim@meyering.net>
27327
27328         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
27329         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
27330         than the race-prone "test -d sys || mkdir sys".
27331         (configure.ac): Use AC_PROG_MKDIR_P.
27332         * modules/sys_select: Likewise.
27333         * modules/sys_socket: Likewise.
27334         * modules/sys_time: Likewise.
27335
27336 2007-01-18  Eric Blake  <ebb9@byu.net>
27337
27338         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
27339         replace gettimeofday.
27340         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
27341         name, to avoid infinite recursion.
27342
27343 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
27344
27345         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
27346         module sys_time.
27347         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
27348         assume timespec.h defines struct timeval.
27349         * lib/settime.c: Likewise.
27350         * lib/utimens.c: Likewise.
27351         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
27352         since we now assume the gettimeofday module.
27353         * lib/tempname.c (__gen_tempname): Likewise.
27354         * lib/gettimeofday.h: Remove.
27355         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
27356         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
27357         Include <time.h>, for 'time()'.
27358         (localtime_buffer_addr): Also use this workaround if
27359         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
27360         to simplify the uses.  All uses changed.
27361         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
27362         that #undef is inside {}, and 'const' follows type name consistently.
27363         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
27364         (gettimeofday): Do not use the maximum possible value for
27365         tv->tv_usec, since that might break usages other than ls.c.
27366         Instead, we'll leave ls.c alone.  This undoes today's patch
27367         by Bruno.  Add a compile-time warning for 1s-clock resolution;
27368         we've never observed the problem but might as well keep the
27369         canary.
27370         * lib/nanosleep.c: Include timespec.h first, for interface check.
27371         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
27372         now assume the sys_time module.
27373         * lib/tempname.c: Likewise.
27374         * lib/timespec.h: Likewise.
27375         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
27376         needed.
27377         * lib/strftime.c: Likewise.
27378         * lib/timespec.h: Likewise.
27379         * lib/posixtm.c: Include posixtm.h first, for interface check.
27380         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
27381         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
27382         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
27383         * lib/sys_time_.h: New file.
27384         * lib/timespec.h (struct timespec): Use long int, not long.
27385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27386         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
27387         Remove obsolescent call to AC_HEADER_TIME.
27388         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27391         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
27392         Likewise.
27393         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
27394         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
27395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
27396         into the sys_time module.  Check for gettimeofday just once.
27397         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
27398         for gettimeofday signature to just check the signature.  Merely
27399         compile it, since linking doesn't test signature.  Improve test for
27400         whether gettimeofday.o is actually needed.
27401         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
27402         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
27403         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
27404         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27405         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
27406         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
27407         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
27408         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
27409         than worrying about sys/time.h.
27410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27411         Don't bother worrying about TIME_WITH_SYS_TIME.
27412         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27413         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
27414         * m4/sys_time_h.m4: New file.
27415         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
27416         Don't include sys/time.h.  Return from main rather than exiting.
27417         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
27418         all uses changed.
27419         * modules/gethrxtime (Depends-on): Add sys_time.
27420         * modules/gettime (Depends-on): Likewise.
27421         * modules/gettimeofday (Depends-on): Likewise.
27422         * modules/nanosleep (Depends-on): Likewise.
27423         * modules/settime (Depends-on): Likewise.
27424         * modules/tempname (Depends-on): Likewise.
27425         * modules/utimens (Depends-on): Likewise.
27426         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
27427         (Include:) Change back to <sys/time.h>.
27428         (Maintainer:) Add self.
27429         * modules/sys_time: New file.
27430         * modules/tempname (Depends-on): Add gettimeofday.
27431         * tests/test-gettimeofday.c: Include <sys/time.h>
27432         rather than gettimeofday.h.
27433
27434 2007-01-17  Bruno Haible  <bruno@clisp.org>
27435
27436         * gnulib-tool (func_get_license): Revert last patch. Instead, let
27437         the license default to GPL.
27438         (func_create_testdir): Don't complain if a module is LGPL and its
27439         tests module depends on GPLed modules.
27440
27441 2007-01-17  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/gettimeofday.c (gettimeofday): Add code for the case
27444         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
27445         maximum possible value for tv->tv_usec, rather than the minimum one.
27446
27447 2005-10-08  Martin Lambers  <marlam@marlam.de>
27448 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27449 2007-01-16  Bruno Haible  <bruno@clisp.org>
27450
27451         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
27452         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
27453         gl_FUNC_GETTIMEOFDAY.
27454         (Include): Add gettimeofday.h.
27455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
27456         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
27457         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
27458         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
27459         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
27460         * lib/gettimeofday.h: New file.
27461         * lib/gettimeofday.c: Include <sys/timeb.h>.
27462         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
27463         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27464         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
27465         fall back on time().
27466
27467         * tests/test-gettimeofday.c: New file.
27468         * modules/gettimeofday-tests: New file.
27469
27470 2007-01-16  Eric Blake  <ebb9@byu.net>
27471
27472         * modules/fnmatch (Depends-on): Depend on wchar.
27473         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
27474         * m4/fnmatch.m4: Likewise.
27475         * modules/mbchar (Makefile.am): Assume <wchar.h>.
27476         * m4/mbchar.m4: Likewise.
27477         * modules/mbswidth (Depends-on): Depend on wchar.
27478         * lib/mbswidth.c: Assume <wchar.h>.
27479         * m4/mbswidth.m4: Likewise.
27480         * modules/quotearg (Depends-on): Depend on wchar.
27481         * lib/quotearg.c: Assume <wchar.h>.
27482         * m4/quotearg.m4: Likewise.
27483         * modules/regex (Depends-on): Depend on wchar.
27484         * lib/regex_internal.h: Assume <wchar.h>.
27485         * m4/regex.m4: Likewise.
27486         * modules/stdint (Depends-on): Depend on wchar.
27487         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
27488         * m4/stdint.m4: Likewise.
27489         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
27490         * modules/strftime (Depends-on): Depend on wchar.
27491         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
27492         * modules/strtol (Depends-on): Depend on wchar.
27493         * lib/strtol.c: Assume <wchar.h>.
27494         * modules/wcwidth (Depends-on): Depend on wchar.
27495         * lib/wcwidth.h: Assume <wchar.h>.
27496         * m4/wcwidth.m4: Likewise.
27497
27498 2007-01-16  Bruno Haible  <bruno@clisp.org>
27499
27500         * modules/csharpexec-script: New, created from...
27501         * modules/csharpexec: ... this.
27502
27503 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27504
27505         * modules/javaexec-script: New, created from...
27506         * modules/javaexec: ... this.
27507
27508 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27509
27510         * modules/poll (Dependencies): Add sys_select.
27511
27512 2007-01-15  Jim Meyering  <jim@meyering.net>
27513
27514         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
27515         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
27516         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
27517         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
27518
27519 2007-01-15  Bruno Haible  <bruno@clisp.org>
27520
27521         * modules/striconveh: New file.
27522         * lib/striconveh.h: New file.
27523         * lib/striconveh.c: New file.
27524         * MODULES.html.sh (Internationalization functions): Add striconveh.
27525
27526         * modules/striconveh-tests: New file.
27527         * tests/test-striconveh.c: New file.
27528
27529 2007-01-15  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
27532         not from GNU libiconv or GNU libc.
27533
27534 2007-01-15  Bruno Haible  <bruno@clisp.org>
27535
27536         * doc/gnulib-intro.texi (Copyright): Explain the different license
27537         terms for module descriptions, autoconf macros, tests, documentation.
27538
27539 2007-01-14  Bruno Haible  <bruno@clisp.org>
27540
27541         * modules/striconv-tests: New file.
27542         * tests/test-striconv.c: New file.
27543
27544 2007-01-14  Bruno Haible  <bruno@clisp.org>
27545
27546         * modules/iconv-tests: New file.
27547         * tests/test-iconv.c: New file.
27548
27549 2007-01-14  Bruno Haible  <bruno@clisp.org>
27550
27551         * gnulib-tool (func_get_license): For test modules, use the license of
27552         the main module.
27553
27554 2007-01-14  Bruno Haible  <bruno@clisp.org>
27555
27556         * modules/iconv (Include): Clarify that <iconv.h> can only be included
27557         if iconv is found to exist.
27558
27559 2007-01-14  Bruno Haible  <bruno@clisp.org>
27560
27561         * modules/c-ctype-tests: New file.
27562         * tests/test-c-ctype.c: New file.
27563
27564 2007-01-14  Bruno Haible  <bruno@clisp.org>
27565
27566         * modules/binary-io-tests: New file.
27567         * tests/test-binary-io.sh: New file.
27568         * tests/test-binary-io.c: New file.
27569
27570 2007-01-14  Bruno Haible  <bruno@clisp.org>
27571
27572         * modules/array-oset-tests: New file.
27573         * tests/test-array_oset.c: New file.
27574
27575 2007-01-14  Bruno Haible  <bruno@clisp.org>
27576
27577         * modules/array-list-tests: New file.
27578         * tests/test-array_list.c: New file.
27579
27580 2007-01-14  Bruno Haible  <bruno@clisp.org>
27581
27582         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
27583         and make.
27584         Reported by Simon Josefsson in
27585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
27586
27587 2007-01-14  Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/allocsa-tests: New file.
27590         * tests/test-allocsa.c: New file.
27591
27592 2007-01-14  Bruno Haible  <bruno@clisp.org>
27593
27594         * modules/fchdir (Depends-on): Add absolute-header.
27595         * modules/unistd (Depends-on): Likewise.
27596
27597 2006-12-30  Bruno Haible  <bruno@clisp.org>
27598
27599         * modules/fchdir: New file.
27600         * modules/unistd (Files): Add lib/unistd_.h.
27601         (Makefile.am): Generate unistd.h from unistd_.h.
27602         * lib/fchdir.c: New file.
27603         * lib/dirent_.h: New file.
27604         * lib/unistd_.h: New file.
27605         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
27606         * m4/fchdir.m4: New file.
27607         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
27608         (gl_HEADER_UNISTD): Invoke it.
27609         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
27610         function.
27611         * lib/backupfile.c (opendir, closedir): Undefine.
27612         * lib/chown.c (open, close): Undefine.
27613         * lib/clean-temp.c (open, close): Undefine.
27614         * lib/copy-file.c (open, close): Undefine.
27615         * lib/execute.c (open, close): Undefine.
27616         * lib/fsusage.c (open, close): Undefine.
27617         * lib/gc-gnulib.c (open, close): Undefine.
27618         * lib/getcwd.c (opendir, closedir): Undefine.
27619         * lib/glob.c (opendir, closedir): Undefine.
27620         * lib/javacomp.c (open, close): Undefine.
27621         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
27622         * lib/openat-proc.c (open, close): Undefine.
27623         * lib/pagealign_alloc.c (open, close): Undefine.
27624         * lib/pipe.c (open, close): Undefine.
27625         * lib/progreloc.c (open, close): Undefine.
27626         * lib/savedir.c (opendir, closedir): Undefine.
27627         * lib/utime.c (open, close): Undefine.
27628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
27629
27630 2007-01-10  Bruno Haible  <bruno@clisp.org>
27631
27632         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
27633
27634 2007-01-12  Eric Blake  <ebb9@byu.net>
27635
27636         Provide a robust <wchar.h>.  Further simplifications are now
27637         possible in other modules, but not included here.
27638         * modules/wchar: New module.
27639         * m4/wchar.m4: New file.
27640         * lib/wchar_.h: Likewise.
27641         * modules/mbchar (Depends-on): Depend on wchar, as the first use
27642         of the new module.
27643         * MODULES.html.sh (Extended multibyte and wide character utilities):
27644         New section.
27645
27646 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27647
27648         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
27649         to a reasonable default for memory allocation.
27650         (xreadlink): Don't allocate a huge buffer, to work around a buggy
27651         file system that reports garbage st_size values for symlinks.
27652         Problem reported by Liyang Hu.
27653
27654 2007-01-11  Simon Josefsson  <simon@josefsson.org>
27655
27656         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
27657         Emacs .#* auto-save files).
27658
27659 2007-01-11  Bruno Haible  <bruno@clisp.org>
27660
27661         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
27662         directory.
27663
27664 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27665
27666         Use @...@ consistently in lib/wctype_.h.
27667         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
27668         on it being set to 1 or 0.
27669         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
27670         go back to AC_SUBSTing it.
27671         * modules/wctype (Makefile.am): Undo previous change.
27672
27673 2007-01-10  Eric Blake  <ebb9@byu.net>
27674
27675         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
27676         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
27677         * modules/wctype (Makefile.am): Likewise.
27678         Reported by Chris McGuire.
27679
27680 2007-01-10  Jim Meyering  <jim@meyering.net>
27681
27682         fts.c: a small readability/maintainability improvement
27683         * lib/fts.c (fts_read): Make this code slightly more readable and
27684         maintainable by hoisting the "sp->fts_cur = p" assignments to
27685         immediately follow the statements that set P.  Derived from
27686         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
27687
27688 2007-01-10  Eric Blake  <ebb9@byu.net>
27689
27690         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
27691         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
27692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27694         Reported by Chris McGuire.
27695
27696 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27697
27698         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
27699         in sed script.
27700
27701 2007-01-09  Bruno Haible  <bruno@clisp.org>
27702
27703         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
27704         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
27705         variables.
27706         (func_module): Use them.
27707
27708 2007-01-09  Bruno Haible  <bruno@clisp.org>
27709
27710         * modules/unistr/base: New file.
27711         * lib/unistr.h: New file.
27712
27713         * modules/unistr/u8-to-u16: New file.
27714         * lib/unistr/u8-to-u16.c: New file.
27715
27716         * modules/unistr/u8-to-u32: New file.
27717         * lib/unistr/u8-to-u32.c: New file.
27718
27719         * modules/unistr/u16-to-u8: New file.
27720         * lib/unistr/u16-to-u8.c: New file.
27721
27722         * modules/unistr/u16-to-u32: New file.
27723         * lib/unistr/u16-to-u32.c: New file.
27724
27725         * modules/unistr/u32-to-u8: New file.
27726         * lib/unistr/u32-to-u8.c: New file.
27727
27728         * modules/unistr/u32-to-u16: New file.
27729         * lib/unistr/u32-to-u16.c: New file.
27730
27731         * modules/unistr/u8-check: New file.
27732         * modules/unistr/u16-check: New file.
27733         * modules/unistr/u32-check: New file.
27734         * lib/unistr/u8-check.c: New file.
27735         * lib/unistr/u16-check.c: New file.
27736         * lib/unistr/u32-check.c: New file.
27737
27738         * modules/unistr/u8-chr: New file.
27739         * modules/unistr/u16-chr: New file.
27740         * modules/unistr/u32-chr: New file.
27741         * lib/unistr/u8-chr.c: New file.
27742         * lib/unistr/u16-chr.c: New file.
27743         * lib/unistr/u32-chr.c: New file.
27744
27745         * modules/unistr/u8-cmp: New file.
27746         * modules/unistr/u16-cmp: New file.
27747         * modules/unistr/u32-cmp: New file.
27748         * lib/unistr/u8-cmp.c: New file.
27749         * lib/unistr/u16-cmp.c: New file.
27750         * lib/unistr/u32-cmp.c: New file.
27751
27752         * modules/unistr/u8-cpy: New file.
27753         * modules/unistr/u16-cpy: New file.
27754         * modules/unistr/u32-cpy: New file.
27755         * lib/unistr/u8-cpy.c: New file.
27756         * lib/unistr/u16-cpy.c: New file.
27757         * lib/unistr/u32-cpy.c: New file.
27758         * lib/unistr/u-cpy.h: New file.
27759
27760         * modules/unistr/u8-cpy-alloc: New file.
27761         * modules/unistr/u16-cpy-alloc: New file.
27762         * modules/unistr/u32-cpy-alloc: New file.
27763         * lib/unistr/u8-cpy-alloc.c: New file.
27764         * lib/unistr/u16-cpy-alloc.c: New file.
27765         * lib/unistr/u32-cpy-alloc.c: New file.
27766         * lib/unistr/u-cpy-alloc.h: New file.
27767
27768         * modules/unistr/u8-endswith: New file.
27769         * modules/unistr/u16-endswith: New file.
27770         * modules/unistr/u32-endswith: New file.
27771         * lib/unistr/u8-endswith.c: New file.
27772         * lib/unistr/u16-endswith.c: New file.
27773         * lib/unistr/u32-endswith.c: New file.
27774         * lib/unistr/u-endswith.h: New file.
27775
27776         * modules/unistr/u8-mblen: New file.
27777         * modules/unistr/u16-mblen: New file.
27778         * modules/unistr/u32-mblen: New file.
27779         * lib/unistr/u8-mblen.c: New file.
27780         * lib/unistr/u16-mblen.c: New file.
27781         * lib/unistr/u32-mblen.c: New file.
27782
27783         * modules/unistr/u8-mbtouc: New file.
27784         * modules/unistr/u16-mbtouc: New file.
27785         * modules/unistr/u32-mbtouc: New file.
27786         * lib/unistr/u8-mbtouc.c: New file.
27787         * lib/unistr/u16-mbtouc.c: New file.
27788         * lib/unistr/u32-mbtouc.c: New file.
27789
27790         * modules/unistr/u8-mbtouc-safe: New file.
27791         * modules/unistr/u16-mbtouc-safe: New file.
27792         * modules/unistr/u32-mbtouc-safe: New file.
27793         * lib/unistr/u8-mbtouc-safe.c: New file.
27794         * lib/unistr/u16-mbtouc-safe.c: New file.
27795         * lib/unistr/u32-mbtouc-safe.c: New file.
27796
27797         * modules/unistr/u8-move: New file.
27798         * modules/unistr/u16-move: New file.
27799         * modules/unistr/u32-move: New file.
27800         * lib/unistr/u8-move.c: New file.
27801         * lib/unistr/u16-move.c: New file.
27802         * lib/unistr/u32-move.c: New file.
27803         * lib/unistr/u-move.h: New file.
27804
27805         * modules/unistr/u8-next: New file.
27806         * modules/unistr/u16-next: New file.
27807         * modules/unistr/u32-next: New file.
27808         * lib/unistr/u8-next.c: New file.
27809         * lib/unistr/u16-next.c: New file.
27810         * lib/unistr/u32-next.c: New file.
27811
27812         * modules/unistr/u8-prev: New file.
27813         * modules/unistr/u16-prev: New file.
27814         * modules/unistr/u32-prev: New file.
27815         * lib/unistr/u8-prev.c: New file.
27816         * lib/unistr/u16-prev.c: New file.
27817         * lib/unistr/u32-prev.c: New file.
27818
27819         * modules/unistr/u8-set: New file.
27820         * modules/unistr/u16-set: New file.
27821         * modules/unistr/u32-set: New file.
27822         * lib/unistr/u8-set.c: New file.
27823         * lib/unistr/u16-set.c: New file.
27824         * lib/unistr/u32-set.c: New file.
27825         * lib/unistr/u-set.h: New file.
27826
27827         * modules/unistr/u8-startswith: New file.
27828         * modules/unistr/u16-startswith: New file.
27829         * modules/unistr/u32-startswith: New file.
27830         * lib/unistr/u8-startswith.c: New file.
27831         * lib/unistr/u16-startswith.c: New file.
27832         * lib/unistr/u32-startswith.c: New file.
27833         * lib/unistr/u-startswith.h: New file.
27834
27835         * modules/unistr/u8-stpcpy: New file.
27836         * modules/unistr/u16-stpcpy: New file.
27837         * modules/unistr/u32-stpcpy: New file.
27838         * lib/unistr/u8-stpcpy.c: New file.
27839         * lib/unistr/u16-stpcpy.c: New file.
27840         * lib/unistr/u32-stpcpy.c: New file.
27841         * lib/unistr/u-stpcpy.h: New file.
27842
27843         * modules/unistr/u8-stpncpy: New file.
27844         * modules/unistr/u16-stpncpy: New file.
27845         * modules/unistr/u32-stpncpy: New file.
27846         * lib/unistr/u8-stpncpy.c: New file.
27847         * lib/unistr/u16-stpncpy.c: New file.
27848         * lib/unistr/u32-stpncpy.c: New file.
27849         * lib/unistr/u-stpncpy.h: New file.
27850
27851         * modules/unistr/u8-strcat: New file.
27852         * modules/unistr/u16-strcat: New file.
27853         * modules/unistr/u32-strcat: New file.
27854         * lib/unistr/u8-strcat.c: New file.
27855         * lib/unistr/u16-strcat.c: New file.
27856         * lib/unistr/u32-strcat.c: New file.
27857         * lib/unistr/u-strcat.h: New file.
27858
27859         * modules/unistr/u8-strchr: New file.
27860         * modules/unistr/u16-strchr: New file.
27861         * modules/unistr/u32-strchr: New file.
27862         * lib/unistr/u8-strchr.c: New file.
27863         * lib/unistr/u16-strchr.c: New file.
27864         * lib/unistr/u32-strchr.c: New file.
27865
27866         * modules/unistr/u8-strcmp: New file.
27867         * modules/unistr/u16-strcmp: New file.
27868         * modules/unistr/u32-strcmp: New file.
27869         * lib/unistr/u8-strcmp.c: New file.
27870         * lib/unistr/u16-strcmp.c: New file.
27871         * lib/unistr/u32-strcmp.c: New file.
27872
27873         * modules/unistr/u8-strcpy: New file.
27874         * modules/unistr/u16-strcpy: New file.
27875         * modules/unistr/u32-strcpy: New file.
27876         * lib/unistr/u8-strcpy.c: New file.
27877         * lib/unistr/u16-strcpy.c: New file.
27878         * lib/unistr/u32-strcpy.c: New file.
27879         * lib/unistr/u-strcpy.h: New file.
27880
27881         * modules/unistr/u8-strcspn: New file.
27882         * modules/unistr/u16-strcspn: New file.
27883         * modules/unistr/u32-strcspn: New file.
27884         * lib/unistr/u8-strcspn.c: New file.
27885         * lib/unistr/u16-strcspn.c: New file.
27886         * lib/unistr/u32-strcspn.c: New file.
27887         * lib/unistr/u-strcspn.h: New file.
27888
27889         * modules/unistr/u8-strdup: New file.
27890         * modules/unistr/u16-strdup: New file.
27891         * modules/unistr/u32-strdup: New file.
27892         * lib/unistr/u8-strdup.c: New file.
27893         * lib/unistr/u16-strdup.c: New file.
27894         * lib/unistr/u32-strdup.c: New file.
27895         * lib/unistr/u-strdup.h: New file.
27896
27897         * modules/unistr/u8-strlen: New file.
27898         * modules/unistr/u16-strlen: New file.
27899         * modules/unistr/u32-strlen: New file.
27900         * lib/unistr/u8-strlen.c: New file.
27901         * lib/unistr/u16-strlen.c: New file.
27902         * lib/unistr/u32-strlen.c: New file.
27903         * lib/unistr/u-strlen.h: New file.
27904
27905         * modules/unistr/u8-strmblen: New file.
27906         * modules/unistr/u16-strmblen: New file.
27907         * modules/unistr/u32-strmblen: New file.
27908         * lib/unistr/u8-strmblen.c: New file.
27909         * lib/unistr/u16-strmblen.c: New file.
27910         * lib/unistr/u32-strmblen.c: New file.
27911
27912         * modules/unistr/u8-strmbtouc: New file.
27913         * modules/unistr/u16-strmbtouc: New file.
27914         * modules/unistr/u32-strmbtouc: New file.
27915         * lib/unistr/u8-strmbtouc.c: New file.
27916         * lib/unistr/u16-strmbtouc.c: New file.
27917         * lib/unistr/u32-strmbtouc.c: New file.
27918
27919         * modules/unistr/u8-strncat: New file.
27920         * modules/unistr/u16-strncat: New file.
27921         * modules/unistr/u32-strncat: New file.
27922         * lib/unistr/u8-strncat.c: New file.
27923         * lib/unistr/u16-strncat.c: New file.
27924         * lib/unistr/u32-strncat.c: New file.
27925         * lib/unistr/u-strncat.h: New file.
27926
27927         * modules/unistr/u8-strncmp: New file.
27928         * modules/unistr/u16-strncmp: New file.
27929         * modules/unistr/u32-strncmp: New file.
27930         * lib/unistr/u8-strncmp.c: New file.
27931         * lib/unistr/u16-strncmp.c: New file.
27932         * lib/unistr/u32-strncmp.c: New file.
27933
27934         * modules/unistr/u8-strncpy: New file.
27935         * modules/unistr/u16-strncpy: New file.
27936         * modules/unistr/u32-strncpy: New file.
27937         * lib/unistr/u8-strncpy.c: New file.
27938         * lib/unistr/u16-strncpy.c: New file.
27939         * lib/unistr/u32-strncpy.c: New file.
27940         * lib/unistr/u-strncpy.h: New file.
27941
27942         * modules/unistr/u8-strnlen: New file.
27943         * modules/unistr/u16-strnlen: New file.
27944         * modules/unistr/u32-strnlen: New file.
27945         * lib/unistr/u8-strnlen.c: New file.
27946         * lib/unistr/u16-strnlen.c: New file.
27947         * lib/unistr/u32-strnlen.c: New file.
27948         * lib/unistr/u-strnlen.h: New file.
27949
27950         * modules/unistr/u8-strpbrk: New file.
27951         * modules/unistr/u16-strpbrk: New file.
27952         * modules/unistr/u32-strpbrk: New file.
27953         * lib/unistr/u8-strpbrk.c: New file.
27954         * lib/unistr/u16-strpbrk.c: New file.
27955         * lib/unistr/u32-strpbrk.c: New file.
27956         * lib/unistr/u-strpbrk.h: New file.
27957
27958         * modules/unistr/u8-strrchr: New file.
27959         * modules/unistr/u16-strrchr: New file.
27960         * modules/unistr/u32-strrchr: New file.
27961         * lib/unistr/u8-strrchr.c: New file.
27962         * lib/unistr/u16-strrchr.c: New file.
27963         * lib/unistr/u32-strrchr.c: New file.
27964
27965         * modules/unistr/u8-strspn: New file.
27966         * modules/unistr/u16-strspn: New file.
27967         * modules/unistr/u32-strspn: New file.
27968         * lib/unistr/u8-strspn.c: New file.
27969         * lib/unistr/u16-strspn.c: New file.
27970         * lib/unistr/u32-strspn.c: New file.
27971         * lib/unistr/u-strspn.h: New file.
27972
27973         * modules/unistr/u8-strstr: New file.
27974         * modules/unistr/u16-strstr: New file.
27975         * modules/unistr/u32-strstr: New file.
27976         * lib/unistr/u8-strstr.c: New file.
27977         * lib/unistr/u16-strstr.c: New file.
27978         * lib/unistr/u32-strstr.c: New file.
27979         * lib/unistr/u-strstr.h: New file.
27980
27981         * modules/unistr/u8-strtok: New file.
27982         * modules/unistr/u16-strtok: New file.
27983         * modules/unistr/u32-strtok: New file.
27984         * lib/unistr/u8-strtok.c: New file.
27985         * lib/unistr/u16-strtok.c: New file.
27986         * lib/unistr/u32-strtok.c: New file.
27987         * lib/unistr/u-strtok.h: New file.
27988
27989         * modules/unistr/u8-uctomb: New file.
27990         * modules/unistr/u16-uctomb: New file.
27991         * modules/unistr/u32-uctomb: New file.
27992         * lib/unistr/u8-uctomb.c: New file.
27993         * lib/unistr/u16-uctomb.c: New file.
27994         * lib/unistr/u32-uctomb.c: New file.
27995
27996         * MODULES.html.sh (Unicode string functions): Add the new modules.
27997
27998 2007-01-08  Bruno Haible  <bruno@clisp.org>
27999
28000         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
28001         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
28002         subdirectories.
28003
28004 2007-01-08  Karl Berry  <karl@gnu.org>
28005
28006         * doc/error.texi: mention that main() fns must set program_name
28007         when progname is used.
28008
28009 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
28010
28011         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
28012         WCTYPE_H is empty, for the benefit of builds from non-distclean
28013         directories.  Problem reported by Eric Blake in
28014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
28015
28016 2007-01-08  Bruno Haible  <bruno@clisp.org>
28017
28018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
28019         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
28020         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
28021         PROVIDE_CANONICALIZE_FILENAME_MODE.
28022         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
28023
28024 2007-01-08  Bruno Haible  <bruno@clisp.org>
28025
28026         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
28027         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
28028         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
28029         * lib/fts.c: Likewise.
28030         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
28031
28032 2006-12-25  Bruno Haible  <bruno@clisp.org>
28033
28034         * modules/utf8-ucs4-safe: New file.
28035         * lib/utf8-ucs4-safe.h: New file.
28036         * lib/unistr/utf8-ucs4-safe.c: New file.
28037
28038         * modules/utf16-ucs4-safe: New file.
28039         * lib/utf16-ucs4-safe.h: New file.
28040         * lib/unistr/utf16-ucs4-safe.c: New file.
28041
28042         * MODULES.html.sh (Unicode string functions): Add the new modules.
28043
28044 2007-01-08  Bruno Haible  <bruno@clisp.org>
28045
28046         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
28047         (Depends-on): Add unitypes.
28048         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28049         (u8_mbtouc_aux): Move out to separate file.
28050         (u8_mbtouc): Use ucs4_t, uint8_t types.
28051         * lib/unistr/utf8-ucs4.c: New file.
28052
28053         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
28054         (Depends-on): Add unitypes.
28055         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28056         (u16_mbtouc_aux): Move out to separate file.
28057         (u16_mbtouc): Use ucs4_t, uint16_t types.
28058         * lib/unistr/utf16-ucs4.c: New file.
28059
28060         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
28061         (Depends-on): Add unitypes.
28062         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
28063         (u8_uctomb_aux): Move out to separate file.
28064         (u8_uctomb): Use ucs4_t, uint8_t types.
28065         * lib/unistr/ucs4-utf8.c: New file.
28066
28067         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
28068         (Depends-on): Add unitypes.
28069         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
28070         (u16_uctomb_aux): Move out to separate file.
28071         (u16_uctomb): Use ucs4_t, uint16_t types.
28072         * lib/unistr/ucs4-utf16.c: New file.
28073
28074 2006-12-25  Bruno Haible  <bruno@clisp.org>
28075
28076         * modules/unitypes: New file.
28077         * lib/unitypes.h: New file.
28078         * MODULES.html.sh (func_all_modules): New section "Unicode string
28079         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
28080         this section. Add unitypes.
28081
28082 2007-01-08  Bruno Haible  <bruno@clisp.org>
28083
28084         Avoid variable names that conflict with those from libtool.
28085         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
28086         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
28087         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
28088         library_names_spec to acl_library_names_spec, hardcode_* to
28089         acl_hardcode_*.
28090         Reported by Ralf Wildenhues.
28091
28092 2007-01-08  Bruno Haible  <bruno@clisp.org>
28093
28094         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
28095         definition.
28096         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
28097         definition.
28098         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
28099         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
28100         definition.
28101         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
28102         definition.
28103         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
28104         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
28105         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
28106         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
28107         definition.
28108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
28109         definition.
28110         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
28111         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
28112         GC_USE_<algorithm>.
28113         * lib/gc-libgcrypt.c: Likewise.
28114         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
28115         * modules/gc-arctwo (configure.ac): Likewise.
28116         * modules/gc-des (configure.ac): Likewise.
28117         * modules/gc-hmac-md5 (configure.ac): Likewise.
28118         * modules/gc-hmac-sha1 (configure.ac): Likewise.
28119         * modules/gc-md2 (configure.ac): Likewise.
28120         * modules/gc-md4 (configure.ac): Likewise.
28121         * modules/gc-md5 (configure.ac): Likewise.
28122         * modules/gc-random (configure.ac): Likewise.
28123         * modules/gc-rijndael (configure.ac): Likewise.
28124         * modules/gc-sha1 (configure.ac): Likewise.
28125
28126 2007-01-08  Bruno Haible  <bruno@clisp.org>
28127
28128         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
28129         macro definition.
28130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
28131         definition.
28132         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
28133         definition.
28134         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
28135         * modules/fcntl-safer (configure.ac): Likewise.
28136         * modules/fopen-safer (configure.ac): Likewise.
28137         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
28138         GNULIB_FWRITEERROR macro definition.
28139
28140 2007-01-08  Bruno Haible  <bruno@clisp.org>
28141
28142         * m4/gnulib-common.m4: New file.
28143         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
28144         (func_get_filelist): Add m4/gnulib-common.m4.
28145
28146 2007-01-08  Bruno Haible  <bruno@clisp.org>
28147
28148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
28149         command.
28150
28151 2007-01-08  Jim Meyering  <jim@meyering.net>
28152
28153         Use a more robust test for a "can't happen" condition.
28154         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
28155         narrowed the st_size value.  Presuming the "can't happen" condition
28156         is true, that narrowing could conceivably convert an invalid st_size
28157         value into a valid one.  Instead, use a change based on Matthew
28158         Woehlke's original patch.
28159
28160         Slight readability improvement: use an assert-like macro
28161         in place of literal "abort ()" uses.
28162         * lib/fts.c (fts_assert): Define.
28163         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
28164         Use this macro instead of a bare 'abort'.
28165
28166 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28167
28168         Don't worry about using IRIX 5.3's wctype.h broken definitions;
28169         simply work around them.
28170         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
28171         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
28172         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
28173         declaring.
28174         Don't bother to define as macros, since the standard doesn't require it.
28175         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
28176         longer worry about IRIX 5.3.
28177         (HAVE_WCTYPE_CTMP_BUG): Remove.
28178
28179 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
28182         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
28183         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28184         Problems reported by Georg Schwarz for IRIX 5.3.
28185
28186         * gnulib-tool (autoconf_minversion): Take the maximum version number
28187         found, not the minimum.  Problem reported by James Youngman.
28188
28189 2007-01-03  Karl Berry  <karl@gnu.org>
28190
28191         * doc/error.texi: new file, explaining interaction with progname.
28192         * doc/gnulib.texi: include it.  Update copyright.
28193
28194 2007-01-03  Simon Josefsson  <simon@josefsson.org>
28195
28196         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
28197         AC_CANONICAL_HOST, to improve autobuild outputs.
28198
28199 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
28200             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28201
28202         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
28203         sockets, server sockets, and other file descriptors.  Count errors
28204         to compute the return value.  Reorder the code a bit to be easier
28205         to follow.  Don't set event bits that were not requested (except
28206         POLLERR and POLLHUP).
28207
28208 2007-01-01  Bruno Haible  <bruno@clisp.org>
28209
28210         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
28211
28212 2007-01-03  Jim Meyering  <jim@meyering.net>
28213
28214         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
28215
28216 2007-01-02  Bruno Haible  <bruno@clisp.org>
28217
28218         * modules/settime (Include): Require timespec.h.
28219         * modules/nanosleep (Include): Likewise.
28220
28221 2007-01-01  Bruno Haible  <bruno@clisp.org>
28222
28223         * gnulib-tool (func_emit_copyright_notice): Bump year.
28224         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
28225
28226 2007-01-01  Bruno Haible  <bruno@clisp.org>
28227
28228         Improve support for OpenBSD.
28229         * build-aux/config.rpath (libname_spec): Export.
28230         (library_names_spec): New variable. Export.
28231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
28232         library_names_spec from the config.rpath output. Locate shared library
28233         through the name pattern in library_names_spec.
28234
28235 2007-01-01  Eric Blake  <ebb9@byu.net>
28236
28237         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
28238
28239 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28240
28241         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
28242         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
28243         assume the C locale, and avoid an "eval" that could cause trouble.
28244         Problem with SORT reported by Bob Proulx.
28245
28246         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
28247         Define.  Trivial patch from Henning Nielsen Lund, originally
28248         sent to bug-grep@gnu.org today.
28249
28250 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28251
28252         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
28253         struct stat.  Problem reported by Henning Nielsen Lund.
28254         * lib/acl.c: Include acl.h first, to check interface.  Don't
28255         bother to include sys/types.h and sys/stat.h again.
28256
28257 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28258
28259         Import the following change from libc; problem reported by
28260         Sven Verdoolaege.
28261
28262         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
28263
28264         [BZ #1373]
28265         * lib/argp.h: Remove __NTH for __argp_usage inline function.
28266
28267 2006-12-28  Jim Meyering  <jim@meyering.net>
28268
28269         * build-aux/announce-gen: Do not assume that the package
28270         builds any of tar.gz, tar.bz2, and .xdelta files.
28271         Suggestion from Simon Josefsson.
28272
28273 2006-12-28  Simon Josefsson  <simon@josefsson.org>
28274
28275         * modules/announce-gen: New file.
28276
28277 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28278
28279         * lib/mbchar.h: Just include <wctype.h>; the wctype module
28280         handles its gotchas now.
28281         * lib/mbswidth.c: Likewise.
28282         * lib/wcwidth.h: Likewise.
28283         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
28284         and iswcntrl; the wctype module does this stuff now.
28285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28287         * modules/mbchar (Depends-on): Add wctype.
28288         * modules/mbswidth (Depends-on): Likewise.
28289         * modules/wcwidth (Depends-on): Likewise.
28290
28291 2006-12-27  Eric Blake  <ebb9@byu.net>
28292
28293         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
28294         module uses more than what <wctype.h> is required to provide.
28295
28296 2006-12-26  Eric Blake  <ebb9@byu.net>
28297
28298         * gnulib-tool (sed_extract_prog): Avoid space-tab.
28299
28300 2006-12-26  Eric Blake  <ebb9@byu.net>
28301
28302         * modules/absolute-header: New module.
28303         * modules/fcntl (Depends-on): Depend on it.
28304         * modules/inttypes (Depends-on): Likewise.
28305         * modules/stdint (Depends-on): Likewise.
28306         * modules/sys_stat (Depends-on): Likewise.
28307         * modules/wctype (Depends-on): Likewise.
28308         * MODULES.html.sh (Support for building libraries and
28309         executables): Document it.
28310
28311 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28312
28313         * gnulib-tool (SED): Remove, undoing previous change.
28314         The problem was that it broke coreutils on Solaris, because
28315         "sed --posix" leaked into a makefile.
28316         (sed): New alias, if 'alias' and GNU sed.
28317
28318 2006-12-24  Jim Meyering  <jim@meyering.net>
28319
28320         Work around an fchownat bug in glibc-2.4:
28321         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
28322         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
28323         in spite of the -P option.
28324         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
28325         New macros.
28326         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
28327         * modules/openat (Files): Add lib/fchownat.c.
28328         * lib/openat.c (fchownat): Don't define here.  Move to...
28329         * lib/fchownat.c: ...this new file.
28330
28331 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28332
28333         Fix bug reported by Bruno Haible in
28334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
28335         where quotearg.c didn't compile on Mac OS X 10.2 because it
28336         lacks <wchar.h> and wint_t.
28337         * lib/wctype_.h (__wctype_wint_t): New type.
28338         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
28339         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
28340         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
28341         Arg is now of type __wctype_wint_t, not wint_t.
28342         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
28343         substitute HAVE_WINT_T.
28344         * modules/wctype (Files): Add m4/wint_t.m4.
28345         (wctype.h): Substitute HAVE_WINT_T.
28346
28347 2006-12-23  Bruno Haible  <bruno@clisp.org>
28348
28349         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
28350
28351 2006-12-23  Bruno Haible  <bruno@clisp.org>
28352
28353         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
28354         S_ISLNK.
28355         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
28356         mingw.
28357
28358 2006-12-22  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/copy-file.c: Include acl.h.
28361         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
28362         Close the file descriptors only after being done with copy_acl.
28363         * modules/copy-file (Depends-on): Add acl.
28364
28365 2006-12-22  Bruno Haible  <bruno@clisp.org>
28366
28367         * gnulib-tool (SED): New variable.
28368         Use $SED instead of sed everywhere.
28369
28370 2006-12-22  Bruno Haible  <bruno@clisp.org>
28371
28372         * modules/no-c++: New file.
28373         * m4/no-c++.m4: New file.
28374         * MODULES.html.sh (Support for building libraries and executables):
28375         Add no-c++.
28376
28377 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28378
28379         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28380         Include <limits.h>, and use its INT_MAX to rewrite the
28381         j loop so that it does not overflow 'int'.  Problem reported by
28382         Ralf Wildenhues in
28383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
28384         Play it safe by shifting left by 1 rather than multiplying by 2,
28385         as GCC is less likely to optimize this away when the value
28386         is signed (when it assumes overflow leads to undefined behavior).
28387         Also, don't assume time_t uses two's complement.
28388
28389 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         * MODULES.html.sh: New module wctype.
28392         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
28393         * lib/fnmatch.c: Don't bother to include <wchar.h> before
28394         <wctype.h>, since the new wctype module should fix this.
28395         * lib/quotearg.c: Include <wctype.h> unconditionally, since
28396         the wctype module should arrange for it.
28397         * lib/regex_internal.h: Likewise.
28398         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
28399         since the wctype module should handle this now.
28400         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
28401         * modules/fnmatch (Depends-on): Add wctype.
28402         * modules/quotearg (Depends-on): Likewise.
28403         * modules/regex (Depends-on): Likewise.
28404
28405 2006-12-19  Bruno Haible  <bruno@clisp.org>
28406
28407         * lib/strdup.h [C++]: Wrap definitions in extern "C".
28408         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
28409
28410 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28411
28412         * modules/savewd (Depends-on): Fix dependency on fcntl.
28413
28414 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28415
28416         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
28417         conforms to C99, rather than relying on the user's environment
28418         setting of STDINT_H.
28419
28420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28421         and Eric Blake  <ebb9@byu.net>
28422
28423         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
28424         This is more consistent with the other defines here.
28425         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
28426         Port to z/OS.  Problem reported by Paul Gilmartin.
28427         Change local vars to use gl_ prefix rather than ac_.
28428         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
28429         with other defines.
28430         * modules/double-slash-root: New module.
28431         * modules/dirname (Files): Remove m4/double-slash-root.m4.
28432         (Depends-on): Add double-slash-root.
28433         * MODULES.html.sh (File system functions): Mention new module.
28434
28435 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
28436
28437         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
28438         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
28439         This is for the benefit of gzip, which doesn't do i18n.
28440
28441 2006-12-12  Jim Meyering  <jim@meyering.net>
28442
28443         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
28444         Reported by Andreas Schwab <schwab@suse.de>.
28445
28446 2006-12-12  Bruno Haible  <bruno@clisp.org>
28447
28448         Merge these changes.
28449         2006-09-05  Bruno Haible  <bruno@clisp.org>
28450         * lib/iconvme.c (iconv_string): No need to save and restore errno when
28451         iconv_alloc succeeded.
28452         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
28453         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
28454         test for " && dest " at the end - dest is always != NULL there. Call
28455         iconv with 4xNULL arguments initially, to reset the state. Call iconv
28456         with 2xNULL arguments, also to flush the state storage. Handle the
28457         IRIX iconv behaviour. Realloc the final result, to throw away unused
28458         memory.
28459
28460 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
28461
28462         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
28463         and fchmodat unconditionally, since glibc 2.4 has them.
28464         Problem reported by Arkadiusz Miskiewicz.
28465
28466 2006-12-10  Bruno Haible  <bruno@clisp.org>
28467
28468         * gnulib-tool (func_import): Show the include files only for those
28469         modules that are copied and specified.
28470         Reported by Karl Berry.
28471
28472 2006-12-08  Jim Meyering  <jim@meyering.net>
28473
28474         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
28475         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
28476
28477         * build-aux/announce-gen: Add two new options, both optional:
28478         --bootstrap-tools=TOOL_LIST
28479               a comma-separated list of tools, e.g.,
28480               autoconf,automake,bison,gnulib
28481         --gnulib-snapshot-date=DATE
28482               if gnulib is in the bootstrap tool list,
28483               then report this as the snapshot date.
28484               If not specified, use the current date/time.
28485               If you specify a date here, be sure it's UTC.
28486
28487 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28488
28489         * tests/test-argp-2.sh: Fix test to match actual output.
28490         (func_compare): Fix sed script to be portable.
28491
28492 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
28493
28494         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
28495         workaround for this case.  It is not autoconfigured now; offhand
28496         it's hard to see how to autoconfigure it.
28497
28498 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28499
28500         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
28501         a directory that is about to be chowned.  Such a directory's
28502         initial file permissions should permit the owner only and this
28503         should not be changed until after the chown, since the group and
28504         other bits would be incorrect if they granted permission before
28505         the chown.
28506
28507         Fix porting problem for iswctype reported by Georg Schwarz in:
28508         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
28509         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
28510         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
28511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
28512         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28513
28514 2006-12-03  Jim Meyering  <jim@meyering.net>
28515
28516         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
28517         p->fts_statp may not yet be defined.
28518         (fts_read): Instead, set it in the caller, once p->fts_statp is
28519         sure to be defined, and corresponds to a top-level directory.
28520         This bug made du -x fail.  Here's the coreutils test case:
28521         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
28522         Reported by Mike Frysinger.
28523
28524 2006-12-01  Jim Meyering  <jim@meyering.net>
28525
28526         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
28527         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
28528         Reported by Simon Josefsson.
28529
28530 2006-11-30  Jim Meyering  <jim@meyering.net>
28531
28532         * m4/warning.m4: Use the all-permissive copyright notice
28533         recommended by RMS (rather than LGPL).
28534         * m4/vararrays.m4: Likewise.
28535         * m4/flexmember.m4: Likewise.
28536
28537 2006-11-29  Bruno Haible  <bruno@clisp.org>
28538
28539         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28540         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
28541         using +=.
28542         Reported by Simon Josefsson <simon@josefsson.org>.
28543
28544 2006-11-28  James Youngman <jay@gnu.org>
28545
28546         * README: Advise users that they might find the bug-gnulib@gnu.org
28547         and autotools-announce@gnu.org mailing lists useful.
28548
28549 2006-11-28  Bruno Haible  <bruno@clisp.org>
28550
28551         * m4/ptrdiff_max.m4: Remove file.
28552
28553 2006-11-21  Bruno Haible  <bruno@clisp.org>
28554
28555         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
28556         _AC_COMPUTE_INT.
28557         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28558         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
28559         _AC_COMPUTE_INT.
28560         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28561         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
28562         _AC_COMPUTE_INT.
28563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28564
28565 2006-11-28  Jim Meyering  <jim@meyering.net>
28566
28567         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
28568         warning from "gcc -Wshadow" about shadowing the builtin.
28569
28570 2006-11-27  Bruno Haible  <bruno@clisp.org>
28571
28572         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
28573         _AC_COMPUTE_INT.
28574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
28575
28576 2006-11-27  Bruno Haible  <bruno@clisp.org>
28577             Paul Eggert  <eggert@cs.ucla.edu>
28578
28579         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
28580
28581 2006-11-26  Bruno Haible  <bruno@clisp.org>
28582
28583         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
28584         noinst_LTLIBRARIES.
28585
28586 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28587             Bruno Haible  <bruno@clisp.org>
28588
28589         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
28590         if compiling with "gcc -ansi".
28591
28592 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28593
28594         Fix some incompatibilities with gcc -ansi -pedantic.
28595         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
28596         if compiling pedantically with GCC, unless it's C99 or later.
28597         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
28598         it mishandles gcc -ansi -pedantic as well.
28599         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
28600         if gcc -pedantic.
28601         * lib/regexec.c (check_node_accept_bytes): Don't use auto
28602         initializers for struct if -pedantic, unless it's C99 or later.
28603
28604 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
28605
28606         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
28607         Don't close an fd more than once. Identical atimes indicate
28608         success, not failure.
28609
28610 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
28611
28612         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
28613
28614 2006-11-23  Jim Meyering  <jim@meyering.net>
28615
28616         * build-aux/announce-gen: New file.  From coreutils.
28617
28618 2006-11-22  Jim Meyering  <jim@meyering.net>
28619
28620         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
28621         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
28622         (fts_read): Use a temporary to narrow the overused st_size member
28623         before using it in a switch statement.  Reported by Matthew Woehlke.
28624
28625         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
28626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28627
28628 2006-11-20  Bruno Haible  <bruno@clisp.org>
28629
28630         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
28631         changequote instead of pairs of brackets.
28632         Reported by Andreas Schwab <schwab@suse.de>.
28633
28634 2006-11-21  Jim Meyering  <jim@meyering.net>
28635
28636         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
28637         so as to remain compatible with older compilers.
28638         Patch from Michael Deutschmann.
28639
28640 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         * MODULES.html.sh (File system functions): Add openat.
28643
28644         * lib/openat.h (rpl_fstatat): New macro, if
28645         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
28646         (fstatat): Define to rpl_fstatat under the same conditions,
28647         unless COMPILING_FSTATAT.
28648         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
28649         seems to have the bug.
28650         * lib/fstatat.c: New file.
28651         * modules/openat (Files): Add it.
28652
28653 2006-11-20  Bruno Haible  <bruno@clisp.org>
28654
28655         * Makefile: New file.
28656
28657 2006-11-20  Jim Meyering  <jim@meyering.net>
28658
28659         The beginnings of syntax-related checks for gnulib.
28660         * lib/Makefile: New file.
28661         * lib/t-idcache: New script.  Ensure that the two halves of
28662         idcache.c stay in sync.
28663
28664         * lib/idcache.c: Adjust comments in user- and group- portions to
28665         be more accurate, and to be consistent with one another.
28666
28667 2006-11-20  Jim Meyering  <jim@meyering.net>
28668
28669         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
28670         continue using the flexible array member (thus, this module performs
28671         half as many malloc calls), with the addition that...
28672         (getgroup, getuser): Consistently record a non-match via an empty
28673         "name" string, and map an empty string match to a NULL return value.
28674         * modules/idcache (Depends-on): Re-add flexmember.
28675
28676         * lib/idcache.c (getuser): Remove all uses of the register keyword.
28677         (getuidbyname, getgroup, getgidbyname): Likewise.
28678
28679         Use cleaner syntax: NULL rather than 0.
28680         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
28681
28682 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28683
28684         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
28685         It mishandled the case where the group was missing.
28686         Problem reported by Greg Schafer.
28687         * modules/idcache: Likewise.
28688
28689 2006-11-18  Jim Meyering  <jim@meyering.net>
28690
28691         * check-module (%exempt_header): Add exception for some
28692         conditionally-included headers.
28693
28694         * modules/i-ring (Depends-on): Add verify.
28695         (License): Change to LGPL.
28696
28697 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28698
28699         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
28700         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
28701         and inttostr.h.  Use snprintf rather than uinttostr, so that
28702         LGPLed code doesn't depend on GPLed.
28703
28704 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28705
28706         * modules/inline (License): Change from GPL to LGPL.
28707
28708 2006-11-17  Jim Meyering  <jim@meyering.net>
28709
28710         * modules/d-type (License): Switch to LGPL.
28711
28712 2006-11-15  Bruno Haible  <bruno@clisp.org>
28713
28714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
28715
28716 2006-11-15  Eric Blake  <ebb9@byu.net>
28717
28718         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
28719         the module dependency.
28720
28721 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28722             Bruno Haible  <bruno@clisp.org>
28723
28724         * gnulib-tool (func_create_testdir): Add license consistency check.
28725
28726 2006-11-15  Eric Blake  <ebb9@byu.net>
28727
28728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
28729         random "(cached)" in configure output.
28730
28731 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28732
28733         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
28734         test for conforming inttypes.h is both announced and cached.
28735
28736         * MODULES.html.sh (seen_modules, seen_files): New variables.
28737         (func_module): Rewrite to use a few less gnulib-tool and sed
28738         invocations.  Avoid a couple of quadratic algorithms for ...
28739         (missed_modules, missed_files): ... these, with ...
28740         (func_append, func_tmpdir): ... these new functions, from
28741         gnulib-tool.  Analogously, install traps for cleanup.
28742
28743         * tests/test-gc.c (main): Remove unused variables.
28744         * tests/test-read-file.c: Include stdlib.h, for 'free'.
28745
28746 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28747
28748         * modules/inttostr (License): Change to LGPL.
28749
28750 2006-11-14  Eric Blake  <ebb9@byu.net>
28751
28752         * modules/tempname (License): Change to LGPL.
28753
28754 2006-11-14  Eric Blake  <ebb9@byu.net>
28755
28756         * doc/functions.texi (Function Portability): *printf functions on
28757         Cygwin now understand all POSIX size specifiers.
28758
28759 2006-11-14  Bruno Haible  <bruno@clisp.org>
28760
28761         * modules/c-ctype (License): Change to LGPL.
28762
28763 2006-11-12  Bruno Haible  <bruno@clisp.org>
28764
28765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28766         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
28767         for GNOME libraries, for which the include files are installed in
28768         subdirectories of $prefix/include.
28769
28770 2006-11-12  Bruno Haible  <bruno@clisp.org>
28771
28772         * m4/lib-link.m4: Require at least autoconf-2.54.
28773         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
28774         name to underscores for the --with option.
28775
28776 2006-11-13  Bruno Haible  <bruno@clisp.org>
28777
28778         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
28779         the tests directory.
28780         Reported by Ralf Wildenhues.
28781
28782 2006-11-13  Bruno Haible  <bruno@clisp.org>
28783
28784         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
28785         (func_emit_initmacro_end): Undo the override here.
28786         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
28787         Works around the famous automake error in coreutils.
28788
28789 2006-11-13  Eric Blake  <ebb9@byu.net>
28790
28791         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
28792         element, not its node.
28793
28794 2006-11-12  Bruno Haible  <bruno@clisp.org>
28795
28796         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
28797         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
28798
28799 2006-11-12  Bruno Haible  <bruno@clisp.org>
28800
28801         * gnulib-tool: New option --local-symlink.
28802         (func_usage): Document it.
28803         (lsymbolic): New variable.
28804         (func_import, func_create_testdir): If --symlink was not specified,
28805         test whether --local-symlink was specified and the file comes from
28806         the local_gnulib_dir.
28807
28808 2006-11-12  Bruno Haible  <bruno@clisp.org>
28809
28810         * gnulib-tool (func_ln): New function.
28811         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
28812
28813 2006-11-12  Bruno Haible  <bruno@clisp.org>
28814
28815         Finish support for source files in subdirectories.
28816         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
28817         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
28818         AUTOMAKE_OPTIONS.
28819         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
28820
28821 2006-11-12  Bruno Haible  <bruno@clisp.org>
28822
28823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
28824         EXTRA_lib_SOURCES augmentation.
28825         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
28826
28827 2006-11-12  Jim Meyering  <jim@meyering.net>
28828
28829         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
28830         file descriptors.  This also averts a failure on systems with
28831         native openat support when a traversed directory lacks "x" access.
28832         * lib/fts_.h: Include "i-ring.h"
28833         (struct FTS) [fts_fd_ring]: New member.
28834         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
28835         (FCHDIR): Add parentheses.
28836         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
28837         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
28838         When descending, rather than simply closing the previous
28839         fts_cwd_fd value, push that file descriptor onto the ring.
28840         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
28841         (fts_open): Initialize the new fd_ring member.
28842         (fts_close): Clear the ring.
28843         (fts_safe_changedir): When possible, use our new fd_ring to skip
28844         the diropen and fstat and dev/ino comparison that would normally
28845         accompany a virtual `chdir ("..")'.
28846
28847         * modules/fts (Depends-on): Add i-ring.
28848         * modules/i-ring: New module.
28849         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
28850         * m4/i-ring.m4: New file.
28851
28852 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28853
28854         * gnulib-tool (func_create_testdir): Fix replacement of
28855         `build-aux' in configure.ac.  Run autotools in gltests
28856         subdirectory.
28857         (func_create_testdir, func_create_megatestdir, test): There is
28858         no need for '--force' in most autotool invocations in a new
28859         tree.  Actually fail the whole test if any of the tools, or the
28860         configure or make stages fail.
28861
28862         Sync from Automake.
28863         * build-aux/gnupload: Revert last change.  Add pointer to upload
28864         instructions of the GNU Maintenance Instructions.
28865         Suggestion by Karl Berry.
28866
28867 2006-11-10  Jim Meyering  <jim@meyering.net>
28868
28869         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
28870
28871 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
28874         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
28875         (bind_textdomain_codeset) [! ENABLE_NLS]:
28876         Evaluate all the arguments.  That way, callers get compatible behavior
28877         if the arguments have side effects.  Also, it avoids some GCC
28878         diagnostics in some cases; Joel E. Denny reported problems when Bison
28879         was configured with --enable-gcc-warnigs.
28880
28881 2006-11-10  Jim Meyering  <jim@meyering.net>
28882
28883         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
28884         relevant options in CFLAGS (like -O, -fno-inline) are taken into
28885         account.
28886
28887 2006-11-10  Jim Meyering  <jim@meyering.net>
28888
28889         * modules/inline: New file/module.
28890         * modules/xalloc (Files): Remove m4/inline.m4.
28891         (Depends-on): Add inline, instead.
28892         * modules/oset: Likewise.
28893         * modules/list: Likewise.
28894
28895 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28896
28897         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
28898         Problem reported by Matthew Woehlke.
28899
28900 2006-11-09  Bruno Haible  <bruno@clisp.org>
28901
28902         * lib/tempname.c (gen_tempname): Remove variant that invokes
28903         __gen_tempname.
28904         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
28905         __gen_tempname.
28906
28907 2006-11-08  Bruno Haible  <bruno@clisp.org>
28908
28909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
28910         to 'yes' instead of 'cross-compiling'.
28911
28912 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28913
28914         * lib/quotearg.h (quotearg_free): New decl.
28915         * lib/quotearg.c (quotearg_free): New function.
28916         (slot0, nslots, slotvec0, slotvec):
28917         Now file-scope so that quotearg_free can get at them.
28918
28919 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28920
28921         Sync from Automake.
28922         * build-aux/gnupload: Add missing 'gnu' to example URL.
28923         Report by Karl Berry.
28924
28925 2006-11-08  Bruno Haible  <bruno@clisp.org>
28926
28927         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
28928         Suggested by Paul Eggert.
28929
28930 2006-11-08  Jim Meyering  <jim@meyering.net>
28931
28932         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
28933         It's already included if !_LIBC.
28934         (fts_safe_changedir): Add a comment.
28935
28936 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28937
28938         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
28939         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
28940         Matthew Woehlke.
28941
28942         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
28943         definitions up, to avoid colliding with change below.
28944         (static_inline) [HAVE_INLINE]: New macro.
28945         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
28946         Provide extern decls when !HAVE_INLINE.  Do not define unless
28947         static_inline is defined, either by us or by xmalloc.c.  Use
28948         static_inline rather than static inline.
28949         (XCALLOC): Optimize sizeof(T) = 1 case.
28950         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
28951
28952 2006-11-07  Bruno Haible  <bruno@clisp.org>
28953
28954         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
28955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
28956         AC_C_INLINE.
28957         * modules/xalloc (Files): Add m4/inline.m4.
28958
28959 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28960
28961         * README: Fix typo.
28962         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
28963         (Miscellanous Notes): ...from this.
28964
28965 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28966
28967         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28968         Mention that offsetof should be used instead of sizeof.
28969         From Bruno Haible.
28970
28971 2006-11-07  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
28974
28975 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28976
28977         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
28978         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
28979         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
28980         (gl_tree_add_before, gl_tree_add_after):
28981         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
28982         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
28983         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
28984         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
28985         (gl_linked_add_after, gl_linked_add_at): Likewise.
28986         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
28987         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
28988         (gl_tree_add_before, gl_tree_add_after): Likewise.
28989         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
28990         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
28991         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28992
28993 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28994
28995         * lib/gl_oset.h: Use C comment style, not C++ comment style.
28996
28997 2006-11-06  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/inline.m4: New file.
29000         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
29001         * modules/list (Files): Add m4/inline.m4.
29002         * modules/oset (Files): Likewise.
29003
29004 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         * lib/idcache.c: Include <stddef.h>, for offsetof.
29007         (struct userid.name): Change from char * to a flexible array member.
29008         All uses changed.
29009         * modules/idcache (Depends-on): Add flexmember.
29010
29011         * MODULES.html.sh (Core language properties): New module flexmember.
29012         * modules/flexmember, m4/flexmember.m4: New files.
29013
29014         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
29015         inline functions that are identical with the old xnmalloc_inline,
29016         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
29017         that we can avoid some unnecessary integer multiplications and
29018         divisions in the common case where the element size is known at
29019         compile time.
29020         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
29021         needed.
29022         (xnboundedmalloc): Remove.
29023         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
29024         arguments, for consistency with rest of this header.
29025         (xcharalloc): Rewrite using XNMALLOC.
29026         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
29027         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
29028         versions have been moved to lib/xalloc.h and renamed to be the
29029         non-*_inline versions.
29030         (xmalloc, xrealloc): Implement without reference to the xnmalloc
29031         and xnrealloc functions, since those functions are now inline and
29032         now call us.
29033         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
29034         renaming described above.
29035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
29036         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
29037         captures the dependency in AC_C_INLINE.
29038
29039         New module canonicalize-lgpl, proposed by Charles Wilson in
29040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
29041         with a few small changes afterwards.
29042         * MODULES.html.sh (File system functions): New module
29043         canonicalize-lgpl.
29044         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
29045         and canonicalize_file_name.
29046         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
29047         * modules/canonicalize-lgpl: New files.
29048
29049 2006-11-05  Bruno Haible  <bruno@clisp.org>
29050
29051         * gnulib-tool (func_import, func_create_testdir): Create directories
29052         also for files in subdirectories of lib/.
29053
29054 2006-11-05  Bruno Haible  <bruno@clisp.org>
29055
29056         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
29057         ANSI C compliant.
29058
29059 2006-11-03  Bruno Haible  <bruno@clisp.org>
29060
29061         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
29063         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
29064         (xnboundedmalloc): New inline function.
29065         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
29066         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
29067         xmalloc.
29068         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
29069         xmalloc.
29070         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
29071         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
29072         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
29073         xmalloc.
29074         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29075         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
29076         xmalloc.
29077         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
29078         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29079         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
29080         xmalloc.
29081         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29082         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
29083         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29084         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
29085         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
29086         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
29087         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
29088
29089 2006-11-03  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/c-ctype.h [C++]: Define functions without name mangling.
29092         * lib/fwriteerror.h [C++]: Likewise.
29093         * lib/gcd.h [C++]: Likewise.
29094         * lib/linebreak.h [C++]: Likewise.
29095
29096 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29097
29098         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
29099         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
29100         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
29101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29102         Check for functions and headers just once.
29103         Check for declaration of canonicalize_file_name.
29104         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
29105
29106 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29107
29108         * gnulib-tool (func_import): Fix typo in actioncmd.
29109
29110 2006-11-02  Bruno Haible  <bruno@clisp.org>
29111
29112         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
29113         newline sequence in the Makefile.am snippet as a space, like "make"
29114         does.
29115         Reported by Roger Persson <perrog@gmail.com>.
29116
29117 2006-11-01  Bruno Haible  <bruno@clisp.org>
29118
29119         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
29120         already declared in <string.h>.
29121         * lib/strcase.h (strncasecmp): Don't declare it if yes.
29122
29123 2006-11-01  Bruno Haible  <bruno@clisp.org>
29124
29125         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
29126         * lib/strcase.h: Include <string.h>.
29127         (strcasecmp): Define to rpl_strcasecmp here.
29128
29129 2006-11-01  Bruno Haible  <bruno@clisp.org>
29130
29131         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
29132
29133 2006-11-01  Eric Blake  <ebb9@byu.net>
29134
29135         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
29136
29137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
29138
29139 2006-10-29  Bruno Haible  <bruno@clisp.org>
29140
29141         Make it compile in C++ mode.
29142         * lib/full-write.c (full_rw): Add a cast.
29143
29144 2006-11-01  Bruno Haible  <bruno@clisp.org>
29145
29146         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
29147         be POSIX compliant.
29148         Reported by Roger Persson <perrog@gmail.com>.
29149
29150 2006-11-01  Eric Blake  <ebb9@byu.net>
29151
29152         * lib/getopt_.h: Fix comments.
29153
29154 2006-10-31  Eric Blake  <ebb9@byu.net>
29155
29156         * modules/tmpdir (Depends-on): Add sys_stat.
29157         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
29158         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
29159         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
29160         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29161         tempname.
29162
29163 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29164
29165         Avoid some C++ diagnostics reported by Bruno Haible.
29166         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
29167         xmalloc.
29168         (quotearg_alloc): Use xcharalloc rather than xmalloc.
29169         (struct slotvec): Move to top level.
29170         (quotearg_n_options): Rewrite to avoid xmalloc.
29171         * lib/xalloc.h (xcharalloc): New function.
29172         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
29173         [defined __cplusplus]: Add function template that provides result
29174         type propagation.  This part of the change is from Bruno Haible.
29175
29176 2006-10-29  Bruno Haible  <bruno@clisp.org>
29177
29178         Make it compile in C++ mode.
29179         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
29180         * lib/strnlen1.c (strnlen1): Cast memchr result.
29181         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
29182         * lib/clean-temp.c (string_equals, string_hash): Add casts.
29183         (create_temp_dir): Rename local variable 'template'.
29184         (compile_csharp_using_sscli): Add cast.
29185         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
29186         * lib/findprog.c (find_in_path): Likewise.
29187         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
29188         * lib/wait-process.c (register_slave_subprocess): Likewise.
29189
29190 2006-10-22  Bruno Haible  <bruno@clisp.org>
29191
29192         * modules/tsearch: New file.
29193         * lib/tsearch.h: New file.
29194         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
29195         * m4/tsearch.m4: New file.
29196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
29197
29198 2006-10-29  Eric Blake  <ebb9@byu.net>
29199
29200         * lib/arcfour.c: Assume config.h.
29201         * lib/arctwo.c: Likewise.
29202         * lib/base64.c: Likewise.
29203         * lib/check-version.c: Likewise.
29204         * lib/crc.c: Likewise.
29205         * lib/des.c: Likewise.
29206         * lib/gc-gnulib.c: Likewise.
29207         * lib/gc-libgcrypt.c: Likewise.
29208         * lib/gc-pbkdf2-sha1.c: Likewise.
29209         * lib/getaddrinfo.c: Likewise.
29210         * lib/getdelim.c: Likewise.
29211         * lib/getline.c: Likewise.
29212         * lib/hmac-md5.c: Likewise.
29213         * lib/hmac-sha1.c: Likewise.
29214         * lib/iconvme.c: Likewise.
29215         * lib/md2.c: Likewise.
29216         * lib/md4.c: Likewise.
29217         * lib/memxor.c: Likewise.
29218         * lib/read-file.c: Likewise.
29219         * lib/readline.c: Likewise.
29220         * lib/rijndael-alg-fst.c: Likewise.
29221         * lib/rijndael-api-fst.c: Likewise.
29222         * lib/xgetdomainname.c: Likewise.
29223
29224 2006-10-28  Eric Blake  <ebb9@byu.net>
29225
29226         * lib/xstrndup.c: Assume config.h.
29227
29228 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29229
29230         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
29231         stat-macros.h is now for our own macros, whereas stat_h is for
29232         macros in the <sys/stat.h> name space.
29233         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
29234         (STAT_MACROS_H): Remove.
29235         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
29236         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
29237         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
29238         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
29239         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
29240         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
29241         Move these macros to ...
29242         * lib/stat_.h: here.  Don't include stat-macros.h.
29243         * lib/canonicalize.c: Don't include stat-macros.h.
29244         * lib/chown.c: Likewise.
29245         * lib/euidaccess.c: Likewise.
29246         * lib/file-type.c: Likewise.
29247         * lib/filemode.c: Likewise.
29248         * lib/glob.c: Likewise.
29249         * lib/isapipe.c: Likewise.
29250         * lib/lchown.c: Likewise.
29251         * lib/lstat.c: Likewise.
29252         * lib/mkdir-p.c: Likewise.
29253         * lib/rmdir.c: Likewise.
29254         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
29255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29256         unless mkdir isn't declared, to speed up 'configure'.
29257         Always create sys/stat.h, since it's unlikely any real sys/stat.h
29258         would define all the S_* symbols.
29259         * modules/canonicalize (Depends-on):
29260         Depend on sys_stat, not stat-macros.
29261         * modules/chown: Likewise.
29262         * modules/euidaccess: Likewise.
29263         * modules/filemode: Likewise.
29264         * modules/file-type: Likewise.
29265         * modules/glob: Likewise.
29266         * modules/isapipe: Likewise.
29267         * modules/lchown: Likewise.
29268         * modules/lstat: Likewise.
29269         * modules/mkancesdirs: Likewise.
29270         * modules/rmdir: Likewise.
29271         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
29272         * modules/modechange: Likewise.
29273         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
29274         (configure.ac): Remove gl_STAT_MACROS.
29275         * modules/sys_stat (Depends-on): Remove stat-macros.
29276
29277 2006-10-27  Bruno Haible  <bruno@clisp.org>
29278
29279         * m4/signed.m4: Remove file.
29280         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
29281         invocation.
29282         * modules/vasnprintf (Files): Remove m4/signed.m4.
29283
29284 2006-10-27  Bruno Haible  <bruno@clisp.org>
29285
29286         Update to GNU gettext 0.16.
29287         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
29288         m4/inttypes-h.m4, m4/signed.m4.
29289         * m4/gettext.m4: Update to GNU gettext 0.16.
29290         * m4/intl.m4: New file, from GNU gettext.
29291         * m4/intldir.m4: New file, from GNU gettext.
29292         * config/srclist.txt: Update
29293
29294 2006-10-27  Eric Blake  <ebb9@byu.net>
29295
29296         * MODULES.html.sh: Document tempname.
29297         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
29298         dependencies.
29299         (Files): Move lib/tempname.c...
29300         * modules/tempname: ...to this new module.
29301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
29302         (gl_PREREQ_TEMPNAME): Move...
29303         * m4/tempname.m4: ...to this new file.
29304         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
29305         * modules/sys_stat (Depends-on): Add stat-macros.
29306         * lib/stat_.h (includes): Pick up stat macros.
29307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
29308         if stat macros are broken.
29309         * lib/tempname.c (includes): No need to include "stat-macros.h".
29310         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
29311         (direxists, __path_search) [!_LIBC]: Don't compile these in
29312         gnulib; the tmpdir module covers that.
29313         * lib/tempname.h: New file.
29314
29315 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29316
29317         * COPYING: Explain how gnulib-tool converts licence headers.
29318         Almost all wording by Eric Blake.
29319
29320 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         * lib/mbchar.h (is_basic_table): Make read-only.
29323         * lib/mbchar.c (is_basic_table): Likewise.
29324         Reported by John Darrington.
29325
29326 2006-10-25  Bruno Haible  <bruno@clisp.org>
29327
29328         * lib/progname.h (set_program_name): Undefine before defining.
29329
29330 2006-10-25  Bruno Haible  <bruno@clisp.org>
29331
29332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
29333         false for non-gcc C++ compilers.
29334         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29335
29336 2006-10-24  Bruno Haible  <bruno@clisp.org>
29337
29338         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
29339         iconv implementations like Irix iconv.
29340
29341 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29342
29343         * modules/vararrays: New file.
29344         * m4/vararrays.m4: New file, taken from diffutils.
29345         * MODULES.html.sh: New module vararrays.
29346
29347 2006-10-24  Karl Berry  <karl@gnu.org>
29348
29349         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
29350         Don't call GNU Unix.
29351
29352 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29353
29354         * users.txt: Add Libtool.
29355
29356         Sync from Libtool:
29357
29358         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29359
29360         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
29361         to gnulib's policy of including config.h unconditionally.
29362
29363 2006-10-24  Bruno Haible  <bruno@clisp.org>
29364
29365         * modules/wcwidth (Files): Add m4/wint_t.m4.
29366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
29367         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
29368
29369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29370
29371         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
29372         to pacify GCC with some -W flags enabled.  Problem reported by
29373         Bruno Haible.
29374
29375 2006-10-24  Jim Meyering  <jim@meyering.net>
29376
29377         * MODULES.html.sh: Remove uinttostr.  It's not a module.
29378         Reported by Karl Berry.
29379
29380 2006-10-23  Bruno Haible  <bruno@clisp.org>
29381
29382         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
29383
29384 2006-10-24  Bruno Haible  <bruno@clisp.org>
29385
29386         * lib/gl_list.h: Use C comment style, not C++ comment style.
29387
29388 2006-10-23  Eric Blake  <ebb9@byu.net>
29389
29390         * lib/getaddrinfo.c (includes): Add missing include.
29391
29392 2006-10-23  Bruno Haible  <bruno@clisp.org>
29393             Paul Eggert  <eggert@cs.ucla.edu>
29394
29395         Ability to rename obstack_free.
29396         * lib/obstack.h (__obstack_free): New macro. Declare instead of
29397         obstack_free.
29398         (obstack_free): Invoke the __obstack_free macro.
29399         * lib/obstack.c (obstack_free): Use __obstack_free macro.
29400
29401 2006-10-23  Bruno Haible  <bruno@clisp.org>
29402             Paul Eggert  <eggert@cs.ucla.edu>
29403
29404         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
29405         __argc, __argv from the declaration. (They are defined as macros on
29406         mingw.)
29407
29408 2006-10-22  Bruno Haible  <bruno@clisp.org>
29409
29410         * doc/gnulib-intro.texi: New file.
29411         * doc/gnulib.texi: Include it.
29412
29413 2006-10-21  Bruno Haible  <bruno@clisp.org>
29414
29415         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
29416         "Introduction", "Miscellanous Notes", "Particular Modules".
29417
29418 2006-10-21  Bruno Haible  <bruno@clisp.org>
29419
29420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29421         Change mostlyclean-local rule to avoid sh syntax error from bash
29422         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
29423
29424 2006-10-23  Jim Meyering  <jim@meyering.net>
29425
29426         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
29427         in place of snprintf.
29428
29429         * modules/inttostr (Files): Add lib/uinttostr.c.
29430         * lib/uinttostr.c (inttostr): New file/function.
29431         * lib/inttostr.h (uinttostr): Declare.
29432         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
29433         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
29434         Add uinttostr.
29435         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
29436
29437 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         * lib/canonicalize.c (ELOOP): Define if not already defined.
29440         Problem reported by Bruno Haible in
29441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
29442
29443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
29446         Problem reported by Perry Smith and Ville Laurikari.
29447
29448         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
29449         uses.
29450
29451 2006-10-19  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
29454         for mingw.
29455
29456 2006-10-19  Bruno Haible  <bruno@clisp.org>
29457
29458         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
29459         Needed for mingw.
29460
29461 2006-10-19  Bruno Haible  <bruno@clisp.org>
29462
29463         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
29464
29465 2006-10-19  Bruno Haible  <bruno@clisp.org>
29466
29467         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
29468         it.
29469
29470 2006-10-19  Bruno Haible  <bruno@clisp.org>
29471
29472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
29473         invocation.
29474
29475 2006-10-19  Bruno Haible  <bruno@clisp.org>
29476
29477         * gnulib-tool (func_create_testdir): Don't include ftruncate and
29478         mountlist by default.
29479
29480 2006-10-16  Bruno Haible  <bruno@clisp.org>
29481
29482         * lib/c-strstr.c: Include c-strstr.h.
29483
29484 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29485
29486         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
29487         in a slash.
29488
29489 2006-10-18  Bruno Haible  <bruno@clisp.org>
29490
29491         * lib/lock.h [C++]: Wrap definitions in extern "C".
29492
29493 2006-10-18  Bruno Haible  <bruno@clisp.org>
29494
29495         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
29496         gl_LIBOBJS list.
29497
29498 2006-10-18  Bruno Haible  <bruno@clisp.org>
29499
29500         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
29501
29502 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
29503
29504         * lib/xstrtol.h: Include gettext.h.
29505         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
29506         Problem reported by Eric Blake.
29507         * modules/xstrtol (Depends-on): Add gettext-h.
29508
29509 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
29510
29511         * lib/strftime.c (advance): New macro.
29512         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
29513         incomplete type, so you can't add 0 to it.  Problem and patch
29514         reported by Eelco Dolstra for dietlibc.
29515
29516 2006-10-18  Jim Meyering  <jim@meyering.net>
29517
29518         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
29519         type for a local, and rename it: s/up/user_proc/.
29520
29521 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29522
29523         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
29524         READ_UTMP_USER_PROCESS.
29525         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
29526
29527 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29528
29529         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
29530         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
29531
29532 2006-10-17  Eric Blake  <ebb9@byu.net>
29533
29534         * lib/sigprocmask.c (sigprocmask): Fix typo.
29535
29536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
29537
29538         * modules/clean-temp (Makefile.am): Don't add to make output...
29539         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
29540         config.h.
29541
29542 2006-10-17  Bruno Haible  <bruno@clisp.org>
29543
29544         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
29545         differently if DEFAULT_TEXT_DOMAIN is set.
29546
29547 2006-10-16  Bruno Haible  <bruno@clisp.org>
29548
29549         * lib/clean-temp.c: Include fwriteerror.h.
29550
29551 2006-10-16  Bruno Haible  <bruno@clisp.org>
29552
29553         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
29554
29555 2006-10-16  Bruno Haible  <bruno@clisp.org>
29556
29557         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
29558         * lib/sigprocmask.h: Include <sys/types.h>.
29559         (sigset_t): Use the system's definition if present.
29560
29561 2006-10-17  Eric Blake  <ebb9@byu.net>
29562
29563         * lib/xvasprintf.c (includes): Assume config.h.
29564         * lib/xasprintf.c (includes): Likewise.
29565
29566 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29567
29568         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
29569         at least as wide as intmax_t.
29570
29571 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
29572
29573         (Imported from Automake.)
29574         * build-aux/gnupload: Update to version 1.1 of directive file.
29575
29576 2006-10-16  Eric Blake  <ebb9@byu.net>
29577
29578         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
29579         match Automake 1.10a.
29580
29581 2006-10-14  Bruno Haible  <bruno@clisp.org>
29582
29583         * modules/sigprocmask: New file.
29584         * lib/sigprocmask.h: New file.
29585         * lib/sigprocmask.c: New file.
29586         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
29587         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
29588         request sigprocmask.o.
29589         (gl_PREREQ_SIGPROCMASK): New macro.
29590         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
29591         (Depends-on): Add sigprocmask.
29592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
29593         gt_SIGNALBLOCKING. Test for 'raise' only once.
29594         * lib/fatal-signal.c: Include sigprocmask.h.
29595         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
29596         unblock_fatal_signals): Define always.
29597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29598         sigprocmask.
29599
29600 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29601
29602         Sync from Automake.
29603         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
29604         which incorrectly sets the mode of an existing destination
29605         directory.  In some cases the unpatched install-sh could do the
29606         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
29607         system.  We hope this is rare in practice, but it's clearly worth
29608         fixing.  Problem reported by Alex Unleashed in
29609         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
29610         Also, don't bother to check for -m bugs unless we're using -m;
29611         suggested by Stepan Kasal.
29612
29613 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29614
29615         Sync from Automake.
29616         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
29617         `-c' flag, so they appear at the same position as in %FASTDEP%
29618         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
29619         which ignores unknown options only after the first non-option.
29620         Bug report against M4 by Nelson H. F. Beebe.
29621
29622 2006-10-13  Jim Meyering  <jim@meyering.net>
29623
29624         Fix a bug in yesterday's change.
29625         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
29626         p->fts_statp->st_dev would be used uninitialized.
29627         Ensures that we always call fts_stat on the very first entry.
29628         Miklos Szeredi reported that find -xdev stopped working.
29629
29630 2006-10-12  Bruno Haible  <bruno@clisp.org>
29631
29632         * gnulib-tool (func_get_automake_snippet): Append an automatically
29633         computed EXTRA_DIST augmentation.
29634         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
29635         * modules/alloca-opt (Makefile.am): Likewise.
29636         * modules/allocsa (Makefile.am): Likewise.
29637         * modules/arcfour (Makefile.am): Likewise.
29638         * modules/arctwo (Makefile.am): Likewise.
29639         * modules/argmatch (Makefile.am): Likewise.
29640         * modules/argz (Makefile.am): Likewise.
29641         * modules/atexit (Makefile.am): Likewise.
29642         * modules/backupfile (Makefile.am): Likewise.
29643         * modules/byteswap (Makefile.am): Likewise.
29644         * modules/c-strtod (Makefile.am): Likewise.
29645         * modules/c-strtold (Makefile.am): Likewise.
29646         * modules/calloc (Makefile.am): Likewise.
29647         * modules/canon-host (Makefile.am): Likewise.
29648         * modules/canonicalize (Makefile.am): Likewise.
29649         * modules/chdir-long (Makefile.am): Likewise.
29650         * modules/chdir-safer (Makefile.am): Likewise.
29651         * modules/check-version (Makefile.am): Likewise.
29652         * modules/chown (Makefile.am): Likewise.
29653         * modules/cloexec (Makefile.am): Likewise.
29654         * modules/close-stream (Makefile.am): Likewise.
29655         * modules/closeout (Makefile.am): Likewise.
29656         * modules/crc (Makefile.am): Likewise.
29657         * modules/csharpexec (Makefile.am): Likewise.
29658         * modules/cycle-check (Makefile.am): Likewise.
29659         * modules/des (Makefile.am): Likewise.
29660         * modules/dev-ino (Makefile.am): Likewise.
29661         * modules/dirfd (Makefile.am): Likewise.
29662         * modules/dirname (Makefile.am): Likewise.
29663         * modules/dup2 (Makefile.am): Likewise.
29664         * modules/eealloc (Makefile.am): Likewise.
29665         * modules/error (Makefile.am): Likewise.
29666         * modules/euidaccess (Makefile.am): Likewise.
29667         * modules/exclude (Makefile.am): Likewise.
29668         * modules/exitfail (Makefile.am): Likewise.
29669         * modules/fcntl-safer (Makefile.am): Likewise.
29670         * modules/fcntl (Makefile.am): Likewise.
29671         * modules/file-type (Makefile.am): Likewise.
29672         * modules/fileblocks (Makefile.am): Likewise.
29673         * modules/filemode (Makefile.am): Likewise.
29674         * modules/filenamecat (Makefile.am): Likewise.
29675         * modules/fnmatch (Makefile.am): Likewise.
29676         * modules/fopen-safer (Makefile.am): Likewise.
29677         * modules/fpending (Makefile.am): Likewise.
29678         * modules/fprintftime (Makefile.am): Likewise.
29679         * modules/free (Makefile.am): Likewise.
29680         * modules/fsusage (Makefile.am): Likewise.
29681         * modules/ftruncate (Makefile.am): Likewise.
29682         * modules/fts (Makefile.am): Likewise.
29683         * modules/gc-arcfour (Makefile.am): Likewise.
29684         * modules/gc-des (Makefile.am): Likewise.
29685         * modules/gc-hmac-md5 (Makefile.am): Likewise.
29686         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
29687         * modules/gc-md4 (Makefile.am): Likewise.
29688         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
29689         * modules/gc-sha1 (Makefile.am): Likewise.
29690         * modules/gc (Makefile.am): Likewise.
29691         * modules/getaddrinfo (Makefile.am): Likewise.
29692         * modules/getcwd (Makefile.am): Likewise.
29693         * modules/getdelim (Makefile.am): Likewise.
29694         * modules/getdomainname (Makefile.am): Likewise.
29695         * modules/getgroups (Makefile.am): Likewise.
29696         * modules/gethostname (Makefile.am): Likewise.
29697         * modules/gethrxtime (Makefile.am): Likewise.
29698         * modules/getline (Makefile.am): Likewise.
29699         * modules/getloadavg (Makefile.am): Likewise.
29700         * modules/getlogin_r (Makefile.am): Likewise.
29701         * modules/getndelim2 (Makefile.am): Likewise.
29702         * modules/getopt (Makefile.am): Likewise.
29703         * modules/getpagesize (Makefile.am): Likewise.
29704         * modules/getpass-gnu (Makefile.am): Likewise.
29705         * modules/getpass (Makefile.am): Likewise.
29706         * modules/getsubopt (Makefile.am): Likewise.
29707         * modules/gettime (Makefile.am): Likewise.
29708         * modules/gettimeofday (Makefile.am): Likewise.
29709         * modules/getugroups (Makefile.am): Likewise.
29710         * modules/getusershell (Makefile.am): Likewise.
29711         * modules/glob (Makefile.am): Likewise.
29712         * modules/group-member (Makefile.am): Likewise.
29713         * modules/hard-locale (Makefile.am): Likewise.
29714         * modules/hash (Makefile.am): Likewise.
29715         * modules/hmac-md5 (Makefile.am): Likewise.
29716         * modules/hmac-sha1 (Makefile.am): Likewise.
29717         * modules/human (Makefile.am): Likewise.
29718         * modules/idcache (Makefile.am): Likewise.
29719         * modules/imaxabs (Makefile.am): Likewise.
29720         * modules/imaxdiv (Makefile.am): Likewise.
29721         * modules/inet_ntop (Makefile.am): Likewise.
29722         * modules/inet_pton (Makefile.am): Likewise.
29723         * modules/intprops (Makefile.am): Likewise.
29724         * modules/inttostr (Makefile.am): Likewise.
29725         * modules/inttypes (Makefile.am): Likewise.
29726         * modules/isapipe (Makefile.am): Likewise.
29727         * modules/javaversion (Makefile.am): Likewise.
29728         * modules/lchmod (Makefile.am): Likewise.
29729         * modules/lchown (Makefile.am): Likewise.
29730         * modules/localcharset (Makefile.am): Likewise.
29731         * modules/long-options (Makefile.am): Likewise.
29732         * modules/lstat (Makefile.am): Likewise.
29733         * modules/malloc (Makefile.am): Likewise.
29734         * modules/mathl (Makefile.am): Likewise.
29735         * modules/mbchar (Makefile.am): Likewise.
29736         * modules/md2 (Makefile.am): Likewise.
29737         * modules/md4 (Makefile.am): Likewise.
29738         * modules/md5 (Makefile.am): Likewise.
29739         * modules/memcasecmp (Makefile.am): Likewise.
29740         * modules/memchr (Makefile.am): Likewise.
29741         * modules/memcmp (Makefile.am): Likewise.
29742         * modules/memcoll (Makefile.am): Likewise.
29743         * modules/memcpy (Makefile.am): Likewise.
29744         * modules/memmem (Makefile.am): Likewise.
29745         * modules/memmove (Makefile.am): Likewise.
29746         * modules/mempcpy (Makefile.am): Likewise.
29747         * modules/memrchr (Makefile.am): Likewise.
29748         * modules/memset (Makefile.am): Likewise.
29749         * modules/memxor (Makefile.am): Likewise.
29750         * modules/mkancesdirs (Makefile.am): Likewise.
29751         * modules/mkdir-p (Makefile.am): Likewise.
29752         * modules/mkdir (Makefile.am): Likewise.
29753         * modules/mkdtemp (Makefile.am): Likewise.
29754         * modules/mkstemp (Makefile.am): Likewise.
29755         * modules/mktime (Makefile.am): Likewise.
29756         * modules/modechange (Makefile.am): Likewise.
29757         * modules/mountlist (Makefile.am): Likewise.
29758         * modules/nanosleep (Makefile.am): Likewise.
29759         * modules/obstack (Makefile.am): Likewise.
29760         * modules/openat (Makefile.am): Likewise.
29761         * modules/pagealign_alloc (Makefile.am): Likewise.
29762         * modules/pathmax (Makefile.am): Likewise.
29763         * modules/physmem (Makefile.am): Likewise.
29764         * modules/poll (Makefile.am): Likewise.
29765         * modules/posixtm (Makefile.am): Likewise.
29766         * modules/posixver (Makefile.am): Likewise.
29767         * modules/putenv (Makefile.am): Likewise.
29768         * modules/quote (Makefile.am): Likewise.
29769         * modules/quotearg (Makefile.am): Likewise.
29770         * modules/raise (Makefile.am): Likewise.
29771         * modules/read-file (Makefile.am): Likewise.
29772         * modules/readline (Makefile.am): Likewise.
29773         * modules/readlink (Makefile.am): Likewise.
29774         * modules/readtokens (Makefile.am): Likewise.
29775         * modules/readutmp (Makefile.am): Likewise.
29776         * modules/realloc (Makefile.am): Likewise.
29777         * modules/regex (Makefile.am): Likewise.
29778         * modules/rename-dest-slash (Makefile.am): Likewise.
29779         * modules/rename (Makefile.am): Likewise.
29780         * modules/rijndael (Makefile.am): Likewise.
29781         * modules/rmdir (Makefile.am): Likewise.
29782         * modules/rpmatch (Makefile.am): Likewise.
29783         * modules/safe-read (Makefile.am): Likewise.
29784         * modules/safe-write (Makefile.am): Likewise.
29785         * modules/same-inode (Makefile.am): Likewise.
29786         * modules/same (Makefile.am): Likewise.
29787         * modules/save-cwd (Makefile.am): Likewise.
29788         * modules/savedir (Makefile.am): Likewise.
29789         * modules/setenv (Makefile.am): Likewise.
29790         * modules/settime (Makefile.am): Likewise.
29791         * modules/sha1 (Makefile.am): Likewise.
29792         * modules/sig2str (Makefile.am): Likewise.
29793         * modules/snprintf (Makefile.am): Likewise.
29794         * modules/stat-macros (Makefile.am): Likewise.
29795         * modules/stat-time (Makefile.am): Likewise.
29796         * modules/stdbool (Makefile.am): Likewise.
29797         * modules/stdint (Makefile.am): Likewise.
29798         * modules/stdlib-safer (Makefile.am): Likewise.
29799         * modules/stpcpy (Makefile.am): Likewise.
29800         * modules/stpncpy (Makefile.am): Likewise.
29801         * modules/strcase (Makefile.am): Likewise.
29802         * modules/strcasestr (Makefile.am): Likewise.
29803         * modules/strchrnul (Makefile.am): Likewise.
29804         * modules/strcspn (Makefile.am): Likewise.
29805         * modules/strdup (Makefile.am): Likewise.
29806         * modules/strerror (Makefile.am): Likewise.
29807         * modules/strftime (Makefile.am): Likewise.
29808         * modules/strndup (Makefile.am): Likewise.
29809         * modules/strnlen (Makefile.am): Likewise.
29810         * modules/strpbrk (Makefile.am): Likewise.
29811         * modules/strsep (Makefile.am): Likewise.
29812         * modules/strstr (Makefile.am): Likewise.
29813         * modules/strtod (Makefile.am): Likewise.
29814         * modules/strtoimax (Makefile.am): Likewise.
29815         * modules/strtok_r (Makefile.am): Likewise.
29816         * modules/strtol (Makefile.am): Likewise.
29817         * modules/strtoll (Makefile.am): Likewise.
29818         * modules/strtoul (Makefile.am): Likewise.
29819         * modules/strtoull (Makefile.am): Likewise.
29820         * modules/strtoumax (Makefile.am): Likewise.
29821         * modules/strverscmp (Makefile.am): Likewise.
29822         * modules/sys_socket (Makefile.am): Likewise.
29823         * modules/sys_stat (Makefile.am): Likewise.
29824         * modules/sysexits (Makefile.am): Likewise.
29825         * modules/time_r (Makefile.am): Likewise.
29826         * modules/timegm (Makefile.am): Likewise.
29827         * modules/timespec (Makefile.am): Likewise.
29828         * modules/tmpfile-safer (Makefile.am): Likewise.
29829         * modules/trim (Makefile.am): Likewise.
29830         * modules/unistd-safer (Makefile.am): Likewise.
29831         * modules/unlinkdir (Makefile.am): Likewise.
29832         * modules/unlocked-io (Makefile.am): Likewise.
29833         * modules/userspec (Makefile.am): Likewise.
29834         * modules/utime (Makefile.am): Likewise.
29835         * modules/utimecmp (Makefile.am): Likewise.
29836         * modules/utimens (Makefile.am): Likewise.
29837         * modules/vasnprintf (Makefile.am): Likewise.
29838         * modules/vasprintf (Makefile.am): Likewise.
29839         * modules/vsnprintf (Makefile.am): Likewise.
29840         * modules/xalloc (Makefile.am): Likewise.
29841         * modules/xgetcwd (Makefile.am): Likewise.
29842         * modules/xnanosleep (Makefile.am): Likewise.
29843         * modules/xreadlink (Makefile.am): Likewise.
29844         * modules/xstrtod (Makefile.am): Likewise.
29845         * modules/xstrtol (Makefile.am): Likewise.
29846         * modules/xstrtold (Makefile.am): Likewise.
29847         * modules/yesno (Makefile.am): Likewise.
29848         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
29849
29850 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29851
29852         * modules/error (Makefile.am): Distribute files through
29853         EXTRA_DIST, not lib_SOURCES.
29854
29855 2006-10-12  Eric Blake  <ebb9@byu.net>
29856
29857         * modules/error (Makefile.am): Distribute files in /lib.
29858         * modules/obstack (Makefile.am): Likewise.
29859
29860 2006-10-12  Bruno Haible  <bruno@clisp.org>
29861
29862         * modules/acl (Makefile.am): Distribute all files in lib/ through
29863         EXTRA_DIST.
29864         * modules/arcfour (Makefile.am): Likewise.
29865         * modules/arctwo (Makefile.am): Likewise.
29866         * modules/argmatch (Makefile.am): Likewise.
29867         * modules/argz (Makefile.am): Likewise.
29868         * modules/atexit (Makefile.am): Likewise.
29869         * modules/backupfile (Makefile.am): Likewise.
29870         * modules/c-strtod (Makefile.am): Likewise.
29871         * modules/c-strtold (Makefile.am): Likewise.
29872         * modules/calloc (Makefile.am): Likewise.
29873         * modules/canon-host (Makefile.am): Likewise.
29874         * modules/canonicalize (Makefile.am): Likewise.
29875         * modules/chdir-long (Makefile.am): Likewise.
29876         * modules/chdir-safer (Makefile.am): Likewise.
29877         * modules/check-version (Makefile.am): Likewise.
29878         * modules/chown (Makefile.am): Likewise.
29879         * modules/cloexec (Makefile.am): Likewise.
29880         * modules/close-stream (Makefile.am): Likewise.
29881         * modules/closeout (Makefile.am): Likewise.
29882         * modules/crc (Makefile.am): Likewise.
29883         * modules/cycle-check (Makefile.am): Likewise.
29884         * modules/des (Makefile.am): Likewise.
29885         * modules/dirfd (Makefile.am): Likewise.
29886         * modules/dirname (Makefile.am): Likewise.
29887         * modules/dup2 (Makefile.am): Likewise.
29888         * modules/euidaccess (Makefile.am): Likewise.
29889         * modules/exclude (Makefile.am): Likewise.
29890         * modules/exitfail (Makefile.am): Likewise.
29891         * modules/fcntl-safer (Makefile.am): Likewise.
29892         * modules/file-type (Makefile.am): Likewise.
29893         * modules/fileblocks (Makefile.am): Likewise.
29894         * modules/filemode (Makefile.am): Likewise.
29895         * modules/filenamecat (Makefile.am): Likewise.
29896         * modules/fnmatch (Makefile.am): Likewise.
29897         * modules/fopen-safer (Makefile.am): Likewise.
29898         * modules/fpending (Makefile.am): Likewise.
29899         * modules/fprintftime (Makefile.am): Likewise.
29900         * modules/free (Makefile.am): Likewise.
29901         * modules/fsusage (Makefile.am): Likewise.
29902         * modules/ftruncate (Makefile.am): Likewise.
29903         * modules/fts (Makefile.am): Likewise.
29904         * modules/gc (Makefile.am): Likewise.
29905         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
29906         * modules/getaddrinfo (Makefile.am): Likewise.
29907         * modules/getcwd (Makefile.am): Likewise.
29908         * modules/getdelim (Makefile.am): Likewise.
29909         * modules/getdomainname (Makefile.am): Likewise.
29910         * modules/getgroups (Makefile.am): Likewise.
29911         * modules/gethostname (Makefile.am): Likewise.
29912         * modules/gethrxtime (Makefile.am): Likewise.
29913         * modules/getline (Makefile.am): Likewise.
29914         * modules/getloadavg (Makefile.am): Likewise.
29915         * modules/getlogin_r (Makefile.am): Likewise.
29916         * modules/getopt (Makefile.am): Likewise.
29917         * modules/getpass (Makefile.am): Likewise.
29918         * modules/getpass-gnu (Makefile.am): Likewise.
29919         * modules/getsubopt (Makefile.am): Likewise.
29920         * modules/gettime (Makefile.am): Likewise.
29921         * modules/gettimeofday (Makefile.am): Likewise.
29922         * modules/getugroups (Makefile.am): Likewise.
29923         * modules/getusershell (Makefile.am): Likewise.
29924         * modules/glob (Makefile.am): Likewise.
29925         * modules/group-member (Makefile.am): Likewise.
29926         * modules/hard-locale (Makefile.am): Likewise.
29927         * modules/hash (Makefile.am): Likewise.
29928         * modules/hmac-md5 (Makefile.am): Likewise.
29929         * modules/hmac-sha1 (Makefile.am): Likewise.
29930         * modules/human (Makefile.am): Likewise.
29931         * modules/idcache (Makefile.am): Likewise.
29932         * modules/imaxabs (Makefile.am): Likewise.
29933         * modules/imaxdiv (Makefile.am): Likewise.
29934         * modules/inet_ntop (Makefile.am): Likewise.
29935         * modules/inet_pton (Makefile.am): Likewise.
29936         * modules/inttostr (Makefile.am): Likewise.
29937         * modules/isapipe (Makefile.am): Likewise.
29938         * modules/lchown (Makefile.am): Likewise.
29939         * modules/long-options (Makefile.am): Likewise.
29940         * modules/lstat (Makefile.am): Likewise.
29941         * modules/malloc (Makefile.am): Likewise.
29942         * modules/mathl (Makefile.am): Likewise.
29943         * modules/mbchar (Makefile.am): Likewise.
29944         * modules/md2 (Makefile.am): Likewise.
29945         * modules/md4 (Makefile.am): Likewise.
29946         * modules/md5 (Makefile.am): Likewise.
29947         * modules/memcasecmp (Makefile.am): Likewise.
29948         * modules/memchr (Makefile.am): Likewise.
29949         * modules/memcmp (Makefile.am): Likewise.
29950         * modules/memcoll (Makefile.am): Likewise.
29951         * modules/memcpy (Makefile.am): Likewise.
29952         * modules/memmem (Makefile.am): Likewise.
29953         * modules/memmove (Makefile.am): Likewise.
29954         * modules/mempcpy (Makefile.am): Likewise.
29955         * modules/memrchr (Makefile.am): Likewise.
29956         * modules/memset (Makefile.am): Likewise.
29957         * modules/memxor (Makefile.am): Likewise.
29958         * modules/mkancesdirs (Makefile.am): Likewise.
29959         * modules/mkdir (Makefile.am): Likewise.
29960         * modules/mkdir-p (Makefile.am): Likewise.
29961         * modules/mkdtemp (Makefile.am): Likewise.
29962         * modules/mkstemp (Makefile.am): Likewise.
29963         * modules/mktime (Makefile.am): Likewise.
29964         * modules/modechange (Makefile.am): Likewise.
29965         * modules/mountlist (Makefile.am): Likewise.
29966         * modules/nanosleep (Makefile.am): Likewise.
29967         * modules/openat (Makefile.am): Likewise.
29968         * modules/pagealign_alloc (Makefile.am): Likewise.
29969         * modules/physmem (Makefile.am): Likewise.
29970         * modules/poll (Makefile.am): Likewise.
29971         * modules/posixtm (Makefile.am): Likewise.
29972         * modules/posixver (Makefile.am): Likewise.
29973         * modules/putenv (Makefile.am): Likewise.
29974         * modules/quote (Makefile.am): Likewise.
29975         * modules/quotearg (Makefile.am): Likewise.
29976         * modules/raise (Makefile.am): Likewise.
29977         * modules/read-file (Makefile.am): Likewise.
29978         * modules/readline (Makefile.am): Likewise.
29979         * modules/readlink (Makefile.am): Likewise.
29980         * modules/readtokens (Makefile.am): Likewise.
29981         * modules/readutmp (Makefile.am): Likewise.
29982         * modules/realloc (Makefile.am): Likewise.
29983         * modules/regex (Makefile.am): Likewise.
29984         * modules/rename (Makefile.am): Likewise.
29985         * modules/rename-dest-slash (Makefile.am): Likewise.
29986         * modules/rijndael (Makefile.am): Likewise.
29987         * modules/rmdir (Makefile.am): Likewise.
29988         * modules/rpmatch (Makefile.am): Likewise.
29989         * modules/safe-read (Makefile.am): Likewise.
29990         * modules/safe-write (Makefile.am): Likewise.
29991         * modules/same (Makefile.am): Likewise.
29992         * modules/save-cwd (Makefile.am): Likewise.
29993         * modules/savedir (Makefile.am): Likewise.
29994         * modules/setenv (Makefile.am): Likewise.
29995         * modules/settime (Makefile.am): Likewise.
29996         * modules/sha1 (Makefile.am): Likewise.
29997         * modules/sig2str (Makefile.am): Likewise.
29998         * modules/snprintf (Makefile.am): Likewise.
29999         * modules/stdlib-safer (Makefile.am): Likewise.
30000         * modules/stpcpy (Makefile.am): Likewise.
30001         * modules/stpncpy (Makefile.am): Likewise.
30002         * modules/strcase (Makefile.am): Likewise.
30003         * modules/strcasestr (Makefile.am): Likewise.
30004         * modules/strchrnul (Makefile.am): Likewise.
30005         * modules/strcspn (Makefile.am): Likewise.
30006         * modules/strdup (Makefile.am): Likewise.
30007         * modules/strerror (Makefile.am): Likewise.
30008         * modules/strftime (Makefile.am): Likewise.
30009         * modules/strndup (Makefile.am): Likewise.
30010         * modules/strnlen (Makefile.am): Likewise.
30011         * modules/strpbrk (Makefile.am): Likewise.
30012         * modules/strsep (Makefile.am): Likewise.
30013         * modules/strstr (Makefile.am): Likewise.
30014         * modules/strtod (Makefile.am): Likewise.
30015         * modules/strtoimax (Makefile.am): Likewise.
30016         * modules/strtok_r (Makefile.am): Likewise.
30017         * modules/strtol (Makefile.am): Likewise.
30018         * modules/strtoll (Makefile.am): Likewise.
30019         * modules/strtoul (Makefile.am): Likewise.
30020         * modules/strtoull (Makefile.am): Likewise.
30021         * modules/strtoumax (Makefile.am): Likewise.
30022         * modules/strverscmp (Makefile.am): Likewise.
30023         * modules/time_r (Makefile.am): Likewise.
30024         * modules/timegm (Makefile.am): Likewise.
30025         * modules/tmpfile-safer (Makefile.am): Likewise.
30026         * modules/unistd-safer (Makefile.am): Likewise.
30027         * modules/unlinkdir (Makefile.am): Likewise.
30028         * modules/userspec (Makefile.am): Likewise.
30029         * modules/utime (Makefile.am): Likewise.
30030         * modules/utimecmp (Makefile.am): Likewise.
30031         * modules/utimens (Makefile.am): Likewise.
30032         * modules/vasnprintf (Makefile.am): Likewise.
30033         * modules/vasprintf (Makefile.am): Likewise.
30034         * modules/vsnprintf (Makefile.am): Likewise.
30035         * modules/xalloc (Makefile.am): Likewise.
30036         * modules/xgetcwd (Makefile.am): Likewise.
30037         * modules/xnanosleep (Makefile.am): Likewise.
30038         * modules/xreadlink (Makefile.am): Likewise.
30039         * modules/xstrtod (Makefile.am): Likewise.
30040         * modules/xstrtol (Makefile.am): Likewise.
30041         * modules/xstrtold (Makefile.am): Likewise.
30042         * modules/yesno (Makefile.am): Likewise.
30043
30044 2006-10-12  Jim Meyering  <jim@meyering.net>
30045
30046         * m4/getloadavg.m4: Revert the change below.
30047
30048         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
30049         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
30050         fail with a symlink, which is what coreutils' ./bootstrap now
30051         creates by default.
30052
30053 2006-10-12  Bruno Haible  <bruno@clisp.org>
30054
30055         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
30056         mingw.
30057         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
30058         MSVC and mingw explicitly.
30059
30060 2006-10-11  Simon Josefsson  <jas@extundo.com>
30061             Bruno Haible  <bruno@clisp.org>
30062
30063         Add support for multiple gnulib-tool invocations in the scope of a
30064         single configure.ac file.
30065         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
30066         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
30067         with the same contents as the _LIBADD variable.
30068         (func_emit_initmacro_start, func_emit_initmacro_end,
30069         func_emit_initmacro_done): New functions.
30070         (func_import, func_create_testdir): Invoke them. Allow the identifiers
30071         gl_LIBOBJS and gl_LTLIBOBJS.
30072
30073 2006-10-11  Bruno Haible  <bruno@clisp.org>
30074
30075         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
30076         (func_create_testdir): Don't create po/Makefile.am, don't invoke
30077         autoreconf. Instead, invoke autopoint explicitly but move back the
30078         *.m4 files from gnulib.
30079
30080 2006-10-11  Bruno Haible  <bruno@clisp.org>
30081
30082         * gnulib-tool (func_usage): Make module names after --create-testdir
30083         optional.
30084         (func_create_testdir): If no module was specified, use nearly all
30085         modules.
30086
30087 2006-10-12  Jim Meyering  <jim@meyering.net>
30088
30089         Big performance improvement for fts-based tools that use FTS_NOSTAT.
30090         Avoid spurious inode-mismatch problems on non-POSIX file systems.
30091         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
30092         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
30093         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
30094         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
30095         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
30096         (fts_set_stat_required): New function.
30097         (fts_open): Defer the calls to fts_stat, if possible or requested.
30098         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
30099         into fts_stat itself.
30100         (fts_read): Perform any required (deferred) fts_stat call.
30101         (fts_build): Likewise, for the directory we're about to open and read.
30102         In the readdir loop, carefully decide whether each entry will require
30103         an eventual call to fts_stat, using dirent.d_type info if available.
30104         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
30105         a command line argument into this function.  Update all callers.
30106         Map a return value of FTS_DOT to FTS_D for a command line argument.
30107         * modules/fts (Depends-on): Add d-type.  Alphabetize.
30108         Thanks to Miklos Szeredi for his tenacity and for the initial
30109         bug report about "find" failing on a FUSE-based file system.
30110
30111         * lib/fts.c (fts_open): Use consistent indentation.
30112
30113 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30114
30115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
30116         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
30117         reported by Jim Meyering.  All uses of cache variables renamed
30118         to match Autoconf's.
30119         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
30120         the other one.
30121
30122         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30123         Fix misspelling in diagnostic.
30124
30125 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30126
30127         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
30128         defined.  Problem reported by Matthew Woehlke.
30129
30130         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
30131         Add support for Tandem NonStop R series.
30132         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
30133         Use new macro.
30134
30135         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
30136         (has_trailing_slash): Omit size arg; all callers changed.
30137         Omit 'inline', since it doesn't help performance and we'd
30138         need to configure it.
30139         Don't count //, ///, etc. as having a trailing slash.
30140         As a side effect, this removes a C99ism reported by Matthew Woehlke.
30141         (rpl_rename_dest_slash): On failure, use rename's errno rather
30142         than (in some cases) an incorrect or junk errno.
30143         Simplify code by removing need to compute length; this does
30144         cause it to make two passes instead of one over the file name,
30145         but it's worth it.
30146
30147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
30148         change, since Autoconf's version may no longer be appropriate now
30149         that we are using CVS Autoconf's version.  Add support for Tandem.
30150
30151 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30152             Bruno Haible  <bruno@clisp.org>
30153
30154         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
30155         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
30156         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
30157         gl_AC_TYPE_LONG_LONG.
30158
30159         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
30160         instead of HAVE_LONG_LONG.
30161         * lib/printf-args.c (printf_fetchargs): Likewise.
30162         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
30163         * lib/vasnprintf.c (VASNPRINTF): Likewise.
30164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
30165         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
30166         gl_AC_TYPE_LONG_LONG.
30167
30168 2006-10-11  Bruno Haible  <bruno@clisp.org>
30169
30170         * m4/longlong.m4: Add comments.
30171         * m4/ulonglong.m4: Likewise.
30172
30173 2006-10-10  Bruno Haible  <bruno@clisp.org>
30174
30175         Make it possible to #define stpcpy, strdup to aliases.
30176         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
30177         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
30178
30179 2006-10-10  Bruno Haible  <bruno@clisp.org>
30180
30181         Make it possible to #define gcd to an alias.
30182         * lib/gcd.c: Include config.h.
30183
30184 2006-10-10  Bruno Haible  <bruno@clisp.org>
30185
30186         Make it possible to #define c_isascii to an alias.
30187         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
30188         defined. Undefine the macros before defining them, to avoid gcc
30189         warnings.
30190         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
30191         define NO_C_CTYPE_MACROS early.
30192
30193 2006-10-10  Bruno Haible  <bruno@clisp.org>
30194
30195         Make it possible to #define set_program_name to an alias.
30196         * lib/progname.c: Don't undefine set_program_name; instead, undefine
30197         ENABLE_RELOCATABLE early.
30198
30199 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30200
30201         Port to Tandem NSK OSS, which has 64-bit signed int but at most
30202         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
30203         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
30204         More generally, don't assume that 64-bit signed int is available
30205         if unsigned int is, and vice versa.
30206         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
30207         unsigned symbols, not on their signed counterparts.
30208         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
30209         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
30210         (UINT64_C, UINTMAX_C):
30211         Likewise.
30212         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30213         unsigned counterparts.
30214         (Have_long_long, Unsigned): New macros.
30215         (Int): Renamed from INT.
30216         (strtoimax): Use the new macros.
30217         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
30218         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
30219         * modules/inttypes (inttypes.h): Substitute
30220         HAVE_UNSIGNED_LONG_LONG_INT.
30221         * modules/stdint (stdint.h): Likewise.
30222         (Files): Add m4/ulonglong.m4.
30223
30224 2006-10-10  Bruno Haible  <bruno@clisp.org>
30225
30226         Fix a gcc -Wshadow warning.
30227         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
30228         to 'bucket'.
30229         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
30230         gl_linked_indexof_from_to): Likewise.
30231         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
30232         Likewise.
30233         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
30234         Likewise.
30235         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
30236         Reported by Eric Blake.
30237
30238 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30239
30240         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
30241         for NetBSD.  Problem reported by Bruno Haible.
30242
30243 2006-10-09  Jim Meyering  <jim@meyering.net>
30244
30245         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
30246         Patch from Bruno Haible.
30247
30248 2006-10-09  Jim Meyering  <jim@meyering.net>
30249
30250         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
30251         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
30252         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
30253
30254 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30255
30256         Don't include <config.h> twice; this doesn't work in some cases,
30257         e.g., when config.h has "#define intmax_t long long int" and
30258         we include <config.h>, <inttypes.h>, <config.h> in that order.
30259         Problem reported by Matthew Woehlke in:
30260         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
30261         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
30262         * lib/fts-cycle.c: Don't include config.h.
30263         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
30264         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
30265         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
30266         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
30267         inttypes.h.
30268         * lib/xstrtoumax.c: Likewise.
30269         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
30270         __strtol and the like, so that this module is more like its siblings.
30271         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
30272         Remove; no longer needed now that we assume gnulib inttypes.h.
30273
30274 2006-10-08  Bruno Haible  <bruno@clisp.org>
30275
30276         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
30277         option.
30278
30279 2006-10-07  Jim Meyering  <jim@meyering.net>
30280
30281         * modules/inttypes (inttypes.h): Revert what seems to have been
30282         an inadvertent part of today's change: use "|", not "/" in the
30283         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
30284
30285 2006-10-07  Bruno Haible  <bruno@clisp.org>
30286
30287         * modules/sublist: New file.
30288
30289 2006-10-07  Bruno Haible  <bruno@clisp.org>
30290
30291         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
30292         * modules/argz (argz.h): Likewise.
30293         * modules/arpa_inet (arpa/inet.h): Likewise.
30294         * modules/byteswap (byteswap.h): Likewise.
30295         * modules/configmake (configmake.h): Likewise.
30296         * modules/fcntl (fcntl.h): Likewise.
30297         * modules/fnmatch (fnmatch.h): Likewise.
30298         * modules/getopt (getopt.h): Likewise.
30299         * modules/glob (glob.h): Likewise.
30300         * modules/inttypes (inttypes.h): Likewise.
30301         * modules/netinet_in (netinet/in.h): Likewise.
30302         * modules/poll (poll.h): Likewise.
30303         * modules/stdbool (stdbool.h): Likewise.
30304         * modules/stdint (stdint.h): Likewise.
30305         * modules/sys_select (sys/select.h): Likewise.
30306         * modules/sys_socket (sys/socket.h): Likewise.
30307         * modules/sys_stat (sys/stat.h): Likewise.
30308         * modules/sysexits (sysexits.h): Likewise.
30309         * modules/unistd (unistd.h): Likewise.
30310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30311         Add a "DO NOT EDIT" comment to the generated file.
30312         (func_import): Likewise for gnulib-comp.m4.
30313
30314 2006-10-07  Bruno Haible  <bruno@clisp.org>
30315
30316         * lib/gl_sublist.h: New file.
30317         * lib/gl_sublist.c: New file.
30318
30319 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30320
30321         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
30322         name (relative to the original working directory) and the file
30323         name component (relative to the temporary working directory).  All
30324         callers changed.
30325         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
30326         * lib/mkdir-p.c (make_dir_parents): Likewise.
30327         * lib/mkdir-p.h (make_dir_parents): Likewise.
30328
30329 2006-10-06  Eric Blake  <ebb9@byu.net>
30330
30331         Define several macros for use by the clean-temp module.
30332         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
30333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
30334         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
30335
30336         * lib/clean-temp.h (close_stream_temp): New declaration.
30337         * lib/clean-temp.c (includes): Pull in headers according to what
30338         other modules are in use.
30339         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
30340
30341 2006-10-06  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
30344         instead of fopen, fwriteerror.
30345
30346 2006-10-06  Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
30349         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
30350         int.
30351         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
30352         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
30353         Return an error indicator.
30354         Suggested by Eric Blake.
30355
30356 2006-10-06  Bruno Haible  <bruno@clisp.org>
30357
30358         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
30359         Reported by Eric Blake.
30360
30361 2006-10-06  Bruno Haible  <bruno@clisp.org>
30362
30363         * modules/closeout (Description): Mention stderr too.
30364
30365 2006-10-06  Bruno Haible  <bruno@clisp.org>
30366         and Paul Eggert  <eggert@cs.ucla.edu>
30367
30368         * lib/closeout.c (close_stdout): Also close stderr.
30369         * lib/closeout.h: Update comment.
30370
30371 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30372
30373         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
30374         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
30375         * lib/dirchownmod.c: Include lchown.h.
30376         * lib/lchown.c: Don't include files that lchown.h now includes.
30377         Don't declare chown, since lchown.h now does that.
30378         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
30379         (lchown): Define to rpl_chown if lchown is declared but
30380         does not exist.  Declare using a prototype if lchown is not
30381         declared.  Add a copyright notice.
30382         * lib/mkstemp.h: Include <unistd.h>.
30383         * lib/openat.c: Include lchown.h.
30384
30385         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
30386         we now test for that separately.
30387         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
30388         rather than O_NOFOLLOW, when testing whether it's possible to
30389         avoid a race condition reliably.
30390         * lib/savewd.c (savewd_chdir): Likewise.
30391
30392         Remove macros that are no longer needed now that stdint.h is
30393         reliable.
30394         * lib/fsusage.c (UINTMAX_MAX): Remove.
30395         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
30396         * lib/utimecmp.c (SIZE_MAX): Remove.
30397
30398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
30399
30400         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
30401         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
30402         O_NOATIME works.
30403
30404 2006-10-05  Bruno Haible  <bruno@clisp.org>
30405
30406         * lib/gl_list.h (gl_sortedlist_search_from_to,
30407         gl_sortedlist_indexof_from_to): New declarations.
30408         (gl_list_implementation): New fields sortedlist_search_from_to,
30409         sortedlist_indexof_from_to.
30410         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
30411         inline functions.
30412         * lib/gl_list.c (gl_sortedlist_search_from_to,
30413         gl_sortedlist_indexof_from_to): New functions.
30414         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
30415         function.
30416         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
30417         (gl_array_sortedlist_search_from_to): New function.
30418         (gl_array_list_implementation): Update.
30419         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
30420         function.
30421         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
30422         (gl_carray_sortedlist_search_from_to): New function.
30423         (gl_carray_list_implementation): Update.
30424         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
30425         gl_linked_sortedlist_indexof_from_to): New functions.
30426         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30427         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30428         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
30429         gl_tree_sortedlist_indexof_from_to): New functions.
30430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30431         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30432         Update.
30433         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30434         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
30435         Update.
30436
30437 2006-10-05  Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
30440         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
30441         (struct gl_list_implementation): Add fields search_from_to,
30442         indexof_from_to. Remove fields search, indexof.
30443         (gl_list_search): Use the search_from_to method.
30444         (gl_list_search_from, gl_list_search_from_to): New functions.
30445         (gl_list_indexof): Use the indexof_from_to method.
30446         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30447         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
30448         (gl_list_search_from, gl_list_search_from_to): New functions.
30449         (gl_list_indexof): Use the indexof_from_to method.
30450         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
30451         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
30452         gl_array_indexof. Add start_index, end_index arguments.
30453         (gl_array_search_from_to): Renamed from gl_array_search. Add
30454         start_index, end_index arguments.
30455         (gl_array_remove, gl_array_list_implementation): Update.
30456         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
30457         gl_carray_indexof. Add start_index, end_index arguments.
30458         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
30459         start_index, end_index arguments.
30460         (gl_carray_remove, gl_carray_list_implementation): Update.
30461         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
30462         gl_linked_search. Add start_index, end_index arguments.
30463         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
30464         start_index, end_index arguments.
30465         (gl_linked_remove): Update.
30466         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30467         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30468         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
30469         field to 'size_t'.
30470         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
30471         gl_tree_search. Add start_index, end_index arguments.
30472         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30473         start_index, end_index arguments.
30474         (gl_tree_remove): Update.
30475         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30476         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30477         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
30478         function.
30479         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
30480         gl_tree_search. Add start_index, end_index arguments.
30481         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
30482         start_index, end_index arguments.
30483         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30484         Update.
30485         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30486
30487 2006-10-05  Bruno Haible  <bruno@clisp.org>
30488
30489         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
30490
30491         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
30492         fwriteerror_temp): New declarations.
30493         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
30494         (descriptors): New variable.
30495         (cleanup): First, close the descriptors.
30496         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
30497         fclose_temp, fwriteerror_temp): New functions.
30498
30499 2006-10-04  Jim Meyering  <jim@meyering.net>
30500
30501         * lib/fts.c (fts_open): Tiny comment change.
30502
30503 2006-10-04  Bruno Haible  <bruno@clisp.org>
30504
30505         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
30506         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
30507         gl_LOCK_BODY.
30508         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
30509         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
30510         gl_LOCK_EARLY_BODY.
30511         (gl_LOCK): Require gl_LOCK_BODY.
30512
30513 2006-10-04  Bruno Haible  <bruno@clisp.org>
30514
30515         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
30516         (gl_oset_search_atleast): New declaration.
30517         (struct gl_oset_implementation): Add field 'search_atleast'.
30518         (gl_oset_search_atleast): New inline function.
30519         * lib/gl_oset.c (gl_oset_search_atleast): New function.
30520         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
30521         (gl_array_oset_implementation): Update.
30522         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
30523         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
30524         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
30525
30526 2006-10-04  Bruno Haible  <bruno@clisp.org>
30527
30528         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
30529
30530 2006-10-03  Bruno Haible  <bruno@clisp.org>
30531
30532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
30533         from gl_avltreehash_list_implementation.
30534
30535 2006-10-03  Bruno Haible  <bruno@clisp.org>
30536
30537         * lib/gl_oset.c (gl_oset_add): Fix return type.
30538
30539 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
30540
30541         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
30542
30543 2006-10-02  Eric Blake  <ebb9@byu.net>
30544
30545         * modules/strnlen (Depends-on): Add extensions.
30546
30547 2006-10-02  Eric Blake  <ebb9@byu.net>
30548
30549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
30550         definition in 2.60+.
30551
30552 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
30553
30554         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
30555         checks.
30556
30557 2006-10-02  Bruno Haible  <bruno@clisp.org>
30558
30559         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
30560         to the AUTOMAKE_OPTIONS.
30561         Reported by Jim Meyering.
30562
30563 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         Work around bug in Solaris 10 /proc file system:
30566         /proc/self/fd/NNN/.. isn't the parent directory of
30567         the directory whose file descriptor is NNN.  This needs to
30568         be worked around at run time, not compile time, since a
30569         program might be built on Solaris 8, where things work, and
30570         run on Solaris 10.
30571         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
30572         to use the following interface instead:
30573         (OPENAT_BUFFER_SIZE): New macro.
30574         (openat_proc_name): New function.
30575         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
30576         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
30577         Likewise.
30578         * lib/openat-proc.c: New file.
30579         * modules/openat (Files): Add lib/openat-proc.c.
30580         (Depends-on): Add same-inode, stdbool.
30581         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
30582
30583 2006-09-29  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
30586         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
30587         argument. Set stdout_closed before testing for ferror, not after.
30588         (fwriteerror, fwriteerror_no_ebadf): New functions.
30589
30590 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30591
30592         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
30593
30594 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
30595
30596         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
30597         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
30598
30599 2006-09-28  Jim Meyering  <jim@meyering.net>
30600
30601         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
30602         Include <unistd.h>.
30603
30604 2006-09-28  Bruno Haible  <bruno@clisp.org>
30605
30606         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
30607         * modules/linkedhash-list (Depends-on): Likewise.
30608         * modules/rbtreehash-list (Depends-on): Likewise.
30609
30610 2006-09-28  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/strndup.h: Simplify the redefinition of strndup.
30613         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
30614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
30615
30616 2006-09-28  Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
30619         * lib/gl_linkedhash_list.c: Likewise.
30620         * lib/gl_rbtreehash_list.c: Likewise.
30621
30622 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30623
30624         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
30625         getaddrinfo.
30626
30627         * lib/__fpending.h: Don't include <stdio_ext.h> unless
30628         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
30629         it causes <stdio_ext.h> to cause a compile-time error.
30630         Problem reported by Nelson H. F. Beebe.
30631         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
30632         of HAVE_DECL___PENDING.
30633
30634         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
30635         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
30636         declaration.
30637
30638 2006-09-27  Jim Meyering  <jim@meyering.net>
30639
30640         This file could end up with a definition for a function
30641         named __strndup, rather than rpl_strndup on a system with
30642         incomplete weak_alias support.
30643         * lib/strndup.c (strndup): Rename from __strndup.
30644         Remove #defines that used to map __strndup to strndup.
30645         Don't use K&R prototypes.
30646         Remove LIBC-related code, since this file is not sync'd with glibc.
30647         * lib/strndup.h: Revamp, accordingly.
30648         * m4/strndup.m4: Modernize.
30649
30650 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30651
30652         * modules/savewd (Depends-on): Add 'raise'.
30653         * lib/savewd.c: Include <signal.h>, for 'raise'.
30654
30655 2006-09-26  Jim Meyering  <jim@meyering.net>
30656
30657         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
30658         when we detect Darwin 8.7.0's acl_get_file bug.
30659         Rearrange to perform the new (below) run-test while $LIBS
30660         contains any acl-related library.  Set USE_ACL at the end.
30661         (gl_ACL_GET_FILE): New function.
30662
30663 2006-09-26  Eric Blake  <ebb9@byu.net>
30664
30665         * lib/verror.c: Include <config.h> unconditionally.
30666
30667 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30668
30669         * modules/clock-time (Maintainer): Add self.
30670         * modules/getlogin_r (Depends-on): Add extensions.
30671
30672 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30673
30674         * modules/clock-time: New module.
30675         * modules/nanosleep (Depends-on): Add clock-time.
30676         * modules/gethrxtime (Depends-on): Likewise.
30677         * modules/gettime (Depends-on): Likewise.
30678         * modules/settime (Depends-on): Likewise.
30679
30680         * modules/fts-lgpl: Depend on openat.
30681         * modules/mkancesdirs: Depend on savewd.
30682         * modules/mkdir-p: Likewise.
30683
30684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30685
30686         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
30687
30688         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
30689         `gl_have_arbitrary_file_name_length_limit' to
30690         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
30691         actually works between configure runs.
30692
30693 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30694             Bruno Haible  <bruno@clisp.org>
30695
30696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
30697
30698 2006-09-25  Jim Meyering  <jim@meyering.net>
30699
30700         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
30701         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
30702
30703 2006-09-25  Eric Blake  <ebb9@byu.net>
30704
30705         * gnulib-tool (func_import, func_create_testdir): Fix typos in
30706         exec's in 2006-09-18 patch when shuffling fds.
30707
30708 2006-09-25  Bruno Haible  <bruno@clisp.org>
30709
30710         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
30711         Reported by Jim Meyering.
30712
30713 2006-09-24  Jim Meyering  <jim@meyering.net>
30714
30715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
30716         compare a pointer against a literal "0".  That caused failures with
30717         at least HP-UX's hpcc.
30718
30719 2006-09-22  Simon Josefsson  <jas@extundo.com>
30720
30721         * modules/gc-sha1:
30722         * modules/gc-md4:
30723         * modules/gc-hmac-sha1:
30724         * modules/gc-hmac-md5:
30725         * modules/gc-des:
30726         * modules/gc-arcfour: Distribute more files.
30727
30728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30729
30730         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
30731         (gl_linked_iterator_from_to): Initialize struct completely.
30732         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
30733         (gl_tree_iterator_from_to): Likewise
30734         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
30735         * lib/gl_array_list.c [lint] (gl_array_iterator)
30736         (gl_array_iterator_from_to): Likewise.
30737         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
30738         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
30739         (gl_carray_iterator_from_to): Likewise.
30740
30741         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
30742         * lib/md4.c (md4_process_block): Remove unused variable.
30743         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
30744         parentheses for clarity.
30745
30746 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30747
30748         * modules/bison-i18n (Depends-on): Add gettext.
30749
30750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30751
30752         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
30753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30754         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
30755         also add missing comma that caused broken test.
30756         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
30757         stdlib.h, for `abort'.
30758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
30759         variables.
30760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
30761         include unistd.h if present, for `rmdir'.
30762         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
30763         variables.
30764         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
30765         in the process include standard headers for prototypes.
30766         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
30767         gets declared on GNU/Linux.
30768         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
30769         unistd.h, for `rmdir'.
30770         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
30771
30772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
30773         always true.
30774         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
30775
30776         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
30777
30778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30779
30780         * gnulib-tool (func_version): Create output all at once.  This
30781         may help avoid triggering unnecessary SIGPIPEs, and at any
30782         rate it doesn't hurt.
30783
30784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30785             Bruno Haible  <bruno@clisp.org>
30786
30787         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
30788         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30789         * m4/signed.m4 (bh_C_SIGNED): Likewise.
30790
30791         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
30792         (gl_FUNC_VASPRINTF): Invoke it.
30793
30794 2006-09-22  Bruno Haible  <bruno@clisp.org>
30795
30796         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
30797         getloadavg.c as first argument.
30798
30799 2006-09-22  Bruno Haible  <bruno@clisp.org>
30800
30801         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
30802         at the beginning of the gl_INIT macro.
30803         * modules/getloadavg (configure.ac): Pass $gl_source_base to
30804         gl_GETLOADAVG.
30805
30806 2006-09-22  Bruno Haible  <bruno@clisp.org>
30807
30808         * gnulib-tool (func_create_megatestdir): Don't include the config-h
30809         module.
30810         Suggested by Ralf Wildenhues.
30811
30812 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30813
30814         Import this patch from libc:
30815
30816         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
30817
30818         * lib/regex_internal.c (re_string_reconstruct): Handle
30819         offset < pstr->valid_raw_len && pstr->offsets_needed case.
30820         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
30821         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
30822         re_string_context_at.
30823
30824         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
30825         now requires it.
30826         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
30827         gl_REGEX now does it for us.
30828         (gl_REGEX): Add test taken from
30829         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
30830
30831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
30832         Check that large offsets work.  Modernize Autoconf usages.
30833         Prefer "yes" to mean a good thing rather than a bad.
30834         Don't put "#define mkstemp" in config.h, as this might interfere
30835         with standard system headers that "#define mkstemp mkstemp64".
30836
30837         * modules/mkstemp (Depends-on): Add extensions, so that
30838         mkstemp is visible on some platforms.
30839         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
30840         (Include): Change to "mkstemp.h" from <stdlib.h>.
30841         (Files): Add mkstemp.h.
30842
30843         * lib/mkstemp.h: New file, since some standard headers
30844         #define mkstemp.
30845         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
30846         Include "mkstemp.h".
30847         Make the _LIBC code resemble glibc original more,
30848         e.g., use K&R style.
30849         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
30850         (mkstemp): Remove, since mkstemp.h does this for us.
30851         * lib/stdlib--.h: Include mkstemp.h.
30852
30853         Import this patch from libc:
30854
30855         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
30856
30857         * lib/tempname.c (__gen_tempname): Change attempts_min
30858         into a macro.  Use preprocessor to decide how to initialize
30859         attempts [Coverity CID 67].
30860
30861 2006-09-20  Bruno Haible  <bruno@clisp.org>
30862
30863         * lib/mkdtemp.c: Import from libc.
30864         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
30865                 * sysdeps/posix/tempname.c (__gen_tempname): Change
30866                 attempts_min into a macro.  Use preprocessor to decide how to
30867                 initialize attempts [Coverity CID 67].
30868         2001-11-27  Paul Eggert  <eggert@twinsun.com>
30869                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
30870                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
30871
30872 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30873
30874         * gnulib-tool (func_exit): New function, to allow to pass the
30875         exit status portably through the trap.  Use everywhere.
30876         (--help, --version): Signal a write error.
30877         (trap): catch SIGPIPE, for write errors.
30878         Exit at the end of the trap, with the correct exit status.
30879
30880 2006-09-19  Karl Berry  <karl@gnu.org>
30881
30882         * doc/gnulib.texi: note about the license texinfo files.
30883
30884 2006-09-19  Eric Blake  <ebb9@byu.net>
30885
30886         * gnulib-tool: Avoid space-tab.
30887
30888 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30889
30890         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
30891         that prevented coreutils 6.1 from building.  Problem reported
30892         by Petter Reinholdtsen.
30893
30894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30895
30896         * gnulib-tool (avoidlist): Fix typo that broke options like
30897         --avoid=lock that are used by coreutils bootstrap.
30898
30899 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
30900
30901         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
30902         more systematically.
30903
30904 2006-09-18  Jim Meyering  <jim@meyering.net>
30905
30906         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
30907
30908 2006-09-18  Bruno Haible  <bruno@clisp.org>
30909
30910         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
30911
30912 2006-09-18  Bruno Haible  <bruno@clisp.org>
30913
30914         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
30915         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
30916         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
30917         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
30918         * m4/gettext.m4: Require autoconf >= 2.52.
30919         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
30920         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
30921         of gl_cv_header_inttypes_h.
30922
30923 2006-09-18  Bruno Haible  <bruno@clisp.org>
30924
30925         * lib/javaversion.c: Include configmake.h.
30926
30927 2006-09-18  Bruno Haible  <bruno@clisp.org>
30928
30929         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
30930         avoid that the while loops be executed in a subshell.
30931
30932 2006-09-18  Bruno Haible  <bruno@clisp.org>
30933
30934         * MODULES.html.sh (func_module): Break long lines.
30935         Suggested by Bruce Korb <bkorb@gnu.org>.
30936
30937 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30938
30939         Speed up by a factor of 1.12.
30940         * gnulib-tool (nl): New variable.
30941         (func_import): Rewrite include directive extraction to only read each
30942         directive once.
30943
30944 2006-09-17  Bruno Haible  <bruno@clisp.org>
30945
30946         * modules/javaversion (Makefile.am): Remove DEFS setting.
30947         (Depends-on): Add configmake, for PKGDATADIR definition.
30948
30949 2006-09-17  Bruno Haible  <bruno@clisp.org>
30950
30951         * gnulib-tool (func_create_testdir): Rewrite all files at once.
30952
30953 2006-09-17  Bruno Haible  <bruno@clisp.org>
30954
30955         * gnulib-tool (func_append): New function, stolen from libtool.m4.
30956         (func_modules_transitive_closure, func_modules_add_dummy,
30957         func_modules_to_filelist, func_import, func_create_testdir,
30958         func_create_megatestdir, ...): Use it wherever possible.
30959         Suggested by Ralf Wildenhues.
30960
30961 2006-09-16  Karl Berry  <karl@gnu.org>
30962
30963         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
30964         to avoid sectioning errors.
30965         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
30966         [ifinfo]: blank line after @center-ed titles.
30967         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
30968         Spell FSF address consistently with others.
30969         (These changes approved by rms.)
30970
30971 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30972
30973         Speed up by a factor of 1.61.
30974         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
30975         already checked module names again.
30976
30977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30978
30979         Speed up by a factor of 1.13.
30980         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
30981         for new_files, and the input to func_add_or_update.
30982
30983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30984
30985         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
30986         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
30987
30988 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30989
30990         * modules/mkancesdirs (Depends-on): Add fcntl.
30991         * modules/savewd: New file.
30992         * MODULES.html.sh (File system functions): Add savewd.
30993
30994         * modules/configmake (Makefile.am): Add support for the
30995         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
30996
30997 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30998
30999         * m4/savewd.m4: New file.
31000
31001 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31002
31003         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
31004         (dirchownmod): New arg FD.  All callers changed.
31005         Use FD rather than opening the directory ourself, as opening is
31006         now the caller's responsibility.
31007         * lib/dirchownmod.h: Likewise.
31008         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
31009         hosts that require <sys/types.h> before <sys/stat.h>.  Include
31010         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
31011         (test_dir): Remove.
31012         (mkancesdirs): Return length of prefix of FILE that has already
31013         been made, or -2 if there is a child doing the work.  Redo
31014         algorithm so that it is O(N) rather than O(N**2).  Optimize away
31015         ".", and treat ".." specially since it might stray back into
31016         already-created areas.  Use a subprocess if necessary.  New arg
31017         WD; all users changed.  MAKE_DIR function should now return 1
31018         if it creates a directory that is not readable.  Return -2 if
31019         a child process is spun off.
31020         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
31021         Adjust signature to match code.
31022         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
31023         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
31024         all users changed.
31025         * lib/savewd.c, lib/savewd.h: New files.
31026
31027 2006-09-15  Jim Meyering  <jim@meyering.net>
31028
31029         * modules/rename-dest-slash: New module.
31030         * MODULES.html.sh (posix_compat): Add it here.
31031
31032         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
31033
31034 2006-09-15  Jim Meyering  <jim@meyering.net>
31035
31036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
31037         file.
31038
31039         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
31040
31041 2006-09-15  Jim Meyering  <jim@meyering.net>
31042
31043         * lib/rename-dest-slash.c (has_trailing_slash): Use
31044         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
31045         (rpl_rename_dest_slash): Perform the cheaper trailing slash
31046         test before testing whether SRC is a directory.
31047         Suggestions from Bruno Haible.
31048
31049         Avoid a warning about an unused variable.
31050         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
31051         into the #ifdef block where it's used.
31052
31053         * lib/rename-dest-slash.c: New file.
31054
31055 2006-09-14  Bruno Haible  <bruno@clisp.org>
31056
31057         * lib/allocsa.c: Include <config.h> unconditionally.
31058         * lib/asnprintf.c: Likewise.
31059         * lib/asprintf.c: Likewise.
31060         * lib/c-strcasecmp.c: Likewise.
31061         * lib/c-strcasestr.c: Likewise.
31062         * lib/c-strncasecmp.c: Likewise.
31063         * lib/c-strstr.c: Likewise.
31064         * lib/classpath.c: Likewise.
31065         * lib/clean-temp.c: Likewise.
31066         * lib/concatpath.c: Likewise.
31067         * lib/copy-file.c: Likewise.
31068         * lib/csharpcomp.c: Likewise.
31069         * lib/csharpexec.c: Likewise.
31070         * lib/execute.c: Likewise.
31071         * lib/fatal-signal.c: Likewise.
31072         * lib/findprog.c: Likewise.
31073         * lib/fwriteerror.c: Likewise.
31074         * lib/gl_array_list.c: Likewise.
31075         * lib/gl_array_oset.c: Likewise.
31076         * lib/gl_avltree_list.c: Likewise.
31077         * lib/gl_avltree_oset.c: Likewise.
31078         * lib/gl_avltreehash_list.c: Likewise.
31079         * lib/gl_carray_list.c: Likewise.
31080         * lib/gl_linked_list.c: Likewise.
31081         * lib/gl_linkedhash_list.c: Likewise.
31082         * lib/gl_list.c: Likewise.
31083         * lib/gl_oset.c: Likewise.
31084         * lib/gl_rbtree_list.c: Likewise.
31085         * lib/gl_rbtree_oset.c: Likewise.
31086         * lib/gl_rbtreehash_list.c: Likewise.
31087         * lib/imaxabs.c: Likewise.
31088         * lib/imaxdiv.c: Likewise.
31089         * lib/javacomp.c: Likewise.
31090         * lib/javaexec.c: Likewise.
31091         * lib/javaversion.c: Likewise.
31092         * lib/linebreak.c: Likewise.
31093         * lib/localcharset.c: Likewise.
31094         * lib/lock.c: Likewise.
31095         * lib/mbchar.c: Likewise.
31096         * lib/mbswidth.c: Likewise.
31097         * lib/mkdtemp.c: Likewise.
31098         * lib/pipe.c: Likewise.
31099         * lib/printf-args.c: Likewise.
31100         * lib/printf-parse.c: Likewise.
31101         * lib/progname.c: Likewise.
31102         * lib/progreloc.c: Likewise.
31103         * lib/readlink.c: Likewise.
31104         * lib/sh-quote.c: Likewise.
31105         * lib/stpcpy.c: Likewise.
31106         * lib/stpncpy.c: Likewise.
31107         * lib/strcasecmp.c: Likewise.
31108         * lib/strcasestr.c: Likewise.
31109         * lib/strcspn.c: Likewise.
31110         * lib/striconv.c: Likewise.
31111         * lib/strncasecmp.c: Likewise.
31112         * lib/strnlen1.c: Likewise.
31113         * lib/strstr.c: Likewise.
31114         * lib/strtok_r.c: Likewise.
31115         * lib/tls.c: Likewise.
31116         * lib/tmpdir.c: Likewise.
31117         * lib/unicodeio.c: Likewise.
31118         * lib/unsetenv.c: Likewise.
31119         * lib/vasnprintf.c: Likewise.
31120         * lib/vasprintf.c: Likewise.
31121         * lib/wait-process.c: Likewise.
31122         * lib/xallocsa.c: Likewise.
31123         * lib/xsetenv.c: Likewise.
31124         * lib/xstriconv.c: Likewise.
31125
31126 2006-09-13  Simon Josefsson  <jas@extundo.com>
31127
31128         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
31129         that internally, suggested by Ralf Wildenhues
31130         <Ralf.Wildenhues@gmx.de>.
31131
31132 2006-09-13  Simon Josefsson  <jas@extundo.com>
31133
31134         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
31135         @LIBOBJS@.
31136         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31137
31138 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31139
31140         * lib/_fpending.c: Include <config.h> unconditionally, since we no
31141         longer worry about uses that don't define HAVE_CONFIG_H.
31142         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
31143         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
31144         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
31145         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
31146         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
31147         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
31148         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
31149         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
31150         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
31151         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
31152         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
31153         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
31154         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
31155         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
31156         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
31157         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
31158         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
31159         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
31160         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
31161         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
31162         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
31163         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
31164         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
31165         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
31166         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
31167         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
31168         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
31169         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
31170         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
31171         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
31172         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
31173         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
31174         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
31175         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
31176         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
31177         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
31178         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
31179         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
31180         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
31181         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
31182         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
31183         Likewise.
31184
31185 2006-09-13  Eric Blake  <ebb9@byu.net>
31186
31187         * lib/getopt.c: Fix typo in last commit.
31188
31189 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31190
31191         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
31192         dgettext.
31193
31194 2006-09-12  Jim Meyering  <jim@meyering.net>
31195
31196         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
31197         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
31198         Reported by Nelson H. F. Beebe.
31199
31200 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31201
31202         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
31203         program_invocation_name and program_invocation_short_name are
31204         initialized.
31205         * lib/argp-namefrob.h: Move declarations of program_invocation_name
31206         and program_invocation_short_name to argp.h, so they are visible
31207         to user programs.
31208         * lib/argp.h: Likewise
31209
31210 2006-09-10  Bruno Haible  <bruno@clisp.org>
31211
31212         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
31213         m4/inttypes_h.m4, m4/uintmax_t.m4.
31214
31215 2006-09-10  Bruno Haible  <bruno@clisp.org>
31216
31217         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
31218         gl_AC_TYPE_UINTMAX_T.
31219
31220 2006-09-10  Bruno Haible  <bruno@clisp.org>
31221
31222         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
31223
31224 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31225
31226         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
31227         convention.  Text proposed by Bruno Haible.
31228         (struct argp_option): Document the use of N_() wrappers.
31229
31230         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
31231         '\v', and translate the two parts separately, instead of feeding
31232         the whole string to gettext.  This allows to exclude
31233         '\v' from the strings visible to the translator by writing doc
31234         strings as N_("..") "\v" N_("..").
31235
31236 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
31237
31238         * config/srclist.txt: Undo latest change; the bug was fixed.
31239
31240 2006-09-09  Bruno Haible  <bruno@clisp.org>
31241
31242         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
31243         assignments if building a library without libtool.
31244         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
31245         in func_emit_lib_Makefile_am.
31246         (func_import): When building a static library libfoo.a, arrange to
31247         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
31248         (func_create_testdir): Likewise.
31249         * modules/gc (configure.ac, Makefile.am): If building statically,
31250         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
31251         * modules/iconvme (configure.ac, Makefile.am): Likewise.
31252         * modules/striconv (configure.ac, Makefile.am): Likewise.
31253         Based on a suggestion by Ralf Wildenhues.
31254
31255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31256
31257         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31258         Check for unistd.h too, since Autoconf doesn't assume POSIX.
31259         Also:
31260
31261         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31262         Add year_2050_test to catch glibc bug 2821
31263         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31264
31265         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31266         Prefer #ifdef to #if.
31267
31268         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31269         Return from 'main' instead of calling 'exit'.
31270
31271 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31272
31273         * lib/mktime.c (guess_time_tm): Fix bug where mktime
31274         returned the maximum time_t value rather than (time_t) -1.
31275         Problem originally reported by William Bardwell
31276         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31277
31278         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31279         Moved to here ...
31280         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31281         ... from here.
31282
31283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
31286         2821 is fixed.
31287
31288 2006-09-08  Jim Meyering  <jim@meyering.net>
31289
31290         Don't make generated files read-only.  That would bother too many
31291         people.  However, do retain the ability to work when targets are
31292         read-only: remove the destination and temporary files before writing
31293         them (when generated via sed or echo), or by using the -f option for
31294         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
31295         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31296         * modules/byteswap, modules/configmake, modules/fcntl:
31297         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31298         * modules/localcharset, modules/netinet_in, modules/poll:
31299         * modules/stdbool, modules/stdint, modules/sys_select:
31300         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31301
31302 2006-09-08  Jim Meyering  <jim@meyering.net>
31303
31304         Avoid new build failure on FreeBSD 6.0.
31305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
31306         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
31307         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
31308
31309 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31310
31311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
31312
31313 2006-09-07  Jim Meyering  <jim@meyering.net>
31314
31315         Fix global typo in last change: use chmod u-w, not chmod u-x.
31316         Spotted by Paul Eggert and Bruce Korb.
31317         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31318         * modules/byteswap, modules/configmake, modules/fcntl:
31319         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31320         * modules/localcharset, modules/netinet_in, modules/poll:
31321         * modules/stdbool, modules/stdint, modules/sys_select:
31322         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31323
31324 2006-09-06  Jim Meyering  <jim@meyering.net>
31325
31326         Make generated files be read-only.
31327         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
31328         Ensure that each generated file is now read-only.
31329         * modules/argz: Likewise.
31330         * modules/arpa_inet: Likewise.
31331         * modules/byteswap: Likewise.
31332         * modules/configmake: Likewise.
31333         * modules/fcntl: Likewise.
31334         * modules/fnmatch: Likewise.
31335         * modules/getopt: Likewise.
31336         * modules/glob: Likewise.
31337         * modules/inttypes: Likewise.
31338         * modules/netinet_in: Likewise.
31339         * modules/poll: Likewise.
31340         * modules/stdbool: Likewise.
31341         * modules/stdint: Likewise.
31342         * modules/sys_select: Likewise.
31343         * modules/sys_socket: Likewise.
31344         * modules/sys_stat: Likewise.
31345         * modules/sysexits: Likewise.
31346         * modules/localcharset: Same as above, but continue using temporary
31347         file named "t-$@" (why different?) rather than the "$@-t" used
31348         everywhere else.
31349
31350         * modules/sysexits (Makefile.am): Replace literal occurrences
31351         of "sysexit.h" more readable, and more consistent, "$@".
31352
31353 2006-09-06  Bruno Haible  <bruno@clisp.org>
31354
31355         * modules/striconv: New file.
31356         * modules/xstriconv: New file.
31357         * MODULES.html.sh (Internationalization functions): Add striconv,
31358         xstriconv.
31359
31360 2006-09-06  Bruno Haible  <bruno@clisp.org>
31361
31362         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
31363         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
31364         not using libtool correctly.
31365
31366 2006-09-06  Bruno Haible  <bruno@clisp.org>
31367
31368         * lib/striconv.h: New file.
31369         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
31370         iconvstring.c.
31371         * lib/xstriconv.h: New file.
31372         * lib/xstriconv.c: New file.
31373
31374 2006-09-06  Bruno Haible  <bruno@clisp.org>
31375
31376         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31377         lib_..._LDFLAGS.
31378
31379 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31380
31381         * lib/argz_.h: Sync from Libtool.
31382
31383         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
31384                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31385
31386         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
31387
31388 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31389
31390         * modules/trim: New file.
31391
31392 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31393
31394         * lib/trim.h: New file.
31395         * lib/trim.c: New file.
31396
31397 2006-09-05  Bruno Haible  <bruno@clisp.org>
31398
31399         * MODULES.html.sh (String handling): Add trim.
31400
31401 2006-09-04  Karl Berry  <karl@gnu.org>
31402
31403         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
31404         until next release.
31405
31406 2006-09-03  Bruno Haible  <bruno@clisp.org>
31407
31408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
31409         correctly.
31410
31411 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31412
31413         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
31414         not gl_GETLOADAVG.  Omit unneeded semicolons.
31415         Problems reported by Ralf Wildenhues in
31416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31417         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
31418         at the end, which is the usual gnulib style.
31419
31420         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
31421         of doing all the work ourselves.
31422         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
31423         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
31424
31425 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
31428         Problem reported by Ralf Wildenhues in
31429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
31430
31431         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
31432         HAVE_STRUCT_STATFS_F_FSTYPENAME.
31433
31434 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31435
31436         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
31437         yesterday's patch by changing test -n to test -z.
31438
31439 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         * modules/getloadavg (Files): Add m4/getloadavg.m4.
31442         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
31443         the former is now obsolescent.
31444
31445         * modules/chdir-long (Depends-on): Add fcntl.
31446
31447 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31448
31449         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
31450         obsolescent, and programs should use gnulib instead.
31451         * m4/getloadavg.m4: New file, with contents taken from Autoconf
31452         but with prefixes changed.
31453
31454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31455
31456         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
31457         or stdbool.h, because they might not exist while configuring.
31458
31459         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
31460         Don't include unistd.h or limits.h; not needed, since chdir-long.h
31461         does that for us.
31462         (O_DIRECTORY): Remove.
31463
31464 2006-08-31  Eric Blake  <ebb9@byu.net>
31465
31466         * gnulib-tool: Don't let emacs change spaces to TAB.
31467
31468 2006-08-31  Bruno Haible  <bruno@clisp.org>
31469
31470         * gnulib-tool: When calling func_import more than once, do it in a
31471         subshell.
31472         Reported by Eric Blake <ebb9@byu.net>.
31473
31474 2006-08-31  Bruno Haible  <bruno@clisp.org>
31475
31476         * gnulib-tool (nl): Remove variable.
31477         (sed_transform_lib_file): Use more robust test for config-h module.
31478         (func_import): Fix typo in 2006-08-25 patch.
31479
31480 2006-08-31  Bruno Haible  <bruno@clisp.org>
31481
31482         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
31483         specified, augment Makefile.am variables instead of assigning them.
31484
31485 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31486
31487         Work around a bug in both the Linux and SunOS 64-bit kernels:
31488         nanosleep mishandles sleeps for longer than 2**31 seconds.
31489         Problem reported by Frank v Waveren in
31490         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
31492         Check for nanosleep bug.
31493         (LIB_NANOSLEEP): Append clock_gettime library if needed.
31494
31495 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31496
31497         Work around a bug in both the Linux and SunOS 64-bit kernels:
31498         nanosleep mishandles sleeps for longer than 2**31 seconds.
31499         Problem reported by Frank v Waveren in
31500         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
31501         * lib/nanosleep.c (BILLION): New constant.
31502         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
31503         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
31504         implementation.
31505
31506 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31507
31508         * modules/nanosleep (Depends-on): Add gettime.
31509
31510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31511         and Simon Josefsson  <jas@extundo.com>
31512         and Oskar Liljeblad  <oskar@osk.mine.nu>
31513
31514         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
31515         * gnulib-tool (func_import): New license type 'unmodifiable license
31516         text'.
31517         * modules/fdl: Use it.  Longer description.
31518         * module/gpl, module/lgpl: New files.
31519
31520 2006-08-30  Jim Meyering  <jim@meyering.net>
31521
31522         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
31523         shadowing the parameter.
31524
31525 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31526
31527         Sync from Libtool:
31528
31529         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31530
31531         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
31532         sharing with gnulib.  Report by Eric Blake.
31533
31534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31535
31536         * modules/isapipe: New file.
31537         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
31538
31539 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31540
31541         * modules/configmake (Makefile.am): Add a comment, and omit
31542         the CONFIGMAKE_ prefix from generated macro names.  Suggested
31543         by Bruno Haible.
31544
31545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31546
31547         * m4/isapipe.m4: New file.
31548
31549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * lib/isapipe.c, lib/isapipe.h: New files.
31552
31553 2006-08-29  Jim Meyering  <jim@meyering.net>
31554
31555         * modules/configmake (Makefile.am): Make configmake.h depend on
31556         Makefile.  Otherwise, a stale configmake.h could hang around.
31557
31558 2006-08-29  Eric Blake  <ebb9@byu.net>
31559
31560         * lib/error.c (error_at_line, print_errno_message): Match libc, after
31561         resolution of upstream bug 3044.
31562
31563 2006-08-29  Bruno Haible  <bruno@clisp.org>
31564
31565         * modules/localcharset (Depends-on): Add configmake.
31566         (Makefile.am): Remove setting of LIBDIR through DEFS.
31567
31568 2006-08-29  Bruno Haible  <bruno@clisp.org>
31569
31570         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
31571         defined.
31572
31573 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31574
31575         * modules/fcntl: New file.
31576         * modules/chdir-safer (Depends-on): Add fcntl.
31577         * modules/fts: Likewise.
31578         * modules/mkdir-p: Likewise.
31579
31580         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
31581         This undoes the most recent change, since we're now addressing the
31582         problem in a different way.
31583
31584         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
31585         into output, since the output might be called Makefile.am even
31586         if $makefile_name is something different.
31587         (func_import): Use $makefile_am rather than
31588         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
31589         empty.
31590
31591         * modules/inttypes (Files): Add m4/inttypes-h.m4.
31592
31593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31594
31595         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
31596         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
31597         recent change to stdint.m4, since we're now addressing the problem in a
31598         different way.
31599
31600 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31601
31602         * m4/fcntl_h.m4: New file.
31603
31604 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31605
31606         * lib/fcntl_.h: New file.
31607         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
31608         the fcntl module.
31609         * lib/dirchownmod.c: Likewise.
31610         * lib/fts.c: Likewise.
31611
31612         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
31613         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
31614         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
31615         just before including <inttypes.h>, to avoid circular inclusion.
31616
31617 2006-08-28  Jim Meyering  <jim@meyering.net>
31618
31619         * doc/visibility.texi: Actually read and correct the grammar of the
31620         sentence affected by yesterday's change.
31621
31622 2006-08-28  Eric Blake  <ebb9@byu.net>
31623
31624         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
31625         needs wrapper.
31626
31627 2006-08-28  Eric Blake  <ebb9@byu.net>
31628
31629         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
31630
31631 2006-08-28  Eric Blake  <ebb9@byu.net>
31632
31633         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
31634
31635 2006-08-28  Bruno Haible  <bruno@clisp.org>
31636
31637         * modules/c-strstr: New file, from GNU gettext.
31638         * MODULES.html.sh (String handling): Add c-strstr.
31639
31640 2006-08-28  Bruno Haible  <bruno@clisp.org>
31641
31642         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
31643         macros.
31644         Reported by Eric Blake.
31645
31646 2006-08-28  Bruno Haible  <bruno@clisp.org>
31647
31648         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
31649         (VASNPRINTF): Return a string of length > INT_MAX without failing.
31650         * lib/vasprintf.c: Include errno.h, limits.h.
31651         (EOVERFLOW): New fallback definition.
31652         (vasprintf): Test here whether the string length is > INT_MAX.
31653         * lib/vsnprintf.c: Include errno.h, limits.h.
31654         (EOVERFLOW): New fallback definition.
31655         (vsnprintf): Fix bug when generated string was too long for the buffer.
31656         Test here whether the string length is > INT_MAX.
31657
31658 2006-08-28  Bruno Haible  <bruno@clisp.org>
31659
31660         * lib/inttypes_.h (SCNX*): Remove definitions.
31661         Reported by Eric Blake.
31662
31663 2006-08-28  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/c-strstr.h: New file, from GNU gettext.
31666         * lib/c-strstr.c: New file, from GNU gettext.
31667
31668 2006-08-28  Bruno Haible  <bruno@clisp.org>
31669
31670         * gnulib-tool: Reorder some statements.
31671
31672 2006-08-28  Bruno Haible  <bruno@clisp.org>
31673
31674         * gnulib-tool: New option --makefile-name.
31675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
31676         $makefile_name.
31677         (func_import): Write $makefile_name to the cache file, and read it from
31678         there unless explicitly specified. Use $makefile_name as file name
31679         instead of Makefile.am. Adjust the recommendations accordingly.
31680
31681 2006-08-28  Bruno Haible  <bruno@clisp.org>
31682
31683         * gnulib-tool (func_verify_module): Check against misapplying patch.
31684
31685 2006-08-28  Bruno Haible  <bruno@clisp.org>
31686
31687         * gnulib-tool (func_relativize, func_relconcat): New functions.
31688         Give an error if --local-dir is given with --update.
31689         Remove trailing slashes from $local_gnulib_dir.
31690         (func_import): Store the relativized $local_gnulib_dir in
31691         gnulib-cache.m4, and read it from there if not specified explicitly.
31692
31693 2006-08-28  Bruno Haible  <bruno@clisp.org>
31694
31695         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
31696         is the current directory. Respect also $local_gnulib_dir.
31697
31698 2006-08-28  Bruno Haible  <bruno@clisp.org>
31699             Simon Josefsson  <jas@extundo.com>
31700
31701         BeOS portability.
31702         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
31703
31704 2006-08-27  Jim Meyering  <jim@meyering.net>
31705
31706         * doc/visibility.texi: Remove duplicate word: "pointer".
31707
31708 2006-08-26  Bruno Haible  <bruno@clisp.org>
31709
31710         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
31711         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
31712         (Makefile.am): Create inttypes.h from inttypes_.h.
31713         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
31714
31715         * modules/imaxabs: New file.
31716
31717         * modules/imaxdiv: New file.
31718
31719 2006-08-26  Bruno Haible  <bruno@clisp.org>
31720
31721         * m4/inttypes.m4: New file.
31722         * m4/_inttypes_h.m4: Remove file.
31723         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
31724         PRI_MACROS_BROKEN.
31725         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
31726
31727         * m4/imaxabs.m4: New file.
31728
31729         * m4/imaxdiv.m4: New file.
31730
31731 2006-08-26  Bruno Haible  <bruno@clisp.org>
31732
31733         * lib/inttypes_.h: New file.
31734         * lib/inttypes.h: Remove file.
31735         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
31736
31737         * lib/imaxabs.c: New file.
31738
31739         * lib/imaxdiv.c: New file.
31740
31741 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31742
31743         New config-h module, so that "make" output needn't be cluttered
31744         by -DHAVE_CONFIG_H.
31745         * MODULES.html.sh (Support for building libraries and executables):
31746         Add config-h.
31747         * modules/config-h: New file.
31748         * gnulib-tool (nl, sed_transform_lib_file): New vars.
31749         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
31750         the config-h module is used.
31751
31752         New configmake module, so that "make" output needn't be cluttered
31753         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
31754         * MODULES.html.sh (Support for building libraries and executables):
31755         Add configmake.
31756         * modules/configmake: New file.
31757
31758 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31759
31760         * m4/config-h.m4: New file.
31761
31762 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31763
31764         * config/srclist.txt: Add elisp-comp.
31765
31766 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31767
31768         * MODULES.html.sh (Support for building libraries and executables):
31769         Add elisp-comp.
31770         * build-aux/elisp-comp: New file.
31771         * modules/elisp-comp: New file.
31772
31773 2006-08-24  Bruno Haible  <bruno@clisp.org>
31774
31775         * gnulib-tool (func_create_testdir): Use non-default values of
31776         sourcebase and m4base.
31777
31778 2006-08-24  Bruno Haible  <bruno@clisp.org>
31779
31780         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
31781         HTML structure.
31782
31783 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31784
31785         * modules/openat (Depends-on): Add lchown.
31786
31787 2006-08-23  Bruno Haible  <bruno@clisp.org>
31788
31789         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
31790         of gl_LOCK_EARLY instead of gl_LOCK.
31791
31792 2006-08-23  Bruno Haible  <bruno@clisp.org>
31793
31794         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
31795         on OSF/1 to no.
31796         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
31797
31798 2006-08-23  Bruno Haible  <bruno@clisp.org>
31799
31800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
31801         as unusable.
31802
31803         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
31804         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
31805         (gl_LOCK): New macro.
31806
31807 2006-08-22  Simon Josefsson  <jas@extundo.com>
31808
31809         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
31810         to md5 module.
31811
31812 2006-08-22  Simon Josefsson  <jas@extundo.com>
31813
31814         * MODULES.html.sh: Add "Support for maintaining and release
31815         projects".
31816
31817         * build-aux/gnupload: New file, from coreutils.
31818
31819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31820
31821         Avoid the need for AC_LIBSOURCES in m4 macros.
31822         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
31823         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
31824         * modules/check-version (EXTRA_DIST): Add check-version.h.
31825         * modules/crc (EXTRA_DIST): Add crc.h.
31826         * modules/des (EXTRA_DIST): Add des.h.
31827         * modules/gc (EXTRA_DIST): Add gc.h.
31828         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
31829         * modules/getline (EXTRA_DIST): Add getline.h.
31830         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
31831         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
31832         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
31833         * modules/md2 (EXTRA_DIST): Add md2.h.
31834         * modules/md4 (EXTRA_DIST): Add md4.h.
31835         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
31836         * modules/read-file (EXTRA_DIST): Add read-file.h.
31837         * modules/readline (EXTRA_DIST): Add readline.h.
31838         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
31839         rijndael-api-fst.h.
31840
31841 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31842
31843         * m4/rijndael.m4 (gl_ARCFOUR):
31844         * m4/arctwo.m4 (gl_ARCTWO):
31845         * m4/check-version.m4 (gl_CHECK_VERSION):
31846         * m4/crc.m4 (gl_CRC):
31847         * m4/des.m4 (gl_DES):
31848         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
31849         * m4/gc.m4 (gl_GC):
31850         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
31851         * m4/getline.m4 (gl_FUNC_GETLINE):
31852         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
31853         * m4/hmac-md5.m4 (gl_HMAC_MD5):
31854         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
31855         * m4/md2.m4 (gl_MD2):
31856         * m4/md4.m4 (gl_MD4):
31857         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
31858         * m4/read-file.m4 (gl_FUNC_READ_FILE):
31859         * m4/readline.m4 (gl_FUNC_READLINE):
31860         * m4/rijndael.m4 (gl_RIJNDAEL):
31861         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
31862         to get the necessary .h files and whatnot.
31863
31864 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31865
31866         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
31867         gnulib rather than the other way around.
31868         * config/srclistvars.sh (COREUTILS): Remove.
31869
31870 2006-08-22  Jim Meyering  <jim@meyering.net>
31871
31872         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
31873
31874         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
31875
31876 2006-08-22  Eric Blake  <ebb9@byu.net>
31877
31878         * modules/regexprops-generic: New file.
31879         * MODULES.html.sh (Support for building documentation): List it.
31880
31881 2006-08-22  Eric Blake  <ebb9@byu.net>
31882
31883         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
31884         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
31886         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31887
31888 2006-08-22  Bruno Haible  <bruno@clisp.org>
31889
31890         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
31891         and lib_LTLIBRARIES like the other lib_* variables.
31892
31893 2006-08-22  Bruno Haible  <bruno@clisp.org>
31894
31895         * build-aux/x-to-1.in: New file, from GNU gettext.
31896
31897 2006-08-22  Bruno Haible  <bruno@clisp.org>
31898
31899         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
31900         <utmpx.h> exists.
31901
31902 2006-08-22  Bruno Haible  <bruno@clisp.org>
31903
31904         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
31905         <utmpx.h> exists.
31906
31907 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
31908
31909         BeOS portability.
31910         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
31911         exist.
31912         Problem reported by Bruno Haible.
31913
31914 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
31915
31916         Avoid the need for AC_LIBSOURCES in m4 macros.
31917         * modules/acl (EXTRA_DIST): Add acl.h.
31918         * modules/argmatch (Files): Add m4/argmatch.m4.
31919         (configure.ac): Add gl_ARGMATCH.
31920         (EXTRA_DIST): Renamed from lib_SOURCES, for
31921         consistency with the other modules.  Remove argmatch.c.
31922         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
31923         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
31924         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
31925         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
31926         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
31927         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
31928         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
31929         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
31930         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
31931         * modules/closeout (EXTRA_DIST): Add closeout.h.
31932         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
31933         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
31934         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
31935         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
31936         dirname.h; remove basename.c and stripslash.c.
31937         * modules/exclude (EXTRA_DIST): Add exclude.h.
31938         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
31939         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
31940         * modules/file-type (EXTRA_DIST): Add file-type.h.
31941         * modules/filemode (EXTRA_DIST): Add filemode.h.
31942         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
31943         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
31944         * modules/fpending (EXTRA_DIST): Add __fpending.h.
31945         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
31946         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
31947         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
31948         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
31949         * modules/getdate (EXTRA_DIST): Add getdate.c.
31950         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
31951         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
31952         * modules/getpass (EXTRA_DIST): Add getpass.h.
31953         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
31954         * modules/group-member (EXTRA_DIST): Add group-member.h.
31955         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
31956         * modules/hash (EXTRA_DIST): Add hash.h.
31957         * modules/human (EXTRA_DIST): Add human.h.
31958         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
31959         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
31960         * modules/lchown (EXTRA_DIST): Add lchown.h.
31961         * modules/long-options (EXTRA_DIST): Add long-options.h.
31962         * modules/lstat (EXTRA_DIST): Add lstat.h.
31963         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
31964         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
31965         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
31966         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
31967         * modules/memxor (EXTRA_DIST): Add memxor.h.
31968         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
31969         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
31970         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
31971         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
31972         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
31973         * modules/physmem (EXTRA_DIST): Add physmem.h.
31974         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
31975         * modules/posixver (EXTRA_DIST): Add posixver.h.
31976         * modules/quote (EXTRA_DIST): Add quote.h.
31977         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
31978         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
31979         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
31980         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
31981         regex_internal.h regexec.c.
31982         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
31983         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
31984         * modules/same (EXTRA_DIST): Add same.h.
31985         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
31986         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
31987         * modules/savedir (EXTRA_DIST): Add savedir.h.
31988         * modules/sha1 (EXTRA_DIST): Add sha1.h.
31989         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
31990         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
31991         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
31992         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
31993         * modules/strdup (EXTRA_DIST): Add strdup.h.
31994         * modules/strftime (EXTRA_DIST): Add strftime.h.
31995         * modules/strndup (EXTRA_DIST): Add strndup.h.
31996         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
31997         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
31998         * modules/time_r (EXTRA_DIST): Add time_r.h.
31999         * modules/timespec (EXTRA_DIST): Add timespec.h.
32000         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32001         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
32002         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
32003         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
32004         * modules/userspec (EXTRA_DIST): Add userspec.h.
32005         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
32006         * modules/utimens (EXTRA_DIST): Add utimens.h.
32007         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
32008         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
32009         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
32010         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
32011         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
32012         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
32013         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
32014         * modules/yesno (EXTRA_DIST): Add yesno.h.
32015
32016 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32017
32018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
32019
32020         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
32021         * m4/dev-ino.m4, same-inode.m4: Remove.
32022
32023         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
32024         * m4/acl.m4 (AC_FUNC_ACL):
32025         * m4/backupfile.m4 (gl_BACKUPFILE):
32026         * m4/c-strtod.m4 (gl_C99_STRTOLD):
32027         * m4/canon-host.m4 (gl_CANON_HOST):
32028         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
32030         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
32031         * m4/cloexec.m4 (gl_CLOEXEC):
32032         * m4/close-stream.m4 (gl_CLOSE_STREAM):
32033         * m4/closeout.m4 (gl_CLOSEOUT):
32034         * m4/dirfd.m4 (gl_FUNC_DIRFD):
32035         * m4/dirname.m4 (gl_DIRNAME):
32036         * m4/exclude.m4 (gl_EXCLUDE):
32037         * m4/exitfail.m4 (gl_EXITFAIL):
32038         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
32039         * m4/file-type.m4 (gl_FILE_TYPE):
32040         * m4/filemode.m4 (gl_FILEMODE):
32041         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
32042         * m4/fpending.m4 (gl_FUNC_FPENDING):
32043         * m4/fprintftime.m4 (gl_FPRINTFTIME):
32044         * m4/fts.m4 (gl_FUNC_FTS):
32045         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
32046         * m4/getdate.m4 (gl_GETDATE):
32047         * m4/gethrxtime.m4 (gl_GETHRXTIME):
32048         * m4/getpagesize.m4 (gl_GETPAGESIZE):
32049         * m4/getpass.m4 (gl_FUNC_GETPASS):
32050         * m4/gettime.m4 (gl_GETTIME):
32051         * m4/getugroups.m4 (gl_GETUGROUPS):
32052         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
32053         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
32054         * m4/hard-locale.m4 (gl_HARD_LOCALE):
32055         * m4/hash.m4 (gl_HASH):
32056         * m4/idcache.m4 (gl_IDCACHE):
32057         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
32058         * m4/lchown.m4 (gl_FUNC_LCHOWN):
32059         * m4/long-options.m4 (gl_LONG_OPTIONS):
32060         * m4/lstat.m4 (gl_FUNC_LSTAT):
32061         * m4/md5.m4 (gl_MD5):
32062         * m4/memcasecmp.m4 (gl_MEMCASECMP):
32063         * m4/memcoll.m4 (gl_MEMCOLL):
32064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
32065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
32066         * m4/memxor.m4 (gl_MEMXOR):
32067         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
32068         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
32069         * m4/modechange.m4 (gl_MODECHANGE):
32070         * m4/mountlist.m4 (gl_MOUNTLIST):
32071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32072         * m4/openat.m4 (gl_FUNC_OPENAT):
32073         * m4/pathmax.m4 (gl_PATHMAX):
32074         * m4/physmem.m4 (gl_PHYSMEM):
32075         * m4/posixtm.m4 (gl_POSIXTM):
32076         * m4/posixver.m4 (gl_POSIXVER):
32077         * m4/quote.m4 (gl_QUOTE):
32078         * m4/quotearg.m4 (gl_QUOTEARG):
32079         * m4/readtokens.m4 (gl_READTOKENS):
32080         * m4/readutmp.m4 (gl_READUTMP):
32081         * m4/regex.m4 (gl_REGEX):
32082         * m4/safe-read.m4 (gl_SAFE_READ):
32083         * m4/safe-write.m4 (gl_SAFE_WRITE):
32084         * m4/same.m4 (gl_SAME):
32085         * m4/save-cwd.m4 (gl_SAVE_CWD):
32086         * m4/savedir.m4 (gl_SAVEDIR):
32087         * m4/settime.m4 (gl_SETTIME):
32088         * m4/sha1.m4 (gl_SHA1):
32089         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
32090         * m4/stat-macros.m4 (gl_STAT_MACROS):
32091         * m4/stat-time.m4 (gl_STAT_TIME):
32092         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
32093         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
32094         * m4/strdup.m4 (gl_FUNC_STRDUP):
32095         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
32096         * m4/strndup.m4 (gl_FUNC_STRNDUP):
32097         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
32098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
32099         * m4/time_r.m4 (gl_TIME_R):
32100         * m4/timespec.m4 (gl_TIMESPEC):
32101         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
32102         * m4/unlinkdir.m4 (gl_UNLINKDIR):
32103         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
32104         * m4/userspec.m4 (gl_USERSPEC):
32105         * m4/utimecmp.m4 (gl_UTIMECMP):
32106         * m4/utimens.m4 (gl_UTIMENS):
32107         * m4/xalloc.m4 (gl_XALLOC):
32108         * m4/xgetcwd.m4 (gl_XGETCWD):
32109         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
32110         * m4/xreadlink.m4 (gl_XREADLINK):
32111         * m4/xstrtod.m4 (gl_XSTRTOD):
32112         * m4/yesno.m4 (gl_YESNO):
32113         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32114         to get the necessary .h files and whatnot.
32115
32116 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
32117             Bruno Haible  <bruno@clisp.org>
32118
32119         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
32120         /bin/sh understanding of '!' conditional negation.
32121
32122 2006-08-21  Jim Meyering  <jim@meyering.net>
32123
32124         * modules/openat (Depends-on): Really alphabetize.
32125
32126         * modules/acl (Depends-on): Add error and quote.
32127
32128         * check-module (find_included_lib_files): Add at-func.c to the
32129         ok-to-include-more-than-once white list.
32130
32131         * modules/openat (Depends-on): Add lstat.  Alphabetize.
32132
32133 2006-08-21  Bruno Haible  <bruno@clisp.org>
32134
32135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32136         Emit a pkgdata_DATA variable only if some snippets add contents to it.
32137         Reported by Martin Lambers <marlam@marlam.de>.
32138
32139 2006-08-21  Bruno Haible  <bruno@clisp.org>
32140
32141         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
32142         specify an installation location, don't emit a noinst_LIBRARIES or
32143         noinst_LTLIBRARIES assignment.
32144
32145 2006-08-21  Bruno Haible  <bruno@clisp.org>
32146
32147         BeOS portability.
32148         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
32149         BeOS has mbrtowc() but no <wctype.h>.
32150
32151 2006-08-21  Bruno Haible  <bruno@clisp.org>
32152
32153         BeOS portability.
32154         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
32155         exist.
32156
32157 2006-08-21  Bruno Haible  <bruno@clisp.org>
32158
32159         BeOS portability.
32160         * lib/mbchar.h: Include <wctype.h> only if it exists.
32161
32162 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32163
32164         Remove files that are no longer needed by their respective modules.
32165         * m4/obstack.m4: Remove.
32166         * m4/strerror_r.m4: Remove.
32167         * m4/uint32_t.m4: Remove.
32168         * m4/uintptr_t.m4: Remove.
32169         * m4/ullong_max.m4: Remove.
32170         * m4/xstrtoimax.m4: Remove.
32171         * m4/xstrtoumax.m4: Remove.
32172
32173         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
32174         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
32175         dependencies now capture this.
32176
32177         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32178         Do not use AC_LIBSOURCES, since gnulib modules now do this.
32179         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
32180         * m4/human.m4 (gl_HUMAN): Likewise.
32181         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
32182         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
32183
32184         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
32185
32186         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
32187         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
32188         stdint.
32189         * m4/human.m4 (gl_HUMAN): Likewise.
32190         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
32191         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
32192         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32193         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32194         * m4/xstrtol (gl_XSTRTOL): Likewise.
32195
32196         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
32197         AC_TYPE_LONG_LONG_INT.
32198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32199         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
32200         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
32201         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32202
32203         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
32204         on stdbool.
32205
32206         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
32207         (gl_PREREQ_XSTRTOUL): Remove.
32208
32209         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
32210
32211         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
32212         mode.
32213
32214 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32215
32216         Add and change modules to make it easier for coreutils to use
32217         gnulib-tool.
32218         * modules/backupfile (Files): Remove m4/d-ino.m4.
32219         (Depends-on): Add d-ino.
32220         * modules/cycle-check (Depends-on): Add stdint.
32221         (lib_SOURCES): Add cycle-check.h.
32222         * modules/d-ino: New module.
32223         * modules/d-type: New module.
32224         * modules/error (Files): Remove m4/strerror_r.m4.
32225         * modules/filemode (Files): Add m4/st_dm_mode.m4.
32226         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32227         m4/inttypes_h.m4, m4/uintmax_t.m4.
32228         (Depends-on): Add stdint.
32229         (lib_SOURCES): Add fsusage.h.
32230         * modules/getcwd (Files): Remove d-ino.m4.
32231         (Depends-on): Add d-ino.
32232         * modules/getndelim2 (Depends-on): Add stdint.
32233         * modules/glob (Files): Remove m4/d-type.m4.
32234         (Depends-on): Add d-type.
32235         * modules/host-os: New module.
32236         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
32237         m4/inttypes_h.m4, m4/uintmax_t.m4.
32238         * Depends-on: Add stdint.
32239         (lib_SOURCES): Add human.h.
32240         * modules/inttostr (Files): Remove m4/intmax_t.m4,
32241         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
32242         m4/uintmax_t.m4, m4/ulonglong.m4.
32243         (Depends-on): Add stdint.
32244         (EXTRA_DIST): Add inttostr.h.
32245         * modules/lchmod: New module.
32246         * modules/link-follow: New module.
32247         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
32248         (Depends-on): Add lchmod.
32249         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
32250         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
32251         (Depends-on): Add stdint.
32252         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
32253         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
32254         (Depends-on): Add stdint.
32255         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
32256         * modules/perl: New module.
32257         * modules/regex (Depends-on): Add stdint.
32258         * modules/rmdir-errno: New module.
32259         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32260         m4/intmax_t.m4.
32261         (Depends-on): Add stdint.
32262         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32263         m4/uintmax_t.m4.
32264         (Depends-on): Add stdint.
32265         * modules/unlink-busy: New module.
32266         * modules/utimecmp (Depends-on): Add stdint.
32267         * modules/uptime: New module.
32268         * modules/winsz-ioctl: New module.
32269         * modules/winsz-termios: New module.
32270         * modules/xnanosleep (Depends-on): Add nanosleep.
32271         * modules/ullong_max: Remove.
32272         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
32273         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
32274         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
32275         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
32276         (Depends-on): Add inttypes.
32277         (lib_SOURCES): Add xstrtol.h.
32278         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
32279         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
32280         * MODULES.html.sh: Move 'assert' into the assert section.
32281         Move 'dummy' into the linking section.
32282         Remove ullong_max.
32283         Add section for compatibility checks for POSIX:2001 functions,
32284         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
32285         winsz-ioctl, and winsz-termios into it.
32286         Add lchmod.
32287         Add top-level Misc section and put host-os, perl, and uptime
32288         into it.
32289
32290 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
32293         now assume the stdint module.  Do not include inttypes.h.
32294         * lib/fsusage.h: Likewise.
32295         * lib/getndelim2.c: Likewise.
32296         * lib/human.h: Likewise.
32297         * lib/inttostr.h: Likewise.
32298         * lib/obstack.c: Likewise.
32299         * lib/regex_internal.h: Likewise.
32300         * lib/tempname.c: Likewise.
32301         * lib/utimecmp.c: Likewise.
32302         * lib/xstrtol.h: Likewise.
32303
32304         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
32305
32306         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
32307         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
32308         * lib/xtime.h: Likewise.
32309
32310 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32311
32312         * modules/openat (Files): Add lib/fchmodat.c.
32313         Fixes problem reported by Jay Youngman.
32314
32315 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32316
32317         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
32318         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
32319
32320 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
32321             Bruno Haible  <bruno@clisp.org>
32322
32323         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
32324         and is a script that invokes bison. Tighten the code. Add comments.
32325
32326 2006-08-18  Jim Meyering  <jim@meyering.net>
32327
32328         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
32329         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
32330         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
32331         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
32332
32333 2006-08-18  Bruno Haible  <bruno@clisp.org>
32334
32335         * modules/bison-i18n: New file.
32336         * MODULES.html.sh (Internationalization functions): Add it.
32337
32338 2006-08-18  Bruno Haible  <bruno@clisp.org>
32339
32340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
32341         sys/statvfs.h. When getmntinfo was found, check its declaration and
32342         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
32343
32344 2006-08-18  Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/bison-i18n.m4: New file, from bison.
32347
32348 2006-08-18  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
32351         (ME_DUMMY): Treat "kernfs" as a dummy.
32352         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
32353
32354 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32355
32356         Update from coreutils.
32357
32358         2006-08-15  Jim Meyering  <jim@meyering.net>
32359
32360         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
32361
32362         2006-01-17  Jim Meyering  <jim@meyering.net>
32363
32364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
32365
32366         2006-01-11  Jim Meyering  <jim@meyering.net>
32367
32368         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
32369         Check for the lchmod function.
32370
32371 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32372
32373         Update from coreutils.
32374
32375         * lib/__fpending.h: Add copyright notice.
32376         * lib/fprintftime.h: Likewise.
32377         * lib/savedir.c: Use (C) in copyright notice.
32378         * lib/savedir.h: Likewise.
32379
32380         2006-08-15  Jim Meyering  <jim@meyering.net>
32381
32382         * lib/at-func.c: New file, with the logic of all emulated at-functions.
32383         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
32384         in support of the EXPECTED_ERRNO macro.
32385         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
32386         definitions.  Instead, define the appropriate symbols and include
32387         "at-func.c".
32388         * lib/mkdirat.c (mkdirat): Likewise.
32389         * lib/fchmodat.c (fchmodat): Likewise.
32390         (ENOSYS): Remove definition.
32391         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
32392         it.  Don't include "unistd--.h" -- it wasn't ever used.
32393
32394         2006-01-17  Jim Meyering  <jim@meyering.net>
32395
32396         Rewrite fts.c not to change the current working directory,
32397         by using openat, fstatat, fdopendir, etc..
32398
32399         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
32400         (HAVE_OPENAT_SUPPORT): Define.
32401         [_LIBC] (fchdir): Don't undef or define; no longer used.
32402         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
32403         Now, this `function' always succeeds, and consumes its file descriptor
32404         parameter -- so callers must not close such FDs.  Update callers.
32405         (diropen_fd, opendirat, cwd_advance_fd): New functions.
32406         (diropen): Add parameter, SP.  Adjust all callers.
32407         Implement using diropen_fd, rather than open.
32408         (fts_open): Initialize new member, fts_cwd_fd.
32409         Remove fts_rft-setting code.
32410         (fts_close): Close fts_cwd_fd, if necessary.
32411         (__opendir2): Define in terms of opendir or opendirat,
32412         depending on whether the FST_NOCHDIR flag is set.
32413         (fts_build): Since fts_safe_changedir consumes its FD, and since
32414         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
32415         and close the dup'd file descriptor upon failure.
32416         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
32417         (fts_safe_changedir): Tweak semantics to reflect that this function
32418         now calls cwd_advance_fd and hence consumes its FD argument.
32419         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
32420         [struct FTS] (fts_rft): Remove now-unused member.
32421         [struct FTS] (fts_cycle.state): Improve comment.
32422
32423         * lib/openat.c (openat_needs_fchdir): New function.
32424         * lib/openat.h (openat_needs_fchdir): Declare it.
32425
32426 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
32427
32428         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
32429         Problem and fix reported by Pádraig Brady in
32430         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
32431
32432 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32433
32434         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
32435
32436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32437
32438         * lib/memcoll.c (memcoll): Optimize for the common case where the
32439         arguments are bytewise equal.
32440
32441 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * doc/regexprops-generic.texi: Add a copyright notice.
32444
32445 2006-08-15  Bruno Haible  <bruno@clisp.org>
32446
32447         * modules/tmpdir (License): Change to LGPL.
32448
32449 2006-08-15  Bruno Haible  <bruno@clisp.org>
32450
32451         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
32452         module.
32453
32454 2006-08-14  Simon Josefsson  <jas@extundo.com>
32455
32456         * config/srclist.txt: Add gnupload.
32457
32458 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32459
32460         Change copyright notice from LGPL 2 to GPL 2, since that's the
32461         standard form used in the gnulib repository.
32462         * tests/test-lock.c: Likewise.
32463         * tests/test-stdint.c: Likewise.
32464         * tests/test-tls.c: Likewise.
32465
32466         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
32467         prelude-manager.  User shorter URLs for GNU projects, without '?'.
32468         Add copyright notice.
32469
32470         * check-module: Add copyright notice.  Output a copyright
32471         notice if "--version" is specified.
32472         * modules/COPYING: New file.
32473         * tests/test-getaddrinfo.c: Add copyright notice.
32474         * tests/test-verify.c: Likewise.
32475
32476 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         Change copyright notice from LGPL 2 to GPL 2, since that's the
32479         standard form used in the gnulib repository.
32480         * lib/lock.c: LGPL -> GPL.
32481         * lib/lock.h: Likewise.
32482         * lib/strnlen1.c: Likewise.
32483         * lib/strnlen1.h: Likewise.
32484         * lib/tls.c: Likewise.
32485         * lib/tls.h: Likewise.
32486         * lib/tmpdir.c: Likewise.
32487
32488         * lib/TODO: Remove; this belongs only in coreutils.
32489
32490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32491
32492         Add copyright notices to long-enough files that lack them, since
32493         otherwise the files aren't clearly free.  Use the same notice that
32494         getdate.texi already uses.
32495         * doc/alloca-opt.texi: Add copyright notice.
32496         * doc/alloca.texi: Likewise.
32497         * doc/ctime.texi: Likewise.
32498         * doc/functions.texi: Likewise.
32499         * doc/gcd.texi: Likewise.
32500         * doc/gnulib-tool.texi: Likewise.
32501         * doc/inet_ntoa.texi: Likewise.
32502         * doc/visibility.texi: Likewise.
32503
32504         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
32505         * doc/quote.texi: Add copyright notice.
32506
32507         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
32508         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
32509         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
32510         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
32511         is now obsolete, and give a pointer to the Sun list.
32512         Add copyright notice.
32513
32514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32515
32516         * config/srclistvars.sh: Add copyright notice.
32517
32518 2006-08-14  Eric Blake  <ebb9@byu.net>
32519
32520         Import the following change from libc:
32521
32522         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
32523
32524         Upstream bug 2997.
32525         * lib/misc/error.c: Add space between program name and message if file
32526         name is missing.
32527
32528 2006-08-12  Karl Berry  <karl@gnu.org>
32529
32530         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
32531         remove, these originate in gnulib now.
32532
32533 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32534
32535         * doc/Makefile (standards.info standards.html standards.dvi):
32536         Also depend on make-stds.texi.
32537
32538 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
32541         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
32542
32543         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
32544         in wchar_t.  Problem reported by Eric Blake.
32545
32546         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
32547         LEN is smaller than SIZE.  Suggested by Bruno Haible.
32548         Also, help the compiler to keep LEN in a register.
32549
32550 2006-08-11  Eric Blake  <ebb9@byu.net>
32551
32552         * users.txt: Sort.  Add tar.
32553
32554 2006-08-11  Bruno Haible  <bruno@clisp.org>
32555
32556         * users.txt: New file.
32557
32558 2006-08-11  Bruno Haible  <bruno@clisp.org>
32559
32560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
32561         before <wchar.h>. Needed for OSF/1 and BSD/OS.
32562
32563 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32564
32565         * modules/snprintf (Depends-on): Remove minmax.
32566         (Maintainer): Add self and Bruno.
32567
32568 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * lib/.cppi-disable: Add snprintf.h, socket_.h.
32571         * lib/snprintf.c: Include <errno.h> and <limits.h>.
32572         (EOVERFLOW): Define if the system does not.
32573         Do not include "minmax.h"; it wasn't used.
32574         (snprintf): Don't assume size_t promotes to an unsigned type.
32575         Fix bug when generated string was too long for the buffer: the
32576         buffer's contents are supposed to be the initial prefix of the
32577         output.  Don't assume vasnprintf returns EOVERFLOW if the size
32578         exceeds INT_MAX; do the check ourselves.
32579
32580         Import the following changes from libc:
32581
32582         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
32583
32584         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
32585         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
32586         set wc to the byte which couldn't be converted.
32587         (re_string_reconstruct): Don't clear valid_raw_len before calling
32588         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
32589         tip_context using re_string_context_at.
32590
32591         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
32592
32593         * lib/posix/regex.h: g++ still cannot handled [restrict].
32594
32595         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
32596
32597         * lib/posix/regex.h: Remove special handling for VMS.
32598
32599 2006-08-10  Jim Meyering  <jim@meyering.net>
32600
32601         * modules/same-inode: New module.
32602         * modules/dev-ino: New module.
32603         * modules/cycle-check: Depend on these modules, rather than simply
32604         including their .h files.
32605         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
32606         required via m4/cycle-check.m4.
32607         * modules/same: Depend on new same-inode module, rather than
32608         including same-inode.h.
32609         * modules/chdir-safer: New file.
32610
32611         * modules/chown (Depends-on): Add stat-macros.
32612
32613 2006-08-10  Jim Meyering  <jim@meyering.net>
32614
32615         * m4/cycle-check.m4: New file.
32616         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
32617         * m4/dev-ino.m4, m4/same-inode.m4: New files.
32618
32619 2006-08-10  Eric Blake  <ebb9@byu.net>
32620
32621         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
32622         in from original proposal.
32623
32624 2006-08-10  Eric Blake  <ebb9@byu.net>
32625         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32626
32627         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
32628         namespace.
32629
32630 2006-08-10  Bruno Haible  <bruno@clisp.org>
32631
32632         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
32633         as well.
32634
32635 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32636
32637         Sync from coreutils.
32638
32639         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
32640
32641         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
32642         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
32643
32644 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32645
32646         * modules/restrict: Remove; no longer needed now that we assume
32647         Autoconf 2.59 or later.
32648         * MODULES.html.sh: Remove 'restrict'.
32649         * modules/argp (Depends-on): Remove 'restrict'.
32650         * modules/base64 (Depends-on): Likewise.
32651         * modules/gc (Depends-on): Likewise.
32652         * modules/getaddrinfo (Depends-on): Likewise.
32653         * modules/glob (Depends-on): Likewise.
32654         * modules/inet_ntop (Depends-on): Likewise.
32655         * modules/inet_pton (Depends-on): Likewise.
32656         * modules/memxor (Depends-on): Likewise.
32657         * modules/regex (Depends-on): Likewise.
32658         * modules/strtok_r (Depends-on): Likewise.
32659         * modules/time_r (Depends-on): Likewise.
32660
32661 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32662
32663         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
32664         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
32665         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32666         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
32667         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
32668         * m4/memxor.m4 (gl_MEMXOR): Likewise.
32669         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
32670         gl_C_RESTRICT replaced by AC_C_RESTRICT.
32671
32672         Merge from coreutils.
32673         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
32674         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
32675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32676         * m4/time_r.m4 (gl_TIME_R): Likewise.
32677
32678 2006-08-09  Karl Berry  <karl@gnu.org>
32679
32680         * config/srclist.txt: no more gettext-tools, per Bruno.
32681
32682 2006-08-08  Eric Blake  <ebb9@byu.net>
32683
32684         * modules/verror: New module.
32685         * MODULES.html.sh: Document it.
32686
32687 2006-08-08  Eric Blake  <ebb9@byu.net>
32688
32689         * lib/verror.h, lib/verror.c: New files.
32690
32691 2006-08-08  Eric Blake  <ebb9@byu.net>
32692
32693         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
32694         verror_at_line output complies with GNU Coding Standards even when
32695         file is NULL.
32696
32697 2006-08-07  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
32700         versions of AIX.
32701         Reported by Ralf Wildenhues.
32702
32703 2006-08-07  Bruno Haible  <bruno@clisp.org>
32704
32705         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
32706         in an AC_DEFUN. Needed so that the autoconf snippets can use
32707         AC_REQUIRE.
32708
32709 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32710
32711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32712         Initialize pkgdata_DATA.
32713         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
32714         overriding it.
32715
32716 2006-08-06  Eric Blake  <ebb9@byu.net>
32717
32718         * lib/error.h: Fold in some upstream changes from glibc.
32719         * lib/error.c: Likewise.
32720
32721 2006-08-04  Bruno Haible  <bruno@clisp.org>
32722
32723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32724         Make the mostlyclean-local rule depend on mostlyclean-generic.
32725         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
32726
32727 2006-07-31  Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
32730         <stdlib.h>, <string.h>.
32731
32732 2006-07-30  Bruno Haible  <bruno@clisp.org>
32733
32734         * modules/readlink (License): Change to LGPL.
32735
32736 2006-07-30  Bruno Haible  <bruno@clisp.org>
32737
32738         * modules/javaversion (Makefile.am): Distribute javaversion.java and
32739         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
32740         set PKGDATADIR to point to it.
32741
32742 2006-07-30  Bruno Haible  <bruno@clisp.org>
32743
32744         * modules/csharpexec (configure.ac): Comment out macro invocation.
32745         * modules/javaexec (configure.ac): Likewise.
32746         * modules/javacomp-script (configure.ac): Likewise.
32747
32748         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
32749
32750 2006-07-30  Bruno Haible  <bruno@clisp.org>
32751
32752         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
32753         linked-list.
32754
32755 2006-07-30  Bruno Haible  <bruno@clisp.org>
32756
32757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
32758
32759 2006-07-30  Bruno Haible  <bruno@clisp.org>
32760
32761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32762         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
32763         get removed.
32764
32765 2006-07-29  Bruno Haible  <bruno@clisp.org>
32766
32767         Make it possible for gnulib-tool to work with locally modified or
32768         augmented gnulib repositories.
32769         * gnulib-tool (func_usage): Document --local-dir option.
32770         (local_gnulib_dir): New variable.
32771         Handle --local-dir option.
32772         (func_lookup_file): New function.
32773         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
32774         (func_get_description, func_get_filelist, func_get_description,
32775         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
32776         func_get_automake_snippet, func_get_include_directive,
32777         func_get_license, func_get_maintainer): Use func_lookup_file.
32778         (func_import, func_create_testdir): Use func_lookup_file.
32779
32780 2006-07-29  Bruno Haible  <bruno@clisp.org>
32781
32782         * modules/setenv (Depends-on): Add unistd.
32783
32784 2006-07-29  Bruno Haible  <bruno@clisp.org>
32785
32786         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
32787
32788 2006-07-29  Bruno Haible  <bruno@clisp.org>
32789
32790         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
32791
32792 2006-07-29  Bruno Haible  <bruno@clisp.org>
32793
32794         * gnulib-tool (import, update): If there is no Makefile.am, look at
32795         aclocal.m4, instead of bailing out.
32796
32797 2006-07-29  Bruno Haible  <bruno@clisp.org>
32798
32799         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
32800         Categorize the options by when they are useful.
32801
32802 2006-07-29  Bruno Haible  <bruno@clisp.org>
32803
32804         * gnulib-tool (func_usage): Document option --no-libtool.
32805         Handle option --no-libtool.
32806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
32807         for changed semantics of $libtool variable.
32808         (func_import): Likewise. If libtool is not used, show this through
32809         an option --no-libtool.
32810         (func_create_testdir): Update.
32811
32812 2006-07-29  Bruno Haible  <bruno@clisp.org>
32813
32814         * gnulib-tool (func_import): Extend error message about missing
32815         --doc-base.
32816
32817 2006-07-29  Bruno Haible  <bruno@clisp.org>
32818
32819         * gnulib-tool (func_import): Don't create the $docbase directory if
32820         there is no file to store there.
32821
32822 2006-07-29  Bruno Haible  <bruno@clisp.org>
32823
32824         * gnulib-tool (autoconf_minversion): If a --dir option is given and
32825         relevant, look for configure.ac there, not in the current directory.
32826         Also use a simple search for AC_PREREQ, not "autoconf --trace".
32827
32828 2006-07-29  Bruno Haible  <bruno@clisp.org>
32829
32830         * gnulib-tool (SORT): New variable.
32831         (func_usage): Undocument --assume-autoconf option.
32832         Remove --assume-autoconf option handling.
32833         (autoconf_minversion): Determine from the contents of configure.ac.
32834         (func_import): Remove autoconf_minversion handling.
32835         Suggested by Eric Blake.
32836
32837 2006-07-29  Bruno Haible  <bruno@clisp.org>
32838
32839         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
32840
32841 2006-07-29  Bruno Haible  <bruno@clisp.org>
32842
32843         * config/srclist.txt (*setenv.[ch]): Remove rules.
32844
32845 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32846
32847         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
32848
32849 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32850
32851         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
32852         arpa/inet.h.
32853
32854 2006-07-28  Simon Josefsson  <jas@extundo.com>
32855
32856         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
32857         * modules/inet_pton (Depends-on): Likewise.
32858
32859 2006-07-28  Simon Josefsson  <jas@extundo.com>
32860
32861         * m4/netinet_in_h.m4: New file.
32862
32863 2006-07-28  Simon Josefsson  <jas@extundo.com>
32864
32865         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
32866         #include's.
32867
32868 2006-07-28  Simon Josefsson  <jas@extundo.com>
32869
32870         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
32871         #include's.
32872
32873 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
32874
32875         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
32876         setgid on directories only if they set these bits.
32877         * lib/modechange.h: Remove obsolete comment about masks.
32878
32879 2006-07-28  Eric Blake  <ebb9@byu.net>
32880
32881         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
32882         macro expansion.
32883
32884 2006-07-28  Bruno Haible  <bruno@clisp.org>
32885
32886         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
32887
32888 2006-07-28  Bruno Haible  <bruno@clisp.org>
32889
32890         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
32891
32892 2006-07-28  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32895         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32896         Define fallbacks.
32897         Avoids link error on FreeBSD 4.x.
32898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32899
32900         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
32901         encoding.
32902         * lib/mbswidth.c (iswcntrl): Likewise.
32903
32904 2006-07-27  Bruno Haible  <bruno@clisp.org>
32905
32906         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
32907         test.
32908
32909 2006-07-27  Bruno Haible  <bruno@clisp.org>
32910
32911         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
32912         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
32913         defined.
32914
32915 2006-07-26  Eric Blake  <ebb9@byu.net>
32916
32917         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
32918
32919 2006-07-26  Eric Blake  <ebb9@byu.net>
32920
32921         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
32922         like mingw that lack mkstemp.
32923         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
32924         avoid compilation warning on mingw.
32925
32926 2006-07-26  Bruno Haible  <bruno@clisp.org>
32927
32928         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
32929         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
32930         INT_FAST*_MIN, INTPTR_MIN.
32931
32932 2006-07-25  Bruno Haible  <bruno@clisp.org>
32933
32934         * modules/version-etc (Depends-on): Add stdarg.
32935
32936 2006-07-25  Bruno Haible  <bruno@clisp.org>
32937
32938         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
32939         complex commands.
32940
32941 2006-07-25  Bruno Haible  <bruno@clisp.org>
32942
32943         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
32944         defined in <stdarg.h> or config.h.
32945
32946 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32947
32948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
32949         (gl_STDIO_SAFER): Remove.
32950
32951 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32952
32953         * MODULES.html.sh (File stream based Input/Output):
32954         Add fopen-safer, tmpfile-safer; remove stdio-safer.
32955         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
32956         * modules/fopen-safer, modules/tmpfile-safer: New files.
32957         * modules/stdio-safer: Remove.
32958
32959 2006-07-24  Bruno Haible  <bruno@clisp.org>
32960
32961         * modules/tmpdir: New file.
32962         * MODULES.html.sh (File system functions): Add it.
32963
32964 2006-07-24  Bruno Haible  <bruno@clisp.org>
32965
32966         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
32967         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
32968
32969 2006-07-24  Bruno Haible  <bruno@clisp.org>
32970
32971         * modules/clean-temp: New file.
32972
32973 2006-07-24  Bruno Haible  <bruno@clisp.org>
32974
32975         * m4/tmpdir.m4: New file, from GNU gettext.
32976
32977 2006-07-24  Bruno Haible  <bruno@clisp.org>
32978
32979         * lib/tmpdir.h: New file, from GNU gettext.
32980         * lib/tmpdir.c: New file, from GNU gettext.
32981
32982 2006-07-24  Bruno Haible  <bruno@clisp.org>
32983
32984         * lib/clean-temp.h: New file, from GNU gettext.
32985         * lib/clean-temp.c: New file, from GNU gettext.
32986
32987 2006-07-23  Eric Blake  <ebb9@byu.net>
32988
32989         * modules/stdio-safer (Files): Add tmpfile-safer.c.
32990         (Depends-on): Add binary-io.
32991
32992 2006-07-23  Eric Blake  <ebb9@byu.net>
32993
32994         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
32995
32996 2006-07-23  Eric Blake  <ebb9@byu.net>
32997
32998         * lib/tmpfile-safer.c: New file.
32999         * lib/stdio-safer.h (fopen_safer): Add prototype.
33000         * lib/stdio--.h (tmpfile): Make safer.
33001
33002 2006-07-23  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
33005         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
33006         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
33007         gl_linked_remove_at): Use it.
33008
33009 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33010         and Simon Josefsson <jas@extundo.com>
33011
33012         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
33013
33014         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
33015
33016 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33017
33018         * modules/close-stream: New file.
33019         * modules/closeout (Description): Make it clear that it exits
33020         with a diagnostic on error.
33021         (Depends-on): Add close-stream.  Remove fpending, stdbool.
33022         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
33023
33024 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33025
33026         * m4/close-stream.m4: New file.
33027
33028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33029
33030         * lib/close-stream.c, lib/close-stream.h: New files.
33031
33032 2006-07-22  Bruno Haible  <bruno@clisp.org>
33033
33034         Merge from GNU gettext 0.15.
33035
33036         2006-05-01  Bruno Haible  <bruno@clisp.org>
33037
33038                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
33039
33040         2006-07-22  Bruno Haible  <bruno@clisp.org>
33041
33042                 * modules/javaversion: New file.
33043                 * MODULES.html.sh (Java): Add javaversion.
33044
33045         2006-03-12  Bruno Haible  <bruno@clisp.org>
33046
33047                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
33048
33049         2005-12-04  Bruno Haible  <bruno@clisp.org>
33050
33051                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
33052                 (untested).
33053
33054         2006-06-21  Bruno Haible  <bruno@clisp.org>
33055
33056                 Avoid warnings from recent versions of mcs.
33057                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
33058                 -o, -L, -r any more. Use options documented since mcs-1.0
33059                 instead. Similarly for -g.
33060
33061         2005-12-04  Bruno Haible  <bruno@clisp.org>
33062
33063                 * build-aux/csharpcomp.sh.in: Suffix for resources is
33064                 .resources, not .resource.
33065
33066         2005-07-09  Bruno Haible  <bruno@clisp.org>
33067
33068                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
33069                 add a .dll suffix.
33070                 Reported by Mark Junker <mjscod@gmx.de>.
33071
33072         2006-07-22  Bruno Haible  <bruno@clisp.org>
33073
33074                 * modules/gettext: Upgrade to gettext-0.15.
33075                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
33076                 m4/visibility.m4.
33077                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
33078
33079 2006-07-22  Bruno Haible  <bruno@clisp.org>
33080
33081         Merge from GNU gettext 0.15.
33082
33083         2006-03-25  Bruno Haible  <bruno@clisp.org>
33084
33085                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
33086
33087         2006-07-21  Bruno Haible  <bruno@clisp.org>
33088
33089                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
33090                 "1.1".
33091
33092         2006-05-09  Bruno Haible  <bruno@clisp.org>
33093
33094                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
33095                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
33096                 for the conftestver execution.
33097
33098         2006-05-01  Bruno Haible  <bruno@clisp.org>
33099
33100                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
33101                 optional target-version argument. Verify that the compiler
33102                 groks source of the specified source-version, or add -source
33103                 option as necessary. Verify that the compiler produces
33104                 bytecode in the specified target-version, or add -target and
33105                 -source options as necessary. Make the result of the test
33106                 available as variable CONF_JAVAC. Also log error output in
33107                 config.log.
33108
33109         2006-03-11  Bruno Haible  <bruno@clisp.org>
33110
33111                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
33112
33113         2006-05-09  Bruno Haible  <bruno@clisp.org>
33114
33115                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
33116                 CLASSPATH_SEPARATOR to a semicolon.
33117
33118         2006-03-12  Bruno Haible  <bruno@clisp.org>
33119
33120                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
33121                 available as variable CONF_JAVA, for subsequent autoconf
33122                 tests. Also log error output in config.log.
33123
33124         2006-07-19  Bruno Haible  <bruno@clisp.org>
33125
33126                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
33127                 that getline works on glibc2 systems. Needed to avoid trouble
33128                 in relocatable.c.
33129                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
33130
33131         2005-12-04  Bruno Haible  <bruno@clisp.org>
33132
33133                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
33134                 launcher (untested).
33135
33136         2005-12-04  Bruno Haible  <bruno@clisp.org>
33137
33138                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
33139
33140         2006-07-22  Bruno Haible  <bruno@clisp.org>
33141
33142                 * gettext.m4: Update from GNU gettext-0.15.
33143                 * nls.m4: Likewise.
33144                 * po.m4: Likewise.
33145                 * inttypes-pri.m4: Likewise.
33146                 * inttypes-h.m4: Renamed from inttypes.m4.
33147                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
33148
33149 2006-07-22  Bruno Haible  <bruno@clisp.org>
33150
33151         Merge from GNU gettext 0.15.
33152
33153         2005-07-05  Bruno Haible  <bruno@clisp.org>
33154
33155                 * printf-args.c (printf_fetchargs): Work around broken
33156                 definition of wint_t on mingw.
33157
33158         2005-02-12  Bruno Haible  <bruno@clisp.org>
33159
33160                 * xallocsa.h: Add extern "C" for C++.
33161
33162         2006-05-17  Bruno Haible  <bruno@clisp.org>
33163
33164                 Cygwin portability.
33165                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
33166
33167         2006-04-30  Bruno Haible  <bruno@clisp.org>
33168
33169                 * progreloc.c: Include <mach-o/dyld.h> if available.
33170                 (find_executable): Use _NSGetExecutablePath when possible.
33171
33172         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33173
33174                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
33175                 function.
33176
33177         2005-12-29  Bruno Haible  <bruno@clisp.org>
33178
33179                 * progreloc.c (set_program_name_and_installdir): Fix
33180                 compilation error.
33181
33182         2005-12-04  Bruno Haible  <bruno@clisp.org>
33183
33184                 Cygwin portability.
33185                 * progreloc.c: Include <windows.h> also on Cygwin.
33186                 (find_executable): Add support for Cygwin.
33187                 (set_program_name_and_installdir): Handle also platforms with
33188                 nonempty EXEEXT.
33189
33190         2006-07-11  Bruno Haible  <bruno@clisp.org>
33191
33192                 * javacomp.c: Fix a comment.
33193                 Reported by Jim Meyering.
33194
33195         2006-04-30  Bruno Haible  <bruno@clisp.org>
33196
33197                 * javacomp.h (compile_java_class): Add source_version,
33198                 target_version arguments.
33199                 * javacomp.c: Rewritten to choose only a compiler that
33200                 respects the specified source_version and target_version.
33201
33202         2006-06-27  Bruno Haible  <bruno@clisp.org>
33203
33204                 Assume correct S_ISDIR macro.
33205                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
33206
33207         2006-07-22  Bruno Haible  <bruno@clisp.org>
33208
33209                 * javaversion.h: New file, from GNU gettext.
33210                 * javaversion.c: New file, from GNU gettext.
33211                 * javaversion.java: New file, from GNU gettext.
33212                 * javaversion.class: New file, from GNU gettext.
33213
33214         2006-05-17  Bruno Haible  <bruno@clisp.org>
33215
33216                 Cygwin portability.
33217                 * javaexec.c (execute_java_class): Test for jview program
33218                 also on Cygwin.
33219
33220         2006-04-09  Bruno Haible  <bruno@clisp.org>
33221
33222                 * fatal-signal.c: Don't include string.h.
33223                 (at_fatal_signal): Use a copying loop instead of memcpy.
33224
33225         2005-12-04  Bruno Haible  <bruno@clisp.org>
33226
33227                 * csharpexec.c: Add support for 'clix' launcher (untested).
33228                 (execute_csharp_using_sscli): New function.
33229                 (execute_csharp_program): Call it.
33230
33231         2006-06-21  Bruno Haible  <bruno@clisp.org>
33232
33233                 Avoid warnings from recent versions of mcs.
33234                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
33235                 -o, -L, -r any more. Use options documented since mcs-1.0
33236                 instead. Similarly for -g.
33237
33238         2005-07-09  Bruno Haible  <bruno@clisp.org>
33239
33240                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
33241                 add a .dll suffix.
33242                 Reported by Mark Junker <mjscod@gmx.de>.
33243
33244         2006-06-17  Bruno Haible  <bruno@clisp.org>
33245
33246                 * config.charset: Update for NetBSD 3.0.
33247
33248         2006-05-17  Bruno Haible  <bruno@clisp.org>
33249
33250                 Cygwin portability.
33251                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
33252
33253         2006-05-16  Bruno Haible  <bruno@clisp.org>
33254
33255                 * localcharset.c [CYGWIN]: Include <windows.h>.
33256                 (get_charset_aliases): For Cygwin, return the same CPxxx
33257                 aliases list as under WIN32.
33258                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
33259                 the environment variables. Fall back to GetACP().
33260
33261         2006-04-05  Bruno Haible  <bruno@clisp.org>
33262
33263                 * config.charset: Update Juan Manuel Guerrero's address.
33264
33265         2005-02-12  Bruno Haible  <bruno@clisp.org>
33266
33267                 * allocsa.h: Add extern "C" for C++.
33268
33269         2005-02-10  Bruno Haible  <bruno@clisp.org>
33270
33271                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
33272                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
33273
33274         2006-07-22  Bruno Haible  <bruno@clisp.org>
33275
33276                 * gettext.h: Update to GNU gettext-0.15.
33277
33278 2006-07-22  Bruno Haible  <bruno@clisp.org>
33279
33280         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
33281         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
33282         lib-prefix.m4, longdouble.m4, ssize_t.m4.
33283
33284 2006-07-21  Eric Blake  <ebb9@byu.net>
33285
33286         * modules/stdlib-safer: New file.
33287         * MODULES.html.sh (File stream based Input/Output): Add
33288         stdlib-safer.
33289
33290 2006-07-21  Eric Blake  <ebb9@byu.net>
33291
33292         * lib/stdlib-safer.h: New file from coreutils, required by
33293         stdlib--.h.
33294
33295 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33296
33297         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
33298
33299 2006-07-20  Bruno Haible  <bruno@clisp.org>
33300
33301         * gnulib-tool: Recognize new option --assume-autoconf.
33302         (autoconf_minversion): New variable.
33303         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
33304
33305 2006-07-20  Bruno Haible  <bruno@clisp.org>
33306
33307         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
33308
33309 2006-07-19  Derek R. Price  <derek@ximbiot.com>
33310
33311         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
33312         Reindent and repaginate.
33313
33314 2006-07-19  Derek Price  <derek@ximbiot.com>
33315
33316         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
33317         Correct grammar.
33318
33319 2006-07-17  Bruno Haible  <bruno@clisp.org>
33320
33321         * modules/list: New file.
33322         * modules/array-list: New file.
33323         * modules/carray-list, modules/carray-list-tests: New files.
33324         * modules/linked-list, modules/linked-list-tests: New files.
33325         * modules/avltree-list, modules/avltree-list-tests: New files.
33326         * modules/rbtree-list, modules/rbtree-list-tests: New files.
33327         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
33328         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
33329         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
33330         * modules/oset: New file.
33331         * modules/array-oset: New file.
33332         * modules/avltree-oset, modules/avltree-oset-tests: New files.
33333         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
33334         * tests/test-carray_list.c: New file.
33335         * tests/test-linked_list.c: New file.
33336         * tests/test-avltree_list.c: New file.
33337         * tests/test-rbtree_list.c: New file.
33338         * tests/test-linkedhash_list.c: New file.
33339         * tests/test-avltreehash_list.c: New file.
33340         * tests/test-rbtreehash_list.c: New file.
33341         * tests/test-avltree_oset.c: New file.
33342         * tests/test-rbtree_oset.c: New file.
33343         * MODULES.html.sh (Container data structures): New section.
33344
33345 2006-07-17  Bruno Haible  <bruno@clisp.org>
33346
33347         * m4/gl_list.m4: New file.
33348
33349 2006-07-17  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/gl_list.h: New file.
33352         * lib/gl_list.c: New file.
33353         * lib/gl_array_list.h: New file.
33354         * lib/gl_array_list.c: New file.
33355         * lib/gl_carray_list.h: New file.
33356         * lib/gl_carray_list.c: New file.
33357         * lib/gl_linked_list.h: New file.
33358         * lib/gl_linked_list.c: New file.
33359         * lib/gl_anylinked_list1.h: New file.
33360         * lib/gl_anylinked_list2.h: New file.
33361         * lib/gl_avltree_list.h: New file.
33362         * lib/gl_avltree_list.c: New file.
33363         * lib/gl_anyavltree_list1.h: New file.
33364         * lib/gl_anyavltree_list2.h: New file.
33365         * lib/gl_rbtree_list.h: New file.
33366         * lib/gl_rbtree_list.c: New file.
33367         * lib/gl_anyrbtree_list1.h: New file.
33368         * lib/gl_anyrbtree_list2.h: New file.
33369         * lib/gl_anytree_list1.h: New file.
33370         * lib/gl_anytree_list2.h: New file.
33371         * lib/gl_linkedhash_list.h: New file.
33372         * lib/gl_linkedhash_list.c: New file.
33373         * lib/gl_anyhash_list1.h: New file.
33374         * lib/gl_anyhash_list2.h: New file.
33375         * lib/gl_avltreehash_list.h: New file.
33376         * lib/gl_avltreehash_list.c: New file.
33377         * lib/gl_rbtreehash_list.h: New file.
33378         * lib/gl_rbtreehash_list.c: New file.
33379         * lib/gl_anytreehash_list1.h: New file.
33380         * lib/gl_anytreehash_list2.h: New file.
33381
33382         * lib/gl_oset.h: New file.
33383         * lib/gl_oset.c: New file.
33384         * lib/gl_array_oset.h: New file.
33385         * lib/gl_array_oset.c: New file.
33386         * lib/gl_avltree_oset.h: New file.
33387         * lib/gl_avltree_oset.c: New file.
33388         * lib/gl_rbtree_oset.h: New file.
33389         * lib/gl_rbtree_oset.c: New file.
33390         * lib/gl_anytree_oset.h: New file.
33391
33392 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33393
33394         * m4/mkancesdirs.m4: New file.
33395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
33396         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
33397         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
33398         it.
33399
33400 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33401
33402         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
33403         * lib/mkancesdirs.h: New files.
33404         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
33405         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
33406         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
33407         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
33408         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
33409         callers changed.  Revamp internals significantly, by not
33410         attempting to create directories that are temporarily more
33411         permissive than the final results.  Do not attempt to use
33412         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
33413         This removes some race conditions, fixes some bugs, and simplifies
33414         things.  Use new dirchownmod function to do owner and mode changes.
33415         * lib/mkdir-p.h: Likewise.
33416         * lib/modechange.c (octal_to_mode): New function.
33417         (struct mode_change): New member mentioned.
33418         (make_node_op_equals): New arg mentioned.  All callers changed.
33419         (mode_compile): Keep track of which mode bits the user has explicitly
33420         mentioned.
33421         (mode_adjust): New arg DIR, so that we implement the X op correctly.
33422         New arg PMODE_BITS, to keep track of which mode bits the user
33423         mentioned; it treats S_ISUID and S_ISGID speciall.
33424         All callers changed.
33425         * lib/modechange.h: Likewise.
33426
33427 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33428
33429         * MODULES.html.sh: Add mkancestors.
33430         * modules/mkancesdirs: New module.
33431         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
33432         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
33433         The chdir-safer and afs files are now orphans; I'll remove them
33434         unless someone speaks up.
33435         Add lib/dirchownmod.c, lib/dirchownmod.h.
33436         (Depends-on): Remove alloca, chown, save-cwd, dirname.
33437         Add lchown, mkancesdirs.
33438         (Maintainer): Add self.
33439
33440 2006-07-15  Karl Berry  <karl@gnu.org>
33441
33442         * gnulib-tool: help message wording/arrangement.
33443
33444 2006-07-14  Simon Josefsson  <jas@extundo.com>
33445
33446         * doc/gnulib.texi (Libtool and Windows): New section.
33447
33448 2006-07-12  Simon Josefsson  <jas@extundo.com>
33449
33450         * modules/gendocs (License): Fix license, approved by Karl.
33451
33452 2006-07-12  Eric Blake  <ebb9@byu.net>
33453
33454         * MODULES.html.sh: Add gendocs.
33455
33456 2006-07-11  Eric Blake  <ebb9@byu.net>
33457
33458         * modules/fdl: New module, to install doc/fdl.texi.
33459         * MODULES.html.sh: Add new section for documentation modules.
33460         * gnulib-tool: Avoid space-tab.
33461         (--doc-base): New option, to manage files from doc.
33462
33463 2006-07-11  Eric Blake  <ebb9@byu.net>
33464
33465         * m4/absolute-header.m4: Fix comments to match recent change.
33466
33467 2006-07-11  Eric Blake  <ebb9@byu.net>
33468
33469         * gnulib-tool: List --doc-base before --tests-base.
33470
33471 2006-07-11  Derek R. Price  <derek@ximbiot.com>
33472
33473         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
33474
33475 2006-07-11  Bruno Haible  <bruno@clisp.org>
33476
33477         * README: Mention where to put documentation.
33478
33479 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33480
33481         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
33482
33483 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33484
33485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
33486         to stdint.m4.
33487
33488 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33489
33490         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
33491         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
33492         "no/such/file/stdint.h" when there is no such file, so that
33493         the resulting C code can be parsed by dodgy compilers.
33494         Problems reported by Bob Proulx.
33495
33496 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33497
33498         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
33499         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33500         macros into the GNU _D_EXACT_NAMLEN.
33501         * lib/savedir.c:  Likewise.
33502         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
33503
33504 2006-07-10  Derek R. Price  <derek@ximbiot.com>
33505         and Paul Eggert  <eggert@cs.ucla.edu>
33506
33507         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
33508         * m4/savedir.m4:
33509         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
33510         macros into the GNU _D_EXACT_NAMLEN.
33511
33512 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33513
33514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
33515         around the absolute name, to work around a problem with the HP-UX
33516         11.23 native C compiler, reported by Bob Proulx.
33517
33518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33519
33520         * doc/maintain.texi, make-stds.texi: Sync from
33521         <http://savannah.gnu.org/projects/gnustandards>.
33522
33523 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
33526
33527 2006-07-09  Jim Meyering  <jim@meyering.net>
33528
33529         * m4/glob.m4: Remove a doubled word in a comment.
33530
33531 2006-07-09  Jim Meyering  <jim@meyering.net>
33532
33533         * lib/argp-pv.c: Remove a doubled word in a comment.
33534         * lib/check-version.c (check_version): Likewise.
33535         * lib/javacomp.c (compile_java_class): Likewise.
33536
33537 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
33538
33539         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
33540         for the benefit of people using Autoconf 2.60.  If you want to
33541         support older Autoconf versions you can copy m4/onceonly_2_57.m4
33542         (or m4/onceonly.m4, if pre-2.57) manually.
33543
33544 2006-07-08  Jim Meyering  <jim@meyering.net>
33545
33546         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
33547         comment.
33548         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
33549         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
33550         comment.
33551
33552 2006-07-08  Jim Meyering  <jim@meyering.net>
33553
33554         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
33555
33556 2006-07-07  Simon Josefsson  <jas@extundo.com>
33557
33558         * tests/test-crc.c: Change expected crc value, the test vector
33559         were probably computed using the old broken crc.c?
33560
33561 2006-07-06  Simon Josefsson  <jas@extundo.com>
33562
33563         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
33564         now the canonical place for the M4 file).
33565
33566         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
33567         from the sys_socket dependency now.
33568
33569         * modules/inet_pton (Files): Ditto.
33570
33571         * modules/inet_ntop (Files): Ditto.
33572
33573 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33574
33575         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
33576         not gl_PREREQ_GETUSERSHELL.
33577
33578 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33579
33580         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
33581         with only one argument, for Autoconf 2.60.
33582         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
33583         expand to nothing, so add a shell command to avoid syntax error.
33584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33585
33586 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33587
33588         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
33589
33590 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33591
33592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
33593         no longer needed.  Check for isblank decl.
33594         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
33595         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
33596         of existence.
33597
33598 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33599
33600         * lib/getloadavg.c: Use __VMS, not VMS.
33601         * lib/getopt.c: Likewise.
33602         * lib/getpagesize.h: Likewise.
33603         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
33604         and probably does not work.
33605
33606 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33607
33608         * lib/.cppi-disable: Add wcwidth.
33609         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
33610         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
33611         (ISGRAPH): Remove.  All uses changed to isgraph.
33612         (FOLD) [!defined _LIBC]: Remove special case.
33613         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
33614         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
33615         HAVE_ISBLANK.
33616         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
33617         case.
33618
33619 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
33620
33621         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
33622         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
33623         brackets.  Other minor changes to suppress some compiler
33624         warnings.
33625
33626 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33627         and Paul Eggert  <eggert@cs.ucla.edu>
33628
33629         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
33630         of invoking obsolescent AC_HEADER_DIRENT macro.
33631         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
33632         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
33633         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33635         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
33636         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33637         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
33638         * m4/readdir.m4: Remove; no longer needed.
33639
33640 2006-07-06  Derek R. Price  <derek@ximbiot.com>
33641         and Paul Eggert  <eggert@cs.ucla.edu>
33642
33643         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
33644         Don't worry about this obsolete case any more.
33645         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
33646         directories.
33647         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
33648         worry about this obsolete case any more.
33649         * lib/fts.c: Likewise.
33650         * lib/getcwd.c: Likewise.
33651         * lib/glob.h: Likewise.
33652         * lib/savedir.c: Likewise.
33653
33654 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33655
33656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
33657         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
33658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
33659         needed.
33660         All uses removed.
33661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33662         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33663         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
33664         needed.
33665         * m4/getdate.m4 (gl_GETDATE): Likewise.
33666         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33667         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33668         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33669         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33670         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
33671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33672         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
33673         needed.
33674
33675 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33676
33677         * lib/memcasecmp.c: Include <limits.h>.
33678         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
33679         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
33680         Don't assume isdigit succeeds only on '0' through '9'.
33681
33682 2006-07-05  Eric Blake  <ebb9@byu.net>
33683
33684         * modules/getaddrinfo (Depends-on): Add snprintf.
33685
33686 2006-07-05  Eric Blake  <ebb9@byu.net>
33687
33688         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
33689         to avoid 'header present but could not be compiled' on cygwin.
33690
33691 2006-07-05  Eric Blake  <ebb9@byu.net>
33692
33693         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
33694         missing from netdb.h.
33695         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
33696
33697 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33698
33699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
33700         no longer needed.
33701         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
33702         * m4/getdate.m4 (gl_GETDATE): Likewise.
33703         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
33704         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
33705         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
33706         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
33707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33708
33709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
33710
33711         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
33712         All uses of is_space replaced by isspace.
33713         * lib/exit.h: Don't talk about STDC_HEADERS.
33714         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
33715         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
33716         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
33717         replaced by isprint etc.
33718         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
33719         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33720         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
33721         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
33722         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
33723         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
33724
33725 2006-07-05  Bruno Haible  <bruno@clisp.org>
33726
33727         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
33728         the function exists, before testing against AIX.
33729         Reported by Martin Lambers <marlam@marlam.de>.
33730
33731 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33732
33733         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
33734         From Mark D. Baushke.
33735
33736 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33737
33738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
33739         to the absolute name, not just one, to bypass Sun C 5.8's
33740         "warning: #include of /usr/include/... may be non-portable".
33741
33742 2006-07-04  Eric Blake  <ebb9@byu.net>
33743
33744         * modules/dirname-tests: New test module.
33745         * tests/test-dirname.c: New file, replacing dirname.c
33746         TEST_DIRNAME section that was recently deleted.
33747
33748 2006-07-04  Bruno Haible  <bruno@clisp.org>
33749
33750         Assume ANSI C header files and <ctype.h> functions.
33751         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
33752         (mbsnwidth): Use isprint, iscntrl instead.
33753
33754 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33755
33756         Merge from coreutils.
33757         * MODULES.html.sh: Add xstrtold.
33758         * modules/xstrtold: New file.
33759         * modules/cycle-check (Files): Add lib/same-inode.h.
33760         * modules/dirname (Files): Add m4/double-slash-root.m4.
33761         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
33762         * modules/mkdir-p (Files): Add lib/same-inode.h.
33763         * modules/same (Files): Add lib/same-inode.h.
33764
33765 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33766
33767         * m4/absolute-header.m4: Renamed from full-header-path.m4.
33768         This is to keep the terminology clean; POSIX talks about
33769         "absolute pathnames", not "full pathnames", but the GNU
33770         Coding Standards say to use "path" for something else;
33771         so use "absolute" to keep both sides happy.
33772         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
33773         Set gl_absolute_header, not gl_full_header_path.
33774         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
33775         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
33776         All uses changed.
33777
33778         Merge from coreutils.
33779
33780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33781
33782         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
33783         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
33784         want to require the building of c-strtod.o.
33785         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
33786         needs -lm directly.
33787         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
33788
33789         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
33790
33791         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
33792         --as-needed option if available.  Problem reported by Albert Chin in
33793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
33794         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
33795         cc merely issues a bunch of annoying warnings for --as-needed
33796         (this problem was reported by Bob Proulx).  Also, try linking with
33797         -lm to detect a bug in binutils 2.16 (this problem was reported
33798         by Ralf Wildenhues).
33799
33800         2006-06-18  Jim Meyering  <jim@meyering.net>
33801
33802         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
33803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
33804         macro.
33805         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
33806         also check for glibc-2.4's abort-inducing bug.
33807
33808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
33809         Low-probability clean-up should be to use rmdir to get rid of
33810         the just-created directory, not unlink.
33811
33812         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
33813         configure fail, and request a bug report to inform us about it.
33814         Add a comment that, barring reports to the contrary, in 2007 we'll
33815         assume ftruncate is universally available.
33816
33817         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33818
33819         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
33820
33821         2006-03-12  Jim Meyering  <jim@meyering.net>
33822
33823         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
33824         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
33825         * m4/same.m4 (gl_SAME): Likewise.
33826         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
33827
33828         2006-03-11  Eric Blake  <ebb9@byu.net>
33829
33830         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
33831         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
33832         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
33833         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
33834
33835 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33836
33837         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
33838         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
33839         reported by Mark D. Baushke, one in
33840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
33841
33842         Merge from coreutils.
33843
33844         * lib/.cppi-disable: Add stdint_.h.
33845         * lib/.cvsignore: Add stdint.h.
33846
33847         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33848
33849         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
33850         both double and long double versions.
33851         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
33852         * lib/xstrtold.c: New file.
33853         * lib/xstrtod.h (xstrtold): New decl.
33854
33855         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33856
33857         * lib/filemode.c (setst): Remove.
33858         (strmode): Rewrite to avoid setst.  This makes the code shorter,
33859         (arguably) clearer, and the generated code is a bit smaller on my
33860         Debian GNU/Linux stable x86 host.
33861
33862         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33863
33864         * lib/filemode.c: Include "filemode.h" first, to test the interface.
33865         Assume that filemode.h includes sys/types.h and sys/stat.h.
33866         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
33867         (ftypelet): Reorder to put common cases first, for efficiency.
33868         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
33869         to do 'M'.
33870         (strmode): Renamed from mode_string, and now stores 12 bytes instead
33871         of 10, for compatibility with FreeBSD.  All callers changed.
33872         (filemodestring): Now stores 12 bytes instead of 10, and sets file
33873         types that can't be deduced solely from st_mode.  First arg is now a
33874         const pointer.
33875         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
33876         (strmode): Renamed from mode_string.
33877         (filemodestring): New decl.
33878         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
33879         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
33880         needed.
33881         (S_ISPORT, S_ISWHT): New macros, if not already defined.
33882
33883         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33884
33885         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
33886         fsusage.h now does that.  Include fsusage.h first, to test interface.
33887         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
33888         at most one method (the old code could have generated decls that
33889         didn't conform to C89, not that this was ever exercised).
33890         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
33891
33892         2006-03-19  Jim Meyering  <jim@meyering.net>
33893
33894         Work even in a chroot where d_ino values for entries in "/"
33895         don't match the stat.st_ino values for the same names.
33896         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
33897         number, iterate through all entries again, using lstat instead.
33898         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
33899         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
33900
33901         * lib/getcwd.c (__getcwd): Clarify a comment.
33902         Use memcpy in place of a call to strcpy.
33903
33904         2006-03-12  Jim Meyering  <jim@meyering.net>
33905
33906         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
33907         matches that of the current directory (which we're about to chdir ".."
33908         out of), then save the dev-ino of the parent, instead.
33909
33910         * lib/same-inode.h (SAME_INODE): New file/macro.
33911         * lib/chdir-safer.c (SAME_INODE): Remove definition.
33912         Include "same-inode.h", instead.
33913         * lib/same.c: Likewise.
33914         * lib/cycle-check.h: Include "same-inode.h".
33915         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
33916         * lib/cycle-check.c (SAME_INODE): Remove definition.
33917         * lib/root-dev-ino.h: Include "same-inode.h".
33918
33919         2006-03-11  Eric Blake  <ebb9@byu.net>
33920
33921         * lib/same.c (same_name): s/base_name/last_component/
33922         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
33923         * lib/filenamecat.c (file_name_concat): Likewise.
33924
33925         2006-03-11  Eric Blake  <ebb9@byu.net>,
33926                     Paul Eggert  <eggert@cs.ucla.edu>
33927
33928         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
33929         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
33930         drive prefix.
33931         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
33932         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
33933         (last_component): New method.
33934         * lib/dirname.c (dir_len): Determine when drive letters need a
33935         subsequent slash.  Preserve // when it is special.
33936         (dir_name): Don't append dot when drive letter is absolute.
33937         [TEST_DIRNAME]: Move into a full-blown gnulib test.
33938         * lib/basename.c (base_name): New semantics - malloc the result.
33939         Preserve // when it is special.  Preserve relative files that look
33940         like drive letters.
33941         (base_len): Preserve // when it is special.
33942         (last_component): New method, similar to old base_name semantics.
33943         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
33944         base_name.  Strip redundant slashes from ///.
33945
33946 2006-07-03  Jim Meyering  <jim@meyering.net>
33947
33948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
33949         macro is used before the first cycle_check call.
33950
33951 2006-07-03  Eric Blake  <ebb9@byu.net>
33952
33953         * modules/dirname (Depends-on): Add xstrndup.
33954
33955 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33956
33957         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
33958         test cases, so that config.log is a bit easier to follow.
33959
33960 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33961
33962         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
33963         both are 64 bits, since this seems to be the tradition, and this
33964         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
33965         we ever run into a host that prefers long long to long in this
33966         case, we'll need another configure-time test.  Problem reported by
33967         Jim Meyering.
33968
33969 2006-07-02  Eric Blake  <ebb9@byu.net>
33970
33971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
33972
33973 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
33974
33975         * modules/inttypes (Depends-on): No longer depends on stdint.
33976         * modules/stdint (Description): Say more about assumptions.
33977         Say that the fast types might differ.  Say macros are used.
33978         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
33979         (Makefile.am): Revise list of substituted symbols to match
33980         new stdint.m4.
33981         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
33982         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
33983         * tests/test-stdint.c (verify_same_types)
33984         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
33985         the code conforms to C99/C89.
33986         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
33987         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
33988
33989 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
33990
33991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
33992         but fix a bug, by requiring at least 64 bits.
33993         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33994         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
33995         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
33996         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
33997
33998         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
33999         changes.  Make 2.59 a prerequisite.  Check and substitute for
34000         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
34001         inttypes.h.  Do not use special include files; just use the
34002         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
34003         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
34004         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
34005         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
34006         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
34007         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
34008         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
34009         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
34010         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
34011         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
34012         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
34013         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
34014         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
34015         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
34016         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
34017         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
34018         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
34019         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
34020         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
34021         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
34022         WINT_MAX.  Check for C99 conformance more strictly, by detecting
34023         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
34024         not check for things that C99 does not require, e.g., int8_t.  If
34025         a test isn't needed unless <stdint.h> isn't working, and is
34026         unlikely to be needed for any other reason, then don't do it
34027         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
34028         size_t, since we assume C89 freestanding at least.  Do not check
34029         for sig_atomic_t, wchar_t, or wint_t, since the code now does
34030         the right thing even if the types are not defined.  Instead use:
34031         (gl_STDINT_TYPE_PROPERTIES): New macro.
34032         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
34033         testing whether <sys/types.h> clashes, as Autoconf does this for
34034         us now.  All uses removed.
34035         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
34036         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
34037         (gl_CHECK_TYPE_SAME):
34038         Remove; no longer needed.
34039         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
34040         exists, since we'll return 0 anyway in that case.
34041         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
34042
34043 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34044
34045         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
34046         possible collision with system files.
34047         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
34048         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
34049         WCHAR_MIN and WCHAR_MAX in this case.
34050         (<stddef.h>): Do not include; no longer needed.
34051         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
34052         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
34053         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
34054         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
34055         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
34056         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
34057         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
34058         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
34059         !defined(__c99))]: Include in this case too, since it's harmless
34060         now.
34061         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
34062         dangerous to do so.
34063         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
34064         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
34065         (_STDINT_MIN, _STDINT_MAX): New macros.
34066         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
34067         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
34068         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
34069         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
34070         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
34071         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
34072         macros, not typedefs; this simplifies things quite a bit.
34073         Use long int for all types narrower than int64_t.
34074         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
34075         Define in terms of long long int or int64_t or long int,
34076         not int64_t or int32_t.  This saves some compile-time testing.
34077         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
34078         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
34079         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
34080         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
34081         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
34082         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
34083         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
34084         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34085         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
34086         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
34087         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34088         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34089         undef any previous version and define our own version, for
34090         simplicity and consistency with the new macros for types.
34091         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34092         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34093         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
34094         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
34095         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
34096         @WINT_T_SUFFIX@ to keep things simple here.
34097         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
34098         Simplify by assuming typical 8/16/32/64 host, since we're
34099         already doing that elsewhere anyway.
34100         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
34101         and assume long long int is 64 bits if available.  This
34102         speeds up 'configure'.
34103
34104 2006-07-01  Eric Blake  <ebb9@byu.net>
34105
34106         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
34107         Reported by Andreas Buening.
34108
34109 2006-07-01  Eric Blake  <ebb9@byu.net>
34110
34111         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
34112
34113 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34114
34115         * lib/getaddrinfo.c: fixed typo
34116
34117 2006-06-29  Jim Meyering  <jim@meyering.net>
34118
34119         * modules/strftime (Maintainer): Add my name, since with the
34120         FPRINTFTIME changes strftime.c has forked from glibc.
34121
34122 2006-06-29  Eric Blake  <ebb9@byu.net>
34123
34124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
34125
34126 2006-06-29  Eric Blake  <ebb9@byu.net>
34127
34128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
34129
34130 2006-06-29  Eric Blake  <ebb9@byu.net>
34131
34132         * lib/stat_.h: New file.
34133
34134 2006-06-29  Eric Blake  <ebb9@byu.net>
34135
34136         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
34137         unused static function.
34138
34139 2006-06-29  Eric Blake  <ebb9@byu.net>
34140
34141         * doc/functions.texi (Function Portability): Document missing lstat
34142         on mingw.
34143
34144 2006-06-29  Eric Blake  <ebb9@byu.net>
34145
34146         * MODULES.html.sh: Add sys_stat.
34147         * modules/sys_stat: New module.
34148         * modules/mkstemp (Depends-on): Add sys_stat.
34149
34150 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34151
34152         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
34153
34154 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34155
34156         * m4/c-bs-a.m4: Removed.
34157
34158 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34159
34160         * lib/strftime.c: Assume strftime() exists.
34161
34162 2006-06-29  Derek Price  <derek@ximbiot.com>
34163
34164         * modules/c-bs-a: Removed - \a is C89.
34165         * MODULES.html.sh: Remove c-bs-a.
34166
34167 2006-06-29  Bruno Haible  <bruno@clisp.org>
34168
34169         * modules/wcwidth (License): Change to LGPL.
34170
34171 2006-06-28  Simon Josefsson  <jas@extundo.com>
34172
34173         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
34174         on _WIN32.
34175
34176         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
34177         getnameinfo.
34178
34179 2006-06-28  Simon Josefsson  <jas@extundo.com>
34180
34181         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
34182
34183 2006-06-28  Simon Josefsson  <jas@extundo.com>
34184
34185         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
34186         functions there.  It will succeed on Windows XP, but on Windows
34187         2000 and (presumably) earlier, it will fail, and use the internal
34188         re-implementation.
34189         (use_win32_p): New function.
34190         (getaddrinfo): Use strtoul on servname, to support numeric ports.
34191         Support AI_NUMERICSERV to disable getservbyname.
34192         (getnameinfo): New function, only supports
34193         NI_NUMERICHOST|NI_NUMERICSERV for now.
34194
34195         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
34196         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
34197         getnameinfo.
34198
34199 2006-06-28  Eric Blake  <ebb9@byu.net>
34200
34201         * modules/wcwidth: New file.
34202         * modules/mbchar (Depends-on): Add wcwidth.
34203         * modules/mbswidth (Depends-on): Add wcwidth.
34204         * MODULES.html.sh: Add wcwidth.
34205
34206 2006-06-28  Eric Blake  <ebb9@byu.net>
34207
34208         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
34209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
34210
34211 2006-06-28  Eric Blake  <ebb9@byu.net>
34212
34213         * lib/xvasprintf.h: Fix comments.
34214
34215 2006-06-28  Eric Blake  <ebb9@byu.net>
34216
34217         * lib/mbchar.h (wcwidth): Include wcwidth.h.
34218         * lib/mbswidth.c (wcwidth): Move from here...
34219         * lib/wcwidth.h: ...to this new file.
34220
34221 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34222
34223         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
34224
34225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
34226         it's obsolete.
34227         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
34228
34229 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34230
34231         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
34232         Autoconf 2.60 says this stuff was obsolete.
34233
34234 2006-06-28  Bruno Haible  <bruno@clisp.org>
34235
34236         * modules/wcwidth (Files): Add m4/wchar_t.m4.
34237
34238 2006-06-28  Bruno Haible  <bruno@clisp.org>
34239
34240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
34241         gt_TYPE_WCHAR_T.
34242
34243 2006-06-28  Bruno Haible  <bruno@clisp.org>
34244
34245         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
34246         declaration for wcwidth.
34247         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
34248
34249 2006-06-28  Bruno Haible  <bruno@clisp.org>
34250
34251         * lib/mkdtemp.c [MINGW]: Include <io.h>.
34252         (mkdir): Define using _mkdir.
34253
34254 2006-06-28  Bruno Haible  <bruno@clisp.org>
34255
34256         * lib/getaddrinfo.h: Fix POSIX URL.
34257         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
34258         _WIN32.
34259         (use_win32_p): Make static.
34260         (getaddrinfo): Reject service name if it is empty or does not consist
34261         solely of decimal digits, or if its value is > 65535.
34262         (getnameinfo): Remove useless casts.
34263
34264 2006-06-27  Simon Josefsson  <jas@extundo.com>
34265
34266         * modules/sys_select: New file, suggested by Bruno Haible, Paul
34267         Eggert and Martin Lambers.
34268
34269 2006-06-27  Simon Josefsson  <jas@extundo.com>
34270
34271         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
34272         Eggert and Martin Lambers.
34273
34274 2006-06-27  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
34277         result to 0, not to empty.
34278         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
34279
34280 2006-06-27  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
34283
34284 2006-06-26  Simon Josefsson  <jas@extundo.com>
34285
34286         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
34287         present.
34288
34289 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34290
34291         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
34292         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
34293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
34294
34295 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
34296
34297         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
34298
34299 2006-06-26  Bruno Haible  <bruno@clisp.org>
34300
34301         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
34302
34303 2006-06-26  Bruno Haible  <bruno@clisp.org>
34304
34305         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
34306
34307 2006-06-26  Bruno Haible  <bruno@clisp.org>
34308
34309         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
34310         SGI C compiler in pre-C99 mode.
34311         Suggested by Mark D. Baushke and Larry Jones.
34312
34313 2006-06-26  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
34316         WCHAR_MAX.
34317         Reported by Mark D. Baushke and Larry Jones.
34318
34319 2006-06-26  Bruno Haible  <bruno@clisp.org>
34320
34321         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
34322         in pre-C99 mode.
34323         Suggested by Mark D. Baushke and Larry Jones.
34324
34325 2006-06-23  Simon Josefsson  <jas@extundo.com>
34326             Bruno Haible  <bruno@clisp.org>
34327
34328         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
34329         Emit mostlyclean-local rule.
34330         (func_emit_tests_Makefile_am): Likewise.
34331         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
34332
34333 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
34334
34335         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
34336
34337 2006-06-23  Bruno Haible  <bruno@clisp.org>
34338
34339         * tests/test-stdint.c: Update to match ISO C 99 Technical
34340         Corrigendum 1.
34341
34342 2006-06-23  Bruno Haible  <bruno@clisp.org>
34343
34344         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
34345
34346 2006-06-23  Bruno Haible  <bruno@clisp.org>
34347
34348         * lib/stdint_.h: Treat IRIX like OpenBSD.
34349
34350 2006-06-23  Bruno Haible  <bruno@clisp.org>
34351
34352         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
34353         ISO C 99 Technical Corrigendum 1.
34354
34355 2006-06-22  Simon Josefsson  <jas@extundo.com>
34356
34357         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
34358         MinGW.
34359
34360 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34361
34362         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
34363         needed.  Some compiler complained about some of them.  Problem reported
34364         by Larry Jones in
34365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
34366
34367 2006-06-21  Simon Josefsson  <jas@extundo.com>
34368
34369         * tests/test-getaddrinfo.c: New file.
34370
34371         * modules/getaddrinfo-tests: New file.
34372
34373         * MODULES.html.sh: Add inet_pton.
34374
34375         * modules/inet_pton: New file.
34376
34377 2006-06-21  Simon Josefsson  <jas@extundo.com>
34378
34379         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
34380         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
34381         of using the (limited) gnulib implementation on Windows XP.
34382
34383         * m4/inet_pton.m4: New file.
34384
34385 2006-06-21  Simon Josefsson  <jas@extundo.com>
34386
34387         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
34388         variable.
34389
34390         * lib/socket_.h: Don't define WINVER.
34391
34392         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
34393         slightly modified to work in gnulib.
34394
34395 2006-06-21  Simon Josefsson  <jas@extundo.com>
34396
34397         * doc/gnulib.texi (Windows sockets): Add.
34398
34399 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34400
34401         * lib/read-file.c (fread_file): Start with buffer allocation of
34402         0 bytes rather than 1 byte; this simplifies the code.
34403         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
34404         code to free buffer and save/restore errno.
34405         (internal_read_file): Remove unused local.
34406
34407 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34408
34409         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
34410         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
34411         Problem reported by Denis Excoffier in
34412         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
34413
34414 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34415
34416         * modules/sys_socket, modules/socklen: Include sys/types since
34417         FreeBSD 4.x's sys/socket.h needs it.
34418
34419 2006-06-19  Simon Josefsson  <jas@extundo.com>
34420
34421         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
34422
34423 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34424
34425         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
34426
34427 2006-06-19  Bruno Haible  <bruno@clisp.org>
34428
34429         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
34430         and FULL_PATH_INTTYPES_H in angle brackets.
34431         Reported by Mark D. Baushke <mdb@gnu.org>.
34432
34433 2006-06-17  Eric Blake  <ebb9@byu.net>
34434
34435         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
34436         errno.
34437
34438 2006-06-17  Bruno Haible  <bruno@clisp.org>
34439
34440         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
34441         <sys/inttypes.h>.
34442
34443 2006-06-17  Bruno Haible  <bruno@clisp.org>
34444
34445         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
34446         whether errno is declared. Assume <errno.h> declares errno.
34447
34448 2006-06-17  Bruno Haible  <bruno@clisp.org>
34449
34450         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
34451
34452 2006-06-17  Bruno Haible  <bruno@clisp.org>
34453
34454         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
34455         problem on Solaris 2.5.1.
34456
34457 2006-06-16  Eric Blake  <ebb9@byu.net>
34458
34459         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
34460         * lib/unicodeio.c [!defined errno]: Likewise.
34461         * lib/strtol.c [!defined errno]: Likewise.
34462         * lib/strtod.c [!defined errno]: Likewise.
34463
34464 2006-06-15  Eric Blake  <ebb9@byu.net>
34465
34466         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
34467
34468 2006-06-15  Eric Blake  <ebb9@byu.net>
34469
34470         * config/srclist.txt (ssize_t.m4): Lose sync.
34471
34472 2006-06-15  Bruno Haible  <bruno@clisp.org>
34473
34474         * modules/stdint (Files): Include m4/full-header-path.m4,
34475         m4/size_max.m4, m4/wchar_t.m4.
34476         (Makefile.am): Many more substitutions.
34477         * modules/stdint-tests: New file.
34478         * tests/test-stdint.c: New file.
34479
34480 2006-06-15  Bruno Haible  <bruno@clisp.org>
34481
34482         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
34483         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
34484         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
34485         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
34486         gl_CHECK_TYPE_SAME): New macros.
34487
34488 2006-06-15  Bruno Haible  <bruno@clisp.org>
34489
34490         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
34491
34492 2006-06-15  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/stdint_.h: Rewritten to be fully auto-configured.
34495         Fixes bug on HP-UX/IA64.
34496
34497 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34498
34499         * lib/getdate.y (__attribute__): Don't define if already defined.
34500         Problem reported by Larry Jones.
34501         * lib/utimens.c (__attribute__): Likewise.
34502
34503 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
34504
34505         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
34506         reported by Andreas Schwab.
34507
34508 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34509             Bruno Haible  <bruno@clisp.org>
34510
34511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
34512         check for the declaration of strnlen and a run test that exposes the
34513         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
34514         rpl_strndup.
34515
34516 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34517             Bruno Haible  <bruno@clisp.org>
34518
34519         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
34520
34521 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34522
34523         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
34524         compile test, for Tru64 4.0D.
34525
34526 2006-05-28  Karl Berry  <karl@gnu.org>
34527
34528         * config/srclist.txt (printf-args.c): lose sync.
34529
34530 2006-05-26  Martin Lambers  <marlam@marlam.de>
34531
34532         * lib/getpass.c: Updates the test for the native W32 API, and adds
34533         missing includes, thus fixing compilation warnings.
34534
34535 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34536
34537         * lib/exclude.c (exclude_fnmatch): New function.
34538         (excluded_file_name): Call exclude_fnmatch.
34539         * lib/exclude.h (excluded_file_name): New prototype
34540
34541 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
34542
34543         * lib/tempname.c (small_open, large_open): New macros.
34544         (__open, __open64) [!_LIBC]: Remove.
34545         (__gen_tempname): Use small_open and large_open instead of __open
34546         and __open64.  This fixes a portability bug on HP-UX 11.11i
34547         reported by Simon Wing-Tang in
34548         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
34549
34550 2006-05-24  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
34553         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
34554         Reported by Thorsten Maerz <torte@netztorte.de> via
34555         Aaron Stone <aaron@serendipity.cx>.
34556
34557 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34558
34559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
34560         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
34561         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
34562         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
34563         not really conditional on the cache.
34564         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
34565
34566 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34567
34568         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
34569         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
34570         (my_usleep): Don't mishandle maximum value.
34571
34572 2006-05-19  Jim Meyering  <jim@meyering.net>
34573
34574         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
34575
34576 2006-05-17  Bruno Haible  <bruno@clisp.org>
34577
34578         Cygwin portability.
34579         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
34580
34581 2006-05-17  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/stdint_.h: Fix recognition of Cygwin.
34584
34585 2006-05-15  Bruno Haible  <bruno@clisp.org>
34586
34587         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
34588         on libtool patch by Ralf Wildenhues.
34589
34590 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34591
34592         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
34593         test for C99 conformance; (bool) 0.5 is an integer constant
34594         expression, but (bool) -0.5 is not.  Problem reported by Fedor
34595         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
34596
34597 2006-05-11  Simon Josefsson  <jas@extundo.com>
34598
34599         * m4/xvasprintf.m4: Fix obvious typo.
34600
34601 2006-05-11  Jim Meyering  <jim@meyering.net>
34602
34603         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
34604         James Lemley.
34605
34606 2006-05-10  Simon Josefsson  <jas@extundo.com>
34607
34608         * lib/md4.c: Typo fix, update copyright years.
34609         (K1, K2): Don't use L because it turn computations into 64-bit on
34610         64-bit platforms.
34611
34612 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34613
34614         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
34615         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
34616         unwanted sign propagation, e.g., on hosts with 64-bit int.
34617         There still are some problems with reeelly weird theoretical hosts
34618         (e.g., 33-bit int) but it's not worth worrying about now.
34619         * lib/sha1.c (rol): Likewise.
34620         (K1, K2, K3, K4): Remove unnecessary L suffix.
34621
34622 2006-05-10  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/des.c: Cast to avoid warnings.
34625
34626 2006-05-09  Bruno Haible  <bruno@clisp.org>
34627
34628         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
34629         (Depends-on): Depend also on xsize, stdarg.
34630         (configure.ac): Add gl_XVASPRINTF.
34631
34632 2006-05-09  Bruno Haible  <bruno@clisp.org>
34633
34634         * m4/xvasprintf.m4: New file.
34635
34636 2006-05-09  Bruno Haible  <bruno@clisp.org>
34637
34638         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
34639         (EOVERFLOW): Define fallback value.
34640         (xstrcat): New function.
34641         (xvasprintf): Recognize the special case of a string concatenation.
34642
34643 2006-05-08  Eric Blake  <ebb9@byu.net>
34644
34645         * gnulib-tool (func_version): Base copyright year on CVS date.
34646         (func_emit_copyright_notice): New function.
34647         (func_emit_lib_Makefile_am): Use it.
34648         (func_emit_tests_Makefile_am): Likewise.
34649         (func_import): Likewise.
34650
34651 2006-05-08  Bruno Haible  <bruno@clisp.org>
34652
34653         * modules/stdarg: New file.
34654         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
34655
34656 2006-05-08  Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/stdarg.m4: New file, from GNU gettext.
34659
34660 2006-05-08  Bruno Haible  <bruno@clisp.org>
34661
34662         * config/srclist.txt (build-aux/config.rpath): different from latest
34663         release.
34664
34665 2006-05-08  Bruno Haible  <bruno@clisp.org>
34666
34667         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
34668
34669 2006-05-05  Jim Meyering  <jim@meyering.net>
34670
34671         * m4/warning.m4: New file, derived from bison's file by the same name.
34672
34673 2006-05-03  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/stdint_.h: Shorter URL.
34676         * lib/inttypes.h: Likewise.
34677
34678 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34679
34680         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
34681
34682 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34683
34684         * lib/verify.h: Document the internals better.  Most of this change
34685         was written by Bruno Haible.
34686
34687 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34688
34689         * doc/verify.texi: New file, partly based on a proposal by
34690         Bruno Haible.
34691
34692 2006-05-02  Bruno Haible  <bruno@clisp.org>
34693
34694         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
34695         test from here...
34696         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
34697
34698 2006-04-29  Bruno Haible  <bruno@clisp.org>
34699
34700         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
34701         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
34702
34703 2006-04-29  Bruno Haible  <bruno@clisp.org>
34704
34705         * gnulib-tool: Make --update option actually work.
34706
34707 2006-04-29  Bruno Haible  <bruno@clisp.org>
34708
34709         * doc/gcd.texi: New file.
34710         * doc/gnulib.texi: Include it.
34711
34712 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34713
34714         * lib/getdate.y (get_date): When adding relative date, start with the
34715         initial time, not with the result of the first mktime call.
34716
34717 2006-04-25  Bruno Haible  <bruno@clisp.org>
34718
34719         * gnulib-tool (func_import): Output the include directives in three
34720         blocks, sorted separately.
34721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34722
34723 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34724
34725         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
34726         to define main with arguments, for C++.  Reported by Eric Blake.
34727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
34728         Prefer 'int main ()' to 'int main (void)', for C++.
34729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
34730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
34731         for 'main', for C99 and C++.
34732
34733 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
34734
34735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
34736         Don't assume that exit status -1 is valid.
34737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34738         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34739         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34740         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
34741         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
34742         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
34743         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
34744         functions can be used without declaring them, or that you can
34745         exit with status -1.
34746         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34747
34748 2006-04-24  Karl Berry  <karl@gnu.org>
34749
34750         * config/srclist.txt (longdouble.m4): sync lost.
34751
34752 2006-04-24  Eric Blake  <ebb9@byu.net>
34753
34754         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
34755
34756 2006-04-24  Bruno Haible  <bruno@clisp.org>
34757
34758         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
34759         poll() implementation in AIX.
34760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34761
34762 2006-04-24  Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
34765         assigned exactly once.
34766
34767 2006-04-23  Claudio Fontana  <claudio@gnu.org>
34768             Bruno Haible  <bruno@clisp.org>
34769
34770         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
34771         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
34772         for AM_CPPFLAGS.
34773
34774 2006-04-23  Bruno Haible  <bruno@clisp.org>
34775
34776         * modules/copy-file: Depend on unistd.
34777         * modules/execute: Likewise.
34778         * modules/fatal-signal: Likewise.
34779         * modules/findprog: Likewise.
34780         * modules/mkdtemp : Likewise.
34781         * modules/pipe: Likewise.
34782         * modules/wait-process: Likewise.
34783
34784 2006-04-23  Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
34787         condition was already detected.
34788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34789
34790 2006-04-23  Bruno Haible  <bruno@clisp.org>
34791
34792         * lib/copy-file.c: Include <unistd.h> unconditionally.
34793         * lib/execute.c: Likewise.
34794         * lib/fatal-signal.c: Likewise.
34795         * lib/findprog.c: Likewise.
34796         * lib/mkdtemp.c: Likewise.
34797         * lib/pipe.h: Likewise.
34798         * lib/pipe.c: Likewise.
34799         * lib/wait-process.h: Likewise.
34800
34801 2006-04-23  Bruno Haible  <bruno@clisp.org>
34802
34803         * gnulib-tool (func_usage): Fix --import description. Document
34804         --update.
34805         (func_import): Create temporary file in a temporary directory, if
34806         --dry-run is specified. Silence errors from 'grep' when there are no
34807         m4 files in $m4dir.
34808         (func_create_testdir): Silence errors from 'grep' when there are no
34809         m4 files in $m4dir.
34810         Reported by Karl Berry <karl@freefriends.org>.
34811
34812 2006-04-20  Bruno Haible  <bruno@clisp.org>
34813
34814         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
34815         one argument, so that the code will be portable to Autoconf 2.60.
34816         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
34817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34818         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
34819
34820 2006-04-19  Derek Price  <derek@ximbiot.com>
34821             Eric Blake  <ebb9@byu.net>
34822
34823         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
34824         rather than "/full/path.h".  Update comment to match.  Shorten &
34825         generalize m4_translit call via AS_TR_CPP.
34826
34827 2006-04-19  Derek Price  <derek@ximbiot.com>
34828             Eric Blake  <ebb9@byu.net>
34829
34830         * lib/inttypes.h: Correct grammar in comment.
34831
34832 2006-04-18  Derek Price  <derek@ximbiot.com>
34833             Paul Eggert  <eggert@cs.ucla.edu>
34834
34835         * modules/inttypes: New file.
34836         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
34837
34838 2006-04-18  Derek Price  <derek@ximbiot.com>
34839             Paul Eggert  <eggert@cs.ucla.edu>
34840
34841         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
34842         New files.
34843
34844 2006-04-18  Derek Price  <derek@ximbiot.com>
34845             Paul Eggert  <eggert@cs.ucla.edu>
34846
34847         * lib/inttypes.h: New file.
34848         * lib/strtoimax.c: Assume <inttypes.h>.
34849
34850 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
34851
34852         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
34853         isn't mounted.  Problem reported by Kir Kolyshkin.
34854
34855 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34856
34857         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
34858         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
34859         Derek R. Price.
34860         * lib/regex.h (RE_DUP_MAX): Update comment to match current
34861         implementation.
34862
34863 2006-04-12  Eric Blake  <ebb9@byu.net>
34864
34865         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
34866         is now done automatically by the corresponding Autoconf macro.
34867
34868 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
34871         time_r.h.
34872
34873 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         Merge regex changes from libc, removing some of our
34876         POSIX-conformance changes that were rejected and redoing them in a
34877         less-intrusive way.
34878
34879         * lib/regcomp.c (re_compile_internal, init_dfa):
34880         Length arg is now size_t, not Idx.  All uses changed.
34881         (peek_token): Forward decl now says internal_function.
34882         (__re_error_msgid, __re_error_msgid_idx):
34883         Now static rather than extern with attribute_hidden.
34884         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
34885         For some reason libc prefers K&R style defns for external functions.
34886         (regerror) [!defined _LIBC]: Likewise.
34887         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
34888         (seek_collating_symbol_entry, lookup_collation_sequence_value):
34889         (build_range_exp, build_collating_symbol):
34890         Use K&R-style defn.
34891         (re_compile_fastmap): Use '\0' to memset, not 0.
34892         (utf8_sb_map): Make the calculations more obvious.
34893         (init_dfa, parse_bracket_exp, build_charclass_op):
34894         Call calloc and cast result, as glibc does.
34895         (init_word_char, fetch_token, peek_token, peek_token_bracket):
34896         (build_range_exp, build_collating_symbol):
34897         Now internal functions.
34898
34899         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
34900
34901         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
34902         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
34903         Don't depend on VMS; depend on __VMS instead, for POSIX
34904         namespace cleanness.
34905         (regoff_t): Define to ssize_t, not long int.
34906
34907         Remove the REG_ macros named below.  Instead, make the old names
34908         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
34909         __USE_GNU_REGEX.
34910         (REG_BACKSLASH_ESCAPE_IN_LISTS):
34911         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
34912         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
34913         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
34914         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
34915         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
34916         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
34917         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
34918         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
34919         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
34920         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
34921         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
34922         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
34923         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
34924         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
34925         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
34926         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
34927         (REG_NREGS):
34928         Remove.  All uses replaced by the old RE_* names.
34929         (RE_BACKSLASH_ESCAPE_IN_LISTS):
34930         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
34931         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
34932         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
34933         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
34934         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
34935         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
34936         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
34937         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
34938         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
34939         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
34940         Don't bother having these macros be independent of each others'
34941         values, since they no longer exist in the POSIX name space.
34942
34943         Rename the following member names back to their old names,
34944         unless !__USE_GNU_REGEX.  All uses changed back.
34945         (buffer): Renamed from re_buffer.
34946         (allocated): Renamed from re_allocated.
34947         (used): Renamed from re_used.
34948         (syntax): Renamed from re_syntax.
34949         (fastmap): Renamed from re_fastmap.
34950         (translate): Renamed from re_translate.
34951         (can_be_null): Renamed from re_can_be_null.
34952         (regs_allocated): Renamed from re_regs_allocated.
34953         (fastmap_accurate): Renamed from re_fastmap_accurate.
34954         (no_sub): Renamed from re_no_sub.
34955         (not_bol): Renamed from re_not_bol.
34956         (not_eol): Renamed from re_not_eol.
34957         (newline_anchor): Renamed from re_newline_anchor.
34958         (num_regs): Renamed from rm_num_regs.
34959         (start): Renamed from rm_start.
34960         (end): Renamed from rm_end.
34961
34962         (free_state): Move up a bit.
34963
34964         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
34965         #define to be empty.
34966         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
34967         when that is what is intended.
34968         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
34969         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
34970         (MAX): New macro.
34971         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
34972         All uses changed back to re_malloc, etc.  It's now the caller's
34973         responsibility to check for overflow; all callers changed.
34974         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
34975         (re_x2nrealloc): Remove.
34976         (free_state): Remove decl.
34977
34978         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
34979         (re_set_registers, re_exec):
34980         Use K&R-style defn.
34981
34982         2006-01-31  Roland McGrath  <roland@redhat.com>
34983
34984         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
34985         Reported by Mike Frysinger <vapier@gentoo.org>.
34986
34987         2006-01-15  Andreas Jaeger  <aj@suse.de>
34988
34989         [BZ #1950]
34990         * lib/regex_internal.c (re_string_reconstruct): Adjust for
34991         build_wcs_upper_buffer change.
34992         (build_wcs_upper_buffer): Change return type.
34993
34994         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
34995
34996         * lib/regex_internal.h: Include <stdint.h> if available.
34997
34998         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
34999
35000         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
35001
35002         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35003
35004         * lib/regcomp.c: Adjust for changed secondary hash function.
35005
35006         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
35007
35008         * lib/regex.h: Pretty printing.
35009         Clean up namespace a bit.
35010
35011         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
35012
35013         * lib/regexec.c (update_cur_sifted_state, check_arrival,
35014         check_arrival_add_next_nodes): Avoid using uninitialized variable.
35015
35016         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35017                     Ulrich Drepper  <drepper@redhat.com>
35018
35019         [BZ #1302]
35020         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
35021         changed.
35022         (bitset_word_t): Renamed from bitset_word.  All uses changed.
35023
35024         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
35025
35026         [BZ #281]
35027         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
35028         * lib/regcomp.c: Remove unnecessary uses of
35029         unsigned RE_TRANSLATE_TYPE.
35030         * lib/regex_internal.h: Likewise.
35031         * lib/regex_internal.c: Likewise.
35032         * lib/regexec.c: Likewise.
35033         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
35034
35035         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
35036
35037         * lib/regexec.c (find_recover_state): Remove unnecessary
35038         initialization.
35039         (transit_state_bkref): Make DFA a const pointer.
35040         (get_subexp): Likewise.
35041         (check_arrival): Likewise.
35042         (update_cur_sifted_state): Likewise.
35043         (re_search_internal): Likewise.
35044         (prune_impossible_nodes): Likewise.
35045         (acquire_init_state_context): Likewise.
35046         (proceed_next_node): Likewise.
35047         (set_regs): Likewise.
35048         (free_fail_stack_return): Likewise.
35049         (check_arrival_expand_ecl): Mark DFA parameter as const.
35050         (check_arrival_expand_ecl_sub): Likewise.
35051         (check_subexp_limits): Likewise.
35052         (sub_epsilon_src_nodes):  Likewise.
35053         (add_epsilon_src_nodes):  Likewise.
35054         (merge_state_array): Likewise.
35055         (update_regs): Likewise.
35056         (build_trtable): Likewise.
35057         (sift_states_backward): Mark MCTX parameter as const.
35058         (build_sifted_states): Likewise.
35059         (update_cur_sifted_state): Likewise.
35060         (sift_states_mkref): Likewise.
35061         (check_arrival_expand_ecl): Mark eclosure as const.
35062         (check_dst_limits_calc_pos_1): Likewise.
35063         * lib/regex_internal.h (re_match_context_t): Make dfa a const
35064         pointer.
35065
35066         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
35067
35068         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
35069         (transit_state_sb): Likewise.
35070         (transit_state_mb): Likewise.
35071         (sift_states_iter_mb): Likewise.
35072         (check_arrival_add_next_nodes): Likewise.
35073         (check_node_accept_bytes): Change first parameter to pointer-to-const.
35074         [_LIBC] (re_search_2_stub): Use mempcpy.
35075
35076         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
35077         mbrtowc for very simple UTF-8 case.
35078
35079         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
35080         a pointer-to-const.
35081         (re_acquire_state_context): Likewise.
35082         * lib/regex_internal.h: Adjust prototypes.
35083
35084         * lib/regex.c: Prevent using C++ compilers.
35085
35086         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
35087         (re_acquire_state_context): Likewise.
35088
35089 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35090
35091         * modules/regex (Depends-on): Add ssize_t.
35092
35093 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35094
35095         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
35096         translation table.
35097
35098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35099
35100         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
35101
35102 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
35103             Bruno Haible  <bruno@clisp.org>
35104
35105         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
35106         <sys/types.h> and <inttypes.h>.
35107
35108 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35109
35110         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
35111         `__error_t_defined', so argp.h will not typedef the former.
35112
35113 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35114
35115         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
35116         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
35117         glibc names.  Even if glibc is changed to conform to POSIX, the
35118         traditional names will be available anyway, since regex depends on
35119         the extensions module.  Also, fix a longstanding typo in the
35120         implementation of Spencer ERE test #75 from grep 2.3.  Problems
35121         reported by Emanuele Giaquinta.  Also, change sense of cached
35122         variable, so that the message makes sense.
35123
35124 2006-03-24  Simon Josefsson  <jas@extundo.com>
35125
35126         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
35127         including some doc fixes.
35128         (base64_encode_alloc): Fix +1 bug on allocation failures.
35129
35130 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35131
35132         * lib/base64.c (base64_encode): Do not read past end of array with
35133         unsanitized input on systems with CHAR_BIT > 8.
35134
35135 2006-03-24  Eric Blake  <ebb9@byu.net>
35136
35137         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
35138
35139 2006-03-22  Karl Berry  <karl@gnu.org>
35140
35141         * config/srclist.txt (*setenv.[ch]): get from coreutils.
35142         * config/srclistvars.sh (COREUTILS): new var.
35143
35144 2006-03-17  Jim Meyering  <jim@meyering.net>
35145
35146         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
35147         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
35148
35149 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35150
35151         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
35152         no longer needs it.  Instead, check that regoff_t is as least
35153         as wide as ptrdiff_t.
35154
35155         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
35156         so that our regex.h stays compatible with the installed regex.
35157         This is helpful for installers who configure --without-included-regex.
35158         Problem reported by Emanuele Giaquinta.
35159
35160 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35161
35162         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
35163         Typedef to long int, not to off_, as POSIX will likely change
35164         in that direction.
35165
35166 2006-03-15  Eric Blake  <ebb9@byu.net>
35167
35168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
35169
35170 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35171
35172         * lib/argp-help.c (validate_uparams): Fix typo
35173         * lib/argp-parse.c (argp_default_options): Consistently begin help
35174         messages with a lowercase letter.
35175
35176 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
35177
35178         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
35179         overrun buffers and shouldn't be used (much as gets shouldn't be
35180         used).
35181         * lib/time_r.c (asctime_r, ctime_r): Likewise.
35182
35183 2006-03-08  Simon Josefsson  <jas@extundo.com>
35184
35185         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
35186         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35187
35188 2006-03-08  Simon Josefsson  <jas@extundo.com>
35189
35190         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
35191         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35192
35193 2006-03-08  Simon Josefsson  <jas@extundo.com>
35194
35195         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
35196         signal that configure disabled the device.
35197
35198 2006-03-08  Simon Josefsson  <jas@extundo.com>
35199
35200         * build-aux/maint.mk: Fix refresh-po, to handle no translated
35201         languages.
35202
35203 2006-03-07  Simon Josefsson  <jas@extundo.com>
35204
35205         * modules/getopt (Depends-on): Add unistd.
35206
35207         * modules/unistd: New file.
35208
35209 2006-03-07  Simon Josefsson  <jas@extundo.com>
35210
35211         * modules/gc-random: New file.
35212
35213 2006-03-07  Simon Josefsson  <jas@extundo.com>
35214
35215         * m4/unistd_h.m4: New file.
35216
35217 2006-03-07  Simon Josefsson  <jas@extundo.com>
35218
35219         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
35220         test to be side-effect free by storing the result in the cache
35221         variable gl_cv_lib_readline, and moving the assignment of
35222         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
35223         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35224
35225 2006-03-07  Simon Josefsson  <jas@extundo.com>
35226
35227         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
35228         error on missing devices (the functions will return an error).
35229
35230         * m4/gc.m4: Move random stuff to gc-random.m4
35231
35232 2006-03-07  Simon Josefsson  <jas@extundo.com>
35233
35234         * lib/unistd_.h: New file.
35235
35236 2006-03-07  Simon Josefsson  <jas@extundo.com>
35237
35238         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
35239
35240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35241
35242         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
35243         Problem reported by Juan Manuel Guerrero.
35244
35245 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35246
35247         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
35248         the unistd module.
35249         * lib/getlogin_r.c: Likewise.
35250         * lib/getlogin_r.h: Likewise.
35251         * lib/glob.c: Likewise.
35252         * lib/pagealign_alloc.c: Likewise.
35253         * lib/unistd_.h: Remove; no longer needed.
35254
35255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35256
35257         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35258         Add unistd.
35259         * modules/c-stack (Depends-on): Add unistd.
35260         * modules/getlogin_r: Likewise.
35261         * modules/glob: Likewise.
35262         * modules/pagealign_alloc: Likewise.
35263         * modules/unistd (Files): Remove lib/unistd_.h.
35264         (EXTRA_DIST): Remove.
35265         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
35266         need unistd_.h.
35267         (MOSTLYCLEANFILES): Remove unistd.h-t.
35268
35269 2006-03-03  Simon Josefsson  <jas@extundo.com>
35270
35271         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
35272
35273 2006-03-03  Simon Josefsson  <jas@extundo.com>
35274
35275         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
35276         libidn and bison.
35277
35278 2006-03-03  Simon Josefsson  <jas@extundo.com>
35279
35280         * build-aux/maint.mk: Add indent target.
35281
35282 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
35283
35284         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
35285         our replacement poll.h in any case, to avoid a differing
35286         declaration from a system header.  Seen on AIX.
35287
35288 2006-03-01  Simon Josefsson  <jas@extundo.com>
35289
35290         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
35291         <kasal@ucw.cz>.
35292
35293 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35294
35295         * modules/gettime (Depends-on): Add extensions module.
35296         * modules/nanosleep (Depends-on): Likewise.
35297         * modules/settime (Depends-on): Likewise.
35298
35299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35300
35301         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
35302         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
35303         pedantically.
35304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35305         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
35306
35307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
35308         not "==".  Reported by Ralf Wildenhues.
35309
35310 2006-03-01  Karl Berry  <karl@gnu.org>
35311
35312         * doc/Copyright/request-*: new files, synced from gnuorg.
35313
35314 2006-03-01  Karl Berry  <karl@gnu.org>
35315
35316         * config/srclist.txt (Copyright/*): new entries.
35317
35318 2006-02-28  Simon Josefsson  <jas@extundo.com>
35319
35320         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
35321
35322 2006-02-27  Simon Josefsson  <jas@extundo.com>
35323
35324         * lib/base64.h: Indent #define's.  From Jim Meyering
35325         <jim@meyering.net>.
35326
35327 2006-02-27  Jim Meyering  <jim@meyering.net>
35328
35329         Revert the change of 2006-02-24, so these files can continue
35330         to be sync'd from gettext.
35331         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
35332         of `config.h'.
35333
35334 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
35335
35336         * modules/intprops: New file.
35337         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35338         Add intprops.
35339         * modules/getloadavg (Files): Remove lib/intprops.h.
35340         (Depends-on): Add intprops.
35341         * modules/human: Likewise.
35342         * modules/inttostr: Likewise.
35343         * modules/openat: Likewise.
35344         * modules/sig2str: Likewise.
35345         * modules/userspec: Likewise.
35346         * modules/utimecmp: Likewise.
35347         * modules/xnanosleep: Likewise.
35348         * modules/xstrtol: Likewise.
35349
35350 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
35351
35352         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
35353         * modules/lock-tests (TESTS): Use $(EXEEXT).
35354         * modules/tls-tests: Likewise.
35355         * modules/argp-tests: Likewise.
35356         (check_PROGRAMS): New var, replacing...
35357         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
35358
35359 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35360
35361         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
35362         `config.h'.
35363
35364 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35365
35366         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
35367
35368 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35369
35370         Sync from coreutils.
35371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
35372         gl_CHDIR_SAFER.
35373
35374 2006-02-22  Jim Meyering  <jim@meyering.net>
35375
35376         Sync from coreutils.
35377         * m4/chdir-safer.m4: New file.
35378
35379 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35380
35381         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
35382         AT_FDCWD exceeds INT_MAX.
35383         * lib/openat.h (AT_FDCWD): Likewise.
35384
35385 2006-02-17  Eric Blake  <address@hidden>
35386
35387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
35388
35389 2006-02-16  Simon Josefsson  <jas@extundo.com>
35390
35391         * modules/getaddrinfo (Depends-on): Add sys_socket.
35392
35393 2006-02-15  Simon Josefsson  <jas@extundo.com>
35394
35395         * build-aux/maint.mk: Add dsyntax-check rule.
35396
35397 2006-02-15  Eric Blake  <ebb9@byu.net>
35398
35399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
35400         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
35401         'present but cannot compile' warnings on cygwin.
35402         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
35403         use ws2tcpip.h if sys/socket.h works.
35404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
35405         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
35406
35407 2006-02-14  Simon Josefsson  <jas@extundo.com>
35408
35409         * modules/maintainer-makefile (Files): Rename.
35410
35411         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
35412         and (the local) Makefile.cfg to maint-cfg.mk.
35413
35414         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
35415         to the latter.
35416
35417         * modules/maintainer-makefile: New module.
35418
35419         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
35420         severaly stripped to make it possible to build it up from scratch
35421         with reliable tests.
35422
35423         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
35424         fixes to permit overriding the default actions when configure and
35425         makefile are not available.
35426
35427 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35428
35429         Sync from coreutils.
35430         * modules/lstat (Depends-on): Don't depend on xalloc.
35431         (License): Change from GPL to LGPL, since this is now simply a
35432         replacement for a libc function.
35433
35434 2006-02-14  Jim Meyering  <jim@meyering.net>
35435
35436         Sync from coreutils.
35437
35438         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
35439         failure on deficient systems, and simplify gnulib lgpl dependencies.
35440         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
35441         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
35442
35443         * lib/xalloc-die.c: Remove unused definition of N_.
35444
35445 2006-02-14  Jim Meyering  <jim@meyering.net>
35446
35447         Sync from coreutils.
35448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
35449         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
35450         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
35451         double-quote uses of that variable, to accommodate the rare case in
35452         which getmntent is available in none of the libraries checked.  This
35453         happens at least on FreeBSD 5.0.
35454
35455 2006-02-13  Simon Josefsson  <jas@extundo.com>
35456
35457         * gnulib-tool (Usage): Fix --import, from
35458         karl@freefriends.org (Karl Berry).
35459
35460 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35461
35462         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
35463
35464 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
35465
35466         * lib/argp-namefrob.h: Restore changes accidentally lost during the
35467         "autoupdate" on 2005-12-12.
35468
35469 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35470
35471         * modules/closeout (Depends-on): Remove atexit.
35472
35473 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35474
35475         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
35476         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
35477
35478 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35479
35480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
35481         __EXTENSIONS__ if this causes compilation to fail.  Problem
35482         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
35483         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
35484
35485 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35486
35487         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
35488         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
35489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
35490         All uses changed.
35491
35492 2006-01-26  Simon Josefsson  <jas@extundo.com>
35493
35494         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
35495         prototype is visible on mingw32.
35496
35497         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
35498         for mingw32.
35499
35500         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
35501         mingw32).
35502
35503 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35504
35505         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
35506         attempt to open for write; this always fails, at least on POSIX
35507         hosts.  This reinstates the 2006-01-09 change, which was
35508         inadvertently removed.
35509
35510 2006-01-26  Bruno Haible  <bruno@clisp.org>
35511
35512         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
35513         Reported by Paul Eggert.
35514
35515 2006-01-26  Bruno Haible  <bruno@clisp.org>
35516             Paul Eggert  <eggert@cs.ucla.edu>
35517
35518         * lib/stdbool_.h (_Bool)
35519         [(! (defined __cplusplus || defined __BEOS__)
35520           && !defined __GNUC__
35521           && !(defined __HP_cc || defined __xlc__
35522                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
35523                || defined __sgi))]:
35524         #define to signed char in these cases too; this simplifies
35525         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
35526         etc., separately) and makes it more conservative.
35527
35528 2006-01-25  Simon Josefsson  <jas@extundo.com>
35529
35530         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
35531         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
35532         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
35533
35534 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35535
35536         * lib/argp-namefrob.h: Bugfix. Remove stray #
35537
35538 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35539
35540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
35541         so that we test the test.
35542         Check for yet another HP-UX cc bug involving *bool |= bool.
35543
35544 2006-01-25  Karl Berry  <karl@gnu.org>
35545
35546         * config/srclist.txt (vasnprintf.c): sync lost.
35547
35548 2006-01-25  Jim Meyering  <jim@meyering.net>
35549
35550         Sync from the stable (b5) branch of coreutils:
35551
35552         * lib/fts.c (fts_children): Don't let close() clobber errno from
35553         failed fchdir().
35554
35555         * lib/fts.c (fts_stat): When following a symlink-to-directory,
35556         don't necessarily interpret stat-fails+lstat-succeeds as indicating
35557         a dangling symlink.  That can also happen at least for ELOOP.
35558         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
35559         FYI, this bug predates the inclusion of fts.c in coreutils.
35560
35561         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
35562         in their own block, so pre-c99 compilers don't object.
35563
35564         Avoid the double-free (first in fts_read, second in fts_close) that
35565         would occur when an `active' directory is made inaccessible (e.g.,
35566         via chmod a-x) during a traversal.
35567         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
35568         before returning.  Reproduce this failure by
35569         mkdir -p a/b; cd a; chmod a-x . b
35570         Reported by Stavros Passas.
35571
35572 2006-01-25  Jim Meyering  <jim@meyering.net>
35573
35574         * lib/fileblocks.c: Remove more useless parentheses.
35575         * lib/readutmp.h: Likewise.
35576
35577 2006-01-25  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
35580         warnings.
35581         Reported by Paul Eggert.
35582
35583 2006-01-25  Bruno Haible  <bruno@clisp.org>
35584
35585         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
35586         rid of a trap command. For Solaris sh.
35587         Reported by Mark D. Baushke <mdb@gnu.org>.
35588
35589 2006-01-24  Simon Josefsson  <jas@extundo.com>
35590
35591         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
35592         Bruno.
35593
35594 2006-01-24  Karl Berry  <karl@gnu.org>
35595
35596         * config/srclist.txt (argp-namefrob.h): sync lost.
35597
35598 2006-01-24  Jim Meyering  <jim@meyering.net>
35599
35600         * modules/openat (Files): Add lib/intprops.h.
35601         From Mark D. Baushke.
35602
35603 2006-01-24  Jim Meyering  <jim@meyering.net>
35604
35605         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
35606         Reported by Mark D. Baushke.
35607
35608 2006-01-24  Jim Meyering  <jim@meyering.net>
35609
35610         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
35611
35612 2006-01-24  Bruno Haible  <bruno@clisp.org>
35613
35614         * modules/strnlen (Maintainer): Change from glibc to all.
35615
35616 2006-01-24  Bruno Haible  <bruno@clisp.org>
35617
35618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
35619         Patch by Paul Eggert.
35620
35621 2006-01-24  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
35624         already has it.
35625         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
35626         2005-11-26.
35627
35628         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
35629         'signed char' to avoid problems with the built-in _Bool type.
35630         Reported by Paul Eggert on 2005-11-26.
35631
35632 2006-01-24  Bruno Haible  <bruno@clisp.org>
35633
35634         * gnulib-tool (func_import): Avoid constructing complicated sed
35635         expressions inside backquote.
35636         Report and solution by Mark D. Baushke <mdb@gnu.org>.
35637
35638 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
35639
35640         These changes imported from libc.
35641         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
35642         test and two separate function calls.
35643         * lib/strndup.c (__strndup): Add libc_hidden_def.
35644
35645 2006-01-23  Simon Josefsson  <jas@extundo.com>
35646
35647         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
35648         Remove the test_*_SOURCES variable: automake infers it by default.
35649         * modules/tls-tests: Likewise.
35650
35651 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35652
35653         Work around porting bugs reported by Dieter in
35654         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
35655         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
35656         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
35657         Include "getopt.h" first, to check interface.
35658         (getenv): Declare only if defined HAVE_DECL_GETENV &&
35659         !HAVE_DECL_GETENV.
35660         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
35661         (__strndup): Revert to K&R-style function dfns, the glibc style.
35662         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
35663         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
35664         Include strnlen.h first, to get prototype properly.
35665         (strnlen): Renamed from __strnlen.
35666         Remove weak alias.
35667
35668 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35669
35670         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
35671
35672 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35673
35674         * config/srclist.txt: Adjust to reflect glibc reorganization.
35675         This affects only comments.
35676
35677 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35678
35679          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
35680          Reported by Bruce Korb <bkorb@gnu.org>.
35681
35682 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35683
35684         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
35685         to pacify gcc -Wswitch-default.
35686
35687 2006-01-22  Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
35690         temporary buffer for sprintf, take into account the precision also
35691         for 'd', 'i', 'u', 'o', 'x', 'X'.
35692
35693 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35694
35695         * modules/argp-tests: New module
35696         * tests/test-argp.c: New file
35697         * tests/test-argp-2.sh: New file
35698
35699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
35700
35701         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
35702         (__argp_base_name): Removed
35703         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
35704         typo.
35705         (__argp_base_name): Provide macro definition or extern declaration
35706         depending on the configuration
35707
35708 2006-01-20  Simon Josefsson  <jas@extundo.com>
35709
35710         * modules/inet_ntop (Depends-on): Depend on sys_socket.
35711
35712 2006-01-20  Simon Josefsson  <jas@extundo.com>
35713
35714         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
35715
35716 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
35717
35718         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
35719         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
35720         Suggested by Bruno Haible.
35721
35722 2006-01-20  Karl Berry  <karl@gnu.org>
35723
35724         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
35725         until changes propagate, I guess.
35726
35727 2006-01-19  Simon Josefsson  <jas@extundo.com>
35728
35729         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
35730
35731 2006-01-19  Simon Josefsson  <jas@extundo.com>
35732
35733         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
35734
35735 2006-01-19  Simon Josefsson  <jas@extundo.com>
35736
35737         * gnulib-tool: Set check_PROGRAMS.
35738
35739         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35740         modules/des-tests, modules/gc-arcfour-tests,
35741         modules/gc-arctwo-tests, modules/gc-des-tests,
35742         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35743         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35744         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35745         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35746         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35747         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
35748         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
35749         test_*_SOURCES.
35750
35751 2006-01-18  Simon Josefsson  <jas@extundo.com>
35752
35753         * modules/socklen (Depends-on): Depend on sys_socket.
35754
35755 2006-01-18  Simon Josefsson  <jas@extundo.com>
35756
35757         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
35758         modules/des-tests, modules/gc-arcfour-tests,
35759         modules/gc-arctwo-tests, modules/gc-des-tests,
35760         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
35761         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
35762         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
35763         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
35764         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
35765         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
35766         $(EXEEXT) to automake TESTS variable, for mingw32.
35767
35768 2006-01-17  Simon Josefsson  <jas@extundo.com>
35769
35770         * modules/socklen (Include): Need sys/socket.h.
35771
35772 2006-01-17  Bruno Haible  <bruno@clisp.org>
35773
35774         * modules/ssize_t (Include): Add <sys/types.h>.
35775
35776 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35777
35778         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
35779         it's not portable and it doesn't work with cross-compiles.
35780         Problem reported by Bruno Haible.  Fix missing-$ typo in
35781         'test "gl_cv_ignore_unused_libraries" ...' that prevented
35782         -zignore from being used with Sun's C compiler.
35783
35784 2006-01-12  Simon Josefsson  <jas@extundo.com>
35785
35786         * lib/base64.c: Fix warning, reported by Bruno Haible
35787         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
35788
35789 2006-01-12  Bruno Haible  <bruno@clisp.org>
35790
35791         * modules/ldd: New file.
35792         * build-aux/ldd.sh.in: New file.
35793         * MODULES.html.sh (Support for building libraries and executables): Add
35794         ldd.
35795
35796 2006-01-12  Bruno Haible  <bruno@clisp.org>
35797
35798         * m4/ldd.m4: New file.
35799
35800 2006-01-12  Bruno Haible  <bruno@clisp.org>
35801
35802         * gnulib-tool (func_import, func_create_testdir): Don't go into an
35803         endless loop while replacing $auxdir with build-aux.
35804
35805 2006-01-11  Simon Josefsson  <jas@extundo.com>
35806
35807         * lib/stdint_.h (SIZE_MAX): Add missing (.
35808
35809 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
35810
35811         Sync from coreutils.
35812         * lib/md5.c: Fix commentary typos.
35813         (alignof, UNALIGNED_P): No need for a GCC-specific version.
35814         * lib/md5.h (__attribute__): Remove; unused.
35815         * lib/sha1.c: Fix commentary to match md5 better.
35816         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
35817         so that we don't need to worry about alignment.  All uses changed.
35818         This merges the 2005-10-28 md5 change into sha1.
35819
35820 2006-01-11  Jim Meyering  <jim@meyering.net>
35821
35822         Sync from coreutils.
35823         * lib/md5.c (OP): Fix spacing.
35824
35825 2006-01-11  Bruno Haible  <bruno@clisp.org>
35826
35827         Ensure automatic ordering between gl_LOCK and gl_ARGP.
35828         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
35829         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
35830
35831 2006-01-11  Bruno Haible  <bruno@clisp.org>
35832
35833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
35834         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
35835         the "early" section as well.
35836
35837 2006-01-11  Bruno Haible  <bruno@clisp.org>
35838
35839         Avoid "ar: no archive members specified" error on MacOS X.
35840         * gnulib-tool (func_modules_add_dummy): New function.
35841         (func_import, func_create_testdir): Invoke it.
35842
35843 2006-01-11  Bruno Haible  <bruno@clisp.org>
35844
35845         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
35846         with $auxdir in AC_CONFIG_FILES statements.
35847
35848 2006-01-11  Bruno Haible  <bruno@clisp.org>
35849
35850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35851         Initialize also noinst_HEADERS to empty.
35852
35853 2006-01-11  Bruno Haible  <bruno@clisp.org>
35854
35855         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
35856         variables.
35857         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
35858         autoreconf.
35859
35860 2006-01-11  Bruno Haible  <bruno@clisp.org>
35861
35862         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
35863         overridable by the user.
35864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35865
35866 2006-01-10  Simon Josefsson  <jas@extundo.com>
35867
35868         * modules/sys_socket: New file.
35869
35870 2006-01-10  Simon Josefsson  <jas@extundo.com>
35871
35872         * m4/sys_socket_h.m4: New file.
35873
35874 2006-01-10  Simon Josefsson  <jas@extundo.com>
35875
35876         * lib/socket_.h: New file.
35877
35878 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35879
35880         * modules/readutmp (Maintainer): Add myself.
35881
35882 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35883
35884         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
35885         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
35886         People who are still concerned with buggy memcmp implementations
35887         can invoke gl_FUNC_MEMCMP themselves.
35888
35889 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35890
35891         * lib/regex_internal.h (BITSET_WORD_BITS):
35892         Work around a bug in 64-bit PGC (before version 6.1-2), where the
35893         preprocessor mishandles large unsigned values as if they were signed.
35894         Problem reported by Claudio Fontana in
35895         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
35896
35897 2006-01-10  Jim Meyering  <jim@meyering.net>
35898
35899         Avoid the double-free (first in fts_read, second in fts_close) that
35900         would occur when an `active' directory is made inaccessible (e.g.,
35901         via chmod a-x) during a traversal.
35902         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
35903         before returning.  Reproduce this failure by
35904         mkdir -p a/b; cd a; chmod a-x . b
35905         Reported by Stavros Passas.
35906
35907         Sync from coreutils.
35908         * lib/sha1.c: Tweak grammar in a comment.
35909
35910 2006-01-10  Jim Meyering  <jim@meyering.net>
35911
35912         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
35913         Patch by Joerg Sonnenberger.
35914
35915 2006-01-10  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/readutmp: Depend on module free.
35918         * modules/strtok_r: Depend on module restrict.
35919
35920 2006-01-10  Bruno Haible  <bruno@clisp.org>
35921
35922         * modules/gettext (configure.ac): Add an invocation of
35923         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
35924
35925 2006-01-10  Bruno Haible  <bruno@clisp.org>
35926
35927         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
35928         Reported by Werner Lemberg <wl@gnu.org>.
35929
35930 2006-01-10  Bruno Haible  <bruno@clisp.org>
35931
35932         * lib/localcharset.c: Update from GNU gettext.
35933
35934 2006-01-10  Bruno Haible  <bruno@clisp.org>
35935
35936         * lib/argp.h (__const): Remove macro. Use const instead.
35937         * lib/argp-fmtstream.h (__const): Likewise.
35938         * lib/glob_.h (__const): Remove macro.
35939         * lib/glob-libc.h: Use const instead of __const.
35940
35941 2006-01-10  Bruno Haible  <bruno@clisp.org>
35942
35943         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
35944         variable.
35945         Needed to avoid an automake error regarding the 'gettext' module.
35946
35947 2006-01-09  Simon Josefsson  <jas@extundo.com>
35948
35949         * modules/inet_ntop (Depends-on): Add restrict.
35950
35951 2006-01-09  Simon Josefsson  <jas@extundo.com>
35952
35953         * modules/gc-rijndael-tests (License): Put under LGPL.
35954
35955         * modules/gc-des-tests (License): Likewise.
35956
35957         * modules/gc-arcfour-tests (License): Likewise.
35958
35959         * modules/gc-arctwo-tests (License): Likewise.
35960
35961         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
35962
35963         * modules/gc-hmac-sha1-tests (Files): Likewise.
35964
35965         * modules/gc-hmac-md5-tests (License): Likewise.
35966
35967         * modules/gc-sha1-tests (License): Likewise.
35968
35969         * modules/gc-md5-tests (License): Likewise.
35970
35971         * modules/gc-md4-tests (License): Likewise.
35972
35973         * modules/gc-md2-tests (License): Likewise.
35974
35975         * modules/gc-tests (License): Likewise.
35976
35977         * modules/des-tests (License): Likewise.
35978
35979         * modules/md4-tests (License): Likewise.
35980
35981         * modules/md2-tests (License): Likewise.
35982
35983 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35984
35985         Sync from coreutils:
35986
35987         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
35988         * modules/lib-ignore: New file.
35989         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
35990         chdir-safer.m4, lchmod.m4.
35991         * modules/openat: Add mkdirat.c, openat-priv.h.
35992
35993 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35994
35995         Sync from coreutils.
35996         * m4/lib-ignore.m4: New file.
35997         * m4/lchmod.m4: New file.
35998
35999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36000
36001         Sync from coreutils.
36002         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
36003         for write access: POSIX says that must fail.
36004         * lib/fts.c (diropen): Likewise.
36005         * lib/save-cwd.c (save_cwd): Likewise.
36006         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
36007         well, for minor improvements on hosts that lack O_DIRECTORY.
36008         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
36009         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
36010         Fall back on chown if open failed with EACCES.
36011
36012         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
36013         Report an error at compile-time if only a 1-second nominal clock
36014         resolution is found.
36015
36016         * lib/lchmod.h: New file.
36017         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
36018         (make_dir_parents): Use lchown rather than chown, and
36019         lchmod rather than chmod.
36020
36021         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
36022         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
36023         "proc" reported by n0dalus.
36024
36025         * lib/mountlist.c: Include <limits.h>.
36026         (dev_from_mount_options)
36027         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
36028         New function.  It no longer assumes "dev=" has the System V meaning
36029         on Linux (since it doesn't).  It also parses "dev=" more carefully.
36030         (read_file_system_list)
36031         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
36032         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
36033         dev= in that case.
36034
36035         * lib/posixtm.h (PDS_PRE_2000): New macro.
36036         * lib/posixtm.c (year): Arg is now syntax_bits rather than
36037         allow_century.  All usages changed.  Reject dates outside the range
36038         1969-1999 if PDS_PRE_2000 is used.
36039
36040 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36041
36042         Sync from coreutils.
36043         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
36044         (Time of day items): Mention the possibility of leap seconds.
36045         Problem reported by Dr. David Alan Gilbert.
36046
36047 2006-01-09  Jim Meyering  <jim@meyering.net>
36048
36049         Sync from coreutils.
36050
36051         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
36052
36053         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
36054
36055         * lib/modechange.c (mode_compile): Reject an invalid mode string
36056         that starts with an octal digit.  From Andreas Gruenbacher.
36057
36058         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
36059         and dup to open_safer and dup_safer, respectively.
36060         (openat_permissive): Fix typo in comment.
36061
36062         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
36063         "gettext.h"; either no longer needed or are guaranteed by openat.h.
36064         (_): Remove; no longer needed.
36065         (openat): Renamed from rpl_openat; no need for rpl_openat
36066         since openat.h renames openat for us.
36067         Replace most of the body with a call to openat_permissive,
36068         to avoid duplicate code.
36069         Port to (probably hypothetical) environments were mode_t is
36070         wider than int.
36071         (openat_permissive): Require mode arg, so that we can check
36072         types better.  Put it just after flags.  Change cwd failure
36073         indicator from pointer-to-bool to pointer-to-errno-value.
36074         All callers changed.
36075         Invoke openat_save_fail and/or openat_restore_fail if
36076         cwd_errno is null, so that openat can call us.
36077         (openat_permissive, fdopendir, fstatat, unlinkat):
36078         Simplify errno handling to avoid some duplicate code,
36079         as it's OK to set errno on success.
36080         * lib/openat.h: Revamp code so that function macros depend on
36081         __OPENAT_PREFIX only, not also on AT_FDCWD.
36082         (openat_ro): Remove.  Caller changed to use openat_permissive.
36083         (openat_permissive): Now a macro, if not a function.
36084         (openat_restore_fail, openat_save_fail): Now always functions,
36085         since mkdirat needs them even if __OPENAT_PREFIX is defined.
36086
36087         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
36088         and openat.c.
36089         * lib/mkdirat.c: Include openat-priv.h.
36090         Remove definitions of macros defined therein.
36091         * lib/openat.c: Likewise.
36092
36093         * lib/mkdirat.c (mkdirat): New file and function.
36094         * lib/openat.h (mkdirat): Declare.
36095
36096         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
36097
36098         * lib/openat.h (openat_permissive): Declare.
36099         (openat_ro): Define.
36100
36101         * lib/openat.c (EXPECTED_ERRNO): New macro.
36102         (openat_permissive): New function -- used in remove.c rewrite.
36103         (all functions): Set errno just before returning, only if there
36104         was an actual failure.
36105         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
36106
36107         Emulate openat-family functions using Linux's procfs, if possible.
36108         Idea and some code based on Ulrich Drepper's glibc changes.
36109
36110         * lib/openat.c: (BUILD_PROC_NAME): New macro.
36111         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
36112         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
36113         before falling back on save_cwd and restore_cwd.
36114         (fdopendir, fstatat, unlinkat): Likewise.
36115
36116         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
36117         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
36118
36119         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
36120         as second argument to va_arg.  Otherwise, some versions of gcc
36121         warn that `if this code is reached, the program will abort'.
36122
36123 2006-01-09  Jim Meyering  <jim@meyering.net>
36124
36125         Sync from coreutils.
36126         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
36127         Require openat-priv.h.
36128
36129 2006-01-09  Bruno Haible  <bruno@clisp.org>
36130
36131         * modules/strnlen (Include): Use strnlen.h.
36132
36133 2006-01-09  Bruno Haible  <bruno@clisp.org>
36134
36135         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
36136
36137 2006-01-09  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/sysexit_.h (EX_OK): New macro.
36140         Suggested by Martin Lambers <marlam@marlam.de>.
36141
36142 2006-01-09  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
36145         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
36146
36147 2006-01-09  Bruno Haible  <bruno@clisp.org>
36148
36149         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
36150         numbers.
36151
36152 2006-01-09  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
36155         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
36156         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
36157         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
36158
36159 2006-01-09  Bruno Haible  <bruno@clisp.org>
36160
36161         * build-aux/javacomp.sh.in: New file, moved from lib/.
36162         * modules/javacomp-script (Files): Update.
36163         (configure.ac): Add AC_CONFIG_FILES invocation.
36164         (EXTRA_DIST): Remove variable.
36165
36166         * build-aux/javaexec.sh.in: New file, moved from lib/.
36167         * modules/javaexec (Files): Update.
36168         (configure.ac): Add AC_CONFIG_FILES invocation.
36169         (EXTRA_DIST): Remove javaexec.sh.in.
36170
36171         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
36172         * modules/csharpcomp-script (Files): Update.
36173         (configure.ac): Add AC_CONFIG_FILES invocation.
36174         (EXTRA_DIST): Remove variable.
36175
36176         * build-aux/csharpexec.sh.in: New file, moved from lib/.
36177         * modules/csharpexec (Files): Update.
36178         (configure.ac): Add AC_CONFIG_FILES invocation.
36179         (EXTRA_DIST): Remove csharpexec.sh.in.
36180
36181 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36182
36183         Sync from coreutils.
36184
36185         Add POSIX ACL support
36186         * lib/acl.h (copy_acl, set_acl): Add declarations.
36187         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
36188         systems other than Linux.
36189         (chmod_or_fchmod): New function: use fchmod when possible,
36190         and chmod otherwise.
36191         (file_has_acl): Add a POSIX ACL implementation, with a
36192         Linux-specific subcase.
36193         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
36194         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
36195         acls are unsupported.
36196         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
36197         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
36198         are unsupported.
36199
36200 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36201
36202         Sync from coreutils.
36203         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
36204
36205 2006-01-07  Bruno Haible  <bruno@clisp.org>
36206
36207         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
36208         gl_EARLY.
36209
36210 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36211
36212         * lib/strftime.c (tzname): Don't declare if it is already #defined.
36213         Problem reported for Mingw by Mark Junker.
36214
36215 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * README: Gnulib normally doesn't generate a tarball.
36218
36219 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36220
36221         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
36222         long int, not int, for nanosecond counts, so that people who are
36223         used to POSIX struct timespec won't be surprised.  Reported by Jim
36224         Meyering.
36225
36226 2005-12-28  Bruno Haible  <bruno@clisp.org>
36227
36228         * build-aux/config.rpath: Update from GNU gettext.
36229
36230 2005-12-16  Jim Meyering  <jim@meyering.net>
36231
36232         * modules/fprintftime: New module.
36233         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
36234
36235 2005-12-16  Jim Meyering  <jim@meyering.net>
36236
36237         * m4/fprintftime.m4: New file.
36238
36239 2005-12-16  Jim Meyering  <jim@meyering.net>
36240
36241         * lib/fprintftime.c, lib/fprintftime.h: New files.
36242
36243 2005-12-15  Simon Josefsson  <jas@extundo.com>
36244
36245         * modules/socklen (configure.ac): Fix M4 macro name, to align with
36246         new m4/socklen.m4.
36247
36248 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36249
36250         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
36251         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
36252
36253 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36254
36255         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
36256         * lib/argp-help.c (fill_in_uparams): Check if the constructed
36257         struct uparams is valid. Fall back to the default values if it is
36258         not.
36259
36260 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36261
36262         * modules/argp (Files): Add argp-pin.c
36263         (Depends-on): dirname
36264         (lib_SOURCES): Add argp-pin.c
36265
36266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36267
36268         * m4/argp.m4:  Check if program_invocation_name and
36269         program_invocation_short_name are declared and define appropriate
36270         macros if they are not.
36271
36272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36273
36274         * lib/argp-help.c (__argp_base_name): New function
36275         (__argp_short_program_name): Rewrite using __argp_base_name
36276         * lib/argp-namefrob.h: Define program_invocation_name and
36277         program_invocation_short_name if requested
36278         (__argp_base_name): Add prototype
36279         * lib/argp-parse.c (argp_def): Use gettext wrappers
36280         (argp_default_parser): Use __argp_base_name
36281         * lib/argp-pin.c: New file. Defines program_invocation_name and
36282         program_invocation_short_name on systems that lack them.
36283
36284 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36285
36286         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
36287         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36288         porting problem reported by Georg Schwarz in
36289         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36290
36291 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36292
36293         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
36294         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36295         porting problem reported by Georg Schwarz in
36296         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36297
36298 2005-12-05  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
36301         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
36302         Reported by Mark Junker <mjscod@gmx.de>.
36303
36304 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36305
36306         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
36307         Use implementation from Albert Chin, with some
36308         comments/corrections by Stepan Kasal and myself.
36309
36310 2005-12-02  Bruno Haible  <bruno@clisp.org>
36311
36312         * gnulib-tool (func_import): Accept GPLed build tool modules when
36313         --lgpl is given.
36314         * modules/csharpcomp-script: New file.
36315         * modules/csharpcomp: Depend on it.
36316         * modules/javacomp-script: New file.
36317         * modules/javacomp: Depend on it.
36318         Suggested by Simon Josefsson.
36319
36320 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
36321
36322         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
36323         statement, to work around an HP-UX 10.20 compiler bug reported by
36324         Peter O'Gorman.
36325
36326 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36327
36328         * modules/savedir (Depends-on): Add openat.
36329
36330 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36331
36332         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
36333         (uintmax_t) [defined uintmax_t]: Do not declare.
36334         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
36335         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
36336         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
36337         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
36338         sake of portability to weird hosts that C allows (though we don't
36339         know of any practical examples).
36340
36341         * lib/savedir.h (fdsavedir): New decl.
36342         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
36343         contains most of the former guts of savedir.
36344         (savedir): Use savedirstream.
36345         Include "openat.h".
36346
36347 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36348
36349         * modules/obstack (Files): Add m4/ulonglong.m4.
36350         Problem reported by Davide Angelocola.
36351
36352 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36353
36354         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
36355         coreutils no longer futzes with rounding modes.
36356
36357 2005-11-14  Jim Meyering  <jim@meyering.net>
36358
36359         * lib/mkstemp-safer.c: Include <config.h>, required for possible
36360         replacement of mkstemp.
36361
36362 2005-11-10  Simon Josefsson  <jas@extundo.com>
36363
36364         * lib/readline.c: Remove EOL.
36365
36366 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36367
36368         * modules/gethrxtime (Depends-on): Add gettime.
36369
36370 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36371
36372         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
36373         or gettimeofday; no longer needed.
36374
36375 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36376
36377         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
36378         time business.
36379         (gethrxtime) [! (HAVE_NANOUPTIME
36380         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
36381         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
36382         our own approximation.
36383
36384 2005-11-08  Eric Blake  <ebb9@byu.net>
36385
36386         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36387
36388 2005-11-08  Eric Blake  <ebb9@byu.net>
36389
36390         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36391
36392 2005-11-04  Bruno Haible  <bruno@clisp.org>
36393
36394         * gnulib-tool: Implement --update mode.
36395
36396 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36397
36398         Fix porting problem reported by Theodoros V. Kalamatianos.
36399         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
36400         Don't assume that futimes failing means we must fail.
36401
36402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36403
36404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
36405         variables to suggest the intended function of the PATH_MAX check.
36406
36407 2005-10-30  Kean Johnston  <jkj@sco.com>
36408
36409         Trivial changes to support SCO systems.
36410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
36411         as PATH_MAX.
36412         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
36413         where __ptr is null when no I/O is pending.
36414
36415 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
36416
36417         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
36418         leave errno alone.  Problem reported by Dmitry V. Levin.
36419
36420 2005-10-28  Simon Josefsson  <jas@extundo.com>
36421
36422         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
36423         Test more.
36424
36425         * tests/test-gc-md2.c, tests/test-md2.c: New files.
36426
36427         * modules/md2, modules/md2-tests: New files.
36428
36429 2005-10-28  Simon Josefsson  <jas@extundo.com>
36430
36431         * m4/inet_ntop.m4: More tests.
36432
36433         * m4/gc-md2.m4, md2.m4: New file.
36434
36435 2005-10-28  Simon Josefsson  <jas@extundo.com>
36436
36437         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
36438         "restrict" keywords, as per POSIX.  Protect the function
36439         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
36440         Don't use K&R prototypes.  Check the sprintf return values.
36441         Re-define EAFNOSUPPORT if not present.  Indent.
36442
36443         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
36444         suggested by Bruno Haible <bruno@clisp.org>.
36445
36446         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
36447
36448         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
36449
36450         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
36451         libgcrypt).
36452
36453         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
36454
36455         * lib/md2.h, lib/md2.c: New files.
36456
36457 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
36458
36459         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
36460         errno alone.  Problem reported by Frederic Jolliton.
36461
36462 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
36463
36464         * modules/verify (License): Change from GPL to LGPL.  This is a
36465         tiny module and there are apparently near-equivalents that are
36466         under the BSD license.
36467
36468 2005-10-24  Simon Josefsson  <jas@extundo.com>
36469
36470         * modules/sha1: Relicense to LGPL.
36471
36472 2005-10-24  Simon Josefsson  <jas@extundo.com>
36473
36474         * lib/md4.h: Shrink buffer size, now that we changed the type.
36475
36476 2005-10-23  Simon Josefsson  <jas@extundo.com>
36477
36478         * gnulib-tool (func_import): Fix --tests-base.
36479
36480 2005-10-22  Simon Josefsson  <jas@extundo.com>
36481
36482         * modules/arcfour (Depends-on): Need stdint.
36483
36484 2005-10-22  Simon Josefsson  <jas@extundo.com>
36485
36486         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
36487         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
36488
36489 2005-10-22  Simon Josefsson  <jas@extundo.com>
36490
36491         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
36492         suggested by Bruno Haible <bruno@clisp.org>.
36493
36494 2005-10-22  Simon Josefsson  <jas@extundo.com>
36495
36496         * lib/crc.h: Include stddef.h, for size_t.
36497
36498 2005-10-22  Simon Josefsson  <jas@extundo.com>
36499
36500         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
36501         arcfour_context struct (simplify test vector testing in GNU
36502         Shishi).
36503
36504 2005-10-21  Simon Josefsson  <jas@extundo.com>
36505
36506         * modules/des, modules/des-tests: New files.
36507
36508         * modules/gc-des, modules/gc-des-tests: New files.
36509
36510         * tests/test-des.c, tests/test-gc-des.c: New file.
36511
36512 2005-10-21  Simon Josefsson  <jas@extundo.com>
36513
36514         * modules/arctwo, modules/arctwo-tests: New files.
36515
36516         * tests/test-arctwo.c: New file.
36517
36518         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
36519
36520         * tests/test-gc-arctwo.c: New file.
36521
36522 2005-10-21  Simon Josefsson  <jas@extundo.com>
36523
36524         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
36525         Bruno Haible <bruno@clisp.org>.
36526
36527         * m4/gc-des.m4: New file.
36528
36529 2005-10-21  Simon Josefsson  <jas@extundo.com>
36530
36531         * m4/arctwo.m4: New file.
36532
36533         * m4/gc-arctwo.m4: New file.
36534
36535 2005-10-21  Simon Josefsson  <jas@extundo.com>
36536
36537         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
36538         block.
36539
36540 2005-10-21  Simon Josefsson  <jas@extundo.com>
36541
36542         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
36543         <bruno@clisp.org>.
36544
36545         * lib/hmac-sha1.c (hmac_sha1): Likewise.
36546
36547         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
36548         Bruno Haible <bruno@clisp.org>.
36549
36550         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
36551         <bruno@clisp.org>.
36552
36553 2005-10-21  Simon Josefsson  <jas@extundo.com>
36554
36555         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
36556
36557 2005-10-21  Simon Josefsson  <jas@extundo.com>
36558
36559         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
36560
36561 2005-10-21  Simon Josefsson  <jas@extundo.com>
36562
36563         * lib/des.h, lib/des.c: New files.
36564
36565         * lib/gc-gnulib.c: Support DES.c
36566
36567 2005-10-21  Simon Josefsson  <jas@extundo.com>
36568
36569         * lib/arctwo.h, lib/arctwo.c: New files.
36570
36571         * lib/gc-gnulib.c: Support ARCTWO.
36572
36573 2005-10-21  Simon Josefsson  <jas@extundo.com>
36574
36575         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
36576         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36577
36578 2005-10-21  Simon Josefsson  <jas@extundo.com>
36579
36580         * gnulib-tool (func_import, func_create_testdir): Define automake
36581         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
36582         Makefile.am snippet),
36583         suggested by Bruno Haible <bruno@clisp.org>.
36584
36585         * modules/gc (Makefile.am): Use it.
36586
36587 2005-10-21  Bruno Haible  <bruno@clisp.org>
36588
36589         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
36590         patch.
36591
36592 2005-10-19  Simon Josefsson  <jas@extundo.com>
36593
36594         * tests/test-gc-rijndael.c: New file.
36595
36596         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
36597
36598 2005-10-19  Simon Josefsson  <jas@extundo.com>
36599
36600         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
36601         interface too.
36602
36603 2005-10-19  Simon Josefsson  <jas@extundo.com>
36604
36605         * tests/test-gc-arcfour.c: New file.
36606
36607         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
36608
36609 2005-10-19  Simon Josefsson  <jas@extundo.com>
36610
36611         * modules/gc-md4, modules/gc-md4-tests: New file.
36612
36613         * tests/test-gc-md4.c: New file.
36614
36615 2005-10-19  Simon Josefsson  <jas@extundo.com>
36616
36617         * m4/gc-md4.m4: New file.
36618
36619 2005-10-19  Simon Josefsson  <jas@extundo.com>
36620
36621         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
36622         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
36623         <kasal@ucw.cz>.
36624
36625 2005-10-19  Simon Josefsson  <jas@extundo.com>
36626
36627         * m4/gc-arcfour.m4: New file.
36628
36629         * m4/gc-rijndael.m4: New file.
36630
36631 2005-10-19  Simon Josefsson  <jas@extundo.com>
36632
36633         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
36634
36635 2005-10-19  Simon Josefsson  <jas@extundo.com>
36636
36637         * lib/gc-gnulib.c: Support ARCFOUR.
36638
36639 2005-10-19  Simon Josefsson  <jas@extundo.com>
36640
36641         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
36642         support.
36643
36644         * lib/gc.h: Add ECB enum type.
36645
36646         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
36647
36648 2005-10-18  Simon Josefsson  <jas@extundo.com>
36649
36650         * tests/test-md5.c: New file.
36651
36652         * modules/md5-tests: New file.
36653
36654 2005-10-18  Simon Josefsson  <jas@extundo.com>
36655
36656         * tests/test-md4.c: New file.
36657
36658         * modules/md4, modules/md4-tests: New files.
36659
36660 2005-10-18  Simon Josefsson  <jas@extundo.com>
36661
36662         * m4/md4.m4: New file.
36663
36664 2005-10-18  Simon Josefsson  <jas@extundo.com>
36665
36666         * lib/md4.h, lib/md4.c: New files, based on md5.?.
36667
36668 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
36669
36670         * gnulib-tool (func_create_testdir): Omit the second check whether
36671         BUILT_SOURCES in nonempty.
36672
36673 2005-10-17  Simon Josefsson  <jas@extundo.com>
36674
36675         * tests/test-rijndael.c: New file.
36676
36677 2005-10-17  Simon Josefsson  <jas@extundo.com>
36678
36679         * modules/sha1: Depend on stdint instead of md5.
36680
36681         * modules/md5: Depend on stdint, remove uint32_t.
36682
36683 2005-10-17  Simon Josefsson  <jas@extundo.com>
36684
36685         * modules/gc-sha1-tests: New file.
36686
36687         * tests/test-gc-sha1.c: New file.
36688
36689 2005-10-17  Simon Josefsson  <jas@extundo.com>
36690
36691         * m4/md5.m4: Remove call to uint32_t.m4.
36692
36693 2005-10-17  Simon Josefsson  <jas@extundo.com>
36694
36695         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
36696
36697         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
36698         md5.h.
36699
36700         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
36701
36702         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
36703
36704 2005-10-17  Simon Josefsson  <jas@extundo.com>
36705
36706         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
36707
36708 2005-10-17  Simon Josefsson  <jas@extundo.com>
36709
36710         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
36711
36712 2005-10-17  Simon Josefsson  <jas@extundo.com>
36713
36714         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
36715
36716         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
36717
36718 2005-10-17  Bruno Haible  <bruno@clisp.org>
36719
36720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
36721         that it can also be used in a test.
36722
36723 2005-10-16  Bruno Haible  <bruno@clisp.org>
36724
36725         * gnulib-tool (func_emit_tests_Makefile_am): Also define
36726         TESTS_ENVIRONMENT, so that individual tests can augment it.
36727
36728         * gnulib-tool (func_create_testdir): Use an intermediate target for
36729         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
36730         macros, like $(ALLOCA_H), which cannot be passed through the command
36731         line.
36732
36733 2005-10-15  Simon Josefsson  <jas@extundo.com>
36734
36735         * modules/rijndael-tests: New file.
36736
36737         * modules/rijndael: New file.
36738
36739 2005-10-15  Simon Josefsson  <jas@extundo.com>
36740
36741         * m4/rijndael.m4: New file.
36742
36743 2005-10-15  Simon Josefsson  <jas@extundo.com>
36744
36745         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
36746
36747         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
36748
36749 2005-10-14  Simon Josefsson  <jas@extundo.com>
36750
36751         * tests/test-arcfour.c: New file.
36752
36753         * modules/arcfour, modules/arcfour-tests: New files.
36754
36755 2005-10-14  Simon Josefsson  <jas@extundo.com>
36756
36757         * m4/arcfour.m4: New file.
36758
36759 2005-10-14  Simon Josefsson  <jas@extundo.com>
36760
36761         * lib/arcfour.h, lib/arcfour.c: New files.
36762
36763 2005-10-14  Roland McGrath  <roland@redhat.com>
36764
36765         Import from libc.  [BZ #1331]
36766         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
36767         macro argument.
36768         Reported by Matej Vela <vela@debian.org>.
36769
36770 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36771
36772         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
36773         include <wchar.h>; no longer needed.
36774
36775 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36776
36777         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
36778
36779 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
36780         and  Ulrich Drepper  <drepper@redhat.com>
36781
36782         Import from libc.
36783         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
36784         instead of inline stream orientation test and two separate
36785         function calls.  Pay no attention to USE_IN_LIBIO.
36786
36787 2005-10-13  Simon Josefsson  <jas@extundo.com>
36788
36789         * modules/gc-hmac-md5-tests: New file.
36790
36791         * tests/test-gc-hmac-sha1.c: New file.
36792
36793         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
36794
36795         * modules/gc-hmac-md5-tests: New file.
36796
36797         * tests/test-gc-md5.c: New file.
36798
36799         * modules/gc-md5-tests: New file.
36800
36801 2005-10-13  Simon Josefsson  <jas@extundo.com>
36802
36803         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
36804         Move memory allocation outside of loop.
36805
36806 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
36807
36808         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
36809         intermediate directory is in a read-only file system.  Problem
36810         reported by Eric Blake.
36811
36812 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
36813
36814         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
36815
36816 2005-10-12  Simon Josefsson  <jas@extundo.com>
36817
36818         * tests/test-hmac-sha1.c: New file.
36819
36820         * modules/hmac-sha1-tests: New file.
36821
36822         * modules/hmac-sha1: New file.
36823
36824 2005-10-12  Simon Josefsson  <jas@extundo.com>
36825
36826         * modules/gc-sha1: New file.
36827
36828 2005-10-12  Simon Josefsson  <jas@extundo.com>
36829
36830         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
36831
36832         * tests/test-gc-pbkdf2-sha1.c: New file.
36833
36834 2005-10-12  Simon Josefsson  <jas@extundo.com>
36835
36836         * modules/gc-md5, modules/gc-hmac-md5: New files.
36837
36838         * modules/gc (Files): Remove md5, memxor and hmac files.
36839
36840 2005-10-12  Simon Josefsson  <jas@extundo.com>
36841
36842         * m4/gc-pbkdf2-sha1.m4: New file.
36843
36844         * m4/gc-hmac-sha1.m4: New file.
36845
36846         * m4/gc-sha1: New file.
36847
36848         * m4/hmac-sha1.m4: New file.
36849
36850 2005-10-12  Simon Josefsson  <jas@extundo.com>
36851
36852         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
36853
36854         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
36855
36856 2005-10-12  Simon Josefsson  <jas@extundo.com>
36857
36858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
36859         suggested by Bruno Haible <bruno@clisp.org>.
36860
36861 2005-10-12  Simon Josefsson  <jas@extundo.com>
36862
36863         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
36864
36865 2005-10-12  Simon Josefsson  <jas@extundo.com>
36866
36867         * lib/gc-pbkdf2-sha1.c: New file.
36868
36869         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
36870
36871 2005-10-12  Simon Josefsson  <jas@extundo.com>
36872
36873         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
36874
36875         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
36876
36877 2005-10-12  Simon Josefsson  <jas@extundo.com>
36878
36879         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
36880         GC_USE_HMAC_MD5, respectively.
36881
36882         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
36883         (gc_md5): Fix typo.
36884
36885         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
36886
36887         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
36888
36889         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
36890
36891 2005-10-12  Bruno Haible  <bruno@clisp.org>
36892
36893         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
36894         Reported by Stepan Kasal <kasal@ucw.cz>.
36895
36896 2005-10-11  Simon Josefsson  <jas@extundo.com>
36897
36898         * tests/test-crc.c: New file.
36899
36900         * modules/crc, modules/crc-tests: New files.
36901
36902 2005-10-11  Simon Josefsson  <jas@extundo.com>
36903
36904         * m4/crc.m4: New file.
36905
36906 2005-10-11  Simon Josefsson  <jas@extundo.com>
36907
36908         * lib/gc.h: Add gc_hash and gc_hash_buffer.
36909
36910         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
36911
36912         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
36913
36914 2005-10-11  Simon Josefsson  <jas@extundo.com>
36915
36916         * lib/crc.h, lib/crc.c: New files.
36917
36918         * lib/gc.h (gc_hash_buffer): Add doc.
36919
36920 2005-10-11  Bruno Haible  <bruno@clisp.org>
36921
36922         * modules/c-strcasestr: New file.
36923         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
36924
36925 2005-10-11  Bruno Haible  <bruno@clisp.org>
36926
36927         * modules/c-strcase: New file.
36928         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
36929
36930 2005-10-11  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/strcasecmp.c: Include limits.h.
36933         (strcasecmp): Avoid integer overflow on exotic platforms.
36934         * lib/strncasecmp.c: Include limits.h.
36935         (strncasecmp): Avoid integer overflow on exotic platforms.
36936         Reported by Paul Eggert.
36937
36938 2005-10-11  Bruno Haible  <bruno@clisp.org>
36939
36940         * lib/c-strcasestr.h: New file, from GNU gettext.
36941         * lib/c-strcasestr.c: New file, from GNU gettext.
36942
36943 2005-10-11  Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/c-strcase.h: New file, from GNU gettext.
36946         * lib/c-strcasecmp.c: New file, from GNU gettext.
36947         * lib/c-strncasecmp.c: New file, from GNU gettext.
36948
36949 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
36950
36951         * modules/mempcpy (License): GPL -> LGPL.
36952         * modules/strchrnul (License): Likewise.
36953         * modules/sysexits (License): Likewise.
36954
36955 2005-10-08  Simon Josefsson  <jas@extundo.com>
36956
36957         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
36958
36959 2005-10-07  Simon Josefsson  <jas@extundo.com>
36960
36961         * m4/memxor.m4: Remove gl_C_RESTRICT call.
36962
36963 2005-10-06  Simon Josefsson  <jas@extundo.com>
36964
36965         * tests/test-hmac-md5.c: New file.
36966
36967         * modules/hmac-md5-tests: New file.
36968
36969         * modules/hmac-md5: New file.
36970
36971 2005-10-06  Simon Josefsson  <jas@extundo.com>
36972
36973         * m4/hmac-md5.m4: New file.
36974
36975         * m4/memxor.m4: Require gl_C_RESTRICT.
36976
36977 2005-10-06  Simon Josefsson  <jas@extundo.com>
36978
36979         * lib/memxor.c (memxor): Avoid casts and warnings.
36980
36981 2005-10-06  Simon Josefsson  <jas@extundo.com>
36982
36983         * lib/hmac-md5.c: New file.
36984
36985         * lib/hmac.h: New file.
36986
36987 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
36988
36989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
36990         promotes to int, not unsigned int, to catch the AIX 5.3
36991         compiler bug.
36992
36993 2005-10-05  Simon Josefsson  <jas@extundo.com>
36994
36995         * modules/memxor: New file.
36996
36997         * modules/iconv (Files): Move config.rpath to havelib, it is used
36998         there.
36999
37000         * modules/havelib (Files): Add config.rpath.
37001
37002 2005-10-05  Simon Josefsson  <jas@extundo.com>
37003
37004         * m4/memxor.m4: New file.
37005
37006 2005-10-05  Simon Josefsson  <jas@extundo.com>
37007
37008         * lib/memxor.c (memxor): Fix compiler error.
37009
37010         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
37011         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
37012
37013         * lib/memxor.h, lib/memxor.c: New files.
37014
37015         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
37016         we assume all systems have it, suggested by Jim Meyering
37017         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
37018         any systems lack sys/socket.h; mingw32 is known to lack it, but we
37019         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
37020         same reasons.
37021
37022 2005-10-05  Simon Josefsson  <jas@extundo.com>
37023
37024         * config/srclist.txt: Add glibc bug 1423 for md5.h.
37025
37026 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
37027
37028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
37029         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
37030         needed, since the source code now assumes these .h files.
37031
37032 2005-10-05  Derek Price  <derek@ximbiot.com>
37033
37034         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
37035
37036 2005-10-05  Bruno Haible  <bruno@clisp.org>
37037
37038         * modules/stdint (License): Change to LGPL.
37039
37040 2005-10-04  Simon Josefsson  <jas@extundo.com>
37041
37042         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
37043         D. Baushke" <mdb@gnu.org>.
37044
37045 2005-10-04  Bruno Haible  <bruno@clisp.org>
37046
37047         * lib/verify.h (verify_true): Provide alternative definition for C++.
37048
37049 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
37050
37051         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
37052         (SSIZE_MAX): New macro, if not already defined.
37053         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
37054         than 2 GiB.
37055
37056 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37057
37058         Sync from coreutils.
37059         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
37060         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
37061         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
37062         ULLONG_MAX doesn't work with 2.7.2.1.
37063
37064 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37065
37066         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
37067         From Ben Pfaff.
37068
37069         * modules/exclude (Depends-on): Depend on verify.
37070         * modules/strtoimax (Depends-on): Likewise.
37071         * modules/utimecmp (Depends-on): Likewise.
37072
37073 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37074
37075         * lib/exclude.c: Include verify.h.
37076         (verify): Remove.  All callers changed to use verify.h's version.
37077         * lib/strtoimax.c: Likewise.
37078         * lib/utimecmp.c: Likewis.e
37079
37080         Sync from coreutils.
37081         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
37082         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
37083         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
37084         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
37085         bother returning ENOSYS if settimeofday or stime fails; just let
37086         them return whatever errno they want to return.
37087         * lib/utimens.c: Include unistd.h, for dup2.
37088         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
37089         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
37090
37091 2005-10-02  Jim Meyering  <jim@meyering.net>
37092
37093         Sync from coreutils.
37094         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
37095         from glibc-2.2.5 that fails for read-only files.
37096
37097 2005-10-02  Jim Meyering  <jim@meyering.net>
37098
37099         Sync from coreutils.
37100         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
37101         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
37102         `#if HAVE_CONFIG_H'.
37103         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
37104         Remove AT_FDCWD test.
37105         Do not consume the fd unless successful.
37106         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
37107         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
37108         block, so that we don't even try to compile it if settimeofday is
37109         available.  This works around a compilation failure on OSF1 V5.1,
37110         due to stime requiring a `long int*' while tv_sec is `int'.
37111
37112 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
37113
37114         Sync from coreutils.
37115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
37116         against `yes', rather than just testing for nonempty.
37117
37118 2005-10-01  Simon Josefsson  <jas@extundo.com>
37119
37120         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
37121         and Darwin.
37122
37123         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
37124         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
37125         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
37126         freeaddrinfo and gai_strerror are declared by the POSIX headers.
37127         Check if struct addrinfo is declared.
37128
37129 2005-10-01  Simon Josefsson  <jas@extundo.com>
37130
37131         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
37132         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
37133         AI_* and EAI_* definitions.  Protect function declarations.
37134
37135 2005-10-01  Jim Meyering  <jim@meyering.net>
37136
37137         Sync from coreutils.
37138
37139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
37140         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
37141         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
37142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37143         in the inet and nsl libraries.  Required on Solaris 5.7.
37144
37145 2005-10-01  Jim Meyering  <jim@meyering.net>
37146
37147         Sync from coreutils.
37148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37149         in the inet and nsl libraries.  Required on Solaris 5.7.
37150
37151 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
37152
37153         * lib/getdelim.c (getdelim): Remove unused variables.
37154
37155 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
37156
37157         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
37158         so that the code works even with ancient cpp.  Portability problem
37159         with GCC 2.7.2.1 reported by Thomas M.Ott.
37160
37161 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37162
37163         * modules/regex (Depends-on): Add strcase.
37164
37165         * modules/gethostname (Licence): Change from GPL to LGPL, since
37166         gethostname.c is a trivial implementation of a standard library
37167         function.
37168         * modules/poll (License): Change from GPL to LGPL, since it's
37169         derived from LGPL code.
37170
37171 2005-09-27  Jim Meyering  <jim@meyering.net>
37172
37173         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
37174         HAVE_CONFIG_H.
37175
37176         * lib/intprops.h (signed_type_or_expr__): Define.
37177         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
37178         for unsigned types.
37179
37180 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37181
37182         * lib/verify.h (verify_expr): Remove, replacing with:
37183         (verify_true): New macro that returns true instead of void.
37184         (verify_type__): Remove.
37185         (verify): Use verify_true rather than verify_type__.
37186
37187 2005-09-26  Bruno Haible  <bruno@clisp.org>
37188
37189         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
37190         is necessary.
37191         (lib_SOURCES): Remove mbchar.c.
37192         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
37193         (Files): Add m4/mbrtowc.m4.
37194         * modules/mbiter: Likewise.
37195         * modules/mbuiter: Likewise.
37196
37197 2005-09-26  Bruno Haible  <bruno@clisp.org>
37198
37199         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
37200         compile mbchar.c if they are not both present.
37201         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
37202         * m4/mbiter.m4 (gl_MBITER): Likewise.
37203         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
37204         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
37205         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
37206
37207 2005-09-25  Jim Meyering  <jim@meyering.net>
37208
37209         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
37210         also uses socklen_t.
37211
37212 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37213
37214         * lib/utimens.c (ENOSYS): Define if not already defined.
37215         (futimens): Support having a null PATH if the file descriptor
37216         is nonnegative.
37217
37218         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
37219         Remove.
37220         (__attribute): Define to empty unless GCC 3.1 or later.
37221         This works around a core dump on OpenBSD 3.4, which has GCC
37222         2.95.3, which dumps core when given __attribute__(()).  It also
37223         simplifies other tests, since we really don't want to bother with
37224         worrying about which ancient version of GCC supported what.
37225         Original problem reported by Yoann Vandoorselaere, with part of
37226         the fix suggested by Derek Price.
37227
37228 2005-09-24  Jim Meyering  <jim@meyering.net>
37229
37230         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
37231         so we can once again use a positive bitfield width of 1 -- now we
37232         don't have to explain why we were using a bitfield width of 2.
37233
37234 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37235
37236         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
37237         and similarly for the other external symbols.  Problem reported
37238         by James Gallager.
37239
37240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
37241         bug reported by Jim Meyering.
37242
37243         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
37244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
37245         not needed, since socklen is a prerequisite module.
37246
37247 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37248
37249         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
37250         Problem reported by Eric Blake.
37251         (getaddrinfo): Initialize se so that it's not garbage.
37252         Redo internal storage allocation so that it doesn't make unportable
37253         assumptions about alignment.
37254         Fix a memory leak.
37255
37256         * lib/utimens.c (futimens): Use futimesat if available.
37257         Prefer it to futimes since it doesn't have the futimes bug.
37258
37259         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
37260         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
37261         Instead, declare a function that returns a pointer to an array,
37262         and use verify_type__ to declare the size of the array.
37263         Problem and germ of a solution reported by Bruno Haible.
37264         (verify_type__): Use 2, not 1, for bitfield size, to avoid
37265         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
37266
37267 2005-09-23  Jim Meyering  <jim@meyering.net>
37268
37269         Sync from coreutils.
37270         Correct build failure (socklen_t not defined) on at least
37271         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
37272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
37273
37274 2005-09-23  Jim Meyering  <jim@meyering.net>
37275
37276         * modules/getaddrinfo (Depends-on): Add socklen.
37277
37278 2005-09-23  Bruno Haible  <bruno@clisp.org>
37279
37280         * tests/test-verify.c: New file.
37281
37282 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         Sync from coreutils.
37285
37286         * modules/argmatch (Depends-on): Add verify.
37287         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
37288         unistd-safer.
37289         * modules/save-cwd (Depends-on): Likewise.
37290
37291         * modules/openat (Files): Add lib/openat-die.c.
37292         (Depends-on): Remove error, exitfail.
37293         Add dirname.
37294
37295         * modules/verify: New file.
37296         * MODULES.html.sh (Diagnostics <assert.h>): New section,
37297         with "verify" module.
37298
37299 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37300
37301         Sync from coreutils.
37302
37303         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
37304         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
37305         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
37306         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
37307         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
37308         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
37309         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
37310         Don't bother checking for string.h, stdlib.h, unistd.h.
37311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
37312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
37313         module's job.
37314         * m4/jm-macros.m4 (gl_MACROS): Likewise.
37315         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
37316
37317         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
37318         (gl_GETDATE): Use it.
37319
37320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
37321
37322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37323
37324         Sync from coreutils.
37325
37326         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
37327         stat-time.h.
37328         * lib/argmatch.h: Include verify.h
37329         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
37330         (ARGMATCH_ASSERT): Remove; unused.
37331         * lib/canonicalize.c: Assume STDC_HEADERS.
37332         * lib/exclude.c: Include "strcase.h".
37333         * lib/regex_internal.h [!defined _LIBC]: Likewise.
37334         * lib/getusershell.c: Include stdio--.h rather than stdio.h
37335         and stdio-safer.h.
37336         (getusershell): Call fopen, not fopen_safer.
37337         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
37338         Do not include unistd-safer.h.
37339         (save_cwd): Don't call fd_safer; no longer needed
37340         now that we include fcntl--.h.
37341
37342         * lib/getdate.y (relative_time): New type.
37343         (RELATIVE_TIME_0): New constant.
37344         (parser_control): Use relative_time instead of doing it ourselves.
37345         (%union): Add new relative_time rel member.
37346         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
37347         Now typeless.
37348         (relunit, relunit_snumber): Now of type rel.
37349         (zone, rel, relunit, get_date): Adjust to above changes.
37350
37351         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
37352         Do not include unistd-safer.h.
37353         (getloadavg): Don't call fd_safer; no longer needed
37354         now that we include fcntl--.h.
37355
37356         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
37357         (make_dir_parents): Treat ENOSYS like EEXIST.
37358
37359         Improve quality of diagnostics on restore_cwd failure.
37360         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
37361         (make_dir_parents): Last arg is now int * (for errno), not bool *.
37362         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
37363         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
37364         each time through the loop.  Do not diagnose restore_cwd failure;
37365         that is the caller's job (and perhaps the caller does not care).
37366
37367         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
37368         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
37369         If the file already exists but is not a directory, don't bother
37370         to try to make its parents.
37371         Close potential file descriptor leak if we can't chdir("/") (!).
37372         Don't always return true if chdir($PWD) fails; return true only
37373         if the requested action was done successfully (except for the
37374         chdir($PWD)).
37375         Don't log final directory unless we actually made it.
37376         Refactor to avoid duplicate code to fix up permissions.
37377         Don't attempt to fix up parent permissions if chdir($PWD) fails.
37378
37379         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
37380         to make it a bit faster and (I hope) clearer.
37381         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
37382         Fix bug in formats like %2N.
37383
37384         * lib/verify.h: New file.
37385
37386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         Sync from coreutils.
37389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
37390
37391 2005-09-22  Jim Meyering  <jim@meyering.net>
37392
37393         Sync from coreutils.
37394
37395         * m4/lstat.m4 (gl_FUNC_LSTAT):
37396         Use AC_LIBSOURCES to require lstat.c and lstat.h.
37397         Remove obsolete comment.
37398         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
37399         * m4/xstrtod.m4: Likewise.
37400
37401         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
37402
37403 2005-09-22  Jim Meyering  <jim@meyering.net>
37404
37405         Sync from coreutils.
37406
37407         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
37408
37409         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
37410         the .tm_year member, since otherwise gcc-4.0 would now warn about
37411         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
37412
37413         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
37414         order to avoid an unsuppressible warning from gcc on 64-bit systems.
37415
37416         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
37417         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
37418         when run in a time zone for which daylight savings time is in effect
37419         for the starting date.
37420
37421         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
37422         stop us from restricting permissions of just-created absolute-named
37423         directories.
37424         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
37425         to restore initial working directory.
37426         * lib/mkdir-p.c (make_dir_parents): New parameter:
37427         different_working_dir, to tell caller if/when we change the working
37428         directory and are unable to return to the initial one.
37429         * lib/mkdir-p.h (make_dir_parents): Update prototype.
37430         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
37431         `return false'.  This fixes a bug introduced on 2004-07-30.
37432
37433         * lib/openat.c (fdopendir): Be sure to close the supplied
37434         file descriptor before returning.  This makes our replacement
37435         implementation a little closer to Solaris's, where fdopendir
37436         ties the file descriptor to the returned DIR* pointer.
37437         * lib/openat.c (unlinkat): New function.
37438         * lib/openat.h (unlinkat): Add prototype.
37439         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
37440         (openat_restore_fail): Rename from openat_restore_die.
37441         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
37442
37443         Provide an alternative to exiting immediately upon save_cwd or
37444         restore_cwd failure.  Now, an application can arrange e.g.,
37445         to perform a longjump in that case.
37446         * lib/openat.c: Include dirname.h.
37447         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
37448         (rpl_openat, fdopendir, fstatat): Call openat_save_die
37449         and openat_restore_die rather than calling error directly.
37450         Don't include "error.h" or "exitfail.h"; they're no longer needed.
37451
37452         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
37453         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
37454         define.
37455
37456         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
37457         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
37458                             int utc, int nanoseconds);
37459         Background:
37460         date should not have to allocate a megabyte of virtual memory to
37461         handle a format argument like +%1048575T.  When implemented with
37462         strftime, it must allocate such a buffer, use strftime to fill it
37463         in, print it, then free it.
37464         With fprintftime, it simply prints everything and exits.
37465         With no need for memory allocation, that's one fewer way to fail.
37466         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
37467         optional field width, not before, so we accept %9:z, not %:9z.
37468         (my_strftime): Be sure to use L_('x') for literals.
37469
37470         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
37471         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
37472         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
37473         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
37474         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
37475         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
37476         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
37477         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
37478         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
37479         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
37480         * lib/xgethostname.c, lib/xreadlink.c:
37481         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
37482
37483         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
37484         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
37485         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
37486         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37487         and don't include <sys/file.h>).
37488
37489 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
37490
37491         Sync from coreutils.
37492
37493         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
37494         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
37495         [!LDAV_DONE]: Avoid unused variable warning.
37496
37497 2005-09-21  Bruno Haible  <bruno@clisp.org>
37498
37499         * lib/unicodeio.h (unicode_to_mb): New declaration.
37500
37501 2005-09-20  Derek Price  <derek@ximbiot.com>
37502
37503         * lib/getaddrinfo.c: Don't include <netdb.h> included from
37504         getaddrinfo.h.
37505
37506 2005-09-20  Bruno Haible  <bruno@clisp.org>
37507
37508         * gnulib-tool: Remove trailing slashes from the values specified for
37509         --source-base, --m4-base, --tests-base, --aux-dir.
37510         Suggested by Simon Josefsson <jas@extundo.com>.
37511
37512 2005-09-20  Bruno Haible  <bruno@clisp.org>
37513
37514         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
37515         func_modules_to_filelist, func_import, func_create_testdir): Make all
37516         sorting results locale-independent, so that gnulib-cache.m4 doesn't
37517         change when gnulib-tool is invoked in a different locale.
37518
37519 2005-09-19  Simon Josefsson  <jas@extundo.com>
37520
37521         * m4/socklen.m4: Fix typo.
37522
37523 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37524
37525         Use a consistent style for including <config.h>.
37526         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
37527         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
37528         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
37529         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
37530         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
37531         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
37532         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
37533         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
37534         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
37535         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
37536         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
37537         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
37538         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
37539         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
37540         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
37541         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
37542         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
37543         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
37544         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
37545         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
37546         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
37547         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
37548         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
37549         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
37550         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
37551         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
37552         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
37553         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
37554         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
37555         lib/xstrtoumax.c, lib/yesno.c:
37556         Standardize inclusion of config.h.
37557         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
37558         lib/inttostr.h:  Removed inclusion of config.h from header files.
37559         * lib/inttostr.c:  Adjusted in-tree users.
37560         * lib/timespec.h: Remove superfluous warning to include config.h.
37561         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
37562         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
37563         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
37564         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
37565         config.h with HAVE_CONFIG_H.
37566
37567 2005-09-19  Jim Meyering  <jim@meyering.net>
37568
37569         * modules/pathmax (License): Change to LGPL.
37570
37571 2005-09-19  Derek Price  <derek@ximbiot.com>
37572
37573         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
37574
37575 2005-09-19  Bruno Haible  <bruno@clisp.org>
37576
37577         * gnulib-tool (import): Provide default for --tests-base.
37578
37579 2005-09-19  Bruno Haible  <bruno@clisp.org>
37580
37581         * doc/quote.texi: New file, extracted from gnulib.texi.
37582         * doc/ctime.texi: New file, extracted from gnulib.texi.
37583         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
37584         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
37585         * doc/gnulib.texi: Include them.
37586
37587 2005-09-18  Bruno Haible  <bruno@clisp.org>
37588
37589         Portability fix.
37590         * gnulib-tool (func_readlink): New function.
37591         (func_ln_if_changed): Use it.
37592
37593 2005-09-18  Bruno Haible  <bruno@clisp.org>
37594
37595         * gnulib-tool: Support --with-tests also with --import.
37596         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
37597         (func_import): Use variables $testsbase and $inctests. Emit a
37598         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
37599         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
37600         SUBDIRS += $testsdir.
37601         (func_create_testdir): Update.
37602
37603 2005-09-18  Bruno Haible  <bruno@clisp.org>
37604
37605         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
37606         instead of $dry_run.
37607         (func_cp_if_changed, func_mv_if_changed): Remove functions.
37608         (func_ln_if_changed): Don't handle dry-run here.
37609         (func_import): In dry-run mode, detect more precisely which actions
37610         would be performed, and don't use "...ing" verbs.
37611
37612 2005-09-18  Bruno Haible  <bruno@clisp.org>
37613
37614         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
37615         (func_import): Use join on two temporary files instead of three nested
37616         loops, in order to determine which files are new or old.
37617
37618 2005-09-18  Bruno Haible  <bruno@clisp.org>
37619
37620         * gnulib-tool (func_import): Comment out code that spits out the
37621         new files with --dry-run.
37622
37623 2005-09-18  Bruno Haible  <bruno@clisp.org>
37624
37625         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
37626
37627 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37628
37629         * lib/stat-time.h: New file.
37630         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
37631         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
37632         in a different way.
37633         (timespec_cmp): New function.
37634         * lib/utimecmp.c: Include stat-time.h.
37635         (SYSCALL_RESOLUTION): Depend on whether various struct stat
37636         members exist, not on the obsolescent ST_MTIM_NSEC.
37637         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
37638
37639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37640
37641         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
37642
37643 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37644
37645         * MODULES.html.sh (File system functions): Add stat-time.
37646         * modules/stat-time: New file.
37647         * modules/timespec (Files): Remove m4/st_mtim.m4; this
37648         is now done in a different way, by the stat-time module.
37649         * modules/utimecmp (Depends-on): Add stat-time.
37650
37651 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37652
37653         * m4/st_mtim.m4: Remove.  Superseded by...
37654         * m4/stat-time.m4: New file.
37655         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
37656         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
37657
37658 2005-09-15  Derek Price  <derek@ximbiot.com>
37659
37660         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
37661
37662 2005-09-15  Derek Price  <derek@ximbiot.com>
37663
37664         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
37665         * lib/regex_internal.c: Ditto, using this...
37666         (__GNUC_PREREQ): ...new macro.
37667         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
37668         using...
37669         (__GNUC_PREREQ): ...this new macro.
37670
37671         * lib/strstr.h: Include string.h. Define strstr as a macro here.
37672
37673 2005-09-15  Derek Price  <derek@ximbiot.com>
37674             Paul Eggert  <eggert@cs.ucla.edu>
37675
37676         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
37677         changes, consolidating in...
37678         * lib/regex_internal.h: ...this file.
37679
37680 2005-09-13  Jim Meyering  <jim@meyering.net>
37681
37682         * lib/canon-host.c: Filter through gnu indent and reword comments
37683         slightly.
37684         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
37685
37686 2005-09-13  Derek Price  <derek@ximbiot.com>
37687
37688         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
37689         failure.
37690         Reported by Jim Meyering  <jim@meyering.net>.
37691
37692 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37693
37694         * lib/base64.c: Typo.
37695         (base64_encode): Put b64str in initialized data section.
37696
37697 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
37698
37699         Merge glibc and coreutils changes into gnulib, plus a few
37700         extra fixes.
37701         * lib/md5.c: Use #error rather than a string.
37702         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
37703         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
37704         (__attribute__): Define to empty for non recent-GCC.
37705         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
37706         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
37707         Renamed from their non-__ counterparts, with new macros replacing
37708         them if not _LIBC.  Add __THROW attribute.
37709         (rol): Remove.
37710         (struct md5_ctx): Align buffer if using GCC.
37711         * lib/sha1.h (struct sha1_ctx): Likewise.
37712         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
37713         The old name was backwards.
37714         (NOTSWAP): Remove; not used.
37715         (rol): New macro, moved here from md5.h.
37716         (sha1_process_block): Remove a FIXME that doesn't make sense.
37717
37718 2005-09-12  Derek Price  <derek@ximbiot.com>
37719
37720         Return usable errors from canon-host.
37721         * lib/canon-host.h: New file.
37722         * lib/canon-host.c (canon_host): Wrap...
37723         (canon_host_r): ...this new function, which now relies exclusively on
37724         getaddrinfo.
37725         (ch_strerror): New function.
37726         (last_cherror): New global.
37727         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
37728         interface.
37729         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
37730         void *.
37731         (freeaddrinfo): Free ai->ai_canonname when set.
37732
37733 2005-09-12  Derek Price  <derek@ximbiot.com>
37734
37735         Make canon-host require getaddrinfo.
37736         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
37737         AC_LIBSOURCE canon-host.h.  Call...
37738         (gl_PREREQ_CANON_HOST): ...this new function, which requires
37739         gl_GETADDRINFO.
37740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
37741
37742 2005-09-12  Derek Price  <derek@ximbiot.com>
37743
37744         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
37745         LGPL.
37746         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
37747
37748 2005-09-12  Derek Price  <derek@ximbiot.com>
37749
37750         * lib/gai_strerror.c: Include config.h when available.  Include
37751         getaddrinfo.h before other headers to test interface.
37752         Reported by Larry Jones <lawrence.jones@ugs.com>.
37753
37754 2005-09-12  Derek Price  <derek@ximbiot.com>
37755             Paul Eggert  <eggert@cs.ucla.edu>
37756
37757         * modules/glob (Files): Add glob-libc.h.
37758
37759 2005-09-12  Derek Price  <derek@ximbiot.com>
37760             Paul Eggert  <eggert@cs.ucla.edu>
37761
37762         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
37763         glob_.h, glob-libc.h.
37764         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
37765
37766 2005-09-12  Derek Price  <derek@ximbiot.com>
37767             Paul Eggert  <eggert@cs.ucla.edu>
37768
37769         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
37770         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
37771         protecting things that should be done only in gnulib contexts.
37772         * lib/glob_.h: New file, containing only the glob things needed for
37773         gnulib.
37774         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
37775         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
37776         (glob, globfree, glob_pattern_p): Now defined simply in terms of
37777         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
37778         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
37779         and to respect the namespace rules better.
37780
37781 2005-09-08  Simon Josefsson  <jas@extundo.com>
37782
37783         * modules/socklen: New file.
37784
37785 2005-09-08  Simon Josefsson  <jas@extundo.com>
37786
37787         * m4/socklen.m4: New file.
37788
37789 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37790
37791         * modules/utimens (Files): Add m4/utimbuf.m4, since
37792         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
37793         Reported by Sergey Poznyakoff.
37794
37795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37796
37797         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
37798         definitions, since that's the preferred style in glibc.
37799         Fix a minor spacing issue, and update copyright notice to match
37800         glibc's.
37801
37802 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37803
37804         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
37805
37806 2005-09-06  Simon Josefsson  <jas@extundo.com>
37807
37808         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
37809         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
37810
37811 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
37814         warning.
37815
37816 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37817
37818         * config/srclist.txt: Add glibc bug 1302.
37819
37820 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
37821
37822         Change bitset word type from unsigned int to unsigned long int,
37823         as this has better performance on typical 64-bit hosts.
37824         Port bitset code to hosts with unusual word sizes.
37825         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
37826         (build_collating_symbol):
37827         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
37828         argument is a bitset.  This is merely a style issue, but it makes
37829         it clearer that an entire array is expected.
37830         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
37831         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
37832         Port to the case where bitset_word is not the same as unsigned int.
37833         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
37834         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
37835         Likewise.
37836         * lib/regexec.c (check_dst_limits_calc_pos_1,
37837         check_subexp_matching_top):
37838         (build_trtable, group_nodes_into_DFAstates):
37839         Likewise.
37840         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
37841         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
37842         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
37843         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
37844         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
37845         * lib/regcomp.c (optimize_subexps, lower_subexp):
37846         Work even if bitset_word has holes in its bitwise representation.
37847         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
37848         * lib/regexec.c (check_dst_limits_calc_pos_1,
37849         check_subexp_matching_top):
37850         Likewise.
37851         * lib/regex_internal.c (re_string_reconstruct):
37852         Don't assume UCHAR_MAX == 255.
37853         * lib/regex_internal.h (bitset_set_all): Likewise.
37854         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
37855         All uses changed.
37856         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
37857         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
37858         All uses changed.
37859         (BITSET_WORD_MAX): New macro.
37860         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
37861         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
37862         (bitset_empty, bitset_copy):
37863         Prefer sizeof (bitset) to multiplying it out ourselves.
37864         (bitset_not_merge): Remove; unused.
37865         (bitset_contain): Return bool, not unsigned int with one bit on.
37866         All callers changed.
37867         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
37868         alignment than re_node_set; do this by defining a new internal
37869         type struct dests_alloc and using it to allocate memory.
37870
37871 2005-09-05  Bruno Haible  <bruno@clisp.org>
37872
37873         * gnulib-tool (func_import): Fix comparison in handling of symbolic
37874         links.
37875
37876 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
37877
37878         * modules/size_max (Makefile.am): Add size_max.h
37879
37880 2005-09-04  Derek Price  <derek@ximbiot.com>
37881
37882         * gnulib-tool (func_import): Fix reversed $symbolic logic.
37883
37884 2005-09-03  Simon Josefsson  <jas@extundo.com>
37885
37886         * gnulib-tool: Fix typo.
37887
37888 2005-09-03  Simon Josefsson  <jas@extundo.com>
37889
37890         * config/srclist.txt: Add glibc bug 1293.
37891
37892 2005-09-03  Derek Price  <derek@ximbiot.com>
37893
37894         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
37895         From Larry Jones <lawrence.jones@ugs.com>.
37896
37897 2005-09-02  Simon Josefsson  <jas@extundo.com>
37898
37899         * modules/socklen: New file.
37900
37901 2005-09-02  Simon Josefsson  <jas@extundo.com>
37902
37903         * modules/havelib: New module.
37904
37905         * modules/gettext, modules/iconv, modules/lock, modules/readline:
37906         Use havelib.
37907
37908 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
37909
37910         Check for arithmetic overflow when calculating sizes, to prevent
37911         some buffer-overflow issues.  These patches are conservative, in the
37912         sense that when I couldn't determine whether an overflow was possible,
37913         I inserted a run-time check.
37914         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
37915         macros.
37916         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
37917         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
37918         (re_xnrealloc, re_x2nrealloc): New inline functions.
37919         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
37920         parse_bracket_exp):
37921         (build_equiv_class, build_charclass): Check for arithmetic overflow
37922         in size expression calculations.
37923         * lib/regex_internal.c (re_string_realloc_buffers):
37924         (build_wcs_upper_buffer, re_node_set_add_intersect):
37925         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
37926         (re_dfa_add_node, register_state): Likewise.
37927         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
37928         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
37929         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
37930         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
37931
37932 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
37935         m4/ulonglong.m4.  Problem reported by Martin Lambers.
37936
37937 2005-09-02  Bruno Haible  <bruno@clisp.org>
37938
37939         Support for lib vs. lib64 distinction on biarch platforms.
37940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
37941         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
37942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
37943
37944 2005-09-02  Bruno Haible  <bruno@clisp.org>
37945
37946         * gnulib-tool (import): In the other first-use case, provide defaults
37947         as well.
37948
37949 2005-09-02  Bruno Haible  <bruno@clisp.org>
37950
37951         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
37952         patches not yet found in the latest gettext release.
37953
37954 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37955
37956         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
37957         to avoid a collision with bits/local_lim.h in glibc.
37958         All uses changed.  Problem reported by Dmitry V. Levin in
37959         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
37960
37961         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
37962         bugs in int versus size_t comparisons.
37963         (re_string_context_at): Fix bug where the code assumed that
37964         Idx is signed.
37965
37966         Use bool where appropriate.
37967         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
37968         All callers changed.
37969         (calc_eclosure_iter): Likewise, for ROOT arg.
37970         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
37971         (build_charclass_op): Likewise, for NON_MATCH arg.
37972         * lib/regex_internal.c (re_string_allocate, re_string_construct):
37973         (re_string_construct_common): Likewise, for ICASE arg.
37974         * lib/regexec.c (re_search_2_stub, re_search_stub):
37975         Likewise, for RET_LEN arg.
37976         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
37977         (set_regs): Likewise, for FL_BACKTRACK arg.
37978         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
37979         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
37980         (calc_eclosure_iter, parse_bracket_exp):
37981         Use bool for internal variables that are booleans.
37982         * lib/regexec.c (re_search_internal, check_matching,
37983         proceed_next_node):
37984         (set_regs, build_sifted_states, sift_states_bkref):
37985         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
37986         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
37987         (find_collation_sequence_value):
37988         Likewise.
37989         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
37990         (re_node_set_compare):
37991         Return bool, not int. All callers changed.
37992         * lib/regexec.c (check_halt_node_context, check_dst_limits):
37993         (build_trtable, check_node_accept): Likewise.
37994         * lib/regex_internal.h: Include stdbool.h.
37995
37996         Fix bugs uncovered when converting to bool.
37997         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
37998         failure instead of charging ahead blindly.
37999         * lib/regex_internal.c (register_state): Likewise.
38000         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
38001         for freeing internal storage.
38002         (group_nodes_into_DFA_states): Use unsigned int, not int, for
38003         bitset pieces used as boolean, to avoid undefined behavior
38004         on hosts that do int overflow checking.
38005
38006 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38007
38008         * config/srclist.txt: Add glibc bugs 1285-1287.
38009
38010 2005-09-01  Jim Meyering  <jim@meyering.net>
38011
38012         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
38013         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
38014         Require gl_STAT_MACROS, too.
38015
38016 2005-09-01  Bruno Haible  <bruno@clisp.org>
38017
38018         * gnulib-tool (import): In the first-use case, provide defaults.
38019
38020 2005-09-01  Bruno Haible  <bruno@clisp.org>
38021
38022         * gnulib-tool (func_import): Remove the .tmp files.
38023
38024 2005-09-01  Bruno Haible  <bruno@clisp.org>
38025
38026         * gnulib-tool (func_import): Fix handling of symbolic links.
38027
38028 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38029
38030         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
38031         old glibc regex code mishandles strings longer than 2**31 bytes.
38032         This patch fixes this when the regex code is used in gnulib
38033         (i.e., outside glibc).
38034
38035         This patch should not affect the use of the regex code inside
38036         glibc.  No doubt this problem also needs to be handled for glibc
38037         as well, but the result will be an incompatible change to the
38038         glibc ABI, and the old ABI will have to be supported too.  That
38039         can be the the subject for another patch.
38040
38041         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
38042         governing whether the rest of this patch is active.  By default,
38043         the macro is disabled and the patch has no effect.
38044         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
38045         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
38046         (struct re_pattern_buffer, re_search, re_search_2, re_match):
38047         (re_match_2, re_set_registers): Use the new types.
38048         * lib/regex_internal.h (Idx, re_hashval_t): New types.
38049         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
38050         New macros.
38051         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
38052         (re_string_context_at, bin_tree_t, re_dfastate_t):
38053         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
38054         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
38055         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
38056         (re_string_char_size_at, re_string_wchar_at):
38057         (re_string_elem_size_at):
38058         Use the new types and macros to port to 64-bit hosts.
38059         Use unsigned types for internal values, so that the code
38060         mostly works even for arrays larger than SSIZE_MAX.
38061         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
38062         (search_duplicated_node, calc_eclosure_iter, fetch_number):
38063         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38064         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
38065         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
38066         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
38067         (calc_inveclosure, parse_dup_op, build_range_exp):
38068         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
38069         (fetch_number, create_token_tree, mark_opt_subexp):
38070         Likewise.
38071         * lib/regex_internal.c (re_string_construct_common,
38072         create_ci_newstate):
38073         (create_cd_newstate, re_string_allocate, re_string_construct):
38074         (re_string_realloc_buffers, build_wcs_upper_buffer):
38075         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38076         (re_string_reconstruct, re_string_peek_byte_case):
38077         (re_string_fetch_byte_case, re_string_context_at):
38078         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38079         (re_node_set_init_copy, re_node_set_add_intersect):
38080         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38081         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38082         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38083         (re_acquire_state, re_acquire_state_context, register_state):
38084         Likewise.
38085         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
38086         search_cur_bkref_entry):
38087         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
38088         (re_search_internal, re_search_2_stub, re_search_stub)
38089         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
38090         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
38091         (update_cur_sifted_state, check_dst_limits):
38092         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38093         (check_subexp_limits, sift_states_bkref, merge_state_array):
38094         (check_subexp_matching_top, get_subexp, get_subexp_sub):
38095         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
38096         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38097         (expand_bkref_cache, check_node_accept_bytes):
38098         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
38099         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
38100         (acquire_init_state_context, check_halt_node_context):
38101         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
38102         (sift_states_backward, clean_state_log_if_needed):
38103         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
38104         (find_recover_state, transit_state_sb, transit_state_mb):
38105         (transit_state_bkref, build_trtable, match_ctx_clean):
38106         Likewise.
38107         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
38108         to work around an assumption that REG_MISSING is negative.
38109
38110         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
38111         (seek_collating_symbol_entry) [defined _LIBC]:
38112         (lookup_collation_sequence_value) [defined _LIBC]:
38113         (build_range_exp, build_collating_symbol) [defined _LIBC]:
38114         Use prototypes rather than old-style function definitions.
38115         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
38116         (transit_state_sb) [0]:
38117         (find_collation_sequence_value) [defined _LIBC]: Likewise.
38118
38119         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
38120         rm_eo.
38121
38122         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
38123         (optimize_subexps, lower_subexp):
38124         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
38125         since the signed shift might overflow.  Use 1u<<31 instead.
38126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38127         Likewise.
38128         * lib/regexec.c (check_dst_limits_calc_pos_1,
38129         check_subexp_matching_top): Likewise.
38130
38131         * lib/regcomp.c (optimize_subexps, lower_subexp):
38132         Use CHAR_BIT rather than 8, for clarity.
38133         * lib/regexec.c (check_dst_limits_calc_pos_1):
38134         (check_subexp_matching_top): Likewise.
38135         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
38136         have to worry about portability issues when shifting it left.
38137         Remove no-longer-needed test for table_size > 0.
38138         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
38139         in a word, as the resulting behavior is undefined.
38140         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
38141         in one case, a <= should have been an <, and in another case the
38142         whole test was missing.
38143         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
38144         the standard name CHAR_BIT.
38145         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
38146         this is not true on one's complement and signed-magnitude hosts.
38147
38148         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
38149         next_last_offset.
38150         (struct re_dfa_t): Remove unused member states_alloc.
38151         * lib/regcomp.c (init_dfa): Don't initialize unused members.
38152
38153 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38154
38155         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
38156         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
38157         and large-file glibc and in 32-bit large-file Solaris.
38158
38159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38160
38161         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
38162         lengths fit in regoff_t; this isn't true if regoff_t is the same
38163         width as size_t.
38164         * lib/regex.c (re_search_internal): 5th arg is LAST_START
38165         (= START + RANGE) instead of RANGE.  This avoids overflow
38166         problems when regoff_t is the same width as size_t.
38167         All callers changed.
38168         (re_search_2_stub): Check for overflow when adding the
38169         sizes of the two strings.
38170         (re_search_stub): Check for overflow when adding START
38171         to RANGE; if it occurs, substitute the extreme value.
38172
38173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38174
38175         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
38176
38177 2005-08-31  Jim Meyering  <jim@meyering.net>
38178
38179         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
38180         a pointer-to-const.
38181         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
38182         (register_state): Likewise.
38183         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
38184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38185         (group_nodes_into_DFAstates): Likewise.
38186
38187 2005-08-31  Jim Meyering  <jim@meyering.net>
38188
38189         * check-module: Add a FIXME comment.
38190
38191 2005-08-31  Eric Blake  <ebb9@byu.net>
38192
38193         * modules/unistd-safer (Files): Add unistd--.h.
38194         * modules/stdio-safer (Files): Add stdio--.h.
38195
38196 2005-08-31  Derek Price  <derek@ximbiot.com>
38197
38198         * lib/getdelim.c (getdelim): Return EOF on EOF.
38199         Reported by Larry Jones <lawrence.jones@ugs.com>.
38200
38201 2005-08-31  Bruno Haible  <bruno@clisp.org>
38202
38203         Avoid unnecessary diffs in the generated lib/Makefile.am.
38204         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
38205         the generated files.
38206         (func_import): Don't set cmd.
38207
38208 2005-08-31  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/strstr.c: Include <stddef.h>, for NULL.
38211         * lib/strcasestr.c: Likewise.
38212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38213
38214 2005-08-31  Bruno Haible  <bruno@clisp.org>
38215
38216         * gnulib-tool: New option --macro-prefix.
38217         (func_import): Use macro_prefix.
38218         (import): Handle option --macro-prefix.
38219
38220 2005-08-31  Bruno Haible  <bruno@clisp.org>
38221
38222         * gnulib-tool (import): Rename most ac_* variables to cached_*.
38223         Also use new variables cached_lgpl, cached_libtool.
38224
38225 2005-08-31  Bruno Haible  <bruno@clisp.org>
38226
38227         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
38228         always instantiating them.
38229
38230 2005-08-31  Bruno Haible  <bruno@clisp.org>
38231
38232         * gnulib-tool (func_import): Read the previous cached settings
38233         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
38234         earlier added by gnulib but are now dropped. Warn when a gnulib file
38235         overwrites a non-gnulib file.
38236
38237 2005-08-31  Bruno Haible  <bruno@clisp.org>
38238
38239         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
38240         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
38241         projects that don't keep autogenerated files in CVS. Put into
38242         actioncmd only the specified modules, not the transitive closure.
38243
38244 2005-08-31  Bruno Haible  <bruno@clisp.org>
38245
38246         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
38247         Create directories that shall be filled.
38248         (import): Don't look for gl_* macros in configure.ac. Recurse across
38249         all directories containing a gnulib-cache.m4 files, if meaningful.
38250
38251 2005-08-31  Bruno Haible  <bruno@clisp.org>
38252
38253         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
38254         (import): Set seen_libtool when we see gl_LIBTOOL.
38255
38256 2005-08-31  Bruno Haible  <bruno@clisp.org>
38257
38258         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
38259         declaration macro definitions from generated gnulib.m4.
38260
38261 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
38262
38263         * lib/iconvme.h: Add prototype for iconv_alloc.
38264
38265 2005-08-29  Simon Josefsson  <jas@extundo.com>
38266
38267         * lib/iconvme.c: Fix errno.
38268
38269 2005-08-29  Bruno Haible  <bruno@clisp.org>
38270
38271         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
38272         that it works when the directory contains spaces.
38273
38274 2005-08-29  Bruno Haible  <bruno@clisp.org>
38275
38276         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
38277
38278 2005-08-29  Bruno Haible  <bruno@clisp.org>
38279
38280         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
38281         Emit more advice.
38282
38283 2005-08-29  Bruno Haible  <bruno@clisp.org>
38284         and Stepan Kasal  <kasal@ucw.cz>
38285
38286         * check-module: If more parameters are given, check each of them
38287         separately; add more exceptions, as noted by Jim Meyering.
38288         (check_module): New procedure.
38289         (%exempt_header): Now contains all exceptions.
38290
38291 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
38292
38293         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
38294
38295 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
38296
38297         * lib/iconvme.c: Split iconv_string into iconv_alloc.
38298
38299 2005-08-28  Bruno Haible  <bruno@clisp.org>
38300
38301         * m4/gnulib-tool.m4: New file.
38302
38303 2005-08-27  Jim Meyering  <jim@meyering.net>
38304
38305         * modules/unistd-safer (Files): Add pipe-safer.c.
38306         * modules/fcntl-safer (Files): Add creat-safer.c.
38307
38308 2005-08-27  Jim Meyering  <jim@meyering.net>
38309
38310         * m4/stdlib-safer.m4: New file.  From coreutils.
38311         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
38312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
38313         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
38314         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
38315         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
38316
38317 2005-08-27  Jim Meyering  <jim@meyering.net>
38318
38319         * lib/fopen-safer.c: Merge minor changes from coreutils.
38320         * lib/dup-safer.c: Likewise.
38321         * lib/fd-safer.c: Likewise.
38322
38323         Merge from coreutils.
38324         * lib/stdio--.h: New file.
38325         * lib/stdlib--.h: New file.
38326         * lib/mkstemp-safer.c: New file.
38327
38328         GNU tar needs these.
38329         * lib/pipe-safer.c: New file.
38330         * lib/creat-safer.c: New file.
38331         * lib/fcntl--.h (creat): Define to creat_safer.
38332         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
38333         * lib/unistd--.h (pipe): Define to pipe_safer.
38334         * lib/unistd-safer.h: Declare pipe_safer.
38335
38336 2005-08-26  Simon Josefsson  <jas@extundo.com>
38337
38338         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
38339         Haible <bruno@clisp.org>.
38340
38341 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
38342
38343         * lib/regex_internal.h: Remove all references to
38344         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
38345         or better.
38346         (bitset_not, bitset_merge, bitset_not_merge):
38347         (bitset_mask, re_string_allocate, re_string_construct):
38348         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
38349         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
38350         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
38351         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
38352         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38353         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38354         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
38355         (re_acquire_state_context):
38356         Remove unnecessary forward decls.
38357         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
38358         Put __attribute at function definition,
38359         now that the function decl has been removed.
38360         * lib/regex_internal.c (re_string_peek_byte_case):
38361         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
38362         Likewise.
38363
38364 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
38365
38366         * m4/regex.m4: Add AC_PREREQ(2.50).
38367         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
38368
38369 2005-08-25  Simon Josefsson  <jas@extundo.com>
38370
38371         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
38372         __fsetlocking.
38373
38374 2005-08-25  Simon Josefsson  <jas@extundo.com>
38375
38376         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
38377         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
38378         GLIBC specific code.
38379
38380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38381
38382         Make regex safe for g++.  This fixes one real bug (an "err"
38383         that should have been "*err").  g++ problem reported by
38384         Sam Steingold.
38385         * lib/regex_internal.h (re_calloc): New macro, consistent with
38386         re_malloc etc.  All callers of calloc changed to use re_calloc.
38387         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
38388         not int.  All callers changed.
38389         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
38390         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
38391         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
38392         (find_recover_state): Change "err" to "*err"; this fixes what
38393         appears to be a real bug.
38394         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
38395         versus int.
38396
38397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38398
38399         * modules/regex (Depends-on): Add malloc, since the code
38400         assumes that !malloc(0) means failure.
38401
38402 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38403
38404         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
38405
38406         alloca modernization/simplification for regex.
38407         * lib/regex.c: Remove portability cruft for alloca.  This no longer
38408         needs to be at the start of the file, and can be moved into
38409         regex_internal.h and simplified.
38410         * lib/regex_internal.h: Include <alloca.h>.
38411         (__libc_use_alloca) [!defined _LIBC]: New macro.
38412         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
38413         now works outside glibc.
38414
38415 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38416
38417         * config/srclist.txt: Add glibc bugs 1241, 1245.
38418
38419 2005-08-25  Jim Meyering  <jim@meyering.net>
38420
38421         * lib/open-safer.c: Include <config.h>.
38422         Otherwise, we'd lose LARGEFILE support in any file using
38423         e.g. "fcntl--.h"
38424
38425 2005-08-25  Bruno Haible  <bruno@clisp.org>
38426
38427         * m4/minmax.m4: Require autoconf 2.52.
38428         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
38429         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
38430         alternatives of translit over the alphabet.
38431         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
38432
38433 2005-08-24  Simon Josefsson  <jas@extundo.com>
38434
38435         * tests/test-getpass.c: New file.
38436
38437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38438
38439         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
38440         for GNU regex features.
38441
38442 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38443
38444         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
38445         * lib/regex.h (regerror): Likewise.
38446
38447         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
38448         requires this.  (The code never needed it.)
38449
38450         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
38451         All uses of recently-renamed identifiers changed to use the new,
38452         POSIX-compliant names.  The code will build and run just fine
38453         without these changes, but it's better to eat our own dog food
38454         and use the standard-conforming names.
38455
38456         * lib/regex.h: Fix a multitude of POSIX name space violations.
38457         These changes have an effect only for programs that define
38458         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
38459         do not change anything for programs compiled in the normal way.
38460         Also, there is no effect on the ABI.
38461
38462         (_REGEX_SOURCE): New macro.
38463         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
38464         defined and _GNU_SOURCE is not; this fixes a name space violation.
38465
38466         Rename the following macros to obey POSIX requirements.
38467         The old names are still visible as macros if _REGEX_SOURCE is defined.
38468         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
38469         RE_BACKSLASH_ESCAPE_IN_LISTS.
38470         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
38471         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
38472         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
38473         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
38474         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
38475         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
38476         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
38477         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
38478         (REG_INTERVALS): renamed from RE_INTERVALS.
38479         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
38480         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
38481         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
38482         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
38483         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
38484         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
38485         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
38486         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
38487         RE_UNMATCHED_RIGHT_PAREN_ORD.
38488         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
38489         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
38490         (REG_DEBUG): renamed from RE_DEBUG.
38491         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
38492         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
38493         unusual, since we can't clash with the POSIX REG_ICASE.
38494         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
38495         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
38496         (REG_NO_SUB): renamed from RE_NO_SUB.
38497         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
38498         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
38499         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
38500         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
38501         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
38502         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
38503         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
38504         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
38505         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
38506         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
38507         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
38508         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
38509         RE_SYNTAX_POSIX_MINIMAL_BASIC.
38510         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
38511         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
38512         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
38513         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
38514         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
38515         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
38516         (REG_FIXED): Renamed from REGS_FIXED.
38517         (REG_NREGS): Renamed from RE_NREGS.
38518
38519         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
38520         of other REG_* macros, since POSIX says the user is allowed to
38521         #undef these macros selectively.
38522
38523         (reg_errcode_t): Update comment stating what other tables need
38524         to be consistent.
38525
38526         Rename the following enum values to obey POSIX requirements.
38527         The old names are still visible as macros.
38528         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
38529         is not defined, since GNU is supposed to be a superset of POSIX as
38530         much as possible, and since we want reg_errcode_t to be a signed
38531         type for implementation consistency.
38532         (_REG_NOERROR): Renamed from REG_NOERROR.
38533         (_REG_NOMATCH): Renamed from REG_NOMATCH.
38534         (_REG_BADPAT): Renamed from REG_BADPAT.
38535         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
38536         (_REG_ECTYPE): Renamed from REG_ECTYPE.
38537         (_REG_EESCAPE): Renamed from REG_EESCAPE.
38538         (_REG_ESUBREG): Renamed from REG_ESUBREG.
38539         (_REG_EBRACK): Renamed from REG_EBRACK.
38540         (_REG_EPAREN): Renamed from REG_EPAREN.
38541         (_REG_EBRACE): Renamed from REG_EBRACE.
38542         (_REG_BADBR): Renamed from REG_BADBR.
38543         (_REG_ERANGE): Renamed from REG_ERANGE.
38544         (_REG_ESPACE): Renamed from REG_ESPACE.
38545         (_REG_BADRPT): Renamed from REG_BADRPT.
38546         (_REG_EEND): Renamed from REG_EEND.
38547         (_REG_ESIZE): Renamed from REG_ESIZE.
38548         (_REG_ERPAREN): Renamed from REG_ERPAREN.
38549         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
38550         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
38551         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
38552         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
38553
38554         (_REG_RE_NAME, _REG_RM_NAME): New macros.
38555         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
38556         changed.  But support the old name if the new one is not defined
38557         and if _REGEX_SOURCE.
38558
38559         Change the following member names in struct re_pattern_buffer.
38560         The old names are still supported if !_REGEX_SOURCE.
38561         The new names are always supported, regardless of _REGEX_SOURCE.
38562         (re_buffer): Renamed from buffer.
38563         (re_allocated): Renamed from allocated.
38564         (re_used): Renamed from used.
38565         (re_syntax): Renamed from syntax.
38566         (re_fastmap): Renamed from fastmap.
38567         (re_translate): Renamed from translate.
38568         (re_can_be_null): Renamed from can_be_null.
38569         (re_regs_allocated): Renamed from regs_allocated.
38570         (re_fastmap_accurate): Renamed from fastmap_accurate.
38571         (re_no_sub): Renamed from no_sub.
38572         (re_not_bol): Renamed from not_bol.
38573         (re_not_eol): Renamed from not_eol.
38574         (re_newline_anchor): Renamed from newline_anchor.
38575
38576         Change the following member names in struct re_registers.
38577         The old names are still supported if !_REGEX_SOURCE.
38578         The new names are always supported, regardless of _REGEX_SOURCE.
38579         (rm_num_regs): Renamed from num_regs.
38580         (rm_start): Renamed from start.
38581         (rm_end): Renamed from end.
38582
38583         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
38584         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
38585         Prepend __ to parameter names.
38586
38587         Undo yesterday's changes.
38588
38589 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38590
38591         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
38592         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
38593         lib/regex.c.
38594
38595 2005-08-24  Jim Meyering  <jim@meyering.net>
38596
38597         Sync from coreutils.
38598         * m4/fcntl-safer.m4: New file.
38599
38600         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
38601         and object files for this module.
38602
38603 2005-08-24  Jim Meyering  <jim@meyering.net>
38604
38605         Sync from coreutils.
38606         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
38607
38608 2005-08-24  Jim Meyering  <jim@meyering.net>
38609
38610         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
38611         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
38612
38613 2005-08-24  Jim Meyering  <jim@meyering.net>
38614
38615         * modules/fcntl-safer: New module.
38616         * modules/fts (Depends-on): Add fcntl-safer.
38617         * MODULES.html.sh (File descriptor based Input/Output):
38618         Add fcntl-safer.
38619
38620 2005-08-24  Bruno Haible  <bruno@clisp.org>
38621
38622         Support for unit test modules.
38623         * modules/README: Mention tests modules.
38624         * modules/TEMPLATE-TESTS: New file.
38625         * gnulib-tool: New options --extract-tests-module, --with-tests and
38626         --tests-base (unused for the moment).
38627         (testsbase, inctests): New variables.
38628         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
38629         (func_verify_module): Exclude TEMPLATE-TESTS.
38630         (func_verify_nontests_module, func_verify_tests_module): New functions.
38631         (func_get_dependencies): Add implicit dependency for tests modules.
38632         (func_get_tests_module): New function.
38633         (func_modules_transitive_closure): When --with-tests was specified,
38634         include the unit tests as well, unless explicitly avoided.
38635         (func_emit_lib_Makefile_am): Ignore the tests modules here.
38636         (func_emit_tests_Makefile_am): New function.
38637         (func_create_testdir): When --with-tests was specified, emit a
38638         tests/ directory.
38639         * MODULES.html.sh (Future developments): Update.
38640
38641 2005-08-24  Bruno Haible  <bruno@clisp.org>
38642
38643         * modules/tls-tests: New file.
38644         * tests/test-tls.c: New file, from GNU gettext.
38645
38646 2005-08-24  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/lock-tests: New file.
38649         * tests/test-lock.c: New file, from GNU gettext.
38650
38651 2005-08-24  Bruno Haible  <bruno@clisp.org>
38652
38653         * lib/lock.h: Add multiple inclusion guard.
38654         * lib/tls.h: Add multiple inclusion guard.
38655
38656 2005-08-24  Bruno Haible  <bruno@clisp.org>
38657
38658         * gnulib-tool: Add support for the --aux-dir option to
38659         --create-testdir, --create-megatestdir, --test, --megatest.
38660         (func_create_testdir, func_create_megatestdir): Optionally emit a
38661         AC_CONFIG_AUX_DIR directive.
38662         (create-testdir, create-megatestdir, test, megatest): Provide a
38663         default value for $auxdir.
38664
38665 2005-08-24  Bruno Haible  <bruno@clisp.org>
38666
38667         * gnulib-tool (import): Use compound statement instead of subshell
38668         where possible.
38669
38670 2005-08-24  Bruno Haible  <bruno@clisp.org>
38671
38672         * gnulib-tool (import): Change --aux-dir default to "build-aux".
38673
38674 2005-08-24  Bruno Haible  <bruno@clisp.org>
38675
38676         * gnulib-tool (func_version): Update.
38677
38678 2005-08-24  Bruno Haible  <bruno@clisp.org>
38679
38680         * gnulib-tool (func_import, func_create_testdir,
38681         func_create_megatestdir): Quote all autoconf macro arguments.
38682
38683 2005-08-24  Bruno Haible  <bruno@clisp.org>
38684
38685         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
38686         option --force, because --force causes the aclocal.m4 of each
38687         subdirectory to be newer than the corresponding config.h.in.
38688
38689 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38690
38691         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
38692         All contents moved to gl_REGEX.
38693         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
38694         assume that it does.
38695
38696 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38697
38698         * lib/regex.h (REG_NOSYS)
38699         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
38700         Define, since POSIX requires it as of 2001.
38701         (_REG_ENOSYS)
38702         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
38703         New private symbol, used to keep the enum signed in all cases.
38704         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
38705         Youngman in
38706         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
38707
38708         * lib/regex_internal.c (re_string_skip_chars, register_state):
38709         (calc_state_hash):
38710         Remove forward decls; no longer needed now that we use prototypes.
38711         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
38712         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
38713         (clean_state_log_if_needed): Likewise.
38714
38715 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38716
38717         * config/srclist.txt: Add glibc bugs 1231-1233.
38718
38719 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38720
38721         Fix problems reported by Sam Steingold in
38722         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
38723         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
38724         assumed that reg_errcode_t is a signed type, which is not
38725         necessarily true if _XOPEN_SOURCE is not defined.
38726         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
38727         since some compilers warn about it otherwise.
38728
38729 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38730
38731         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
38732         (init_word_char, create_initial_state, duplicate_node_closure):
38733         (fetch_token, peek_token_bracket, build_range_exp):
38734         (build_collating_symbol): Remove forward decls; no longer needed
38735         now that we use prototypes.
38736
38737         * lib/regcomp.c:
38738         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
38739         (re_compile_fastmap_iter, regcomp, regerror, regfree):
38740         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
38741         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
38742         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
38743         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
38744         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
38745         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
38746         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
38747         (build_range_exp, build_collating_symbol, parse_bracket_exp):
38748         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
38749         (build_charclass, build_charclass_op, fetch_number, create_tree):
38750         (create_token_tree, mark_opt_subexp, duplicate_tree):
38751         Use prototypes rather than old-style definitions.
38752
38753         * lib/regex_internal.c:
38754         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
38755         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
38756         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38757         (re_string_reconstruct, re_string_peek_byte_case):
38758         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
38759         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38760         (re_node_set_init_copy, re_node_set_add_intersect):
38761         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38762         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38763         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38764         (re_acquire_state, re_acquire_state_context, register_state):
38765         (create_ci_newstate, create_cd_newstate, free_state):
38766         Likewise.
38767         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
38768         re_search_2):
38769         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
38770         (re_search_internal, prune_impossible_nodes):
38771         (acquire_init_state_context, check_matching, static):
38772         (check_halt_node_context, check_halt_state_context, proceed_next_node):
38773         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
38774         (update_regs, sift_states_backward, build_sifted_states):
38775         (clean_state_log_if_needed, merge_state_array):
38776         (update_cur_sifted_state, add_epsilon_src_nodes):
38777         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
38778         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
38779         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
38780         (find_recover_state, check_subexp_matching_top, transit_state_mb):
38781         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
38782         (check_arrival, check_arrival_add_next_nodes):
38783         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38784         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38785         (check_node_accept_bytes, check_node_accept, extend_buffers):
38786         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
38787         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
38788         (sift_ctx_init):
38789         Likewise.
38790
38791         * lib/regex_internal.h:
38792         (re_string_allocate, re_string_construct, re_string_reconstruct):
38793         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
38794         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
38795         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
38796         (re_string_context_at, re_string_peek_byte_case):
38797         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
38798         is defined, since we now use prototypes always.
38799
38800         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
38801         C89 or better.  All uses removed.
38802
38803 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38804
38805         * config/srclist.txt: Add glibc bugs 1220-1227.
38806
38807 2005-08-20  Jim Meyering  <jim@meyering.net>
38808
38809         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
38810         of unused local, dfa.
38811
38812 2005-08-20  Bruno Haible  <bruno@clisp.org>
38813
38814         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
38815
38816 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38817
38818         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
38819         (re_node_set_insert_last, re_dfa_add_node):
38820         Rename local variables to avoid GCC shadowing warnings.
38821
38822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38823
38824         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
38825         [defined lint]: Suppress bogus uninitialized-variable warnings.
38826
38827         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
38828         and let the caller return REG_ESPACE if out of space.  This
38829         removes an uninitialied-variable warning with GCC 4.0.1, and also
38830         avoids taking the address of a local variable.  All callers
38831         changed.
38832
38833 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38834
38835         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
38836         $LIBCSRC/posix/regexec.c.
38837         Add glibc bug 1217 for regcomp.c.
38838
38839 2005-08-19  Jim Meyering  <jim@meyering.net>
38840
38841         * lib/regexec.c (proceed_next_node): Redo local variables to
38842         avoid GCC shadowing warnings.
38843
38844 2005-08-18  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/strstr.c (strstr): Fix return value in multibyte case.
38847         * lib/strcasestr.c (strcasestr): Likewise.
38848
38849 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38850
38851         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
38852
38853 2005-08-17  Jim Meyering  <jim@meyering.net>
38854
38855         Make the %s format (seconds since the epoch) work for a negative
38856         number and when used with a zero-padded field width, e.g. %015s.
38857
38858         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
38859         label so that it precedes the code to set `digits'.  Otherwise,
38860         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
38861         print `00-22'.  Now, it prints `-0022', as it should.
38862
38863 2005-08-17  Bruno Haible  <bruno@clisp.org>
38864
38865         * modules/strstr (Files): Add m4/mbrtowc.m4.
38866         (Depends-on): Add mbuiter.
38867
38868 2005-08-17  Bruno Haible  <bruno@clisp.org>
38869
38870         * modules/strcasestr: New file.
38871         * MODULES.html.sh (String handling, based on ANSI C 89): Add
38872         strcasestr.
38873
38874 2005-08-17  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
38877
38878 2005-08-17  Bruno Haible  <bruno@clisp.org>
38879
38880         * modules/mbuiter: New file.
38881         * MODULES.html.sh (Extended multibyte and wide character utilities):
38882         Add mbuiter.
38883
38884 2005-08-17  Bruno Haible  <bruno@clisp.org>
38885
38886         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
38887         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
38888
38889 2005-08-17  Bruno Haible  <bruno@clisp.org>
38890
38891         * m4/strcasestr.m4: New file.
38892
38893 2005-08-17  Bruno Haible  <bruno@clisp.org>
38894
38895         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
38896         * lib/strstr.c: Completely rewritten, with multibyte locale support.
38897
38898 2005-08-17  Bruno Haible  <bruno@clisp.org>
38899
38900         * lib/strcasestr.h: New file.
38901         * lib/strcasestr.c: New file.
38902
38903 2005-08-17  Bruno Haible  <bruno@clisp.org>
38904
38905         * lib/strcasecmp.c: Use mbuiter.h.
38906
38907 2005-08-17  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/mbuiter.h: New file.
38910
38911 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
38912
38913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
38914         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
38915         and gl_GETOPT are both invoked via different paths (as happens
38916         with GNU tar CVS because it uses both argp and getopt), the former
38917         wins.
38918
38919 2005-08-16  Bruno Haible  <bruno@clisp.org>
38920
38921         * modules/tls: New file.
38922         * MODULES.html.sh (Multithreading): Add tls.
38923
38924 2005-08-16  Bruno Haible  <bruno@clisp.org>
38925
38926         * modules/strnlen1: New file.
38927         * MODULES.html.sh (String handling): Add strnlen1.
38928
38929 2005-08-16  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/strcase (Files): Add m4/mbrtowc.m4.
38932         (Depends-on): Add strnlen1, mbchar.
38933
38934 2005-08-16  Bruno Haible  <bruno@clisp.org>
38935
38936         * modules/mbiter: New file.
38937         * MODULES.html.sh (Extended multibyte and wide character utilities):
38938         Add mbiter.
38939
38940 2005-08-16  Bruno Haible  <bruno@clisp.org>
38941
38942         * modules/mbfile: New file.
38943         * MODULES.html.sh (Extended multibyte and wide character utilities):
38944         Add mbfile.
38945
38946 2005-08-16  Bruno Haible  <bruno@clisp.org>
38947
38948         * modules/mbchar: New file.
38949         * MODULES.html.sh (Extended multibyte and wide character utilities):
38950         New section.
38951
38952 2005-08-16  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/tls.m4: New file, from GNU gettext.
38955
38956 2005-08-16  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
38959         always.
38960         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
38961
38962 2005-08-16  Bruno Haible  <bruno@clisp.org>
38963
38964         * m4/mbiter.m4: New file.
38965
38966 2005-08-16  Bruno Haible  <bruno@clisp.org>
38967
38968         * m4/mbfile.m4: New file.
38969
38970 2005-08-16  Bruno Haible  <bruno@clisp.org>
38971
38972         * m4/mbchar.m4: New file.
38973
38974 2005-08-16  Bruno Haible  <bruno@clisp.org>
38975
38976         * lib/tls.h: New file, from GNU gettext.
38977         * lib/tls.c: New file, from GNU gettext.
38978
38979 2005-08-16  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/strnlen1.h: New file.
38982         * lib/strnlen1.c: New file.
38983
38984 2005-08-16  Bruno Haible  <bruno@clisp.org>
38985
38986         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
38987         (mbi_init): Update.
38988         (mbi_avail, mbi_advance): Let the iteration end before the terminating
38989         NUL byte, not after it.
38990
38991 2005-08-16  Bruno Haible  <bruno@clisp.org>
38992
38993         * lib/strcase.h (strcasecmp): Add note in comments.
38994         * lib/strncasecmp.c: Use code from strcasecmp.c.
38995         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
38996         (strcasecmp): Work correctly in multibyte locales.
38997
38998 2005-08-16  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/mbiter.h: New file.
39001
39002 2005-08-16  Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/mbfile.h: New file.
39005
39006 2005-08-16  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/mbchar.h: New file.
39009         * lib/mbchar.c: New file.
39010
39011 2005-08-16  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
39014         the valid ones. Makes the comparison operations transitive:
39015         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
39016         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
39017
39018 2005-08-15  Simon Josefsson  <jas@extundo.com>
39019
39020         * modules/ssize_t (License): Change to 'unlimited'.
39021
39022         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
39023
39024 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39025
39026         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
39027         Add comments for each pending glibc patch.
39028
39029 2005-08-15  Bruno Haible  <bruno@clisp.org>
39030
39031         * lib/regex.h (__restrict_arr): Don't define to __restrict if
39032         __cplusplus is defined.
39033
39034 2005-08-14  Jim Meyering  <jim@meyering.net>
39035
39036         Sync from coreutils.
39037
39038         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
39039         Use the hash-table-based cycle-detection code not just when
39040         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
39041         Reported by James Youngman in
39042         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
39043         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
39044         FTS_TIGHT_CYCLE_CHECK.
39045         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
39046         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
39047         once again.
39048         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
39049         * lib/fts.c (fd_safer): Remove decl.
39050         Include fcntl--.h rather than unistd-safer.h
39051         (fts_safe_changedir): Don't call fd_safer; no longer needed
39052         now that we include fcntl--.h.
39053
39054 2005-08-12  Simon Josefsson  <jas@extundo.com>
39055
39056         * modules/getndelim2: Use ssize_t module.
39057         * modules/getnline: Likewise.
39058         * modules/safe-read: Likewise.
39059         * modules/xreadlink: Likewise.
39060
39061         * modules/ssize_t: New file.
39062
39063 2005-08-12  Simon Josefsson  <jas@extundo.com>
39064
39065         * m4/readline.m4: Look for termcap, curses or ncurses if required.
39066
39067 2005-08-12  Simon Josefsson  <jas@extundo.com>
39068
39069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39070         ssize_t.
39071
39072 2005-08-12  Simon Josefsson  <jas@extundo.com>
39073
39074         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
39075         readline, getdelim and check_version.
39076         (Support for systems lacking ISO C 99: Sizes of integer types):
39077         Add size_max.
39078
39079 2005-08-12  Bruno Haible  <bruno@clisp.org>
39080
39081         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
39082
39083 2005-08-11  Simon Josefsson  <jas@extundo.com>
39084
39085         * modules/readline: New file.
39086
39087         * modules/strnlen (Files): Add strnlen.h.
39088
39089 2005-08-11  Simon Josefsson  <jas@extundo.com>
39090
39091         * m4/readline.m4: New file.
39092
39093 2005-08-11  Simon Josefsson  <jas@extundo.com>
39094
39095         * lib/readline.h, readline.c: New file.
39096
39097 2005-08-11  Simon Josefsson  <jas@extundo.com>
39098
39099         * doc/gnulib.texi (Initial import, Finishing touches): Mention
39100         gl_AVOID.
39101
39102 2005-08-11  Bruno Haible  <bruno@clisp.org>
39103
39104         * lib/strnlen.h (strnlen): Change parameter name to match comment.
39105
39106 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
39107
39108         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
39109
39110 2005-08-10  Simon Josefsson  <jas@extundo.com>
39111
39112         * tests/test-iconvme.c: New file.
39113
39114 2005-08-10  Simon Josefsson  <jas@extundo.com>
39115
39116         * m4/strnlen.m4: New file.
39117
39118         * m4/strndup.m4: Don't check for strnlen declaration, done in
39119         strnlen.m4.
39120
39121 2005-08-10  Simon Josefsson  <jas@extundo.com>
39122
39123         * lib/strndup.c: Use strnlen.h.
39124
39125         * lib/strnlen.h: New file.
39126
39127 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39128
39129         * README: Typos.
39130
39131 2005-08-02  Simon Josefsson  <jas@extundo.com>
39132
39133         * modules/readline: New file.
39134
39135 2005-08-02  Simon Josefsson  <jas@extundo.com>
39136
39137         * modules/getdelim: New file.
39138
39139         * modules/getline: Rewrite, don't use getndelim2.
39140
39141 2005-08-02  Simon Josefsson  <jas@extundo.com>
39142
39143         * m4/getline.m4: Separate out getdelim stuff into separate module.
39144
39145         * m4/getdelim.m4: New file.
39146
39147 2005-08-02  Simon Josefsson  <jas@extundo.com>
39148
39149         * lib/getline.h, getline.c: Rewrite.
39150
39151         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
39152
39153 2005-07-31  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/lock.h (gl_lock_initializer): New macro.
39156         (gl_lock_define_initialized): Use it.
39157         (gl_rwlock_initializer): New macro.
39158         (gl_rwlock_define_initialized): Use it.
39159         (gl_recursive_lock_initializer): New macro.
39160         (gl_recursive_lock_define_initialized): Use it.
39161
39162 2005-07-30  Karl Berry  <karl@gnu.org>
39163
39164         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
39165         Report from Ben Pfaff, regarding getopt.
39166
39167 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
39168
39169         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
39170         normal way.
39171         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
39172         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
39173         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
39174         (gl_GETOPT): Use the new macros.  Most of the implementation
39175         is moved to the new macros.  This is for programs like Emacs
39176         that don't want all the functionality of gl_GETOPT.
39177
39178 2005-07-26  Bruno Haible  <bruno@clisp.org>
39179
39180         * m4/lock.m4: Update from GNU gettext.
39181
39182 2005-07-26  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/lock.h: Update from GNU gettext.
39185         * lib/lock.c: Update from GNU gettext.
39186
39187 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39188
39189         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
39190         obsolescent AC_TRY_RUN.  Include the default includes files, for
39191         'exit'.
39192
39193 2005-07-24  Bruno Haible  <bruno@clisp.org>
39194
39195         * modules/visibility: New file.
39196         * MODULES.html.sh (Misc): Add visibility.
39197
39198 2005-07-24  Bruno Haible  <bruno@clisp.org>
39199
39200         * m4/visibility.m4: New file.
39201
39202 2005-07-24  Bruno Haible  <bruno@clisp.org>
39203
39204         * doc/visibility.texi: New file.
39205
39206 2005-07-22  Bruno Haible  <bruno@clisp.org>
39207
39208         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
39209         $(ALLOCA_H), redundant through BUILT_SOURCES.
39210         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
39211         redundant through BUILT_SOURCES.
39212         * modules/byteswap (Makefile.am): Remove explicit dependency on
39213         $(BYTESWAP_H), redundant through BUILT_SOURCES.
39214         * modules/fnmatch (Makefile.am): Remove explicit dependency on
39215         $(FNMATCH_H), redundant through BUILT_SOURCES.
39216         * modules/getopt (Makefile.am): Remove explicit dependency on
39217         $(GETOPT_H), redundant through BUILT_SOURCES.
39218         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
39219         redundant through BUILT_SOURCES.
39220         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
39221         redundant through BUILT_SOURCES.
39222         * modules/stdbool (Makefile.am): Remove explicit dependency on
39223         $(STDBOOL_H), redundant through BUILT_SOURCES.
39224         * modules/stdint (Makefile.am): Remove explicit dependency on
39225         $(STDINT_H), redundant through BUILT_SOURCES.
39226         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
39227         Remove explicit dependency on $(SYSEXITS_H).
39228         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
39229
39230 2005-07-18  Simon Josefsson  <jas@extundo.com>
39231
39232         * lib/check-version.c (check_version): Accept identical versions too.
39233
39234 2005-07-18  Bruno Haible  <bruno@clisp.org>
39235
39236         * modules/lock: New file.
39237         * MODULES.html.sh (Multithreading): New section.
39238
39239 2005-07-18  Bruno Haible  <bruno@clisp.org>
39240
39241         * m4/lock.m4: New file, from GNU gettext.
39242
39243 2005-07-18  Bruno Haible  <bruno@clisp.org>
39244
39245         * lib/lock.h: New file, from GNU gettext.
39246         * lib/lock.c: New file, from GNU gettext.
39247
39248 2005-07-18  Bruno Haible  <bruno@clisp.org>
39249
39250         * lib/lock.h (gl_once_t): New type.
39251         (gl_once_define, gl_once): New macros.
39252         * lib/lock.c (fresh_once): New variable.
39253         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
39254         functions.
39255
39256 2005-07-16  Simon Josefsson  <jas@extundo.com>
39257
39258         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
39259         workaround, suggested by Bruno.
39260
39261 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39262
39263         * modules/xalloc (Depends-on): Add xalloc-die.
39264         * modules/xvasprintf (Depends-on): Add xalloc-die.
39265
39266 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39267
39268         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
39269         with a minor change.
39270
39271 2005-07-15  Bruno Haible  <bruno@clisp.org>
39272
39273         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
39274         When using lib/poll.c, define poll as rpl_poll.
39275
39276 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
39277
39278         * modules/argp (Depends-on): Remove unlocked-io.
39279
39280 2005-07-14  Derek Price  <derek@ximbiot.com>
39281
39282         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
39283         for glob symlink bug.
39284
39285 2005-07-14  Bruno Haible  <bruno@clisp.org>
39286
39287         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
39288         Instead, test for *_unlocked function declarations directly.
39289
39290 2005-07-11  Simon Josefsson  <jas@extundo.com>
39291
39292         * modules/size_max: New file.
39293
39294         * modules/xsize: Depend on size_max module for size_max.m4.
39295
39296 2005-07-11  Simon Josefsson  <jas@extundo.com>
39297
39298         * lib/size_max.h: New file.
39299
39300 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
39301
39302         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
39303         copyright symbol and the year.
39304         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
39305         (version_etc_va): Use parameterized copyright notice.
39306         Reword to conform to the current GNU coding standards.
39307
39308 2005-07-11  Karl Berry  <karl@gnu.org>
39309
39310         * doc/gnulib.texi (Quoting): new node.
39311         (Initial import): more info, from Patrice.
39312
39313 2005-07-11  Bruno Haible  <bruno@clisp.org>
39314
39315         * gnulib-tool (func_usage): Document option --avoid.
39316         (Command line options): Handle --avoid.
39317         (func_acceptable): New function.
39318         (func_modules_transitive_closure): Use it.
39319
39320 2005-07-11  Bruno Haible  <bruno@clisp.org>
39321
39322         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
39323         Reported by Jim Meyering.
39324
39325 2005-07-10  Bruno Haible  <bruno@clisp.org>
39326
39327         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
39328         Needed when size_t is smaller than 'unsigned int'.
39329         Reported by Paul Eggert.
39330
39331 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39332
39333         * modules/argp (Depends-on): Add unlocked-io
39334
39335 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39336
39337         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
39338         block of defines.
39339
39340 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39341
39342         * config/srclist.txt: Comment out regcomp.c, since we have a porting
39343         fix now.
39344
39345 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
39346         and Paul Eggert  <eggert@cs.ucla.edu>
39347
39348         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
39349         in wint_t, not wchar_t.  Remove now-unnecessary cast.
39350
39351 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39352
39353         * modules/regex (Files): Add lib/regex_internal.c,
39354         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
39355         (Depends-on): Add extensions.
39356         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
39357
39358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
39361         pathconf.
39362         * m4/same.m4 (gl_SAME): Likewise.
39363         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
39364
39365         * m4/regex.m4: Adjust to new libc regex implementation.
39366         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
39367         all the .c and .h parts of (the new) regex.
39368         Quote the m4 stuff better.
39369         Check for RE_ICASE bug of old gnulib.
39370         Check for REG_STARTEND of recent libc.
39371         Rename local variables from jm_* to gl_*.
39372         Quote operand of "test -f".
39373         Say "recent enough" version of libc, not "version 2".
39374         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
39375         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
39376         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
39377         Remove check for btowc, isascii.
39378         Require AM_LANGINFO_CODESET.
39379
39380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         * lib/regex.c, regex.h: Sync from libc.
39383         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
39384         * lib/regexec.c:
39385         New files, synced from libc, except that regex_internal.h
39386         currently has a small porting fix.
39387
39388 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39389
39390         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
39391         regex_internal.c, regexec.c.
39392         Add regex_internal.h too, but as a comment, since the libc version
39393         is currently broken in gnulib mode.
39394
39395 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39396
39397         Support programs like Emacs that use gnulib but not gettext.
39398         * MODULES.html.sh (Internationalization functions): Add gettext-h.
39399         * modules/gettext-h: New file.
39400         * modules/gettext (Files): Remove lib/gettext.h.
39401         (Depends-on): Add gettext-h.
39402         (Makefile.am): Remove lib_SOURCES.
39403         * modules/argmatch, modules/c-stack, modules/closeout:
39404         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
39405         * modules/execute, modules/file-type, modules/getaddrinfo:
39406         * modules/getopt, modules/human, modules/javacomp:
39407         * modules/javaexec, modules/mkdir-p, modules/obstack:
39408         * modules/openat, modules/pagealign_alloc, modules/pipe:
39409         * modules/quotearg, modules/regex, modules/rpmatch:
39410         * modules/unicodeio, modules/userspec, modules/version-etc:
39411         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
39412         * modules/xsetenv:
39413         Depend on gettext-h, not gettext.
39414
39415 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39416
39417         * gnulib-tool (func_import): Add support for 'public domain' license.
39418         * modules/alloca, modules/atexit, modules/memmove:
39419         Now public domain, not GPL.
39420         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
39421         * modules/realloc, modules/strerror, modules/strtod:
39422         Now LGPL, not GPL.
39423
39424 2005-07-05  Bruno Haible  <bruno@clisp.org>
39425
39426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
39427         autoconf CVS. Needed for mingw.
39428
39429 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39430
39431         Remove the dependency of the strftime module on the tzset module.
39432         * modules/strftime (Depends-on): Remove dependency on tzset.
39433
39434 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39435
39436         Remove the dependency of the strftime module on the tzset module.
39437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
39438         gl_FUNC_TZSET_CLOBBER.
39439
39440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39441
39442         Remove the dependency of the strftime module on the tzset module.
39443         * lib/strftime.c (my_strftime)
39444         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
39445         Copy the input structure, to work around some of the bug with
39446         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
39447         Solaris releases, you should also use the tzset module, but we won't
39448         require it as a dependency any more since we don't want LGPLed code
39449         to depend on GPLed code.
39450
39451 2005-07-02  Jim Meyering  <jim@meyering.net>
39452
39453         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
39454         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
39455         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
39456         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
39457
39458 2005-07-02  Jim Meyering  <jim@meyering.net>
39459
39460         * lib/backupfile.c (backup_args): Change a `0' to NULL.
39461
39462 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39463
39464         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
39465         declares only 'struct timespec;' (!).
39466
39467 2005-07-01  Jim Meyering  <jim@meyering.net>
39468
39469         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
39470         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
39471         * lib/save-cwd.c, tempname.c:
39472         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39473         and don't include <sys/file.h>).
39474
39475 2005-06-29  Jim Meyering  <jim@meyering.net>
39476
39477         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
39478         type name.  Use the variable name instead.
39479         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
39480         Likewise.
39481
39482 2005-06-28  Simon Josefsson  <jas@extundo.com>
39483
39484         * modules/check-version (Files): Add check-version.m4.
39485
39486 2005-06-28  Simon Josefsson  <jas@extundo.com>
39487
39488         * m4/check-version.m4: New file, suggested by Jim Meyering
39489         <jim@meyering.net>.
39490
39491 2005-06-28  Simon Josefsson  <jas@extundo.com>
39492
39493         * lib/check-version.h, lib/check-version.c: New files.
39494
39495 2005-06-28  Simon Josefsson  <jas@extundo.com>
39496
39497         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
39498         collision with global variable.  Better indentation.  Don't
39499         increment buffer pointer beyond buffer end.  Based on comments
39500         from Paul Eggert <eggert@cs.ucla.edu>.
39501
39502         * lib/base64.h: Indent.
39503
39504 2005-06-28  Simon Josefsson  <jas@extundo.com>
39505
39506         * doc/gnulib.texi (Library version handling): New section.
39507
39508 2005-06-28  Jim Meyering  <jim@meyering.net>
39509
39510         * check-module (find_included_lib_files): Hard-code another
39511         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
39512         but modules/fts-lgpl (correctly) does not list those files.
39513
39514         * modules/canonicalize (Files): Add lib/pathmax.h.
39515
39516 2005-06-25  Simon Josefsson  <jas@extundo.com>
39517
39518         * modules/check-version: New file.
39519
39520 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
39521
39522         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
39523         initializer of struct addrinfo, as an indication that we don't
39524         care how many members the structure has.
39525
39526 2005-06-24  Derek Price  <derek@ximbiot.com>
39527         and Bruno Haible  <bruno@clisp.org>
39528
39529         Remove stat module & update lstat.
39530         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
39531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39532         * m4/stat.m4: Remove this file.
39533
39534 2005-06-24  Derek Price  <derek@ximbiot.com>
39535         and Bruno Haible  <bruno@clisp.org>
39536
39537         Remove stat module & update lstat.
39538         * lib/stat.c: Remove this file...
39539         (slash_aware_lstat): ...moving this content and its support...
39540         * lib/lstat.c (rpl_lstat): ...into here.
39541         * lib/lstat.h: New file.
39542
39543 2005-06-24  Derek Price  <derek@ximbiot.com>
39544         and Bruno Haible  <bruno@clisp.org>
39545
39546         Remove stat module & update lstat.
39547         * config/srclist.txt (libc sources): Remove stat.
39548
39549 2005-06-24  Derek Price  <derek@ximbiot.com>
39550         and Bruno Haible  <bruno@clisp.org>
39551
39552         Remove stat module & update lstat.
39553         * MODULES.html.sh (stat): Remove.
39554         * MODULES.html: Regenerated.
39555         * modules/lstat (Description): Correct function name.
39556         (Files): Add "lstat.h".
39557         (Depends-on): Remove stat, add xalloc, stat-macros.
39558         * modules/stat: Remove this file.
39559         (Include): Add "lstat.h", remove <sys/stat.h>.
39560
39561 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39562
39563         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
39564         (ranged_convert): Don't save conversion in a temporary struct.
39565         This causes a warning with GCC 4.0.0, and anyway in the typical
39566         case it's not worth the extra 100 bytes or so of code.
39567         (ranged_convert, __mktime_internal): When calling a function via a
39568         pointer P, use P () rather than (*P) (), as we now assume C89 or
39569         better.
39570
39571 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39572
39573         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
39574         "who -r" failed to give output.  Problem reported by Tim Waugh.
39575
39576         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
39577         (xcalloc): Use it to avoid needless tests.
39578         Problem reported by Jim Meyering.
39579
39580 2005-06-20  Derek Price  <derek@ximbiot.com>
39581
39582         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
39583         unnecessary for Autoconfs > 2.59c.
39584
39585 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39586
39587         * lib/argp.h (__option_is_short): Check upper limit of
39588         __key. Isprint() requires its argument to have the value
39589         of an unsigned char or EOF.
39590
39591 2005-06-16  Jim Meyering  <jim@meyering.net>
39592
39593         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
39594         when either N or S is zero.
39595
39596 2005-06-16  Derek Price  <derek@ximbiot.com>
39597
39598         * m4/bison.m4: Declare YACC & YFLAGS precious.
39599
39600 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
39601
39602         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
39603         multibyte string or pattern, fall back on unibyte matching.
39604         Problem reported by James Youngman.
39605
39606 2005-06-08  Bruno Haible  <bruno@clisp.org>
39607
39608         * modules/csharpcomp: New file.
39609         * MODULES.html.sh (C#): Add csharpcomp.
39610
39611 2005-06-08  Bruno Haible  <bruno@clisp.org>
39612
39613         * m4/csharpcomp.m4: New file, from GNU gettext.
39614
39615 2005-06-08  Bruno Haible  <bruno@clisp.org>
39616
39617         * lib/csharpcomp.h: New file, from GNU gettext.
39618         * lib/csharpcomp.c: New file, from GNU gettext.
39619         * lib/csharpcomp.sh.in: New file, from GNU gettext.
39620
39621 2005-06-08  Bruno Haible  <bruno@clisp.org>
39622
39623         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
39624         warning on mingw.
39625
39626 2005-06-07  Derek Price  <derek@ximbiot.com>
39627
39628         Sync from CVS.
39629         * lib/glob_.h: Indent nested #ifdef.
39630
39631 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39632
39633         Sync from coreutils.
39634         Use "file name" when talking about file names, instead of "filename"
39635         or "path", as per the GNU coding standards.
39636         * lib/mkdir-p.c: Renamed from makepath.c.
39637         (make_dir_parents): Renamed from make_path.  All callers changed.
39638         * lib/mkdir-p.h: Likewise.  All includers changed.
39639         * lib/filenamecat.c: Renamed from path-concat.c.
39640         (file_name_concat): Renamed from path_concat.  All callers changed.
39641         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
39642         * lib/filenamecat.h: Likewise.  All includers changed.
39643         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
39644         in comments or local variable names.
39645         * lib/basename.c: Likewise.
39646         * lib/canonicalize.c, canonicalize.h: Likewise.
39647         * lib/dirname.c, dirname.h: Likewise.
39648         * lib/euidaccess.c: Likewise.
39649         * lib/exclude.c: Likewise
39650         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
39651         * lib/fsusage.c, fsuage.h: Likewise.
39652         * lib/fts.c, fts_.h: Likewise.
39653         * lib/getcwd.c: Likewise.
39654         * lib/getloadavg.c: Likewise.
39655         * lib/mkstemp.c: Likewise.
39656         * lib/mountlist.c, mountlist.h: Likewise.
39657         * lib/openat.c, openat.h: Likewise.
39658         * lib/readlink-stub.c: Likewise.
39659         * lib/readutmp.c, readutmp.h: Likewise.
39660         * lib/rename.c: Likewise.
39661         * lib/rmdir.c: Likewise.
39662         * lib/same.c: Likewise.
39663         * lib/savedir.c: Likewise.
39664         * lib/stripslash.c: Likewise.
39665         * lib/tempname.c: Likewise.
39666         * lib/xreadlink.c: Likewise.
39667         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
39668         All uses changed.
39669         * lib/exclude.h: Likewise.
39670
39671         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
39672         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39673         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
39674         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39675         * lib/pathmax.h: Include <limits.h> unconditionally, since other
39676         files have been getting away with it for years (MORE/BSD 4.3
39677         is extinct now).
39678         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
39679         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
39680
39681         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
39682         Define to 256, not 255, as per modern POSIX.
39683
39684 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39685
39686         Sync from coreutils.
39687         Use "file name" when talking about file names, instead of "filename"
39688         or "path", as per the GNU coding standards.
39689         * MODULES.html.sh: mkdir-p renamed from makepath.
39690         filenamecat renamed from path-concat.
39691         * modules/filenamecat: Renamed from modules/path-concat.
39692         (Files): filenamecat.h and filenamecat.c renamed from
39693         path-concat.h and path-concat.c.
39694         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
39695         (Include): filenamecat.h, not path-concat.h.
39696         * modules/mkdir-p: Renamed from modules/makepath.
39697         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
39698         makepath.c.
39699         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
39700         (Include): mkdir-p.h, not makepath.h.
39701
39702 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39703
39704         Sync from coreutils.
39705         * m4/mkdir-p.m4: Renamed from makepath.m4.
39706         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
39707         Rename files from makepath.c to mkdir-p.c, and from
39708         makepath.h to mkdir-p.h.
39709         * m4/filenamecat.m4: Renamed from path-concat.m4.
39710         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
39711         Rename files from path-concat.c to filenamecat.c,
39712         and from path-concat.h to filenamecat.h.
39713         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
39714         "file name" in local variables or comments.
39715         * m4/rename.m4: Likewise.
39716
39717 2005-06-01  Bruno Haible  <bruno@clisp.org>
39718
39719         * modules/csharpexec: New file.
39720         * MODULES.html.sh (C#): New section.
39721
39722 2005-06-01  Bruno Haible  <bruno@clisp.org>
39723
39724         * m4/csharp.m4: New file, from GNU gettext.
39725         * m4/csharpexec.m4: New file, from GNU gettext.
39726
39727 2005-06-01  Bruno Haible  <bruno@clisp.org>
39728
39729         * lib/csharpexec.h: New file, from GNU gettext.
39730         * lib/csharpexec.c: New file, from GNU gettext.
39731         * lib/csharpexec.sh.in: New file, from GNU gettext.
39732
39733 2005-05-31  Derek Price  <derek@ximbiot.com>
39734             Paul Eggert  <eggert@cs.ucla.edu>
39735
39736         Sync from cvs.
39737         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39738
39739 2005-05-31  Derek Price  <derek@ximbiot.com>
39740             Paul Eggert  <eggert@cs.ucla.edu>
39741
39742         Sync from cvs.
39743         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
39744
39745 2005-05-29  Derek Price  <derek@ximbiot.com>
39746
39747         * config/srclist.txt (glob_.h, glob.c): Add these files.
39748
39749 2005-05-29  Derek Price  <derek@ximbiot.com>
39750
39751         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
39752         * modules/glob: New file.
39753         * modules/getlogin_r: Add link to POSIX spec in description.
39754
39755 2005-05-29  Derek Price  <derek@ximbiot.com>
39756             Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         * m4/glob.m4: New file.
39759
39760 2005-05-29  Derek Price  <derek@ximbiot.com>
39761             Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         * lib/glob_.h, lib/glob.c: New files.
39764
39765 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39766
39767         * modules/fts (Files): Remove m4/inttypes-pri.m4.
39768         * modules/fts-lgpl (Depends-on): Remove gettext.
39769
39770 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
39773         and don't require gt_INTTYPES_PRI.
39774
39775 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39776
39777         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
39778
39779         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
39780         the configuration hassle isn't worth it.
39781         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
39782         (LONGEST_MODIFIER, PRIuMAX): Remove.
39783
39784 2005-05-27  Bruno Haible  <bruno@clisp.org>
39785
39786         * lib/getlogin_r.h: Remove second include of <stddef.h>.
39787
39788 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39789
39790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
39791         _POSIX_PTHREAD_SEMANTICS for Solaris.
39792
39793 2005-05-25  Derek Price  <derek@ximbiot.com>
39794
39795         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
39796
39797 2005-05-25  Derek Price  <derek@ximbiot.com>
39798             Paul Eggert  <eggert@cs.ucla.edu>
39799
39800         * modules/getlogin_r, m4/getlogin_r.m4: New files.
39801         * lib/getlogin_r.c, getlogin_r.h: New files.
39802
39803 2005-05-25  Bruno Haible  <bruno@clisp.org>
39804             Derek Price  <derek@ximbiot.com>
39805
39806         * lib/getlogin_r.h: Simplify API documentation.
39807
39808 2005-05-23  Derek Price  <derek@ximbiot.com>
39809
39810         * modules/minmax (Files): Add m4/minmax.m4.
39811         (configure.ac): Add gl_MINMAX.
39812
39813 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
39816         so that unistd-safer.h (GPL'ed code) need not be included.
39817
39818 2005-05-22  Bruno Haible  <bruno@clisp.org>
39819
39820         * m4/minmax.m4: New file.
39821         Based on a patch by Derek Price <derek@ximbiot.com>.
39822
39823 2005-05-22  Bruno Haible  <bruno@clisp.org>
39824
39825         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
39826         (INT64_MIN): Fix definition.
39827         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
39828
39829         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
39830         NEED_SIGNED_INT_TYPES.
39831
39832         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
39833         HAVE_SYSTEM_INTTYPES.
39834
39835 2005-05-22  Bruno Haible  <bruno@clisp.org>
39836
39837         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
39838         Also include <sys/param.h> if it defines MIN, MAX.
39839         Based on a patch by Derek Price <derek@ximbiot.com>.
39840
39841 2005-05-21  Jim Meyering  <jim@meyering.net>
39842
39843         * modules/fts (Files): Add m4/inttypes-pri.m4.
39844         (Depends-on): Add lstat and remove gettext.  Alphabetize.
39845
39846 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39847
39848         New fts module.
39849         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
39850         (setup_dir, free_dir): New functions.
39851         (enter_dir, leave_dir): Define trivial
39852         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
39853         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
39854         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
39855         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
39856         Move to fts-cycle.c.
39857         (fts_open): Use setup_dir.
39858         (fts_close): Use free_dir.
39859         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
39860         This adds a label and some gotos, but the alternatives were messier.
39861         Check for memory allocation failure when entering a dir.
39862         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
39863         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
39864         (FTS): New member fts_cycle, that is a union that contains the
39865         old active_dir_ht and cycle_state.  All uses changed to mention
39866         fts_cycle.ht and fts_cycle.state.
39867         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
39868         fts.c, with the following changes:
39869         (setup_dir, free_dir): New functions.
39870         (enter_dir): Now returns bool.  Return true if successful, false
39871         if memory exhausted.  All callers changed.
39872         Do not bother partly cleaning up on
39873         memory allocation failure; that is free_dir's job.
39874         However, free ad if hash_insert fails, to avoid memory leak.
39875         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
39876         fts->fts_options to see which union member to use.
39877
39878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39879
39880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
39881         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
39882
39883 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39884
39885         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
39886
39887 2005-05-20  Jim Meyering  <jim@meyering.net>
39888
39889         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
39890         Now a macro, to pacify GCC.
39891
39892 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
39893
39894         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
39895         of -1.
39896
39897 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
39898
39899         * lib/chown.c (rpl_chown): Return -1 on failure.
39900
39901 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39902
39903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
39904         Don't check for stddef.h.
39905         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
39906         don't use its results.
39907         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
39908         since we include them unconditionally.  Don't require
39909         AM_STDBOOL_H, since stdbool is a prerequisite.
39910         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
39911         since we assume C89 or better.
39912         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
39913         as we don't use their results.
39914         Don't check for fchdir, memmove, memset, strrchr, as we use
39915         them unconditionally.
39916         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
39917         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
39918
39919 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39920
39921         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
39922         Include <stddef.h> unconditionally, since we assume C89 now.
39923         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
39924         * lib/fts.c: Include fts_.h first, to check interface.
39925         Do not include intprops.h; no longer needed.
39926         Include cycle-check.h and hash.h, since fts_.h no longer does.
39927         Remove unnecessary casts of closedir to void.
39928         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
39929         decide whether to decrement nlinks.
39930         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
39931         (FTS): Use struct hash_table * instead of Hash_table, so that
39932         we no longer need to include hash.h here.
39933
39934 2005-05-18  Jim Meyering  <jim@meyering.net>
39935
39936         * modules/dirfd (License): Change to LGPL.  Most of the code
39937         is already in the public domain.
39938
39939 2005-05-18  Jim Meyering  <jim@meyering.net>
39940
39941         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
39942         Reported by Yoann Vandoorselaere.
39943
39944 2005-05-17  Jim Meyering  <jim@meyering.net>
39945
39946         * m4/fts.m4: New file, from coreutils.
39947
39948 2005-05-17  Jim Meyering  <jim@meyering.net>
39949
39950         * lib/fts.c, lib/fts_.h: New files, from coreutils.
39951
39952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39953
39954         Sync from coreutils.
39955         * m4/unlinkdir.m4: New file.
39956
39957 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39958
39959         Sync from coreutils.
39960         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
39961         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
39962         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
39963         White space changes only.
39964         * lib/makepath.c (make_path): Port to hosts where leading "//" is
39965         special.
39966         * lib/yesno.c: Include getline.h, not ctype.h.
39967         (yesno): Don't remove leading white space; POSIX doesn't allow it.
39968         Use getline to remove arbitrary restriction on response length.
39969
39970 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         * config/srclist-update: Spell out "Street" in FSF postal
39973         mail address; this is the style the FSF seems to prefer.
39974
39975         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
39976         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
39977         this updates FSF postal mail address.
39978
39979         Sync from coreutils.
39980         * modules/unlinkdir: New file.
39981         * modules/yesno (Depends-on): Add getline.
39982         * MODULES.html.sh (File system functions): Add unlinkdir.
39983
39984 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39985
39986         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
39987         lib/strsep.h:
39988         Change the initial comment to refer to GPL, not LGPL.
39989         gnulib-tool will change it to LGPL as needed.
39990
39991         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
39992         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
39993         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
39994         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
39995         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
39996         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
39997         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
39998         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
39999         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
40000         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
40001         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
40002         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
40003         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
40004         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
40005         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
40006         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
40007         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
40008         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
40009         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
40010         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
40011         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
40012         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
40013         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
40014         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
40015         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
40016         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
40017         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
40018         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
40019         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
40020         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
40021         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
40022         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
40023         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
40024         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
40025         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
40026         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
40027         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
40028         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
40029         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
40030         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
40031         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
40032         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
40033         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
40034         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
40035         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
40036         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
40037         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
40038         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
40039         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
40040         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
40041         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40042         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
40043         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
40044         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
40045         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
40046         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
40047         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
40048         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
40049         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
40050         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
40051         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
40052         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
40053         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
40054         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
40055         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
40056         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
40057         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
40058         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
40059         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
40060         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
40061         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
40062         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
40063         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
40064         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
40065         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
40066         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
40067         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
40068         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
40069         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
40070         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
40071         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
40072         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
40073         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
40074         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
40075         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
40076         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
40077         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
40078         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
40079         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
40080         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
40081         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
40082         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
40083         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
40084         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
40085         lib/yesno.c, lib/yesno.h:
40086         Update FSF postal mail address.
40087
40088 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40089
40090         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
40091         tests/test-memmem.c, tests/test-stpncpy.c:
40092         Update FSF postal mail address.
40093
40094 2005-05-13  Bruno Haible  <bruno@clisp.org>
40095
40096         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
40097         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
40098         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
40099         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
40100         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
40101         Add support for 64-bit integers in the MSVC compiler.
40102
40103 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40104
40105         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
40106
40107 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
40108
40109         * gnulib-tool (func_import): Sort and uniquify recommended includes.
40110
40111 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40112
40113         * doc/getdate.texi (General date syntax): Don't say that date
40114         date --iso-8601=ns generates acceptable dates; it doesn't yet.
40115         Problem reported by Nic Ferrier.
40116
40117 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40118
40119         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
40120         specified in ai_socktype. Fix invalid ai_protocol
40121         check. ai_protocol is usually set to 0 or depending on
40122         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
40123         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
40124         ai_socktype / ai_protocol in the returned addrinfo structure.
40125
40126 2005-05-10  Simon Josefsson  <jas@extundo.com>
40127
40128         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
40129         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40130
40131 2005-05-10  Karl Berry  <karl@gnu.org>
40132
40133         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
40134         (from http://www.gnu.org/licenses).
40135         * doc/COPYING.LIB: also rename to COPYING.LESSER.
40136         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
40137         fdl.texi suffices.
40138
40139 2005-05-10  Karl Berry  <karl@gnu.org>
40140
40141         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
40142         (COPYING.DOC): remove.
40143
40144         * config/srclist-update: new FSF address.
40145
40146 2005-05-10  Derek Price  <derek@ximbiot.com>
40147
40148         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
40149         possible.
40150
40151 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40152             Bruno Haible  <bruno@clisp.org>
40153
40154         * modules/inet_ntop: New file.
40155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40156         inet_ntop.
40157
40158 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40159             Bruno Haible  <bruno@clisp.org>
40160
40161         * m4/inet_ntop.m4: New file.
40162
40163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40164             Bruno Haible  <bruno@clisp.org>
40165
40166         * lib/inet_ntop.h: New file.
40167         * lib/inet_ntop.c: New file, from glibc with modifications.
40168
40169 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
40170
40171         * modules/time_r (License): Change to LGPL.
40172         * modules/extensions (License): Change to LGPL.  Actually,
40173         the license is more permissive than that, but currently gnulib-tool
40174         doesn't know how to handle more-permissive licenses.
40175
40176         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
40177         Problem reported by Dave Love.
40178
40179 2005-05-08  Jim Meyering  <jim@meyering.net>
40180
40181         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
40182         blank.
40183
40184 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40185
40186         * modules/argmatch (Depends-on): Add stdbool.
40187         * modules/backupfile (Depends-on): Likewise.
40188         * modules/chdir-long (Depends-on): Likewise.
40189         * modules/closeout (Depends-on): Likewise.
40190         * modules/cycle-check (Depends-on): Likewise.
40191         * modules/dirname (Depends-on): Likewise.
40192         * modules/fnmatch (Depends-on): Likewise.
40193         * modules/fsusage (Depends-on): Likewise.
40194         * modules/fwriteerror (Depends-on): Likewise.
40195         * modules/getcwd (Depends-on): Likewise.
40196         * modules/getloadavg (Depends-on): Likewise.
40197         * modules/hard-locale (Depends-on): Likewise.
40198         * modules/makepath (Depends-on): Likewise.
40199         * modules/mountlist (Depends-on): Likewise.
40200         * modules/nanosleep (Depends-on): Likewise.
40201         * modules/posixtm (Depends-on): Likewise.
40202         * modules/quotearg (Depends-on): Likewise.
40203         * modules/readtokens (Depends-on): Likewise.
40204         * modules/readtokens0 (Depends-on): Likewise.
40205         * modules/readutmp (Depends-on): Likewise.
40206         * modules/save-cwd (Depends-on): Likewise.
40207         * modules/strftime (Depends-on): Likewise.
40208         * modules/userspec (Depends-on): Likewise.
40209         * modules/utimecmp (Depends-on): Likewise.
40210         * modules/xgetcwd (Depends-on): Likewise.
40211         * modules/xnanosleep (Depends-on): Likewise.
40212         * modules/xstrtod (Depends-on): Likewise.
40213         * modules/yesno (Depends-on): Likewise.
40214
40215 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40216
40217         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
40218         needless checks.
40219
40220 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40221
40222         Merge from coreutils.  Among other things,
40223         add bulletproofing for cases where stdin, stdout, or stderr are closed.
40224         * lib/fd-safer.c: New file.
40225         * lib/fcntl-safer.h, open-safer.c: Remove.
40226         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
40227         * lib/dup-safer.c: Include unistd-safer.h first.
40228         Don't include errno.h.
40229         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
40230         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
40231         * lib/file-type.c: Rely on file-type.h change.
40232         * lib/getloadavg.c: Include unistd-safer.h.
40233         (getloadavg): Use safer open.
40234         * lib/getusershell.c: Include "stdio-safer.h".
40235         (getusershell): Use safer fopen.
40236         * lib/long-options.c (long_options): Use NULL rather than 0.
40237         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
40238         'free'.
40239         * lib/modechange.c: Likewise.
40240         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
40241         (MODE_DONE): New constant.
40242         (struct mode_change): Remove 'next' member.
40243         (make_node_op_equals): New function; like the old one of the
40244         same name, except it allocates an array.
40245         (mode_compile, mode_create_from_ref): Use it.
40246         (mode_compile): Allocate result as an array, not a linked list.
40247         Parse octal string ourself, so that we catch mistakes like "+0".
40248         (mode_adjust): Arg is an array, not a linked list.
40249         * lib/modechange.c: Include stat-macros.h, xalloc.h.
40250         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
40251         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
40252         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
40253         Remove.  This is now stat-macros.h's job.
40254         (talloc): Remove.  All callers replaced by xalloc, so that
40255         our invokers don't have to worry about reporting memory failures.
40256         (make_node_op_equals): Remove.
40257         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40258         New constants.
40259         (struct mode_change): Moved here from modechange.h.
40260         (mode_append_entry): Remove.
40261         (mode_compile): Remove MASKED_OPS arg, since it encouraged
40262         apps to have incorrect behavior.  Use simpler algorithm for head
40263         and tail.  Don't futz with umask; that's now the job of mode_adjust.
40264         Detect more invalid usages rather than having somewhat-random behavior.
40265         Don't insert an "a=" action, as that leads to incorrect behavior.
40266         (mode_compile, mode_create_from_ref): Return NULL on error instead
40267         of an enum, since now there's only one way to have an error.  All
40268         callers changed.
40269         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
40270         at the correct time.  Simplify calculation of "+u" and its ilk.
40271         Don't mishandle "+X".
40272         (mode_free): Remove "register" and localize decls.
40273         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40274         (struct mode_change): Move to modechange.c; callers don't
40275         need to see this stuff.
40276         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
40277         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
40278         (mode_change, mode_adjust): Reflect the new signatures noted above.
40279         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
40280         that might redefine system include files.
40281         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
40282         (my_usleep): Use NULL rather than (void *) 0.
40283         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
40284         Use siginterrupt to specify that system calls should be interrupted.
40285         (rpl_nanosleep): Move initialization of suspended closer to call of
40286         my_usleep.
40287         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
40288         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
40289         (desirable_utmp_entry): New function.
40290         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
40291         using x2nrealloc, to simplify logic.
40292         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
40293         size calculation.  Do not assume utmp file is a regular file.
40294         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
40295         (READ_UTMP_CHECK_PIDS): New constant.
40296         * lib/save-cwd.c: Include unistd-safer.h.
40297         (save_cwd): Use fd_safer.
40298         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
40299         [!_LIBC] Include "stat-macros.h" instead.
40300         * lib/unistd-safer.h (fd_safer): New decl.
40301
40302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * modules/getloadavg (Depends-on): Add unistd-safer.
40305         * modules/getusershell (Depends-on): Add stdio-safer.
40306         * modules/lstat (Depends-on): Remove xalloc.
40307         * modules/mkstemp (Depends-on): Add stat-macros.
40308         * modules/modechange (Depends-on): Remove xstrtol.
40309         Add stat-macros, xalloc.
40310         * modules/save-cwd (Depends-on): Add unistd-safer.
40311         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
40312         * modules/unistd-safer (Files): Add lib/fd-safer.c
40313         (Makefile.am): Remove lib_SOURCES.
40314
40315         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
40316         Remove fcntl-safer; unistd-safer supersedes it.
40317
40318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40319
40320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
40321         AC_HEADER_STAT.
40322         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
40323         (gl_PREREQ_CHOWN): Remove.
40324         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
40325         it.  Don't require AC_HEADER_STAT.
40326         (gl_PREREQ_LSTAT): Remove.
40327         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
40328         Don't require AC_HEADER_STAT.
40329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
40330         (gl_PREREQ_RMDIR): Remove.
40331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
40332         mention stat-macros.h or AC_HEADER_STAT, since we'll make
40333         the stat-macros module a prerequisite.
40334         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
40335         * m4/filemode.m4 (gl_FILEMODE): Likewise.
40336         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
40337         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
40338         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
40339         variable names.
40340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
40341         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
40342         variable prefixes.
40343         * m4/fcntl-safer.m4: Remove.
40344         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
40345         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
40346         Invoke gl_PREREQ_FD_SAFER.
40347         (gl_PREREQ_FD_SAFER): New macro.
40348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
40349         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
40350         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
40351         Remove duplicate call to AC_LIBOBJ(readutmp).
40352         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
40353
40354         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
40355         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
40356
40357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40358
40359         * MODULES.html.sh (Misc): Add byteswap.
40360
40361 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40362
40363         * modules/getcwd (Depends-on): Add extensions.
40364         * modules/openat (Depends-on): Likewise.
40365
40366 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40367
40368         * modules/byteswap: New file.
40369
40370 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40371
40372         * m4/byteswap.m4: New file.
40373
40374 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40375
40376         * lib/byteswap_.h: New file.
40377
40378 2005-04-25  Karl Berry  <karl@gnu.org>
40379
40380         * m4/gettext.m4: Update from GNU gettext 0.14.4.
40381
40382 2005-04-25  Albert Chin  <china@thewrittenword.com>
40383
40384         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
40385         Toolkit C bug.
40386
40387 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
40388
40389         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
40390         (func_ln_if_changed) Remove forcibly for no error message
40391         in case file does not exist.
40392
40393 2005-04-19  Simon Josefsson  <jas@extundo.com>
40394
40395         * gnulib-tool (Options): Make --symlink mean --symbolic.
40396
40397 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
40398
40399         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
40400
40401 2005-04-16  Simon Josefsson  <jas@extundo.com>
40402
40403         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
40404
40405 2005-04-15  Simon Josefsson  <jas@extundo.com>
40406
40407         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
40408
40409 2005-04-15  Simon Josefsson  <jas@extundo.com>
40410
40411         * gnulib-tool: Rename --symlink to --symbolic.
40412
40413 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
40414
40415         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
40416         symbolic links to files instead of copying/moving.  Add --aux-dir,
40417         specifying directory relative --dir where auxiliary build tools
40418         are placed.
40419
40420 2005-04-14  Bruno Haible  <bruno@clisp.org>
40421
40422         * modules/allocsa (License): Change to LGPL.
40423         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40424
40425 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40426
40427         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
40428         that "UTC +1 second" continues to work.  Problem reported
40429         by Dmitry V. Levin.
40430         (relunit_snumber): New rule.
40431         (relunit): Use it.
40432
40433 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40434
40435         * lib/getdate.y (universal_time_zone_table): New constant.
40436         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
40437         universal_time_zone_table.
40438         (lookup_zone): Prefer universal_time_zone_table to
40439         local_time_zone_table, so that "GMT" time stamps are allowed in
40440         London during the summer.  Problem reported by Ian Abbott.
40441
40442 2005-04-12  Jim Meyering  <jim@meyering.net>
40443
40444         * lib/human.c (humblock): Set *options even when returning due to
40445         xstrtoumax conversion failure.  Thanks to a used-uninitialized
40446         warning from gcc-4.
40447
40448 2005-04-09  Jim Meyering  <jim@meyering.net>
40449
40450         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
40451         -Wuninitialized: initialize tm0.tm_year.
40452
40453 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40454
40455         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
40456         count, since there's no maximum.  All uses changed.
40457         Add member dsts_seen.
40458         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
40459         not being INT_MAX.
40460         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
40461         Use pc_rels_seen to decide whther a date is absolute.
40462
40463         * lib/getdate.y (number): Don't overwrite year.
40464         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
40465         check.
40466
40467 2005-04-02  Simon Josefsson  <jas@extundo.com>
40468
40469         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
40470         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
40471
40472 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
40473
40474         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
40475         where no absolute path name can be longer than PATH_MAX.
40476
40477 2005-03-27  Jim Meyering  <jim@meyering.net>
40478
40479         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
40480
40481 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
40482
40483         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
40484         "one's complement" -> "ones' complement" in comment, as per Knuth.
40485         "value of type" -> "type or expression" in comment.
40486         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
40487
40488 2005-03-26  Jim Meyering  <jim@meyering.net>
40489
40490         Comment nits.
40491         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
40492         Correct typos: s/or/of/.
40493
40494 2005-03-26  Jim Meyering  <jim@meyering.net>
40495
40496         * modules/check-include-files: Move to ../ and rename to...
40497         * check-module: ...this.
40498
40499 2005-03-25  Jim Meyering  <jim@meyering.net>
40500
40501         * modules/xvasprintf (Files): Add xalloc.h.
40502
40503 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40504
40505         * modules/gettext (Files): config/config.rpath ->
40506         build-aux/config.rpath
40507         * modules/iconv (Files): Likewise.
40508         Problem reported by Oskar Liljeblad.
40509
40510 2005-03-23  Jim Meyering  <jim@meyering.net>
40511
40512         * modules/check-include-files: New script to check for
40513         missing dependencies, multiple includes, etc.
40514
40515         * modules/c-strtold (Depends-on): Add xalloc.
40516         * modules/c-strtod (Depends-on): Add xalloc.
40517         * modules/hash (Depends-on): Add xalloc.
40518         (Files): Remove lib/xalloc.h.
40519
40520         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
40521         * modules/userspec (Files): Add lib/inttostr.h.
40522
40523 2005-03-23  Jim Meyering  <jim@meyering.net>
40524
40525         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
40526
40527 2005-03-22  Jim Meyering  <jim@meyering.net>
40528
40529         * modules/stat-macros: New module.
40530         * modules/canonicalize, modules/euidaccess, modules/file-type,
40531         * modules/filemode, modules/lchown, modules/makepath,
40532         * modules/rmdir, modules/stat: Depend on new stat-macros module
40533         rather than listing lib/stat-macros.h manually.
40534         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
40535
40536 2005-03-22  Jim Meyering  <jim@meyering.net>
40537
40538         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
40539
40540 2005-03-22  Bruno Haible  <bruno@clisp.org>
40541
40542         * config/srclist.txt: Replace target directory 'config' with
40543         'build-aux'.
40544         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
40545         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
40546         ../build-aux/.
40547
40548 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
40549
40550         * modules/chdir-long (Depends-on): Add mempcpy.
40551
40552         * modules/acl, modules/backupfile, modules/c-strtod,
40553         modules/c-strtold, modules/canon-host, modules/canonicalize,
40554         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
40555         modules/exclude, modules/exitfail, modules/file-type,
40556         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
40557         modules/getdate, modules/getline, modules/getpagesize,
40558         modules/getpass, modules/getugroups, modules/group-member,
40559         modules/hard-locale, modules/hash, modules/human, modules/idcache,
40560         modules/inttostr, modules/long-options, modules/makepath,
40561         modules/md5, modules/memcasecmp, modules/memcoll,
40562         modules/modechange, modules/mountlist, modules/path-concat,
40563         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
40564         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
40565         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
40566         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
40567         modules/strftime, modules/strndup, modules/strverscmp,
40568         modules/timespec, modules/unlocked-io, modules/userspec,
40569         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
40570         modules/yesno:
40571         Remove lib_SOURCES line from Makefile.am section, as this is now
40572         done automatically by the corresponding Autoconf macro.
40573
40574 2005-03-21  Jim Meyering  <jim@meyering.net>
40575
40576         Changes imported from coreutils.
40577
40578         * lib/cycle-check.c: Don't include xalloc.h.
40579
40580         * lib/path-concat.c: Don't include assert.h.
40581         (path_concat): Remove assertion that would have triggered
40582         for ABASE starting with more than one slash.
40583         Reported by Andreas Schwab.
40584
40585         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
40586         properly when ABASE is an absolute file name.
40587         Correct the description of this function.
40588         Include <assert.h>.
40589         Add an assertion and a test driver.
40590         This fixes a bug introduced on 2004-07-02.
40591         Andreas Schwab reported the resulting failure of cp --parents:
40592         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
40593
40594 2005-03-21  Jim Meyering  <jim@meyering.net>
40595
40596         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
40597         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
40598
40599 2005-03-21  Jim Meyering  <jim@meyering.net>
40600         and  Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
40603         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
40604         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
40605         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
40606         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
40607         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
40608         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
40609         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
40610         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
40611         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
40612         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
40613         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
40614         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
40615         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
40616         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
40617         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
40618         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
40619         for these modules.
40620
40621 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
40622
40623         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
40624         (which shouldn't happen), generate nothing instead of returning 0
40625         immediately, so that nstrftime (NULL, ...) doesn't return 0.
40626
40627 2005-03-16  Bruno Haible  <bruno@clisp.org>
40628
40629         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
40630         HAVE_LONGLONG_64BIT.
40631
40632 2005-03-16  Bruno Haible  <bruno@clisp.org>
40633
40634         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
40635         HAVE_LONGLONG_64BIT.
40636
40637 2005-03-16  Bruno Haible  <bruno@clisp.org>
40638
40639         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
40640         HAVE_LONGLONG_64BIT.
40641
40642 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40643
40644         * lib/strftime.c (my_strftime): Prepend space to format so that we can
40645         reliably distinguish strftime failure from empty output on POSIX
40646         hosts.
40647
40648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
40649
40650         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
40651         (iconv_string): Don't guess a size-zero buffer, as that might cause
40652         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
40653         result would be 'too large', where 'too large' is (heuristically)
40654         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
40655         overflow concerns.  This will prevent some unwanted malloc failures
40656         when the inputs are very large.
40657
40658 2005-03-15  Karl Berry  <karl@gnu.org>
40659
40660         * config/srclist.txt (config.rpath): from gettext.
40661         * config/config.rpath: update.
40662
40663 2005-03-15  Bruno Haible  <bruno@clisp.org>
40664
40665         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
40666         to 'negate'.
40667
40668         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
40669         variable.
40670
40671         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
40672         results.
40673
40674 2005-03-14  Simon Josefsson  <jas@extundo.com>
40675
40676         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
40677         <fx@gnu.org>.
40678
40679 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
40680
40681         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
40682         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
40683         intprops.h.
40684         * lib/strtol.c: Likewise.
40685
40686 2005-03-14  Jim Meyering  <jim@meyering.net>
40687
40688         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
40689         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
40690         to be nonzero so that we (and caller) can detect the difference
40691         between a valid zero-length expansion and an error return, even
40692         when the underlying strftime fails before writing anything into
40693         that location.
40694
40695 2005-03-14  Bruno Haible  <bruno@clisp.org>
40696
40697         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
40698         Update from GNU gettext 0.14.3.
40699
40700 2005-03-10  Jim Meyering  <jim@meyering.net>
40701
40702         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
40703
40704 2005-03-10  Jim Meyering  <jim@meyering.net>
40705
40706         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
40707         so that this module works on systems without fchdir.
40708
40709 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
40710
40711         Factor int-properties macros into a single file, except for
40712         glibc-related files.
40713         * lib/intprops.h: New file.
40714         * lib/getloadavg.c: Include it instead of limits.h.
40715         (INT_STRLEN_BOUND): Remove.
40716         * lib/human.c: Include intprops.h.
40717         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
40718         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
40719         302/1000.
40720         * lib/inttostr.h: Include intprops.h instead of limits.h.
40721         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
40722         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
40723         for consistency with intprops.h.
40724         (time_t_is_integer, twos_complement_arithmetic): Use them.
40725         * lib/sig2str.h: Include <signal.h>, intprops.h.
40726         (INT_STRLEN_BOUND): Remove.
40727         * lib/strftime.c (TYPE_SIGNED): Remove.
40728         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
40729         * lib/strtol.c: Adjust comments to match intprops.h.
40730         * lib/userspec.c: Include intprops.h.
40731         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
40732         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
40733         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
40734         instead of rolling our own expressions.
40735         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
40736
40737         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
40738         instead of int.
40739         (my_strftime): Do not mishandle years close to INT_MAX, by doing
40740         the right thing even if adding 1900 would overflow.  Similarly
40741         for tm_mon + 1 and tm_yday + 1.
40742         Make %Y always equivalent to %C%y, and similarly for %G and %g.
40743         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
40744         (DO_SIGNED_NUMBER): New macro.
40745         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
40746
40747 2005-03-07  Bruno Haible  <bruno@clisp.org>
40748
40749         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
40750
40751 2005-03-07  Bruno Haible  <bruno@clisp.org>
40752
40753         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
40754
40755 2005-03-04  Derek R. Price  <derek@ximbiot.com>
40756
40757         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
40758         (func_import): Only replace files via --import when they have actually
40759         changed.
40760
40761 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40762
40763         * m4/mmap-anon.m4: New file.
40764         * m4/pagealign_alloc.m4: New file.
40765
40766 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40767             Bruno Haible  <bruno@clisp.org>
40768
40769         * modules/pagealign_alloc: New file.
40770         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
40771
40772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
40773             Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/pagealign_alloc.h: New file.
40776         * lib/pagealign_alloc.c: New file.
40777
40778 2005-03-03  Bruno Haible  <bruno@clisp.org>
40779
40780         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
40781         Use an all-permissive copyright notice, recommended by RMS.
40782
40783 2005-03-02  Bruno Haible  <bruno@clisp.org>
40784
40785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
40786         of AIX, the replacement has to be done only after <string.h> is
40787         included, therefore not in config.h. stpncpy.h does the replacement,
40788         and stpncpy.c uses it.
40789
40790 2005-03-02  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
40793         stpncpy.c uses it.
40794
40795 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40796
40797         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
40798         The workaround isn't strictly needed for POSIX conformance, and
40799         it's too much of a pain to configure and maintain.  We'll ask
40800         people to fix their kernels instead.
40801         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
40802         (NANOSLEEP_BUG_WORKAROUND): Remove.
40803         (xnanosleep): Remove the workaround.
40804
40805 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40806
40807         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
40808         Reported by Derek Price.
40809         (Include): Add "timespec.h".
40810
40811         * modules/xnanosleep (Depends-on): Remove gethrxtime.
40812
40813 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40814
40815         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
40816         to detect nanosleep bug.
40817
40818 2005-03-01  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
40821
40822 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
40823
40824         * modules/gethrxtime: New file.
40825         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
40826         (Depends-on): Add gethrxtime.
40827         (configure.ac): Add gl_XNANOSLEEP.
40828         (Makefile.am): Remove lib_SOURCES line.
40829
40830 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40831
40832         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
40833         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
40834
40835 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40836
40837         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
40838         * lib/timespec.h (gettime): Return void, since it always
40839         succeeds now.  All uses changed.
40840         * lib/gettime.c (gettime) Likewise.
40841         [HAVE_NANOTIME]: Prefer nanotime.
40842         Assume gettimeofday succeeds, as POSIX requires.
40843         Assime time () succeeds, since other code already does.
40844         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
40845         (timespec_subtract): Remove.
40846         (NANOSLEEP_BUG_WORKAROUND): New constant.
40847         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
40848         things considerably.  Use it only on GNU/Linux hosts, since the
40849         workaround shouldn't be needed elsewhere.
40850
40851 2005-02-24  Bruno Haible  <bruno@clisp.org>
40852
40853         * modules/gettext (Files): Add m4/glibc2.m4.
40854
40855 2005-02-24  Bruno Haible  <bruno@clisp.org>
40856
40857         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
40858         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
40859         * m4/progtest.m4:
40860         Update from GNU gettext 0.14.2.
40861         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
40862
40863 2005-02-24  Bruno Haible  <bruno@clisp.org>
40864
40865         * lib/localcharset.c: Update from GNU gettext 0.14.2.
40866         * lib/config.charset: Update from GNU gettext 0.14.2.
40867
40868 2005-02-24  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/gettext.h: Update from GNU gettext 0.14.2.
40871
40872 2005-02-23  Simon Josefsson  <jas@extundo.com>
40873
40874         * m4/iconvme.m4: New file.
40875
40876 2005-02-23  Jim Meyering  <jim@meyering.net>
40877
40878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
40879         change.
40880         Thanks to Bruno Haible for catching it.
40881
40882 2005-02-22  Simon Josefsson  <jas@extundo.com>
40883
40884         * modules/iconvme: New file.
40885
40886         * MODULES.html.sh: Add iconvme.
40887
40888 2005-02-22  Simon Josefsson  <jas@extundo.com>
40889
40890         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
40891
40892 2005-02-22  Simon Josefsson  <jas@extundo.com>
40893
40894         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
40895
40896 2005-02-22  Jim Meyering  <jim@meyering.net>
40897
40898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
40899         s/ifndef/ifdef/.
40900
40901 2005-02-20  Neil Conway  <neilc@samurai.com>
40902
40903         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
40904         returned by OSX/Darwin if the specified buffer is not large
40905         enough for the hostname.
40906
40907 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40908
40909         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
40910         pass it to _help, otherwise the latter coredumps trying to
40911         dereference state.root_argp.
40912
40913 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * modules/chdir-long (Depends-on): Add memrchr.
40916         * modules/memrchr (Files): Add lib/memrchr.h.
40917         (Include): "memrchr.h".
40918
40919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40920
40921         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
40922
40923 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
40924
40925         * lib/memrchr.h: New file.
40926         * lib/chdir-long.c: Include it.
40927         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
40928         Don't bother including stddef.h.
40929
40930 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
40931
40932         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
40933         inclusion.
40934         Include <sys/types.h>, for dev_t.
40935         (ME_DUMMY, ME_REMOTE): Move from here....
40936         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
40937         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
40938         Dmitry V. Levin.
40939         Include mountlist.h first, to test the interface.
40940
40941 2005-01-29  Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/progname.c (program_name): Initialize.
40944         Needed when linking statically on MacOS X.
40945
40946 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40947
40948         Sync from coreutils.
40949         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
40950         (Depends-on): Add c-strtod.
40951         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
40952
40953 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40954
40955         Sync from coreutils.
40956         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
40957
40958         Remove files that are specific to coreutils.
40959         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
40960
40961 2005-01-28  Bruno Haible  <bruno@clisp.org>
40962
40963         * modules/javacomp: New file.
40964         * MODULES.html.sh (Java): Add javacomp.
40965
40966 2005-01-28  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/javacomp.m4: New file, from GNU gettext.
40969
40970 2005-01-28  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/javacomp.sh.in: New file, from GNU gettext.
40973         * lib/javacomp.h: New file, from GNU gettext.
40974         * lib/javacomp.c: New file, from GNU gettext.
40975
40976 2005-01-26  Simon Josefsson  <jas@extundo.com>
40977
40978         * lib/gai_strerror.c: Use GPL in header.
40979
40980 2005-01-26  Bruno Haible  <bruno@clisp.org>
40981
40982         * modules/javaexec: New file.
40983         * MODULES.html.sh (Java): Add javaexec.
40984
40985 2005-01-26  Bruno Haible  <bruno@clisp.org>
40986
40987         * m4/javaexec.m4: New file, from GNU gettext.
40988
40989 2005-01-26  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/javaexec.sh.in: New file, from GNU gettext.
40992         * lib/javaexec.h: New file, from GNU gettext.
40993         * lib/javaexec.c: New file, from GNU gettext.
40994
40995 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40996
40997         * modules/lchown (Depends-on): Remove lchown.h
40998
40999 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41000
41001         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
41002         must be defined if the header file was not found, in order
41003         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
41004
41005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41006
41007         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
41008         initializers for struct pentry_state.
41009         (__argp_error): Check return value of __asprintf
41010         (__argp_failure): Translate error message
41011
41012         * lib/argp-parse.c: Removed braces around the expansion of N_()
41013
41014 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
41017         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
41018         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
41019         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
41020         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
41021         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
41022         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
41023         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
41024         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
41025         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
41026         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
41027         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
41028         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
41029         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
41030         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
41031         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
41032         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
41033         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
41034         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
41035         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
41036         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
41037         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
41038         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
41039         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
41040         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
41041         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
41042         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
41043         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
41044         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
41045         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
41046         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
41047         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
41048         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
41049         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
41050         xstrtol.m4, xstrtoumax.m4, yesno.m4:
41051         Use an all-permissive copyright notice, recommended by RMS.
41052
41053 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41054
41055         * modules/chdir-long (Depends-on): Remove mempcpy.
41056
41057 2005-01-21  Jim Meyering  <jim@meyering.net>
41058
41059         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
41060         same value as for Solaris 9.
41061
41062         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
41063         component length.  This included changing the parameter to be
41064         of type `char *' rather than `char const *'.
41065         * lib/chdir-long.h (chdir_long): Update prototype.
41066
41067         * lib/openat.c (fdopendir, fstatat): New functions.
41068         * lib/openat.h: Include headers required for use of DIR and struct
41069         stat.
41070         [AT_SYMLINK_NOFOLLOW]: Define.
41071         (fdopendir, fstatat): Add prototypes.
41072
41073 2005-01-21  Bruno Haible  <bruno@clisp.org>
41074
41075         * modules/classpath: New file.
41076         * MODULES.html.sh (Java): Add classpath.
41077
41078 2005-01-21  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/classpath.h: New file, from GNU gettext.
41081         * lib/classpath.c: New file, from GNU gettext.
41082
41083 2005-01-20  Simon Josefsson  <jas@extundo.com>
41084
41085         * modules/version-etc-fsf: New file.
41086
41087 2005-01-20  Simon Josefsson  <jas@extundo.com>
41088
41089         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
41090         * lib/version-etc.c: Remove version_etc_copyright.
41091         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
41092         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
41093
41094 2005-01-20  Simon Josefsson  <jas@extundo.com>
41095
41096         * lib/base64.h (isbase64): Add.
41097
41098         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
41099         using a unsigned prototype, don't inline.
41100         (base64_decode): Use it.
41101
41102 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41103
41104         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
41105         it.
41106
41107 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41108
41109         * lib/save-cwd.c (save_cwd): Remove code to support the case
41110         where fchdir is missing or flaky.
41111
41112 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41113
41114         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
41115
41116 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41117
41118         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
41119         AC_LIBSOURCES now does this.
41120         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
41121         with new ullong_max module.
41122
41123 2005-01-19  Bruno Haible  <bruno@clisp.org>
41124
41125         * modules/sh-quote: New file.
41126         * MODULES.html.sh (Executing programs): Add sh-quote.
41127
41128 2005-01-19  Bruno Haible  <bruno@clisp.org>
41129
41130         * lib/sh-quote.h: New file, from GNU gettext.
41131         * lib/sh-quote.c: New file, from GNU gettext.
41132
41133 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41134
41135         Merge from coreutils.
41136         * m4/ullong_max.m4: New file.
41137         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
41138         (gl_MACROS): Assume localeconv exists.
41139
41140 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41141
41142         Merge changes from coreutils, as described below in several
41143         changelogs dated today.
41144
41145         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
41146         (O_DIRECTORY): Remove; not needed here, since "." must be
41147         a directory.  All uses removed.
41148         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
41149         universal on Suns, and we also need to test for IRIX.
41150         Revamp code to use 'if' rather than '#if'.
41151         Avoid unnecessary comparison of cwd->desc to 0.
41152
41153         * lib/utimens.c (futimens): Robustify the previous patch, by checking
41154         for known valid error numbers rather than observed invalid ones.
41155
41156 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41157
41158         * modules/ullong_max: New file.
41159
41160         * modules/chdir-long, modules/openat: New files.
41161         * modules/save-cwd (Depends-on): Depend on chdir-long.
41162         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
41163
41164 2005-01-18  Jim Meyering  <jim@meyering.net>
41165
41166         Merge from coreutils.
41167         * m4/chdir-long.m4, m4/openat.m4: New files.
41168         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
41169         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
41170         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
41171         is sane and DOES follow symlinks.  Besides, testing 20 different
41172         systems found no broken chown implementations.
41173         Prompted by a change in rsync's copy of this macro.
41174         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
41175
41176         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
41177
41178         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
41179         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
41180         NULL-means-set-to-current-time semantics.
41181         Remove temporary file immediately, rather than waiting
41182         for configure's at-exit trap code to do it.
41183
41184 2005-01-18  Jim Meyering  <jim@meyering.net>
41185
41186         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41187
41188         * lib/utimens.c (futimens): Account for the fact that futimes
41189         can also fail with errno == ENOSYS or errno == ENOENT.
41190         Patch from Dmitry V. Levin.
41191
41192         Change the name of the robust chdir function from chdir to chdir_long.
41193         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
41194         (restore_cwd): Use chdir_long, not chdir.
41195         * lib/chdir-long.c: Renamed from chdir.c.
41196         * lib/chdir-long.h: Renamed from chdir.h.
41197         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
41198         Hurd.
41199
41200 2005-01-18  Bruno Haible  <bruno@clisp.org>
41201
41202         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
41203         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
41204         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
41205         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
41206         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
41207         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
41208         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
41209         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
41210         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
41211         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
41212         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
41213         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
41214         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
41215         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
41216         Use an all-permissive copyright notice, recommended by RMS.
41217
41218 2005-01-18  Bob Proulx  <bob@proulx.com>
41219
41220         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
41221         simplify offsetof() macro construct to avoid compile failure with
41222         native HP-UX 11.0 ANSI C compiler.
41223
41224 2005-01-17  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
41227         redundant because stpncpy.m4 takes care of it.
41228
41229 2005-01-17  Bruno Haible  <bruno@clisp.org>
41230
41231         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
41232
41233 2005-01-17  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
41236         used.
41237
41238 2005-01-17  Bruno Haible  <bruno@clisp.org>
41239
41240         * lib/fwriteerror.h (fwriteerror): Change specification to include
41241         fclose.
41242         * lib/fwriteerror.c: Include <stdbool.h>.
41243         (fwriteerror): At the end, close the file stream. Record whether
41244         stdout was already closed.
41245
41246 2005-01-17  Bruno Haible  <bruno@clisp.org>
41247
41248         * lib/execute.c (environ): Declare if needed.
41249         * lib/pipe.c (environ): Likewise.
41250         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
41251
41252 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41253
41254         * modules/argp: Depend on vsnprintf
41255
41256 2005-01-10  Jim Meyering  <jim@meyering.net>
41257
41258         * modules/closeout (Depends-on): Add atexit.
41259
41260 2005-01-06  Bruno Haible  <bruno@clisp.org>
41261
41262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
41263
41264 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41265
41266         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
41267         definitions to be after all include files, to avoid collisions.
41268         Problem reported by Bob Proulx.
41269
41270 2005-01-04  Jim Meyering  <jim@meyering.net>
41271
41272         Changes imported from coreutils.
41273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
41274         as the mkstemp template, use a temporary directory and an
41275         8.3-friendly template to avoid trouble on systems like DJGPP.
41276         Reported by Juan M. Guerrero via Stepan Kasal.
41277         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
41278         close. Remove the temporary directory right away, rather than waiting
41279         for configure's at-exit trap code to do it.
41280         Suggestion from Stepan Kasal.
41281
41282 2005-01-01  Simon Josefsson  <jas@extundo.com>
41283
41284         * gnulib-tool: Print #include directives when --import'ing.
41285
41286 2004-12-28  Simon Josefsson  <jas@extundo.com>
41287
41288         * tests/test-base64.c: Include required header files.  Remove
41289         unused variables.
41290
41291 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41292
41293         * modules/error (Depends-on): Remove gettext.
41294
41295 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41296
41297         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
41298         not needed.  This removes a dependency on the gettext module.
41299         [defined _LIBC]: Do not include <libintl.h>; not needed.
41300
41301 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
41304         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
41305
41306 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41307
41308         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
41309         HAVE_DECL_STRTOLD.
41310
41311 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41312
41313         * modules/getdate (Depends-on): Remove alloca-opt.
41314
41315 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
41318
41319 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41320
41321         * lib/argp-parse.c: Include <stddef.h>.
41322         (alignof, alignto): New macros.
41323         (parser_init): Don't assume that void * is aligned sufficiently
41324         for struct option.
41325
41326         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
41327         need to extend the stack.
41328         (YYINITDEPTH): New macro, so that the initial stack isn't overly
41329         large.
41330
41331 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41332
41333         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
41334
41335 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
41338         (2004-10-24) change.  Apparently this was a false alarm.
41339
41340         * modules/getdate: Depend on alloca-opt, not alloca.
41341
41342 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41343
41344         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
41345         Remove now-obsolete comment about AIX.
41346         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
41347         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
41348         (YYMAXDEPTH): New macro.
41349
41350 2004-12-18  Simon Josefsson  <jas@extundo.com>
41351
41352         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
41353
41354 2004-12-18  Bruno Haible  <bruno@clisp.org>
41355
41356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
41357
41358 2004-12-18  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/fatal-signal.c (fatal_signals): Make non-const.
41361         (init_fatal_signals): New function.
41362         (uninstall_handlers, install_handlers): Ignore signals that were set to
41363         SIG_IGN.
41364         (at_fatal_signal): Call init_fatal_signals.
41365         (init_fatal_signal_set): Likewise. Ignore signals that were set to
41366         SIG_IGN.
41367         Reported by Paul Eggert.
41368
41369 2004-12-18  Bruno Haible  <bruno@clisp.org>
41370
41371         * doc/alloca.texi: New file.
41372         * doc/alloca-opt.texi: New file.
41373
41374 2004-12-17  Jim Meyering  <jim@meyering.net>
41375
41376         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
41377         Otherwise, install-sh could exit with improper exit status when
41378         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
41379
41380 2004-12-16  Simon Josefsson  <jas@extundo.com>
41381
41382         * tests/test-base64.c: Add license.
41383
41384 2004-12-15  Stepan Kasal  <address@hidden>
41385
41386         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
41387
41388 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41389
41390         * modules/getcwd (Files): Add m4/d-ino.m4.
41391         Suggested by Mark D. Baushke.
41392
41393 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41394
41395         * lib/getdate.y (textint): New member "negative".
41396         (time_zone_hhmm): New function.
41397         Expect 14 shift-reduce conflicts, not 13.
41398         (o_colon_minutes): New rule.
41399         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
41400         (yylex): Set the "negative" member of signed numbers.
41401
41402 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41403
41404         * doc/getdate.texi (Time of day items, Time zone items):
41405         Describe new formats +00:00, UTC+00:00.
41406
41407 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41408
41409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
41410         spurious "-l"s.  Problem reported by Stepan Kasal.
41411
41412 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
41413
41414         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
41415         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
41416
41417 2004-12-04  Simon Josefsson  <jas@extundo.com>
41418
41419         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
41420         Vandoorselaere <yoann@prelude-ids.org>.
41421
41422 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         Changes imported from coreutils.
41425         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
41426         exist.
41427         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
41428
41429 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41430
41431         Changes imported from coreutils.
41432         * lib/hard-locale.c: Assume <locale.h> exists.
41433         Include "strdup.h".
41434         (GLIBC_VERSION): New macro.
41435         (hard_locale): Assume setlocale exists.
41436         Rewrite to avoid #ifdef.
41437         Use strdup rather than malloc + strcpy.
41438         * lib/human.c: Assume <locale.h> exists.
41439         (human_readable): Assume localeconv exists.
41440
41441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41442
41443         * modules/hard-locale (Depends-on): Add strdup.
41444
41445 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
41446
41447         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
41448         convert T2, not T.  (Imported from libc.)
41449
41450 2004-11-30  Simon Josefsson  <jas@extundo.com>
41451
41452         * modules/restrict (License): Change to LGPL.
41453
41454 2004-11-30  Simon Josefsson  <jas@extundo.com>
41455
41456         * m4/restrict.m4: Add copyright and copying conditions.
41457
41458 2004-11-30  Simon Josefsson  <jas@extundo.com>
41459
41460         * m4/base64.m4: New file.
41461
41462 2004-11-30  Simon Josefsson  <jas@extundo.com>
41463
41464         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
41465         base64.
41466
41467         * tests/test-base64.c: New file.
41468
41469         * modules/base64: New file.
41470
41471 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41472
41473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
41474         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
41475
41476         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
41477
41478 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
41479
41480         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
41481         (__getcwd.c): Don't restore errno; glibc doesn't.
41482         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
41483         first, falling back to our code only if its results look suspicious.
41484         Ensure that the resulting buffer is only as large as necessary.
41485
41486         * lib/readutmp.c: Include readutmp.h first.
41487         Include <errno.h>, since readutmp.h no longer does that.
41488         * lib/readutmp.h: Don't include <errno.h>,
41489         <sys/param.h>, <time.h>; not needed to establish interface.
41490         (errno): Remove decl.
41491         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
41492         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
41493         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
41494
41495 2004-11-28  Simon Josefsson  <jas@extundo.com>
41496
41497         * lib/base64.h, base64.c: New file.
41498
41499 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41500
41501         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
41502
41503 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41504
41505         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
41506         (Depends-on): Remove pathmax, same.  Add mempcpy.
41507         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
41508         (Makefile.am): Append getcwd.h to lib_SOURCES.
41509         (Include): Add getcwd.h.
41510         (Maintainer): Change from Jim Meyering to "all, glibc",
41511         since getdate now uses intended-for-glibc code.
41512         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
41513         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
41514
41515 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41516
41517         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
41518         HP's ANSI C compiler.
41519         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
41520         Declaring int functions causes warnings on some modern systems and
41521         shouldn't be needed to compile on ancient ones.
41522         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
41523         defined.
41524
41525         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
41526         with the following changes.
41527         (__set_errno): Parenthesize properly.
41528         Include <stdbool.h>.
41529         (MIN, MAX, MATCHING_INO): New macros.
41530         (__getcwd): Define with prototype, not K&R form.
41531         Use heuristics to allocate default buffer on stack if possible.
41532         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
41533         behavior, and to avoid the PATH_MAX limit when computing
41534         ../../../../...
41535         Use MATCHING_INO to compare inode number to file.
41536         Check for arithmetic overflow in size calculations.
41537         Fix bug in reallocation of dot array that caused getcwd to fail
41538         on directories nested deeper than 75.
41539         Be more careful about saving errno on error.
41540         Do not use realloc; use only free+malloc, as this is a bit
41541         more flexible and avoids a needless copy operation.
41542         Do not inspect st_dev and st_ino for symbolic links; POSIX
41543         doesn't specify the latter.
41544         Check for closedir errors.
41545         Avoid needless casts.
41546         Use "#ifdef weak_alias" around weak_alias, to be like other
41547         glibc code.
41548         The following changes to getcwd.c have effect only when used in
41549         gnulib; they have no effect inside glibc proper.
41550         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
41551         as alloca isn't used.
41552         (alloca, __alloca): Likewise.
41553         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
41554         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
41555         unconditionally, as gnulib assumes C89 or better.
41556         Do not include <sys/param.h>.
41557         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
41558         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
41559         better.
41560         (NULL) [!defined NULL]: Remove; we assume C89 or better.
41561         Include <dirent.h> in a way that is compatible with modern Autoconf.
41562         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
41563         New macros, if not already defined.
41564         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
41565         Use "_LIBC", not "defined _LIBC", for consistency.
41566         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
41567         a mempcpy module.
41568         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
41569         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
41570         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
41571         credit only to Jim Meyering and adjust the copyright dates.
41572         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
41573         <stdlib.h>, <unistd.h>, "pathmax.h".
41574         Instead, include "xgetcwd.h" (first) and "getcwd.h".
41575         (INITIAL_BUFFER_SIZE): Remove.
41576         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
41577
41578 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41579
41580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
41581         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
41582         Use the _ONCE methods, for efficiency.
41583         Check for fcntl.h.  In test program, include <errno.h>
41584         and <fcntl.h> if available.  Remove old K&R cruft from
41585         test program.  Check for common errors in GNU/Linux,
41586         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
41587         don't do AC_LIBOBJ, as that's getcwd.m4's job.
41588         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
41589         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
41590         name accordingly.
41591         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
41592         accommodate new getcwd.c.
41593         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
41594         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
41595         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
41596         that's all we need now.
41597
41598 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41599
41600         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
41601         argp-parse.c depends on getopt internals, that means we should
41602         always use our getopt, to be on the safe side.
41603         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
41604         order not to spoil the result of an eventual previous invocation
41605         of gl_GETOPT_SUBSTITUTE.
41606
41607 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41608
41609         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
41610         redefinition warnings. To avoid them, include the defines
41611         in `#if !defined __need_getopt ... #endif'. The only place
41612         where __getopt_argv_const is used is in definitions
41613         of getopt_long and getopt_long_only below, which are as well
41614         protected by `#ifndef __need_getopt'.
41615         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
41616         __need_getopt after including <stdio.h> and <unistd.h> These
41617         headers might have defined it.
41618
41619 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41620
41621         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
41622
41623 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
41624
41625         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
41626         (futimens): New function, which uses futimes if available.
41627         (futimens, utimens): Support timespec==NULL, with same semantics
41628         as utime and utimens.
41629         * lib/utimens.h (futimens): New decl.
41630
41631 2004-11-23  Jim Meyering  <jim@meyering.net>
41632
41633         * lib/getopt_.h: Remove trailing blanks.
41634
41635 2004-11-23  Jim Meyering  <jim@meyering.net>
41636
41637         * lib/__fpending.c: Add comment.
41638
41639 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
41640
41641         * modules/canonicalize (Depends-on): Add xreadlink.
41642         Problem reported by James Youngman.
41643
41644 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41645
41646         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
41647         New macros.
41648         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
41649         optopt): Use them instead of invoking ## directly; otherwise, the
41650         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
41651
41652 2004-11-19  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/strtok_r.c: Move comments from here...
41655         * lib/strtok_r.h: ... to here.
41656
41657 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41658
41659         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
41660         implementations that mishandle size_t overflow.
41661
41662 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41663
41664         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
41665         might fail.  Problem reported by Yoann Vandoorselaere.
41666         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
41667         implementations that mishandle size_t overflow.
41668
41669 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41670
41671         * modules/canon-host (Depends-on): Add strdup.
41672
41673 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41674
41675         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
41676
41677 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41678
41679         * lib/canon-host.c: Include "strdup.h".
41680         (canon_host): Use getaddrinfo if available, so that IPv6 works.
41681         Use strdup instead of malloc/strcpy to duplicate strings.
41682
41683         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
41684         (human_space_before_unit): New constant.
41685         * lib/human.c (human_readable): Support it.
41686
41687         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
41688         (xgetcwd): Set errno correctly when failing.
41689         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
41690         the failure is actually due to a PATH_MAX problem.
41691
41692         Further getopt changes to make it more likely that glibc will
41693         buy the changes back.
41694         * lib/getopt.c (POSIXLY_CORRECT): New constant.
41695         (getopt): Use it, so to preserve glibc semantic
41696         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
41697         when compiling for libc.
41698         * lib/getopt_.h (__getopt_argv_const): Bring it back.
41699         (getopt_long, getopt_long_only): Use it.
41700
41701         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41702         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
41703         (getopt): Argv is now char * const *, as per standard.
41704         (_getopt_internal_r, _getopt_internal): Argv is now char **,
41705         not char *__getopt_argv_const *.
41706         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41707         _getopt_long_only_r): Likewise.
41708         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
41709         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41710         _getopt_long_r, _getopt_long_only_r): Likewise.
41711         * lib/getopt_.h (__getopt_argv_const): Remove.
41712         (getopt): Argv is now char * const *, as per standard.
41713
41714         * lib/getdate.y (tORDINAL): New token.
41715         (day, relunit): Allow it for relative times.
41716         (relative_time_table): Use tORDINAL for ordinals.
41717
41718 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41719
41720         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
41721         Document that "second" isn't allowed as an ordinal number.
41722
41723 2004-11-16  Jim Meyering  <jim@meyering.net>
41724
41725         * modules/closeout (Depends-on): Add fpending.
41726
41727 2004-11-15  Jim Meyering  <jim@meyering.net>
41728
41729         * lib/closeout.c: Include "__fpending.h" once again.
41730         Include <stdbool.h>.
41731         (close_stdout): Don't fail just because stdout was closed initially,
41732         since some programs don't write to stdout in the normal course of
41733         operation (other than --version and --help), and we don't want this
41734         function to make e.g. `touch file >&-' fail.
41735         But do fail if it was closed and someone has tried to write to it.
41736         E.g., `printf foo >&-' must fail.
41737
41738 2004-11-13  Jim Meyering  <jim@meyering.net>
41739
41740         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
41741
41742 2004-11-12  Simon Josefsson  <jas@extundo.com>
41743
41744         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
41745         small doc fix is still pending.
41746
41747 2004-11-11  Simon Josefsson  <jas@extundo.com>
41748
41749         * modules/strtok_r: New file.
41750
41751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41752         strtok_r.
41753
41754 2004-11-11  Simon Josefsson  <jas@extundo.com>
41755
41756         * m4/strtok_r.m4: New file.
41757
41758         * m4/getopt.m4: Replace opterr.
41759
41760 2004-11-11  Simon Josefsson  <jas@extundo.com>
41761
41762         * lib/strtok_r.h, strtok_r.c: New file.
41763
41764 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41765
41766         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
41767         of replacing opterr, getopt, etc.  This should handle the
41768         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
41769
41770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41771
41772         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
41773         we can stop lying to compilers about the constness of argv when we
41774         are compiled outside glibc.
41775         (getopt, getopt_long, getopt_long_only): Use it.
41776         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
41777         _getopt_internal, getopt): Likewise.
41778         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
41779         _getopt_long_only_r): Likewise.
41780         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
41781         _getopt_long_r, _getopt_long_only_r): Likewise.
41782
41783         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
41784         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
41785         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
41786         the other external symbols.
41787         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
41788         declaration, since the above renaming now works around collisions.
41789
41790 2004-11-11  Jim Meyering  <jim@meyering.net>
41791
41792         * lib/linebreak.c: Remove trailing blanks.
41793         * lib/alloca_.h: Likewise.
41794         * lib/acosl.c: Likewise.
41795         * lib/euidaccess.c: Likewise.
41796         * lib/allocsa.h: Likewise.
41797
41798 2004-11-10  Simon Josefsson  <jas@extundo.com>
41799
41800         * m4/getaddrinfo.m4: New file.
41801
41802 2004-11-10  Simon Josefsson  <jas@extundo.com>
41803
41804         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
41805
41806 2004-11-10  Simon Josefsson  <jas@extundo.com>
41807
41808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41809         getaddrinfo.
41810
41811         * modules/getaddrinfo: New file.
41812
41813 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41814
41815         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
41816
41817 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41818
41819         * lib/mktime.c (SHR): New macro, which is a portable
41820         substitute for >> that should work even on Crays.
41821         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
41822         Problem reported by Mark D. Baushke in
41823         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
41824         * lib/getdate.y (SHR): Likewise.
41825         (tm_diff): Use it.
41826         * lib/strftime.c (SHR): Likewise.
41827         (tm_diff): Use it.
41828         * lib/quotearg.c (struct quoting_options): Use unsigned int for
41829         quote_these_too, so that right shifts are well defined.  All uses
41830         changed.
41831
41832 2004-11-10  Jim Meyering  <jim@meyering.net>
41833
41834         Ensure that no close failure goes unreported.
41835         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
41836         return early when it seems there's nothing to flush.
41837         Don't include __fpending.h.
41838
41839 2004-11-10  Jim Meyering  <jim@meyering.net>
41840
41841         * modules/closeout (Depends-on): Remove fpending.
41842
41843 2004-11-10  Jim Meyering  <jim@meyering.net>
41844
41845         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
41846
41847 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
41850         gl_FUNC_STRFTIME.
41851         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
41852         and AC_REQUIRE when possible, to avoid duplicate checks.
41853         Check for <wchar.h>.
41854
41855 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41856
41857         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
41858
41859 2004-11-09  Bruno Haible  <bruno@clisp.org>
41860
41861         * m4/sockpfaf.m4: New file.
41862
41863 2004-11-05  Bruno Haible  <bruno@clisp.org>
41864
41865         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
41866         Reported by Mark D. Baushke <mdb@cvshome.org>.
41867
41868 2004-11-04  Bruno Haible  <bruno@clisp.org>
41869
41870         2004-09-11  Bruno Haible  <bruno@clisp.org>
41871                 * allocsa.valgrind: New file.
41872         2004-02-06  Bruno Haible  <bruno@clisp.org>
41873                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
41874                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
41875                 Reported by Christopher Seip <chris.seip@hp.com>.
41876
41877 2004-11-04  Bruno Haible  <bruno@clisp.org>
41878
41879         * modules/allocsa (Files): Add lib/allocsa.valgrind.
41880         (Makefile.am): Distribute it.
41881
41882 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41883
41884         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
41885         with errno == ERANGE if the buffer is too small.
41886         Problem reported by Mark D. Baushke.
41887
41888 2004-11-03  Albert Chin  <china@thewrittenword.com>
41889             Paul Eggert  <eggert@cs.ucla.edu>
41890
41891         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
41892         equivalent, substitute $ac_type for equivalent type rather than
41893         blindly using uint32_t *always* which won't work if uint32_t is not
41894         available.  Define _UINT32_T to work around typedef of uint32_t if
41895         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
41896         2.5.1.
41897
41898 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41899
41900         * m4/jm-macros.m4: Sync from coreutils.
41901         (gl_MACROS): Check for mbrlen, for pathchk.
41902         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
41903
41904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41905
41906         * lib/xreadlink.c (MAXSIZE): New macro.
41907         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
41908         size does not exceed MAXSIZE.  Avoid cast.
41909         As suggested by Mark D. Baushke in
41910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
41911         if readlink fails with buffer size just under MAXSIZE, try again
41912         with MAXSIZE.
41913
41914 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41915
41916         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
41917
41918 2004-11-02  Derek R. Price  <derek@ximbiot.com>
41919         and  Paul Eggert  <eggert@cs.ucla.edu>
41920
41921         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
41922         (get_date): Overparenthesize to avoid GCC warning.
41923
41924 2004-11-02  Bruno Haible  <bruno@clisp.org>
41925
41926         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
41927         returns void.
41928
41929 2004-11-02  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
41932         function returns void.
41933
41934 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41935
41936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
41937         fflush_unlocked, flockfile, funlockfile, funlockfile,
41938         fputs_unlocked, putc_unlocked.
41939
41940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41941
41942         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
41943         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
41944         already declared.
41945
41946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41947
41948         * modules/getdate (Files): Add doc/getdate.texi.
41949         (Depends-on): Add setenv, xalloc.
41950
41951 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41952
41953         * lib/getdate.y: Add support for TZ="foo" within a date string.
41954         Fix some bugs near time_t boundaries.  Reject dates with
41955         out-of-range components, e.g., "Sept 31".
41956         Include <stdlib.h>, "setenv.h", "xalloc.h".
41957         (ISDIGIT_LOCALE): Remove; unused.
41958         Note that the TZ and time functions used here are not reentrant.
41959         (mktime_ok, get_tz): New functions.
41960         (TZBUFSIZE): New constant.
41961         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
41962         This requires that we sometimes generate our own TZ="XXX..." setting.
41963
41964 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * doc/getdate.texi: New file, from coreutils with modifications for
41967         the new TZ parsing.
41968
41969 2004-10-27  Derek R. Price  <derek@ximbiot.com>
41970
41971         * lib/mktime.c (not_equal_tm): Remove redundant check.
41972
41973 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41974
41975         * modules/regex (lib_SOURCES): Add regex.c.
41976         Reported by James Youngman in
41977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
41978
41979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41980
41981         * lib/getdate.y: Use Bison 1.875 features, and some minor
41982         code cleanups.  This change does not affect semantics.
41983         Don't include <stdlib.h>; no longer needed.
41984         Don't include unlocked-io.h; only the "#if TEST" code uses
41985         stdio, and performance isn't crucial there.
41986         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
41987         Bison 1.875 features as described below.
41988         All uses of "PC." replaced by "pc->".
41989         (YYSTYPE): Add a forward declaration.
41990         (yylex, yyerror): Use full prototypes in forward decls.
41991         Use "%pure-parser" rather than obsolescent "%pure_parser".
41992         Use %parse-param and %lex-param instead of obsolescent
41993         YYPARSE_PARAM and YYLEX_PARAM.
41994         (meridian_table, month_and_day_table, time_units_table,
41995         relative_time_table, time_zone_table, military_table,
41996         lookup_zone, lookup_word, get_date):
41997         Use NULL instead of 0 where appropriate.
41998         (to_hour): Avoid abort (), to avoid a dependency on
41999         stdlib.h.
42000         (yyerror, yylex): Now accepts parser_control * arg.
42001         (main) [TEST]: Use '\0' rather than 0 for char.
42002
42003 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
42006
42007 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42008
42009         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
42010         It's now the caller's responsibility to handle the case where
42011         !HAVE_GETPAGESIZE && !defined getpagesize.
42012
42013         * lib/mktime.c (leapyear): Arg is long int, not int.
42014
42015 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
42016
42017         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
42018
42019 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42020
42021         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
42022         missing.  Problem reported by James Youngman.
42023
42024 2004-10-16  Simon Josefsson  <jas@extundo.com>
42025
42026         * gnulib-tool: Fix comments.  Fix parse problem.
42027         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
42028
42029 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
42030
42031         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
42032         implementation of getopt_long.  Problem reported by Alexander Taler in:
42033         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
42034
42035 2004-10-15  Bruno Haible  <bruno@clisp.org>
42036
42037         * gnulib-tool: Untabify. Initialize supplied_libname.
42038         (func_usage): More homogenous output.
42039         (func_modules_transitive_closure, func_modules_to_filelist,
42040         func_emit_lib_Makefile_am): New functions.
42041         (func_import): New function, extracted from big case statement. Use
42042         func_get_license, func_modules_transitive_closure,
42043         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
42044         opt_lgpl. Don't use test -a, as it's not portable.
42045         (func_create_testdir): Use func_modules_transitive_closure,
42046         func_modules_to_filelist, func_emit_lib_Makefile_am.
42047
42048 2004-10-15  Bruno Haible  <bruno@clisp.org>
42049
42050         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
42051
42052 2004-10-15  Bruno Haible  <bruno@clisp.org>
42053
42054         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
42055         the portions belonging to each module.
42056         Suggested by Derek Robert Price <derek@ximbiot.com>.
42057
42058 2004-10-12  Simon Josefsson  <jas@extundo.com>
42059
42060         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42061         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
42062         to real functions.
42063
42064 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42065
42066         * modules/vsnprintf: New file.
42067
42068 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42069
42070         * m4/vsnprintf.m4: New file.
42071
42072 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42073
42074         * lib/vsnprintf.h: New file.
42075         * lib/vsnprintf.c: New file.
42076
42077 2004-10-11  Bruno Haible  <bruno@clisp.org>
42078
42079         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
42080         vsnprintf.
42081
42082 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42083
42084         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
42085
42086 2004-10-07  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
42089         fits into the provided buffer.
42090
42091 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42092
42093         * lib/diacrit.c, diacrit.h: Add GPL notice.
42094
42095         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
42096         notice.
42097         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
42098         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
42099         This avoids a potential constant-folding bug.
42100
42101 2004-10-05  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
42104         for the declaration of strsep.
42105
42106 2004-10-05  Bruno Haible  <bruno@clisp.org>
42107
42108         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
42109
42110 2004-10-04  Simon Josefsson  <jas@extundo.com>
42111
42112         * modules/memmem: New file.
42113         * tests/test-memmem.c: New file.
42114         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
42115
42116 2004-10-04  Simon Josefsson  <jas@extundo.com>
42117
42118         * m4/memmem.m4: New file.
42119
42120 2004-10-04  Simon Josefsson  <jas@extundo.com>
42121
42122         * lib/memmem.h: New file.
42123         * lib/memmem.c: New file, taken from glibc.
42124
42125 2004-10-04  Simon Josefsson  <jas@extundo.com>
42126
42127         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
42128         '#ifdef USE_UNLOCKED_IO'.
42129
42130 2004-10-04  Simon Josefsson  <jas@extundo.com>
42131
42132         * config/srclist.txt: Add memmem from glibc.
42133
42134 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42135
42136         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
42137
42138         * modules/argmatch, modules/argp, modules/closeout, modules/error,
42139         modules/exclude, modules/getdate, modules/getline,
42140         modules/getndelim2, modules/getpass, modules/getpass-gnu,
42141         modules/getusershell, modules/linebuffer, modules/md5,
42142         modules/mountlist, modules/posixtm, modules/readtokens,
42143         modules/readutmp, modules/regex, modules/sha1,
42144         modules/version-etc, modules/yesno:
42145         Remove dependency on unlocked-io.
42146
42147 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42148
42149         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
42150
42151         * m4/unlocked-io.m4: Add copyright notice.
42152         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
42153
42154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42155
42156         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
42157         * lib/xmalloc.c (xmemdup): Likewise.
42158         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
42159         XFREE): Remove these long-obsolescent macros.
42160         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
42161         * lib/xstrdup.c: Remove.
42162
42163         * lib/regex.c (re_comp): Cast gettext return value to char *,
42164         Problem reported by Martin Neitzel via Mark D. Baushke.
42165
42166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42167
42168         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
42169         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
42170         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
42171         regex.c, sha1.c, version-etc.c, yesno.c:
42172         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
42173         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
42174         the includer's responsibility.
42175
42176         Sync from coreutils.
42177
42178         * lib/modechange.c (mode_compile): Don't decrement a pointer that
42179         points to the start of a string, as the C Standard says the
42180         resulting behavior is undefined.
42181
42182         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
42183         simple -> simple_backups, numbered_existing ->
42184         numbered_existing_backups, numbered -> numbered_backups
42185         to avoid shadowing problems.  All uses changed.
42186         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
42187         * lib/backupfile.c (check_extension, numbered_backup):
42188         Rename locals to avoid shadowing 'basename'.
42189         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
42190         once.
42191
42192         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
42193         * lib/.cvsignore: Add getopt.h.
42194
42195 2004-10-04  Bruno Haible  <bruno@clisp.org>
42196
42197         * modules/README: New file.
42198         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
42199         not a module.
42200
42201 2004-10-02  Jim Meyering  <jim@meyering.net>
42202
42203         * lib/dirfd.h, getpagesize.h: Add copyright notice.
42204
42205 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42206
42207         * modules/strsep: New file.
42208
42209 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42210
42211         * m4/strsep.m4: New file.
42212
42213 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42214
42215         * lib/strsep.h: New file.
42216         * lib/strsep.c: New file.
42217
42218 2004-10-01  Simon Josefsson  <jas@extundo.com>
42219
42220         * lib/snprintf.c (snprintf): Handle size==0.
42221
42222 2004-10-01  Simon Josefsson  <jas@extundo.com>
42223             Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
42226         (snprintf): Declare 'args'.
42227
42228 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
42229
42230         * lib/snprintf.c: Remove comments as to why each header is needed.
42231
42232 2004-10-01  Bruno Haible  <bruno@clisp.org>
42233
42234         * MODULES.html.sh: Add strsep.
42235
42236 2004-09-30  Simon Josefsson  <jas@extundo.com>
42237
42238         * modules/snprintf: New file.
42239
42240 2004-09-30  Simon Josefsson  <jas@extundo.com>
42241
42242         * m4/snprintf.m4: New file.
42243
42244 2004-09-30  Simon Josefsson  <jas@extundo.com>
42245
42246         * lib/snprintf.h, lib/snprintf.c: New files.
42247
42248 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42249
42250         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
42251         (hol_entry_help): Never translate an empty string.
42252         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
42253         * lib/argp.h (OPTION_NO_TRANS): New option.
42254
42255 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42256
42257         * modules/argp (Maintainer): Replace Simon Josefsson
42258         by Sergey Poznyakoff.
42259
42260 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42261
42262         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
42263         changes merged back into glibc.
42264
42265 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42266
42267         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
42268
42269 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
42270
42271         * lib/xvasprintf.c: Include xalloc.h.
42272         (xvasprintf): Use xalloc_die, not xmalloc_die.
42273
42274 2004-09-29  Bruno Haible  <bruno@clisp.org>
42275
42276         * modules/alloca-opt: New file, derived from modules/alloca.
42277         * modules/allocsa: Depend on alloca-opt instead of alloca.
42278         * modules/setenv: Likewise.
42279         * modules/vasnprintf: Likewise.
42280         * MODULES.html.sh: Add alloca-opt.
42281
42282 2004-09-28  Simon Josefsson  <jas@extundo.com>
42283
42284         * gnulib-tool: New parameter --lgpl, to asseert that modules are
42285         LGPL, and to replace license template from GPL to LGPL.
42286
42287 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42288
42289         * modules/dummy: Change license to LGPL.
42290
42291 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42292
42293         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
42294
42295 2004-09-24  Simon Josefsson  <jas@extundo.com>
42296
42297         * modules/minmax (License): Change from GPL to LGPL.
42298
42299 2004-09-23  Simon Josefsson  <jas@extundo.com>
42300
42301         * gnulib-tool (--import): Typo.
42302
42303 2004-09-23  Simon Josefsson  <jas@extundo.com>
42304
42305         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
42306
42307 2004-09-22  Bruno Haible  <bruno@clisp.org>
42308
42309         * modules/*: Add 'License' field.
42310         * gnulib-tool: Accept --extract-license option.
42311         (func_get_license): New function.
42312
42313 2004-09-21  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42316         Reported by Simon Josefsson.
42317
42318 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42319
42320         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
42321         gl_AC_TYPE_LONG_LONG.
42322
42323 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
42326
42327 2004-09-18  Simon Josefsson  <jas@extundo.com>
42328         and  Paul Eggert  <eggert@cs.ucla.edu>
42329
42330         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
42331         calls with autoreconf.  Define GL_LIB.
42332
42333 2004-09-14  Karl Berry  <karl@gnu.org>
42334
42335         * config/srclist.txt: unsync setenv.c, sigh.
42336
42337 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42338
42339         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
42340         Problem reported by Bruno Haible in:
42341         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
42342
42343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42344
42345         * config/srclist.txt: Comment out argp-pvh.c.
42346
42347 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
42348
42349         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
42350         in case some system header has #define'd it.  Problem reported by
42351         Soeren D. Schulze in
42352         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
42353
42354 2004-09-09  Karl Berry  <karl@gnu.org>
42355
42356         * regex.[ch]: delete from the root.  These were supposed to be
42357                 synced with emacs cvs, but this has not happened for about
42358                 a year, and anyway nothing else uses emacs regex.[ch].
42359                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
42360                 lib/regex[.ch] is untouched.
42361
42362 2004-09-09  Bruno Haible  <bruno@clisp.org>
42363
42364         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
42365
42366 2004-09-09  Bruno Haible  <bruno@clisp.org>
42367
42368         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
42369         modifications.
42370         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
42371
42372 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42373
42374         * modules/xvasprintf: New file.
42375         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
42376
42377 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42378
42379         * lib/xvasprintf.h: New file.
42380         * lib/xvasprintf.c: New file.
42381         * lib/xasprintf.c: New file.
42382
42383 2004-09-08  Bruno Haible  <bruno@clisp.org>
42384
42385         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
42386
42387 2004-09-08  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
42390         length is > INT_MAX.
42391         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
42392         more.
42393
42394 2004-09-08  Bruno Haible  <bruno@clisp.org>
42395
42396         * lib/stdint_.h: New file, taken from GNU clisp.
42397
42398 2004-09-08  Bruno Haible  <bruno@clisp.org>
42399             Oskar Liljeblad  <oskar@osk.mine.nu>
42400
42401         * modules/stdint: New file.
42402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
42403
42404 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42405
42406         Import from coreutils.
42407         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
42408         strings on unbounded length.  alloca's performance benefits aren't
42409         that important here.
42410         (V_STRDUP): Remove.
42411         (parse_with_separator): New function, with most of the internals
42412         of the old parse_user_spec.  Allow user to omit both user and group,
42413         for compatibility with FreeBSD.
42414         Clone only the user name, not the entire spec.
42415         Do not set *uid, *gid unless entirely successful.
42416         Avoid memory leak in some failing cases.
42417         Fix regression for USER.GROUP reported by Dmitry V. Levin in
42418         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
42419         (parse_user_spec): Rewrite to use parse_with_separator.
42420
42421 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42422
42423         * modules/userspec: Don't depend on alloca.
42424
42425 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
42428
42429 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42430
42431         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
42432         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
42433         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
42434
42435 2004-08-16  Simon Josefsson  <jas@extundo.com>
42436
42437         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
42438         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
42439         Add --dry-run for --import.
42440         Let user provided command line parameters override configure.ac
42441         settings.
42442
42443 2004-08-12  Simon Josefsson  <jas@extundo.com>
42444
42445         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
42446         as discussed with Paul Eggert in threads rooted at
42447         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
42448         and
42449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
42450         Before, the test was empty, and relied on ELIDE_CODE in source
42451         code.)
42452         (gl_PREREQ_GETOPT): New macro.
42453         (gl_GETOPT): Use them.
42454
42455 2004-08-12  Simon Josefsson  <jas@extundo.com>
42456
42457         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
42458         * lib/getopt_.h: Renamed from getopt.h.
42459
42460 2004-08-12  Simon Josefsson  <jas@extundo.com>
42461
42462         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
42463         Change default library name from libfoo to libgnu.
42464         Now, if you have a configure.ac that says:
42465                 gl_SOURCE_BASE(gl)
42466                 gl_M4_BASE(gl/m4)
42467                 gl_MODULES(error getopt etcetera)
42468                 gl_INIT
42469         you can import all you need by running:
42470                 ../gnulib/gnulib-tool --import
42471
42472         * modules/getopt (Files): Rename getopt.h to getopt_.h.
42473         (Makefile.am): Rewrite, use logic from argz.
42474         (Include): Use <getopt.h> instead of "getopt.h".
42475
42476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42477
42478         * modules/argp (Files): Add m4/unlocked-io.m4.
42479         (Depends-on): Add extensions.
42480
42481 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42482
42483         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
42484         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
42485         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
42486         Check for program_invocation_name, program_invocation_short_name,
42487         flockfile, funlockfile, features.h, _getopt_long_only_r.
42488
42489 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42490
42491         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
42492         its complicated substitute.
42493         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
42494         and program_invocation_name.
42495         (__argp_basename) [!_LIBC]: Remove; the only use was
42496         replaced by its body.
42497         (__argp_short_program_name): Change condition from
42498         !defined __argp_short_program_name to
42499         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
42500         to match argp-namefrob.h.
42501         (__argp_failure): Don't assume strerror_r returns char *.
42502         * lib/argp-parse.c (N_): Define unconditionally.
42503         (argp_default_options): Fill out initializers with 0 to avoid
42504         gcc warnings.
42505
42506 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
42507
42508         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
42509         getopt1.c.
42510
42511 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42512
42513         Merge from coreutils.
42514
42515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
42516
42517         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
42518         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
42519
42520 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42521
42522         Merge from coreutils.
42523
42524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
42525         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
42526         for Reliant Unix 5.43.
42527
42528         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
42529         (union fooround): Use uintmax_t, not long int.
42530         The rest is a merge from libc:
42531         [defined _LIBC]: Include <shlib-compat.h>.
42532         (_obstack) [defined _LIBC]: Remove after 2.3.4.
42533
42534         * lib/settime.c (settime): Recode to avoid warning with
42535         Sun Forte C 6U2.
42536
42537         * lib/strverscmp.c: Convert to UTF-8.
42538
42539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42540
42541         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
42542         m4/uintmax_t.m4.
42543
42544 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42545
42546         * modules/xalloc-die: New file.
42547         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
42548
42549         * modules/md5 (Files): Add m4/uint32_t.m4.
42550         * modules/sha1: Renamed from modules/sha.
42551         (Files):
42552         Rename lib/sha.h to lib/sha1.h.
42553         Rename lib/sha.c to lib/sha1.c.
42554         Rename m4/sha.m4 to m4/sha1.m4.
42555         (lib_SOURCES): Likewise.
42556         (configure.ac): Rename gl_SHA to gl_SHA1.
42557         (Include): sha.h -> sha1.h.
42558
42559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42560
42561         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
42562         * m4/sha1.m4: Renamed from sha.m4.
42563         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
42564
42565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42566
42567         * lib/obstack.h (obstack_empty_p):
42568         Don't assume that chunk->contents is suitably aligned.
42569         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
42570         Likewise. Problem reported by Benno in
42571         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
42572
42573         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
42574         readable.  This could be improved further but it'd take some work.
42575
42576 2004-08-08  Simon Josefsson  <jas@extundo.com>
42577
42578         * modules/xgethostname (Depends-on): Remove exit and error (not
42579         used).
42580
42581         * modules/getpass-gnu: Add getpass.h.
42582         (Depends-on): Add stdbool.
42583         * modules/getpass: Add getpass.h.
42584
42585 2004-08-08  Simon Josefsson  <jas@extundo.com>
42586
42587         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
42588         Check getpass declaration.
42589
42590 2004-08-08  Simon Josefsson  <jas@extundo.com>
42591
42592         * lib/xgethostname.c: Don't include error.h (not used).
42593
42594         * lib/getpass.h: Add.
42595         * lib/getpass.c: Include getpass.h first.
42596
42597 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
42598
42599         * lib/xalloc-die.c: New file.
42600         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
42601         All uses removed.
42602         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
42603         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
42604         xalloc-die.c.
42605         (_, N_, xalloc_die): Move to xalloc-die.c.
42606         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
42607         so that we needn't mess with xalloc_msg_memory_exhausted.
42608
42609         * lib/sha1.h: Renamed from sha.h.
42610         (SHA1_H): Renamed from _SHA_H.
42611         (sha1_ctx): Renamed from sha_ctx.
42612         (sha1_init_ctx): Renamed from sha_init_ctx.
42613         (sha1_process_block): Renamed from sha_process_block.
42614         (sha1_process_bytes): Renamed from sha_process_bytes.
42615         (sha1_finish_ctx): Renamed from sha_finish_ctx.
42616         (sha1_read_ctx): Renamed from sha_read_ctx.
42617         (sha1_stream): Renamed from sha_stream.
42618         (sha1_buffer): Renamed from sha_buffer.
42619         * lib/sha1.c: Likewise; renamed from sha.c.
42620         Do not include <sys/types.h>.
42621         Include <stddef.h> rather than <stdlib.h>.
42622
42623 2004-08-08  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
42626         FILESYSTEM_PREFIX_LEN.
42627         * lib/progreloc.c: Likewise.
42628         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
42629
42630 2004-08-06  Simon Josefsson  <jas@extundo.com>
42631
42632         * modules/progname (Depends-on): Don't depend on stdbool.
42633
42634 2004-08-06  Simon Josefsson  <jas@extundo.com>
42635
42636         * modules/getsubopt: New file.
42637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42638         getsubopt.
42639
42640 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42641
42642         More merge from coreutils.
42643
42644         * m4/utimens.m4, m4/utimecmp.m4: New files.
42645         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
42646         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
42647         prereq.m4, sha.m4: Import changes from coreutils.
42648
42649 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         More merge from coreutils.
42652         * modules/raise, modules/readtokens0, modules/utimens:
42653         * modules/utimecmp, module/xnanosleep: New files.
42654         * modules/strftime: Add lib/strftime.h.
42655         Change include from <time.h> to "strftime.h".
42656         * modules/yesno: Add lib/yesno.h.
42657         * modules/backupfile: Remove lib/addext.c.
42658         * modules/euidaccess: Add stat-macros.h.
42659         * modules/canonicalize, modules/euidaccess,
42660         modules/filemode, modules/lchown, modules/makepath,
42661         modules/rmdir, modules/stat: Likewise.
42662
42663 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         Merge from tar.
42666         * lib/argp-help.c (make_hol, hol_append): Don't assume that
42667         SIZE_MAX is a valid preprocessor constant.
42668         (__argp_basename): Change from "#ifndef _LIBC"
42669         to "#ifndef __argp_short_program_name", so that
42670         we don't compile these functions for tar.
42671
42672         More merges from coreutils.
42673         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
42674         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
42675         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
42676         * lib/addext.c: Remove; no longer needed.
42677         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
42678         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
42679         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
42680         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
42681         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
42682         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
42683         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
42684         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
42685         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
42686         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42687         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
42688         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
42689         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
42690         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
42691         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
42692         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
42693         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
42694         Import changes from coreutils.
42695
42696 2004-08-05  Simon Josefsson  <jas@extundo.com>
42697
42698         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
42699
42700 2004-08-05  Simon Josefsson  <jas@extundo.com>
42701
42702         * m4/getsubopt.m4: New file.
42703
42704 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42705
42706         Merge from coreutils.
42707
42708         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
42709         * m4/getcwd-path-max.m4: New files.
42710
42711         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
42712         FILESYSTEM_PREFIX_LEN ->
42713         FILE_SYSTEM_PREFIX_LEN.
42714         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
42715         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
42716         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
42717         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
42718
42719         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
42720         prerequisite modules now handle the DOS stuff.
42721         Don't check for unistd.h.
42722
42723 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         Merge from coreutils.
42726
42727         * lib/.gdb-history: Remove; this doesn't belong here.
42728
42729         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
42730         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
42731         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
42732         * lib/getcwd.c: New files.
42733
42734         * lib/dirname.h: Include <stdbool.h>.
42735         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
42736         for consistency with POSIX terminology.  All uses changed.
42737         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
42738         (strip_trailing_slashes): Use bool for booleans.
42739         * lib/stripslash.c (strip_trailing_slashes): Likewise.
42740
42741         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
42742         sometimes returns a positive errno value even when it succeeds.
42743         (print_errno_message) [!LIBC]: Fall back on strerror if
42744         __strerror_r fails.
42745
42746         * lib/path-concat.c (mempcpy): Don't define if a system header defines
42747         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
42748         (longest_relative_suffix): New function.
42749         (path_concat): Use it.  Assume first argument is not NULL.
42750         Port to DOS.  Omit redundant separators.
42751         Report an error instead of returning NULL.
42752         Use mempcpy instead of memcpy.
42753         (xpath_concat): Remove: not declared or used.
42754
42755         * lib/same.h: Include <stdbool.h>
42756         (same_name): Return bool, not int.
42757         * lib/same.c (same_name): Likewise.
42758         (errno): Don't declare; we assume C89 or better now.
42759
42760         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
42761         if not already defined.
42762
42763         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
42764         * lib/dup-safer.c (errno): Likewise.
42765
42766 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
42767
42768         Merge from coreutils.
42769         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
42770         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
42771         * modules/path-concat: Don't depend on strdup.
42772
42773 2004-08-03  Simon Josefsson  <jas@extundo.com>
42774
42775         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
42776         * lib/progname.h: Don't include stdbool.h.
42777
42778 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42779
42780         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
42781         * MODULES.html.sh (func_all_modules): Remove fatal.
42782
42783 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
42786
42787 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
42788
42789         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
42790         working.
42791
42792 2004-08-02  Simon Josefsson  <jas@extundo.com>
42793
42794         * lib/getsubopt.h: New file, with comments from Bruno Haible.
42795         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
42796         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
42797
42798 2004-08-01  Simon Josefsson  <jas@extundo.com>
42799
42800         * lib/xgetdomainname.c: Include stdlib.h, for free().
42801
42802 2004-07-19  Bruno Haible  <bruno@clisp.org>
42803
42804         * MODULES.html.sh (func_all_modules): Add dummy.
42805
42806 2004-07-16  Simon Josefsson  <jas@extundo.com>
42807
42808         * modules/dummy: New file.
42809
42810 2004-07-16  Simon Josefsson  <jas@extundo.com>
42811
42812         * lib/dummy.c: New file.
42813
42814 2004-07-16  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/backupfile.h: Add extern "C" for C++.
42817         * lib/closeout.h: Likewise.
42818         * lib/copy-file.h: Likewise.
42819         * lib/findprog.h: Likewise.
42820         * lib/full-write.h: Likewise.
42821         * lib/pathname.h: Likewise.
42822         * lib/progname.h: Likewise.
42823         * lib/stpcpy.h: Likewise.
42824         * lib/stpncpy.h: Likewise.
42825         * lib/strcase.h: Likewise.
42826         * lib/strstr.h: Likewise.
42827         * lib/xalloc.h: Likewise.
42828
42829         * lib/mbswidth.h: Add extern "C" for C++.
42830         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
42831
42832 2004-07-13  Robert Millan  <robertmh@gnu.org>
42833
42834         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
42835
42836 2004-07-09  Simon Josefsson  <jas@extundo.com>
42837
42838         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
42839         failed without this.)
42840
42841 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42842
42843         * modules/chown (Files): Add lib/fchown-stub.c, since
42844         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
42845
42846 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42847
42848         * lib/fchown-stub.c: New file.
42849
42850 2004-06-24  Jim Meyering  <jim@meyering.net>
42851
42852         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
42853
42854 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * modules/argz: Omit "#include".
42857
42858         * MODULES.html.sh (func_all_modules): Add calloc, to match
42859         2004-06-01 addition of calloc module.
42860
42861 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * m4/argz.m4: New file, which is autoupdated from libtool.
42864
42865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42866
42867         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
42868         libtool.
42869
42870 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42871
42872         * config/srclist-update: Don't insist on "USA." before the
42873         close-comment, as libtool omits the period and puts the */ on a
42874         separate line.
42875         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
42876         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
42877
42878 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
42879
42880         * modules/argz: New file.
42881         * MODULES.html.sh (func_all_modules): Add argz.
42882
42883 2004-06-12  Jim Meyering  <jim@meyering.net>
42884         and  Paul Eggert  <eggert@cs.ucla.edu>
42885
42886         * modules/hash (Files): Add lib/xalloc.h.
42887         * modules/pipe (Depends-on): Add wait-process.
42888         * modules/stat (Depends-on): Add xalloc.
42889         * modules/userspec (Files): Add lib/userspec.h.
42890         * modules/xstrto
42891
42892         Upgrade from gettext-0.13.
42893         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
42894         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
42895         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
42896
42897 2004-06-10  Jim Meyering  <jim@meyering.net>
42898
42899         * lib/calloc.c: New file.
42900
42901 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
42902
42903         * lib/getdate.y (yylex): Allow space between sign and number.
42904         Problem reported by Dan Jacobson.
42905
42906 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
42907
42908         Merge from coreutils CVS.
42909
42910         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
42911         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
42912         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
42913         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
42914         xstrtol.m4: Fix copyright date and/or serial number.
42915
42916         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
42917         See if we need an fchown replacement.
42918         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
42919         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
42920         and use the replacement function if we detect either defect.
42921
42922         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
42923         gl_UTIMECMP.
42924
42925 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
42926         and  Jim Meyering  <jim@meyering.net>
42927
42928         Merge from coreutils CVS.
42929
42930         * lib/stat-macros.h: New file, with contents from file-type.h
42931         and coreutils' system.h.
42932         * lib/file-type.c: Include "stat-macros.h".
42933         * lib/file-type.h (file_type): Move all macro definitions to new file,
42934         stat-macros.h.
42935
42936         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
42937         Wrap old code with this conditional.
42938         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
42939         function that does not dereference symlinks.
42940         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
42941
42942         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
42943         dependency problems.
42944         (xreadlink): Accept new arg SIZE, for efficiency.
42945         All decls and uses changed.
42946         * lib/xreadlink.h: Include <stddef.h>, for size_t.
42947
42948         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
42949         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
42950
42951         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
42952         sysexits.h.
42953
42954 2004-06-01  Jim Meyering  <jim@meyering.net>
42955
42956         * m4/calloc.m4: New file.
42957
42958 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
42959
42960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
42961         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
42962         Also, fix a typo in a diagnostic.
42963
42964 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
42965
42966         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
42967         or AC_FUNC_REALLOC.
42968
42969 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
42970
42971         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
42972         macros to be defined.
42973         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
42974         the allocator returns NULL because the requested size is zero.
42975
42976 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
42977
42978         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
42979         var.  Add comment explaining why libc still defines it.  This
42980         merges the following patch from glibc:
42981         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
42982
42983 2004-05-20  Andreas Schwab  <schwab@suse.de>
42984
42985         * m4/free.m4: Replace free if it not known to work, not the other
42986         way round.
42987
42988 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
42989
42990         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
42991         present in glibc since revision 1.1 of this file.
42992         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
42993         obstack_alignment_mask, obstack_alloc, obstack_base,
42994         obstack_blank, obstack_blank_fast, obstack_chunk_size,
42995         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
42996         obstack_grow0, obstack_init, obstack_int_grow,
42997         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
42998         obstack_next_free, obstack_object_size, obstack_ptr_grow,
42999         obstack_ptr_grow_fast, obstack_room): Remove declarations of
43000         nonexistent functions.
43001
43002 2004-05-18  Karl Berry  <karl@gnu.org>
43003
43004         * config/srclist.txt: break link for vasnprintf.c.
43005
43006 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43007
43008         Port obstack to the AS/400, where pointers are 16 bytes wide and
43009         you cannot cast an integer to a valid pointer.  This patch is
43010         currently waiting to be integrated into glibc; see
43011         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
43012
43013         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
43014         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
43015         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
43016         (struct obstack): temp member is now a union of a pointer and
43017         an integer, instead of an integer.  All integer uses changed.
43018         This does not affect the physical layout of struct obstack,
43019         except on hosts (like the AS/400) where the size or alignment of
43020         void * is greater than that of ptrdiff_t.
43021         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
43022         __STDC__)]: Store temporary in pointer member of union, not
43023         integer member.
43024         * lib/obstack.c: Include <stddef.h>, for offsetof.
43025         (struct fooalign): Remove; it doesn't need a name.
43026         (union fooround): Change double to long double, and add void *.
43027         (DEFAULT_ALIGNMENT): Use offsetof to compute.
43028         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
43029         not a macro.  Hence the values are always int; so remove all
43030         casts-to-int in uses.
43031
43032 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43033
43034         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
43035         we can get this patch merged into glibc.
43036
43037 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43038             Paul Eggert  <eggert@cs.ucla.edu>
43039
43040         * m4/argp: Depend on alloca.
43041
43042 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43043             Paul Eggert  <eggert@cs.ucla.edu>
43044
43045         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
43046         freecoding.
43047
43048 2004-05-17  Bruno Haible  <bruno@clisp.org>
43049
43050         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
43051         precision that consists of a '.' followed by an empty digit string.
43052         Patch by Tor Lillqvist <tml@iki.fi>.
43053
43054 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43055
43056         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
43057         for backward compatibility with older code.  We need our own
43058         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
43059         it under some other name, and our alloca.h will define it.
43060
43061 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43062             Derek Price  <derek@ximbiot.com>
43063
43064         * lib/alloca.c: Include <alloca.h>, to get our interface.
43065         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
43066         include <alloca.h> first.  Use C89 prototype for alloca; this
43067         requires including <stddef.h> for size_t.  Use extern "C" if C++.
43068         Use #elif for simplicity, since we can assume C89 now.
43069         Don't try to source the system alloca.h since it will not be found
43070         and to prevent recursively including its replacement.
43071         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
43072         * lib/regex.c: Likewise.
43073
43074 2004-05-16  Derek Price  <derek@ximbiot.com>
43075             Paul Eggert  <eggert@cs.ucla.edu>
43076
43077         getline cleanup.  This changes the getndelim2 API: both order of
43078         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
43079         no delimiter).
43080
43081         * lib/getline.c: Don't include stddef.h or stdio.h, since our
43082         interface does that.
43083         (getline): Always use getdelim, so that we don't have two
43084         copies of this code.
43085         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
43086         if available.
43087         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
43088         (GETNDELIM2_MAXIMUM): New macro.
43089         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
43090         instead of the old practice of delim2==0.  All callers changed.
43091         Return -1 on overflow, instead of returning junk.
43092         Do not set *linesize unless allocation succeeds.
43093         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
43094         that we include sys/types.h.
43095         * lib/getnline.h: Likewise.
43096         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
43097         (getndelim2): Reorder arguments.
43098         * lib/getnline.c (getnline, getndelim):
43099         Don't discard the NMAX argument.
43100         (getnline): Invoke getndelim, to avoid code duplication.
43101         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
43102         of (size_t) -1 by callers of the getnline family.
43103
43104 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43105
43106         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
43107         Check for gettimeofday.
43108         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
43109         Check for settimeofday, stime.
43110
43111 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43112
43113         * lib/nanosleep.c (suspended): Change its type from int to
43114         sig_atomic_t volatile.
43115         (first_call): Make it private to rpl_nanosleep, and have it
43116         be zero initially as that's a bit faster.
43117         (my_usleep): Round up fractional times instead of truncating them,
43118         as this is the usual meaning for 'sleep'.
43119
43120         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
43121         doesn't work.
43122         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
43123         (ENOSYS): Define if not defined.
43124         (settime): Fall back on stime if it exists and settimeofday fails.
43125         But don't bother with fallbacks if a method fails with errno == EPERM.
43126
43127 2004-05-11  Jim Meyering  <jim@meyering.net>
43128
43129         Prior to this change, the save_cwd caller required read access to the
43130         current directory on most systems (ones with the fchdir function).
43131
43132         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
43133         fails, try write-only, and finally, resort to using xgetcwd.
43134
43135 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43136
43137         * lib/obstack.c, obstack.h: Import changes from libc.
43138
43139 2004-04-28  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
43142         also implicitly appends .exe to executables.
43143         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
43144         accepts Windows pathnames.
43145         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43146         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43147         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43148         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43149         Reported by Derek Robert Price <derek@ximbiot.com>.
43150
43151 2004-04-21  Karl Berry  <karl@gnu.org>
43152
43153         * config/srclist.txt (localcharset.c): break sync.
43154
43155 2004-04-20  Paul Eggert  <eggert@twinsun.com>
43156
43157         * m4/host-os.m4: Add a copyright notice.
43158
43159 2004-04-20  Jim Meyering  <jim@meyering.net>
43160
43161         Change UTILS_ to gl_ in AC_DEFINE'd names.
43162         Change utils_- and jm_-prefixed variables, too.
43163         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
43164         UTILS_FUNC_MKDIR_TRAILING_SLASH.
43165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
43166
43167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
43168         Don't emit trailing blanks.
43169         Also rename jm_-prefixed variables to have gl_ prefix.
43170
43171         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
43172         Also rename jm_-prefixed variables to have gl_ prefix.
43173
43174         * m4/jm-macros.m4: Reflect the renamings.
43175         * m4/prereq.m4: Likewise.
43176
43177 2004-04-20  Jim Meyering  <jim@meyering.net>
43178
43179         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
43180         memory.
43181
43182 2004-04-20  Jim Meyering  <jim@meyering.net>
43183             Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
43186         memory when realloc fails.
43187
43188 2004-04-19  Jim Meyering  <jim@meyering.net>
43189
43190         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
43191         now that readutmp.c may call `free (0)'.
43192
43193 2004-04-19  Bruno Haible  <bruno@clisp.org>
43194
43195         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
43196         * m4/inttypes_h.m4: Likewise.
43197         * m4/stdint_h.m4: Likewise.
43198         * m4/intmax_t.m4: Likewise.
43199         * m4/uintmax_t.m4: Likewise.
43200
43201 2004-04-18  Jim Meyering  <jim@meyering.net>
43202
43203         * m4/prereq.m4: Don't forbid jm_ prefix.
43204
43205         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
43206         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
43207         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
43208         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
43209         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
43210         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
43211         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
43212         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
43213         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
43214         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
43215         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
43216         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
43217         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
43218         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
43219         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
43220         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
43221         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
43222         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
43223         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
43224
43225 2004-04-18  Jim Meyering  <jim@meyering.net>
43226
43227         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
43228         failure, don't leak memory and do call END_UTMP_ENT.
43229
43230 2004-04-16  Jim Meyering  <jim@meyering.net>
43231
43232         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
43233         coreutils' stat program.
43234         (gl_PREREQ): Don't require jm_PREREQ_STAT.
43235
43236 2004-04-11  Paul Eggert  <eggert@twinsun.com>
43237
43238         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
43239         C89.
43240         (CHAR_BIT): Remove, since we assume C89.
43241         Include <stdint.h> if available, as per current Autoconf CVS advice.
43242
43243 2004-03-31  Jim Meyering  <jim@meyering.net>
43244
43245         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
43246         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
43247         * m4/xalloc.m4: Likewise.
43248
43249 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43250
43251         Merge from coreutils.
43252
43253         * m4/inttostr.m4: New file.
43254         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
43255         Require AM_STDBOOL_H and gl_TIMESPEC instead.
43256         Require gl_CLOCK_TIME.
43257         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
43258
43259 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43260
43261         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
43262         not bool, to be more consistent with Unix conventions.
43263         Suggested by Bruno Haible.
43264
43265         Merge from coreutils.
43266
43267         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
43268         * lib/umaxtostr.c: New files.
43269
43270         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
43271         the usual <time.h> dance.
43272         (get_date): Change signature to support fractional time stamps.
43273         All callers changed.
43274         * lib/getdate.y: Include "getdate.h" first, as we can now
43275         assume C89 and don't need to worry about 'const'.
43276         Similarly, include "unlocked-io.h" near start, not in middle.
43277         Include <limits.h>.
43278         (textint.value): Use long int rather than int.
43279         (textint.digits): Use size_t rather than int.
43280         (BILLION, LOG10_BILLION): New constants.
43281         (parser_control): New member rel_ns.  Members day_ordinal,
43282         time_zone, month, day, hour, minutes, rel_year, rel_month,
43283         rel_day, rel_hour, rel_minutes, rel_seconds
43284         are now long int, not int.  Member seconds is now struct timespec,
43285         not int.  New member timespec_seen.  Members dates_seen, days_seen,
43286         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
43287         not int.
43288         (%union.intval): Now long int, not int.
43289         New member timespec.
43290         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
43291         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
43292         (spec): Now is a timespec or an item list.
43293         (timespec, items): New nonterminals.
43294         (time, rel, relunit, number, get_date):
43295         Add support for fractional seconds.
43296         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
43297         (gmtime, localtime, mktime): Remove decls; not needed with C89.
43298         (to_hour): First arg is now long int, not int.
43299         (to_year): Returns long int, not int.
43300         Don't treat year -70 like 70.
43301         (tm_diff): Returns long int, not int.
43302         (lookup_word): Use bool instead of int when appropriate.
43303         (yylex): Use size_t for count, not int.
43304         Detect overflow when parsing large integer constants.
43305         Add support for fractions.
43306         (get_date): Make pointers 'const' if possible.
43307         Use more-portable code to detect integer overflow.
43308         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
43309         Don't use ctime; it's not reliable if the year has >4 digits.
43310
43311         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
43312         This is for compatibility with BSD.
43313
43314         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
43315         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
43316         From coreutils' system.h.
43317
43318         * lib/userspec.c: Don't include "posixver.h".
43319         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
43320         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
43321         compatible extension.  Simplify code by removing a boolean int
43322         that was always nonzero if a string was nonnull.
43323
43324 2004-03-30  Jim Meyering  <jim@meyering.net>
43325
43326         Merge from coreutils.
43327
43328         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
43329         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
43330         on some systems one must include <grp.h> before it.
43331         Reported by Christian Krackowizer.
43332
43333 2004-03-30  Jim Meyering  <jim@meyering.net>
43334
43335         Merge from coreutils.
43336
43337         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
43338
43339         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
43340         an empty input stream.
43341
43342         * lib/readtokens.c: Include <stdbool.h>.
43343         (readtoken): Use `size_t' rather than int/long.
43344         All callers adjusted.
43345         Use `bool' rather than `int' where appropriate.
43346         Use memset rather than an explicit loop.
43347         Use x2nrealloc rather than xrealloc.
43348         Allow the use of `\0' as a delimiter.
43349         (readtokens): Likewise.
43350         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
43351
43352 2004-03-30  Jim Meyering  <jim@meyering.net>
43353
43354         * m4/realloc.m4: Remove file, since now it does no more than
43355         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
43356         the `configure.ac' section of module/realloc.
43357         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
43358
43359 2004-03-30  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
43362         nonnull.
43363
43364 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43365
43366         Merge changes to getloadavg.c from coreutils and Emacs.
43367
43368         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
43369         Define to an expression, not to the empty string.
43370         Include cloexec.h and xalloc.h.
43371         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
43372         Use set_cloexec_flag rather than rolling our own.
43373         * lib/cloexec.c, lib/cloexec.h: New files.
43374
43375 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43376
43377         * m4/cloexec.m4: New file.
43378
43379 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43380
43381         * lib/getopt.h: Sync with libc CVS.
43382
43383 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43384             Bruno Haible  <bruno@clisp.org>
43385
43386         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
43387         mbswidth.
43388
43389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43390             Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/mbswidth.h: Include <wchar.h> only if
43393         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
43394         <wchar.h>.
43395         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
43396
43397 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43398
43399         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
43400         Sync with libc CVS.
43401         * lib/getopt_int.h: New file, also synced from libc.
43402
43403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43404
43405         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
43406         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
43407         Bring back getopt.c, getopt.h, getopt1.c.
43408
43409 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43410
43411         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
43412         All uses changed.  Check for sa_sigaction member; this fixes
43413         a bug first reported by Jason Andrade in
43414         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43415
43416 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43417
43418         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
43419         '#if' expressions.  Unlike the code it replaces, it does not
43420         depend on (defined _SC_PAGESIZE).  However, it does depend on
43421         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
43422         first reported by Jason Andrade in
43423         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
43424
43425 2004-02-25  Simon Josefsson  <jas@extundo.com>
43426
43427         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
43428
43429 2004-02-25  Simon Josefsson  <jas@extundo.com>
43430
43431         * lib/strdup.h: New file.
43432         * lib/strdup.c: Include it.
43433         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
43434         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
43435
43436 2004-02-23  Karl Berry  <karl@gnu.org>
43437
43438         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
43439         (from fencepost.gnu.org:/gd/gnuorg).
43440
43441 2004-02-23  Karl Berry  <karl@gnu.org>
43442
43443         * config/srclistvars.sh (GNUORG) [karl]: redefine.
43444         * config/srclist.txt: add maintain/standards documents.
43445
43446 2004-02-18  Bruno Haible  <bruno@clisp.org>
43447
43448         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
43449         Reported by Derek Robert Price <derek@ximbiot.com>.
43450
43451 2004-02-16  Karl Berry  <karl@gnu.org>
43452
43453         * config/mkinstalldirs, install-sh: update from automake.
43454
43455 2004-02-06  Karl Berry  <karl@gnu.org>
43456
43457         * m4/po.m4: update from gettext 0.14.1.
43458
43459 2004-02-06  Karl Berry  <karl@gnu.org>
43460
43461         * lib/config.charset: update from gettext 0.14.1.
43462
43463 2004-02-05  Paul Eggert  <eggert@twinsun.com>
43464
43465         Add comments and code, prompted by suggestions from Bruno Haible
43466         for sh-quote.
43467         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
43468         describing the enum quoting_style values.
43469         * lib/quotearg.c (quotearg_alloc): New function.
43470         (quotearg_buffer_restyled): Treat lone { and } as special.
43471         Treat = as special.  Work around bug with older shells
43472         that "see" a '\' that is really the 2nd byte of a multibyte char.
43473         Quote empty string with shell_quoting_style.
43474
43475 2004-02-03  Bruno Haible  <bruno@clisp.org>
43476
43477         * m4/pipe.m4: New file, from GNU gettext.
43478
43479 2004-02-03  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/pipe.h: New file, from GNU gettext.
43482         * lib/pipe.c: New file, from GNU gettext.
43483
43484 2004-01-27  Bruno Haible  <bruno@clisp.org>
43485
43486         * m4/execute.m4: New file, from GNU gettext.
43487
43488 2004-01-27  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/execute.h: New file, from GNU gettext.
43491         * lib/execute.c: New file, from GNU gettext.
43492         * lib/w32spawn.h: New file, from GNU gettext.
43493
43494 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43495
43496         Merge from diffutils.
43497
43498         * lib/file-type.c (file_type): Add typed memory objects.
43499         * lib/file-type.h (S_TYPEISTMO): New macro.
43500
43501         * lib/c-stack.h (c_stack_action): Remove argv argument.
43502         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
43503         (die): Don't calculate message unless segv_action returns.
43504         (get_stack_location, min_address_from_argv, max_address_from_argv,
43505         volatile stack_base, volatile_stack_size): Remove.
43506         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
43507         that every segmentation violation is a stack overflow.  (Ouch!)
43508         See Debian bug 136249 (still outstanding) for more info about why
43509         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
43510
43511 2004-01-24  Paul Eggert  <eggert@twinsun.com>
43512
43513         Exit-status fix from coreutils.
43514
43515         Use exit_failure consistently in place of EXIT_FAILURE,
43516         so that program exit statuses are consistent on failure.
43517
43518         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
43519         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
43520         * lib/argmatch.h: Comment fix to match the above.
43521         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
43522         Now a macro referring to exit_failure, instead of a separate
43523         variable.  Include "exitfail.h" to get it.
43524         * lib/xstrtol.h: Include "exitfail.h".
43525         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
43526
43527         * lib/long-options.c (parse_long_options): Use prototype
43528         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
43529         for clarity.
43530
43531 2004-01-21  Jim Meyering  <jim@meyering.net>
43532
43533         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
43534         so as not to conflict with a different-sized __mktime_internal
43535         function in GNU libc.
43536         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
43537         Problem building statically-linked `ls' reported by Michael Brunnbauer.
43538
43539 2004-01-20  Karl Berry  <karl@gnu.org>
43540
43541         * config/config.guess: update from config.
43542
43543         * config/srclistvars.sh: GNUWWWLICENSES for karl.
43544
43545 2004-01-20  Bruno Haible  <bruno@clisp.org>
43546
43547         Safer stack allocation.
43548         * lib/setenv.c: Include allocsa.h.
43549         (alloca): Remove fallback definition.
43550         (freea): Remove macro.
43551         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
43552         instead of freea.
43553
43554 2004-01-20  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/eealloc.m4: New file, from GNU gettext.
43557
43558 2004-01-20  Bruno Haible  <bruno@clisp.org>
43559
43560         * m4/allocsa.m4: New file, from GNU gettext.
43561
43562 2004-01-20  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/xallocsa.h: New file, from GNU gettext.
43565         * lib/xallocsa.c: New file, from GNU gettext.
43566
43567 2004-01-20  Bruno Haible  <bruno@clisp.org>
43568
43569         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
43570
43571 2004-01-20  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
43574         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
43575         specially.
43576
43577 2004-01-20  Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
43580         patch.
43581
43582 2004-01-20  Bruno Haible  <bruno@clisp.org>
43583
43584         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
43585
43586 2004-01-20  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/eealloc.h: New file.
43589
43590 2004-01-20  Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/binary-io.h: Avoid warnings on Cygwin.
43593
43594 2004-01-20  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/allocsa.h: New file, from GNU gettext.
43597         * lib/allocsa.c: New file, from GNU gettext.
43598
43599 2004-01-18  Karl Berry  <karl@gnu.org>
43600
43601         * doc/gpl.texi, doc/lgpl.texi: new files.
43602
43603 2004-01-18  Karl Berry  <karl@gnu.org>
43604
43605         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
43606         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
43607
43608 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43609
43610         Merge from coreutils.
43611
43612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
43613         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
43614         (gl_DEFAULT_POSIX2_VERSION): Move
43615         the documentation from 'configure' into 'config.hin',
43616         so that 'configure --help' isn't burdened by it and
43617         we don't have to worry about its formatting there.
43618         Reword the documentation so that it's more succinct
43619         and can be run together into a single paragraph.
43620         * m4/same.m4 (gl_SAME): Check for pathconf.
43621
43622 2004-01-15  Paul Eggert  <eggert@twinsun.com>
43623
43624         Merge from coreutils.
43625
43626         * lib/posixver.c: Include posixver.h.
43627
43628         * lib/same.c: Include <stdbool.h>, <limits.h>.
43629         (_POSIX_NAME_MAX): Define if not defined.
43630         (MIN): New macro.
43631         (same_name): If file names are silently truncated, report
43632         that the file names are the same if they are the same after
43633         the silent truncation.
43634
43635         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
43636         conversion function.
43637         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
43638         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
43639         longer needed.
43640
43641 2004-01-15  Jim Meyering  <jim@meyering.net>
43642
43643         Merge from coreutils.
43644
43645         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
43646         if no library is required.
43647         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
43648         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
43649         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
43650         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
43651         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
43652         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
43653         value, $ac_cv_search_crypt, if it's "none required".
43654         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
43655         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
43656         not gl_FUNC_GETLOADAVG.
43657         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
43658         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
43659
43660 2004-01-15  Jim Meyering  <jim@meyering.net>
43661
43662         Merge from coreutils.
43663
43664         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
43665         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
43666         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
43667
43668         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
43669         optional configure-time default.
43670
43671         * lib/version-etc.c (version_etc_copyright): Update copyright date.
43672
43673         * lib/xreadlink.c (xreadlink): Correct outdated comment.
43674
43675 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
43676
43677         Merge from coreutils.
43678
43679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
43680         value, $ac_cv_search_nanosleep, if it's "none required".
43681
43682 2004-01-14  Paul Eggert  <eggert@twinsun.com>
43683
43684         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
43685         with like-named macro in fnmatch.c.
43686         (EXT): Use an internal constant instead.
43687
43688         Merge fnmatch patches from glibc.
43689         * lib/fnmatch.c (mbsinit): Remove define.
43690         Add libc_hidden_ver (__fnmatch, fnmatch).
43691         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
43692         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
43693
43694 2004-01-14  Karl Berry  <karl@gnu.org>
43695
43696         * config/install-sh: update from automake.
43697
43698 2004-01-13  Karl Berry  <karl@gnu.org>
43699
43700         * config/install-sh: update from automake.
43701
43702 2004-01-09  Karl Berry  <karl@gnu.org>
43703
43704         * config/install-sh: update from automake.
43705
43706 2004-01-05  Karl Berry  <karl@gnu.org>
43707
43708         * config/config.{sub,guess}: update from config.
43709
43710 2003-12-31  Karl Berry  <karl@gnu.org>
43711
43712         * config/depcomp: update from automake.
43713
43714 2003-12-14  Karl Berry  <karl@gnu.org>
43715
43716         * lib/config.charset: update from gettext-runtime.
43717
43718 2003-12-03  Paul Eggert  <eggert@twinsun.com>
43719
43720         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
43721         Bug reported by Alfred M. Szmidt.
43722
43723 2003-12-03  Bruno Haible  <bruno@clisp.org>
43724
43725         * m4/gettext.m4: Upgrade from gettext-0.13.
43726         * m4/po.m4: Upgrade from gettext-0.13.
43727         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
43728         * m4/intmax.m4: New file, from gettext-0.13.
43729         * m4/printf-posix.m4: New file, from gettext-0.13.
43730
43731 2003-11-29  Karl Berry  <karl@gnu.org>
43732
43733         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
43734
43735 2003-11-25  Paul Eggert  <eggert@twinsun.com>
43736             Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/printf-parse.h: Don't include sys/types.h.
43739         (ARG_NONE): New macro.
43740         (char_directive): Change type of *arg_index fields to size_t.
43741         * lib/printf-parse.c: Don't include sys/types.h.
43742         (SSIZE_MAX): Remove macro.
43743         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
43744         Remove unnecessary overflow check.
43745         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
43746         fields.
43747
43748 2003-11-25  Bruno Haible  <bruno@clisp.org>
43749
43750         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
43751
43752 2003-11-25  Bruno Haible  <bruno@clisp.org>
43753
43754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
43755         gt_TYPE_SSIZE_T.
43756
43757 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43758
43759         * modules/alloca: Remove dependency on xalloc.
43760
43761 2003-11-24  Paul Eggert  <eggert@twinsun.com>
43762
43763         * lib/alloca.c: Remove dependency on xalloc module.
43764         (xalloc_die): Remove.
43765         (memory_full) [!defined emacs]: New macro.
43766         [!defined emacs]: Don't include xalloc.h.
43767         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
43768         address arithmetic overflows.  Change datatypes a bit to avoid
43769         unnecessary casts.
43770
43771 2003-11-22  Jim Meyering  <jim@meyering.net>
43772
43773         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
43774         s/size/size_t/.
43775
43776 2003-11-21  Karl Berry  <karl@gnu.org>
43777
43778         * config/config.{sub,guess}: update from config.
43779
43780 2003-11-18  Karl Berry  <karl@gnu.org>
43781
43782         * config/config.{sub,guess}: update from config.
43783
43784         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
43785
43786 2003-11-17  Paul Eggert  <eggert@twinsun.com>
43787
43788         * README: Mention that S+T cannot overflow if S is the size of
43789         an existing object and T is sufficiently small.
43790
43791 2003-11-17  Jim Meyering  <jim@meyering.net>
43792
43793         On systems without utime and without a utimes function capable of
43794         dealing with a NULL struct utimbuf* argument, this utime replacement
43795         could -- in unusual circumstances -- leak a file descriptor.
43796         * lib/utime.c: Include <unistd.h> and <errno.h>.
43797         (utime_null): Be sure to close `fd' and to preserve errno.
43798         Reported by Geoff Collyer via Arnold Robbins.
43799
43800 2003-11-17  Bruno Haible  <bruno@clisp.org>
43801
43802         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
43803         (Depends-on): Add xsize.
43804
43805 2003-11-17  Bruno Haible  <bruno@clisp.org>
43806
43807         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
43808
43809 2003-11-17  Bruno Haible  <bruno@clisp.org>
43810
43811         * lib/vasnprintf.c (alloca): Remove fallback definition.
43812         (freea): Remove definition.
43813         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
43814         Reported by Paul Eggert.
43815
43816 2003-11-16  Paul Eggert  <eggert@twinsun.com>
43817             Bruno Haible  <bruno@clisp.org>
43818
43819         Protect against address arithmetic overflow.
43820         * lib/printf-args.h: Include stddef.h.
43821         (arguments): Change type of field 'count' to size_t.
43822         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
43823         'unsigned int' where appropriate.
43824         * lib/printf-parse.h: Include sys/types.h.
43825         (char_directive): Change type of *arg_index fields to ssize_t.
43826         (char_directives): Change type of fields 'count', max_*_length to
43827         size_t.
43828         * lib/printf-parse.c: Include sys/types.h and xsize.h.
43829         (SSIZE_MAX): Define fallback value.
43830         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
43831         instead of 'int' where appropriate. Check a_allocated, d_allocated
43832         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
43833         * lib/vasnprintf.c: Include xsize.h.
43834         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
43835         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
43836         overflow. Avoid wraparound when converting a width or precision from
43837         decimal to binary.
43838
43839 2003-11-16  Bruno Haible  <bruno@clisp.org>
43840
43841         Update from GNU gettext.
43842         * lib/printf-parse.c: Generalize to it can be compiled for wide
43843         strings.
43844         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
43845         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
43846         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
43847         SNPRINTF): New macros.
43848         Don't include <alloca.h> if the file is used inside libintl.
43849         (local_wcslen): New function, for Solaris 2.5.1.
43850         (VASNPRINTF): Use it instead of wcslen.
43851
43852 2003-11-16  Bruno Haible  <bruno@clisp.org>
43853
43854         * lib/xsize.h (xmax): New function.
43855         (xsum, xsum3, xsum4): Declare as "pure" functions.
43856
43857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43858
43859         * modules/xalloc (Files): Undo latest change, since xalloc.h
43860         no longer needs SIZE_MAX or PTRDIFF_MAX.
43861
43862 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43863
43864         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
43865         gl_PTRDIFF_MAX.
43866
43867 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43868
43869         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
43870         "return", to pacify some unknown compiler.  Problem reported
43871         by Joerg Schilling.
43872
43873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
43874
43875         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
43876         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
43877         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
43878         heuristic is just as accurate as far as we know, and it removes a
43879         dependency on size_max.m4 and ptrdiff_max.m4.
43880
43881 2003-11-11  Bruno Haible  <bruno@clisp.org>
43882
43883         * modules/xsize (Files): Add m4/size_max.m4.
43884         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
43885
43886 2003-11-11  Bruno Haible  <bruno@clisp.org>
43887
43888         * m4/size_max.m4: New file.
43889         * m4/ptrdiff_max.m4: New file.
43890         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
43891         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
43892         (gl_XALLOC): Invoke it.
43893
43894 2003-11-11  Bruno Haible  <bruno@clisp.org>
43895
43896         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
43897         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
43898         defined.
43899
43900 2003-11-10  Paul Eggert  <eggert@twinsun.com>
43901
43902         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
43903         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
43904         rejected some allocations of exactly SIZE_MAX - 2 bytes.
43905         From Bruno Haible.
43906         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
43907         not (size_t) -1, since it's defined here.
43908
43909 2003-11-09  Karl Berry  <karl@gnu.org>
43910
43911         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
43912
43913 2003-11-06  Paul Eggert  <eggert@twinsun.com>
43914
43915         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
43916         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
43917         Reject sizes of exactly SIZE_MAX bytes.
43918         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
43919         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
43920
43921 2003-11-05  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/xsize.h: Include limits.h, to avoid a possible collision with
43924         SIZE_MAX defined in <limits.h> on Solaris.
43925
43926 2003-11-04  Jim Meyering  <jim@meyering.net>
43927
43928         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
43929         variable names, rather than @VAR@.
43930         * modules/poll: Likewise.
43931
43932 2003-11-04  Bruno Haible  <bruno@clisp.org>
43933
43934         * modules/xsize: New file.
43935         * modules/linebreak: Depend on xsize.
43936         * MODULES.html.sh (func_all_modules): Add xsize.
43937
43938 2003-11-04  Bruno Haible  <bruno@clisp.org>
43939
43940         * m4/xsize.m4: New file.
43941
43942 2003-11-04  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/xsize.h: New file.
43945         * lib/linebreak.c: Include xsize.h.
43946         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
43947         argument for overflow.
43948         Suggested by Paul Eggert.
43949
43950 2003-11-03  Karl Berry  <karl@gnu.org>
43951
43952         * config/config.{guess,sub}: update from config.
43953
43954 2003-11-03  Jim Meyering  <jim@meyering.net>
43955
43956         * modules/userspec (lib_SOURCES): Add userspec.h.
43957         (Include): Add "userspec.h".
43958         Improve description.
43959
43960 2003-11-03  Jim Meyering  <jim@meyering.net>
43961
43962         * lib/userspec.c: Include "userspec.h".
43963         * lib/userspec.h: New file.
43964
43965 2003-11-03  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
43968
43969 2003-11-03  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
43972         available, to avoid (extremely rare) race condition.
43973         Suggested by Paul Eggert.
43974
43975 2003-11-02  Karl Berry  <karl@gnu.org>
43976
43977         * config/srclist.txt (vasprintf.c): sync broken, sigh.
43978
43979 2003-10-31  Paul Eggert  <eggert@twinsun.com>
43980
43981         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
43982         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
43983         (read_filesystem_list): Set and use me_type_malloced.
43984         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
43985         whatever the type happens to be), for brevity and consistency.
43986         Check for size calculation overflow on Alphas running OSF/1.
43987
43988 2003-10-31  Jim Meyering  <jim@meyering.net>
43989
43990         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
43991
43992         * lib/linebuffer.c: Include <string.h> for declaration of memset.
43993
43994 2003-10-30  Paul Eggert  <eggert@twinsun.com>
43995             Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
43998         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
43999
44000 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44001
44002         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
44003         netbsd*-gnu*.  Suggested by Robert Millan.
44004
44005 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44006
44007         * modules/group-member: Depend on stdbool.
44008
44009 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44010
44011         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
44012
44013 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44014
44015         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
44016         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
44017         after the 'gnu' in these cases.  This fixes some bugs in the
44018         previous change, and is based on suggestions by Robert Millan.
44019
44020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44021
44022         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
44023         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
44024         no longer needed.
44025         * lib/quotearg.c (quotearg_n_options): Use it.
44026         * lib/group-member.c: Include <stdbool.h>.
44027         (free_group_info): Arg is now const *; don't free arg.
44028         (get_group_info): Now returns bool and accepts struct group_info *,
44029         rather than returning a malloc'ed struct group_info *.
44030         All uses changed.  Check for overflow in internal size calculation.
44031
44032         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
44033         rather than xmalloc/xrealloc.
44034         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
44035         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
44036         conformance bug: the old code used a pointer after freeing the
44037         storage that it addressed.
44038         * lib/hash.c (hash_initialize): Simplify the code by using
44039         xalloc_oversized rather than doing it by hand.
44040         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
44041         the buffer preserved.  Use free and xmalloc instead.
44042         * lib/quotearg.c (quotearg_n_options): Likewise.
44043         Use a simpler test for size overflow.  Don't use xalloc_oversized
44044         because unsigned int might be wider than size_t (!); this suggests
44045         that we should switch from unsigned int to size_t for slot numbers.
44046
44047 2003-10-28  Paul Eggert  <eggert@twinsun.com>
44048
44049         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
44050         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
44051         NetBSD kernels.  Requested by Richard Stallman.
44052
44053 2003-10-27  Paul Eggert  <eggert@twinsun.com>
44054
44055         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
44056         to allocate the returned structure.  Do not allocate a subarray,
44057         as x2nrealloc will do that.
44058         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
44059         instead of xnrealloc.
44060         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
44061
44062 2003-10-27  Bruno Haible  <bruno@clisp.org>
44063
44064         * lib/stdbool_.h: Better support for BeOS.
44065
44066 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44067
44068         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
44069         now uses inline.
44070
44071 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44072
44073         * lib/xalloc.h (xalloc_oversized): New static inline function, for
44074         callers that want to do their own size-overflow checking.  Include
44075         <stdbool.h>, since xalloc_oversized returns bool.
44076         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
44077         to use xalloc_oversized.
44078
44079         Add two functions x2realloc, x2nrealloc, for programs that grow
44080         arrays dynamically by doubling their sizes.
44081         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
44082         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
44083         New functions.
44084
44085         Port to C99 semantics for 'inline' of external functions.
44086         Bug reported by Bruno Haible.
44087         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
44088         with the old contents of xnmalloc.
44089         (xnmalloc, xmalloc): Use it.
44090         (xnrealloc_inline): New static inline function,
44091         with the old contents of xnrealloc.
44092         (xnrealloc, xrealloc): Use it.
44093
44094         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
44095         that.
44096
44097 2003-10-26  Karl Berry  <karl@gnu.org>
44098
44099         * config/srclist.txt (COPYING.DOC): no longer available from
44100         /gd/gnuorg; don't know where the ultimate source is.
44101
44102 2003-10-25  Paul Eggert  <eggert@twinsun.com>
44103
44104         Fix several address-calculation bugs in the hash modules,
44105         plus some minor code cleanup.
44106
44107         * lib/hash.h: Include <stdbool.h>, for bool.
44108         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
44109         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
44110         hash_get_n_entries, hash_get_max_bucket_length,
44111         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
44112         hash_rehash): Use size_t rather than unsigned.
44113         * lib/hash.c (struct hash_table, hash_get_n_buckets,
44114         hash_get_n_buckets_used, hash_get_n_entries,
44115         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
44116         hash_get_entries, hash_do_for_each, hash_string, is_prime,
44117         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
44118         Likewise.
44119         (SIZE_MAX): Define if not defined.
44120         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
44121         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
44122         hash_print):
44123         Use const * when possible.
44124         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
44125         (check_tuning): Fix bug: if tuning parameters were very close to
44126         0 or 1, rounding errors could have caused subscript violations.
44127         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
44128         (hash_initialize): Add 'fail:' label
44129         to free table and return NULL, and use it to simplify code.
44130         Use calloc rather than clearing the storage ourself.
44131         (hash_initialize, hash_rehash): Check for arithmetic overflow in
44132         buffer size calculations.
44133         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
44134         Include <stddef.h>, for size_t.
44135         * lib/hash-pjw.c (hash_pjw): Likewise.
44136         Switch to method described by Bruno Haible.
44137         Include <limits.h>, for CHAR_BIT.
44138         (SIZE_BITS): New macro.
44139
44140 2003-10-23  Paul Eggert  <eggert@twinsun.com>
44141
44142         * m4/getline.m4 (AM_FUNC_GETLINE):
44143         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
44144         hosts.  Problem reported by Derek Robert Price in
44145         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
44146         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
44147         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
44148
44149 2003-10-21  Paul Eggert  <eggert@twinsun.com>
44150
44151         * lib/getndelim2.c (getndelim2): When size calculation overflows,
44152         ceiling the allocation at NMAX bytes rather than silently
44153         discarding input bytes before NMAX is reached.  This makes
44154         a difference only if NMAX exceeds SIZE_MAX / 2.
44155
44156         * lib/obstack.c: Merge from glibc.
44157         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
44158         Add libc_hidden_def (_obstack_newchunk).
44159         (_obstack_free) [! defined _LIBC]: Remove.
44160         [defined _LIBC]: Make a strong alias from obstack_free, rather than
44161         a clone of the function body.
44162         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
44163         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
44164
44165         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
44166         glibc.
44167         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
44168         arg to memcpy.
44169
44170         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
44171         (obstack_ptr_grow_fast, obstack_int_grow_fast):
44172         Don't use lvalue casts, as GCC plans to remove support for them
44173         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
44174         was also present in the non-GCC version, indicating that this
44175         code had always been buggy and had never been widely used.
44176         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
44177         Use the fast variant of each macro, rather than copying the
44178         definiens of the fast variant; that way, we'll be more likely to
44179         catch future bugs in the fast variants.
44180
44181 2003-10-20  Bruno Haible  <bruno@clisp.org>
44182
44183         * modules/wait-process: New file.
44184         * MODULES.html.sh (func_all_modules): Add wait-process.
44185
44186 2003-10-20  Bruno Haible  <bruno@clisp.org>
44187
44188         * m4/wait-process.m4: New file.
44189
44190 2003-10-20  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/wait-process.h: New file, from GNU gettext.
44193         * lib/wait-process.c: New file, from GNU gettext.
44194
44195 2003-10-19  Jim Meyering  <jim@meyering.net>
44196
44197         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
44198         HPUX 10.20.
44199
44200 2003-10-18  Karl Berry  <karl@gnu.org>
44201
44202         * config/config.guess: update from config.
44203
44204 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44205
44206         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
44207         (getgroups): First arg is int, not size_t.
44208         Don't let 'free' mangle errno.
44209
44210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44211
44212         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
44213
44214 2003-10-16  Karl Berry  <karl@gnu.org>
44215
44216         * config/config.{guess,sub}: update from config.
44217
44218 2003-10-16  Jim Meyering  <jim@meyering.net>
44219
44220         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
44221         memcpy.
44222
44223 2003-10-15  Paul Eggert  <eggert@twinsun.com>
44224
44225         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
44226         (SIZE_MAX): Remove.
44227         (new_exclude, add_exclude_file): Initial size no longer needs to
44228         be a power of 2.
44229         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
44230         our own address arithmetic overflow checking.
44231
44232         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
44233         (fnmatch): Do not alloca more than 2000 wide characters;
44234         instead, use malloc for large buffers.
44235         Check for address arithmetic overflow, and return -1
44236         with errno set to ENOMEM in that case.
44237         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
44238         (NEW_PATTERN): Do not alloca more than 8000 bytes;
44239         instead, return -1.  Check for address arithmetic overflow.
44240
44241 2003-10-14  Paul Eggert  <eggert@twinsun.com>
44242
44243         Handle invalid suffixes and overflow independently, so that
44244         callers can treat them independently as needed.  Fix some bugs in
44245         suffix handling, e.g., "100k@" was not diagnosed as an invalid
44246         suffix for a human-readable blocksize.  The major caller-visible
44247         change is the addition of a new
44248         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
44249         that both overflow and suffix chars were found.
44250
44251         * lib/human.c (humblock): Don't check separately for invalid suffix
44252         char; that is xstrtoumax's job (now that its bug is fixed).
44253         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
44254         INTMAX_MAX]: New macros.
44255         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
44256         TYPE_MAXIMUM): New macros.
44257         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
44258         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
44259         if overflow occurs, as it's what __strtol does and it's more useful
44260         in practice.
44261         (__xstrtol): If __strtol reports some error other than ERANGE,
44262         reflect it to the caller as LONGINT_INVALID.  If it reports
44263         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
44264         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
44265         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
44266         value.
44267         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
44268         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
44269         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
44270         [defined UINTMAX_MAX]: New macros.
44271
44272 2003-10-14  Bruno Haible  <bruno@clisp.org>
44273
44274         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
44275
44276 2003-10-14  Bruno Haible  <bruno@clisp.org>
44277
44278         * m4/sig_atomic_t: New file, from GNU gettext.
44279         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
44280
44281 2003-10-14  Bruno Haible  <bruno@clisp.org>
44282
44283         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
44284         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
44285         Also use volatile where needed.
44286
44287 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44288
44289         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
44290         Change maintainer from Bruno Haible to 'all'.
44291
44292 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44293
44294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
44295
44296 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44297
44298         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
44299         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
44300         and define in terms of the other primitives.
44301         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
44302         (SIZE_MAX): Define if not already defined.
44303         (array_size_overflow): New function.
44304         (xalloc_die): Abort instead of exiting if 'error' returns.
44305         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
44306         (xmalloc, xrealloc): Use them.
44307         (xcalloc): Check for address arithmetic overflow.
44308         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
44309         a bit faster than strcpy.
44310
44311 2003-10-10  Simon Josefsson  <jas@extundo.com>
44312
44313         * modules/argp (Depends-on): Add restrict and strcase.
44314
44315 2003-10-10  Simon Josefsson  <jas@extundo.com>
44316
44317         * m4/argp.m4: Add AC_C_INLINE.
44318
44319 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44320
44321         Merge getpass from libc, plus a few fixes.
44322
44323         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
44324         Include <stdbool.h>.
44325         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
44326         __fsetlocking to empty.
44327         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
44328         do include <bits/libc-lock.h>.
44329         Do not include <fcntl.h>; not needed.
44330         [_LIBC]: Include <wchar.h>.
44331         (NOTCANCEL_MODE): New macro.
44332         (flockfile, funlockfile) [_LIBC]: New macros.
44333         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
44334         [!_LIBC]: New macros.
44335         (call_fclose): New function.
44336         (getpass): Use it.  Save tty stream separately; this simplifies the
44337         code and makes it more reliable if stdin happens to equal stdout.
44338         Invoke __fsetlocking on tty.
44339         Handle thread cancellation if needed.
44340         Namespace cleanup (use __tcgetattr, __getline).
44341         Use bool for Booleans.
44342         [USE_IN_LIBIO]: Handle wide streams.
44343         [!_LIBC]: Unconditionally do the fseek, since we don't know what
44344         stream might go where.
44345
44346         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
44347         doesn't have to include <stdio.h> before us.
44348         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
44349         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
44350         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
44351         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
44352         if not declared, so that we can use getpass.c code from libc without
44353         rewriting it.
44354         (flockfile, ftrylockfile, funlockfile): New macros.
44355
44356 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44357
44358         * modules/getpass: Depend on stdbool.
44359
44360 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44361
44362         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
44363
44364 2003-10-07  Karl Berry  <karl@gnu.org>
44365
44366         * config/config.{guess,sub}: update from config.
44367
44368 2003-10-06  Jim Meyering  <jim@meyering.net>
44369             Bruno Haible  <bruno@clisp.org>
44370
44371         This lets translators provide better translations for the
44372         "Written by ..." part of --version output.
44373         * lib/version-etc.h: Include stdarg.h.
44374         (version_etc_copyright): Declare as readonly.
44375         (version_etc): Make this function variadic with a NULL-terminated list
44376         of author name strings.
44377         (version_etc_va): New declaration.
44378         * lib/version-etc.c: Include stdarg.h, stdlib.h.
44379         (version_etc_copyright): Declare as readonly.
44380         (version_etc_va): New function. Provide a different translatable string
44381         for each possible number of authors < 10. Abbreviate when there are 10
44382         authors or more.
44383         (version_etc): Make this function variadic. Call version_etc_va.
44384         Suggestion from Gary V. Vaughan.
44385
44386         * lib/long-options.h (parse_long_options): Change prototype: the
44387         authors string is moved to the end and becomes variadic.
44388         * lib/long-options.c: Include stdarg.h.
44389         (parse_long_options): Make this function variadic, too.
44390         Call version_etc_va, not version_etc.
44391
44392 2003-10-06  Bruno Haible  <bruno@clisp.org>
44393
44394         * modules/version-etc-2: Remove file.
44395         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
44396
44397 2003-10-06  Bruno Haible  <bruno@clisp.org>
44398
44399         * modules/fatal-signal: New file.
44400         * MODULES.html.sh (func_all_modules): Add fatal-signal.
44401
44402 2003-10-06  Bruno Haible  <bruno@clisp.org>
44403
44404         * m4/fatal-signal.m4: New file.
44405         * m4/signalblocking.m4: New file, from GNU gettext.
44406
44407 2003-10-06  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/version-etc-2.h: Remove file.
44410         * lib/version-etc-2.c: Remove file.
44411
44412 2003-10-06  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/fatal-signal.h: New file, from GNU gettext.
44415         * lib/fatal-signal.c: New file, from GNU gettext.
44416
44417 2003-10-05  Paul Eggert  <eggert@twinsun.com>
44418
44419         * README: Rework advice for preventing empty .o files.
44420         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
44421         not <sys/types.h>.
44422
44423 2003-10-04  Karl Berry  <karl@gnu.org>
44424
44425         * lib/argp*: update from libc.
44426
44427 2003-10-04  Karl Berry  <karl@gnu.org>
44428
44429         * config/config.{guess,sub}: update from config.
44430
44431 2003-10-02  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/lchown (Include): Add lchown.h.
44434         * modules/time_r (Include): Use "..." syntax.
44435         * modules/xgetdomainname (Include): Add xgetdomainname.h.
44436
44437 2003-10-01  Simon Josefsson  <jas@extundo.com>
44438
44439         * MODULES.html.sh (func_all_modules): Move gethostname from section
44440         'based on' to section 'lacking' POSIX:2001.
44441
44442 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
44443
44444         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
44445         to output mode on the same stream.
44446
44447 2003-09-29  Paul Eggert  <eggert@twinsun.com>
44448
44449         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
44450         Fix arg typo in previous patch.
44451
44452 2003-09-28  Jim Meyering  <jim@meyering.net>
44453
44454         * lib/error.c: Correct cpp indentation.
44455
44456 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44457
44458         * modules/free: New file.
44459
44460 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44461
44462         * m4/free.m4: New file.
44463
44464 2003-09-27  Paul Eggert  <eggert@twinsun.com>
44465
44466         * lib/minmax.h (MIN, MAX)
44467         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
44468         Omit the special code that used __typeof__, since we worry that
44469         it could be more trouble than it's worth.  See:
44470         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
44471         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
44472
44473         * lib/free.c: New file.
44474
44475 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
44476
44477         Trivial fixes to Makefile.am parts of module listings.
44478         * modules/strstr: Append strstr.h to lib_SOURCES.
44479         * modules/strcase: Likewise, for strcase.h.
44480
44481 2003-09-27  Karl Berry  <karl@gnu.org>
44482
44483         * config/mkinstalldirs: update from automake.
44484
44485 2003-09-26  Paul Eggert  <eggert@twinsun.com>
44486
44487         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
44488         (error_tail): Do not loop, reallocating temporary buffer, since
44489         the output cannot contain more wide characters than the input
44490         contains bytes, the size must be big enough already.  This avoids
44491         one potential size overflow calculation.  Check for size overflow
44492         when calculating temporary buffer size.  Free temporary buffer
44493         when done, if it was allocated with malloc; this plugs a memory
44494         leak.  Remove casts from void * to pointers, that are no longer
44495         needed now that we're assuming C89 or better.
44496
44497         Merge error changes from glibc.
44498
44499         * lib/error.c, error.h: Update copyright notice header to match glibc.
44500         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
44501         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
44502         Disable cancellation while printing error.
44503         * lib/error.h: Prepend __ to parameter names.
44504
44505 2003-09-26  Jim Meyering  <jim@meyering.net>
44506
44507         * lib/error.c (error_tail): Move some declarations
44508         into inner scope where the local variables are used.
44509
44510 2003-09-26  Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
44513         stpncpy().
44514         Don't define stpncpy through config.h; it's now done through stpncpy.h.
44515
44516 2003-09-26  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/stpncpy.h (gnu_stpncpy): New declaration.
44519         (stpncpy): Define as alias for gnu_stpncpy.
44520         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
44521
44522 2003-09-25  Simon Josefsson  <jas@extundo.com>
44523
44524         * lib/xgetdomainname.h: New file.
44525         * lib/xgetdomainname.c: New file.
44526
44527 2003-09-25  Simon Josefsson  <jas@extundo.com>
44528             Bruno Haible  <bruno@clisp.org>
44529
44530         * modules/getdomainname: New file.
44531         * modules/xgetdomainname: New file.
44532         * MODULES.html.sh (func_all_modules): Add getdomainname,
44533         xgetdomainname.
44534
44535 2003-09-25  Simon Josefsson  <jas@extundo.com>
44536             Bruno Haible  <bruno@clisp.org>
44537
44538         * m4/getdomainname.m4: New file.
44539
44540 2003-09-25  Simon Josefsson  <jas@extundo.com>
44541             Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/getdomainname.h: New file.
44544         * lib/getdomainname.c: New file.
44545
44546 2003-09-25  Karl Berry  <karl@gnu.org>
44547
44548         * lib/argp-fmtstream.c, argp-help.c: update from libc.
44549
44550 2003-09-25  Karl Berry  <karl@gnu.org>
44551
44552         * config/install-sh: update from automake.
44553
44554 2003-09-25  Bruno Haible  <bruno@clisp.org>
44555
44556         * modules/version-etc-2: New file, from modules/version-etc with
44557         modifications.
44558         * MODULES.html.sh (func_all_modules): Add version-etc-2.
44559
44560 2003-09-25  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
44563         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
44564
44565 2003-09-24  Simon Josefsson  <jas@extundo.com>
44566
44567         * modules/xgethostname: Add xgethostname.h.
44568
44569 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44570
44571         * lib/linebuffer.c (freebuffer): Don't free the argument, just
44572         the buffer associated with the argument.  Bug reported by
44573         Simon Josefsson.
44574
44575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
44576
44577         * README: Document assumptions that 'int' is at least 32 bits
44578         wide, that integer arithmetic is 2's complement without overflow,
44579         that there are no holes in integer values, that adding sizes of
44580         two nonoverlapping objects can't overflow, and that all-bits-zero
44581         yields scalar zero.  Fix spelling and capitalization typos.
44582
44583 2003-09-19  Karl Berry  <karl@gnu.org>
44584
44585         * lib/argp.h: update from libc.
44586
44587 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44588
44589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
44590         to avoid spurious warnings like "AC_RUN_IFELSE was called before
44591         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
44592
44593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
44594
44595         * gnulib-tool: Use "test -h", not "test -L", for portability
44596         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
44597         (tags_regexp): Remove, since \| doesn't conform to POSIX.
44598         (sed_extract_prog): Issue s commands one-by-one, rather than
44599         using \| in one s command.
44600
44601 2003-09-16  Paul Eggert  <eggert@twinsun.com>
44602
44603         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
44604         input error, instead of returning NULL the next time we are called
44605         (and therefore losing track of errno).
44606
44607 2003-09-16  Bruno Haible  <bruno@clisp.org>
44608
44609         * gnulib-tool (func_create_testdir): Warn about duplicated
44610         dependencies.
44611
44612 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44613
44614         * modules/argmatch, modules/fatal, modules/obstack,
44615         modules/xalloc, modules/xgethostname: Sort dependencies by
44616         importance, not alphabetically.
44617
44618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
44619
44620         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
44621         fails, so that the caller gets the proper errno.
44622
44623         * lib/readutmp.c (read_utmp): Likewise.
44624         Check for fstat error.  Close stream and free storage
44625         when failing.
44626
44627 2003-09-14  Karl Berry  <karl@gnu.org>
44628
44629         * config/srclist.txt (strdup.c): disable for c89 changes.
44630
44631 2003-09-14  Jim Meyering  <jim@meyering.net>
44632
44633         * lib/getloadavg.c: Correct cpp indentation.
44634         * lib/strdup.c: Likewise.
44635         * lib/vasnprintf.c: Likewise.
44636
44637 2003-09-14  Bruno Haible  <bruno@clisp.org>
44638
44639         * modules/fwriteerror: New file.
44640         * MODULES.html.sh (func_all_modules): Add fwriteerror.
44641
44642 2003-09-14  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/fwriteerror.h: New file.
44645         * lib/fwriteerror.c: New file.
44646
44647 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44648
44649         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
44650         modules/xgethostname, modules/xalloc: Depend on exit.
44651
44652 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44653
44654         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
44655
44656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
44657         and AC_MINIX, too, so that their extensions are available.
44658
44659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
44660         This macro has been superseded by gl_BACKUPFILE.
44661
44662         More patches to assume C89 or better.
44663
44664         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
44665
44666         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
44667         unconditionally.
44668         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
44669         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
44670         Include <string.h>, <stdlib.h> unconditionally.
44671         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
44672         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
44673         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
44674         headers or for string.h.
44675         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
44676         or strtoul.
44677
44678         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
44679         headers.
44680         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
44681         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44682         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
44683         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
44684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44685         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
44686         memcpy, memset.
44687         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
44688         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
44689         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
44690         strtol.
44691         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
44692         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
44693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
44694         strtoul.
44695
44696 2003-09-12  Paul Eggert  <eggert@twinsun.com>
44697
44698         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
44699         * lib/obstack.c [!defined _LIBC]: Likewise.
44700         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
44701         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
44702         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
44703
44704         More changes to assume C89 or better.
44705
44706         * lib/error.c (error_tail): Assume vprintf.
44707
44708         * lib/argmatch.c (getenv): Remove decl.
44709         * lib/progreloc.c (get_full_program_name): Define via prototype.
44710         * lib/setenv.c (clearenv): Likewise.
44711         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
44712         needed.
44713         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
44714         (malloc, memcpy): Remove decls.
44715         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
44716         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
44717         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44718         (memcpy): Remove macro.
44719         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
44720         (__P): Remove.  All uses removed.
44721         (PTR): Remove.  All uses changed to void *.
44722         (CHAR_BIT, NULL): Remove.
44723         (spaces, zeros, memset_space, memset_zero)
44724         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
44725         Remove.
44726         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
44727         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
44728         Define with prototype.
44729         Remove now-unnecessary prototype decl.
44730         (extra_args_spec): Assume ANSI C.  All uses changed.
44731         (extra_args_spec_iso): Remove.
44732         (my_strftime, emacs_strftimeu): Define via prototype.
44733         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
44734         unconditionally.
44735         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
44736         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
44737         (strtoul, strtol): Remove decls.
44738         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
44739         LONG_MAX): Remove.
44740         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
44741         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
44742         (LOCALE_PARAM_PROTO): New macro.
44743         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
44744         (INTERNAL (strtol), strtol): Define with a prototype.
44745         (PARAMS): Remove.  All uses removed.
44746         * lib/tempname.c: Include <string.h> unconditionally.
44747         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
44748         * lib/xgethostname.c (main): Define with a prototype.
44749         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
44750         Include <stdlib.h> unconditionally.
44751         (calloc, malloc, realloc, free): Remove decls.
44752         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
44753         Include <stdlib.h> unconditionally.  Sort include file names.
44754         (strtod): Remove.
44755         (xstrtod): Define with a prototype.
44756         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
44757         (strtol, strtoul): Remove decls.
44758
44759 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44760
44761         More patches to assume C89 or better.
44762         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
44763         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
44764         string.h, memchr, STDC_HEADERS.
44765
44766 2003-09-11  Paul Eggert  <eggert@twinsun.com>
44767
44768         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
44769         Include <stdlib.h>, <string.h> unconditionally.
44770         Remove now-unnecessary cast to char *.
44771         * lib/strnlen.c: Include <string.h> unconditionally.
44772         * lib/yesno.c (yesno): Define with a prototype.
44773
44774 2003-09-11  Bruno Haible  <bruno@clisp.org>
44775
44776         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
44777
44778 2003-09-10  Jim Meyering  <jim@meyering.net>
44779
44780         * lib/error.c: Correct indentation of cpp directives.
44781
44782 2003-09-10  Bruno Haible  <bruno@clisp.org>
44783
44784         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
44785         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
44786         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
44787         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
44788         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
44789         <stdlib.h> and <string.h> checks.
44790         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
44791         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
44792
44793 2003-09-10  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/strcspn.c: Include <string.h> unconditionally.
44796         * lib/strpbrk.c: Include <string.h> unconditionally.
44797         * lib/strstr.c: Include <string.h> unconditionally.
44798         * lib/unicodeio.c: Include <string.h> unconditionally.
44799         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
44800         * lib/unsetenv.c: Likewise.
44801         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
44802         * lib/yesno.c: Include <stdlib.h> unconditionally.
44803         (rpmatch): Add prototype.
44804
44805 2003-09-09  Paul Eggert  <eggert@twinsun.com>
44806
44807         More patches to assume C89 or better.
44808         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
44809         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
44810         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
44811         or for string.h.
44812         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
44813         stdlib.h.
44814         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
44815         C headers.
44816         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
44817         string.h.
44818         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
44819         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
44820         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
44821         or for string.h.
44822         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
44823         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
44824         C headers.
44825         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
44826         memcpy.
44827         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
44828         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
44829         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
44830         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
44831         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
44832         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
44833         string.h, free.
44834         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
44835         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
44836         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
44837         C headers, or for string.h.
44838         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
44839         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
44840         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
44841         headers, memory.h, stdlib.h, string.h, strings.h.
44842         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
44843         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
44844         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
44845         strchr.
44846         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
44847         headers, memory.h, string.h.
44848         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
44849         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
44850         free.
44851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
44852         headers.
44853         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
44854         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
44855         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
44856         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
44857         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
44858
44859 2003-09-09  Paul Eggert  <eggert@twinsun.com>
44860
44861         More K&R removal.
44862
44863         * lib/acosl.c (main): Use a prototype.
44864         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
44865         tanl.c: Likewise.
44866
44867         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
44868
44869         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
44870         (getopt, etopt_long, getopt_long_only, _getopt_internal)
44871         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
44872         with a prototype.
44873         * lib/getopt.c (const): Remove macro.
44874         Include <string.h> unconditionally.
44875         (my_index): Remove; all uses changed to strchr.
44876         (strlen): Remove decl.
44877         (exchange): Remove forward decl; no longer needed.
44878         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
44879         Define with prototype.
44880         * lib/getopt1.c (const): Remove macro.
44881         (getopt_long, getopt_long_only, main): Define with prototype.
44882
44883         * lib/getugroups.c: Include <string.h> unconditionally.
44884
44885         * lib/getusershell.c: Include <stdlib.h> unconditionally.
44886         (getusershell, setusershell, endusershell, readname, main):
44887         Define with prototypes.
44888
44889         * lib/group-member.c: Include group-member.h first.
44890         Include <stdlib.h> unconditionally.
44891
44892         * lib/hard-locale.c: Include hard-locale.h first.
44893         Include <stdlib.h>, <string.h> unconditionally.
44894
44895         * lib/hash.c (free, malloc): Remove decls.
44896         Include <stdlib.h> unconditionally.
44897
44898         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
44899         (getenv): Do not declare.
44900
44901         * lib/idcache.c: Include <string.h> unconditionally.
44902
44903         * lib/long-options.c: Include long-options.h first, to test interface.
44904         Include <stdlib.h> unconditionally.
44905
44906         * lib/makepath.c: Include makepath.h first, to test interface.
44907         Include <stdlib.h> and <string.h> unconditionally.
44908
44909         * lib/linebuffer.c: Include <stdlib.h>.
44910         (free): Remove decl.
44911
44912         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
44913         stddef.h. rpl_malloc returns void *, not char *.
44914         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
44915         prototype.
44916
44917         * lib/md5.h: Include <limits.h> unconditionally.
44918         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
44919         (__P): Remove; all uses removed.
44920         * lib/md5.c: Include "md5.h" first.
44921         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
44922         md5_buffer, md5_process_bytes, md5_process_block):
44923         Define with prototypes.
44924         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
44925         * lib/sha.c: Include "sha.h" first.
44926         Include <stdlib.h>, <string.h> unconditionally.
44927
44928         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
44929         * lib/memcmp.c (__ptr_t): Likewise.
44930         * lib/memrchr.c (__ptr_t): Likewise.
44931         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
44932         Include <string.h> unconditionally.
44933         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
44934         * lib/memchr.c: Include <stdlib.h> unconditionally.
44935         * lib/memchr.c (LONG_MAX): Remove.
44936         * lib/memrchr.c (LONG_MAX): Likewise.
44937         * lib/memchr.c (__memchr): Define via a prototype.
44938         * lib/memrchr.c (__memrchr): Likewise.
44939         * lib/memcmp.c (__P): Remove, and remove all uses.
44940         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
44941         Remove forward decls; no longer needed.
44942         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
44943         Use types required by C89 in prototype.
44944
44945         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
44946         * lib/savedir.c: Likewise.
44947         * lib/mkdir.c (free): Remove decl.
44948         * lib/rmdir.c (rmdir): Define with a prototype.
44949         * lib/savedir.c: Include savedir.h first, to test interface.
44950
44951         * lib/mktime.c (STDC_HEADERS): Remove.
44952         Include <stdlib.h>, <string.h> unconditionally.
44953
44954         * lib/modechange.c: Include <stdlib.h> unconditionally.
44955         (malloc): Remove decl.
44956
44957         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
44958         (free): Remove decl.
44959
44960         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
44961         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
44962         (This type really should be intptr_t, but that's a C99ism.)
44963         (_obstack_memcpy): Remove: all uses changed to memcpy.
44964         Include <string.h> unconditionally.
44965         (struct obstack): Assume __STDC__ for types of members
44966         chunkfun, freefun, extra_arg.
44967         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
44968         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
44969         obstack_begin, obstack_specify_allocation,
44970         obstack_specify_allocation_with_arg, obstack_chunkfun,
44971         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
44972         Remove unprototyped decls and the macros that use them.
44973         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
44974         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
44975         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
44976         (defined __STDC__ && __STDC__)]:
44977         Remove nonprototyped code.
44978         Include <stdlib.h> unconditionally.
44979         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
44980         _obstack_allocated_p, _obstack_free, obstack_free,
44981         _obstack_memory_used, print_and_abort):
44982         Define using prototypes.
44983         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
44984         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
44985         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
44986         obstack_next_free, obstack_object_size, obstack_room) [0]:
44987         Remove unused, unprototyped code.
44988
44989         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
44990
44991         * lib/physmem.c (physmem_total, physmem_available, main): Define
44992         with prototypes.
44993
44994         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
44995         (main): Define with a prototype.
44996
44997         * lib/posixver.c (getenv): Remove decl.
44998
44999         * lib/putenv.c (malloc): Returns void *, not char *.
45000         Include <string.h> unconditionally.
45001         (strchr, memcpy, NULL): Do not define.
45002
45003         * lib/readtokens.c: Include readtokens.h first, to test interface.
45004         Include <stdlib.h>, <string.h> unconditionally.
45005         (init_tokenbuffer): Define with a prototype.
45006
45007         * lib/regex.c (PARAMS): Remove.  All uses removed.
45008         All uses of _RE_ARGS removed, too.
45009         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45010         unconditionally.
45011         (bzero): Assume memset exists.
45012         (memcmp, memcpy, NULL): Remove.
45013         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
45014         char, or assignments to local vars of type signed char.
45015         (init_syntax_once, PREFIX(extract_number_and_incr),
45016         PREFIX(print_partial_compiled_pattern),
45017         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
45018         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
45019         PREFIX(regex_grow_registers), PREFIX(regex_compile),
45020         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
45021         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
45022         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
45023         wcs_compile_range, byte_compile_range, truncate_wchar,
45024         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
45025         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
45026         count_mbs_length, wcs_re_match_2_internal,
45027         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
45028         PREFIX(alt_match_null_string_p),
45029         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
45030         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
45031         regfree, PREFIX(extract_number)): Define with prototype.  Remove
45032         now-unnecessary declaration, if any.
45033         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
45034         regcomp, regexec):
45035         Remove now-unnecessary casts among pointer types.
45036         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
45037
45038         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
45039         (free): Remove decl.
45040
45041         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
45042
45043         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
45044         (free): Remove decl.
45045
45046         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
45047         * lib/xgetcwd.c: Likewise.
45048
45049         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
45050         (free): Remove decl.
45051
45052         * lib/strchrnul.c (strchrnul): Define with a prototype.
45053         Fix bug: c_in was not converted to char before searching.
45054
45055         The following changes are not K&R related:
45056
45057         * lib/group-member.h: Include <sys/types.h>, so that this file is
45058         self-contained.
45059         * lib/makepath.h: Likewise.
45060
45061         * lib/getusershell.c (readname, default_index, line_size, readname):
45062         Use size_t, not int, for sizes.
45063         (readname): If the size overflows, report an error instead of
45064         looping forever.
45065
45066 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45067
45068         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
45069         libc.
45070
45071 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45072
45073         * README: New section: portability guidelines.
45074
45075 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45076
45077         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
45078         C89 spec.
45079
45080 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45081
45082         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
45083
45084 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45085
45086         Assume C89 or better; remove K&R cruft.
45087         A few of these changes were first proposed by Derek Robert Price
45088         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
45089
45090         * lib/addext.c: Include <string.h> unconditionally.
45091         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
45092         Don't declare getenv or malloc.
45093
45094         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
45095         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
45096         (NULL): Remove.
45097         (find_stack_direction, alloca): Use prototypes.
45098
45099         * lib/atexit.c (atexit): Define using a prototype.
45100
45101         * lib/basename.c, dirname.c, stripslash.c:
45102         Include <string.h> unconditionally.
45103
45104         * lib/bcopy.c: Include <stddef.h>.
45105         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
45106
45107         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
45108
45109         * lib/error.h (error, error_at_line, error_print_progname)
45110         [! (defined (__STDC__) && __STDC__)]: Remove decls.
45111         * lib/error.c: Include error.h first, to check interface.
45112         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45113         (VA_START): Remove; all uses changeed to va_start.
45114         (exit, strerror): Remove decls.
45115         (error_print_progname): Prototype uncondionally.
45116         Don't include <errno.h>; no longer needed.
45117         (private_strerror): Remove.
45118         (error_tail): Always define.
45119         (error, error_at_line): Assume C89 or better; always use prototypes.
45120         * lib/fatal.c: Include "fatal.h" first, to test interface.
45121         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45122         (VA_START): Remove; all uses changed to va_start.
45123         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
45124         this case.
45125         (exit): Remove decl.
45126         (fatal): Prototype unconditionally.  Assume va_start works.
45127         Abort at end, to pacify gcc.
45128
45129         * lib/euidaccess.c (main): Define with a prototype.
45130
45131         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
45132
45133         * lib/exitfail.c: Include <stdlib.h> unconditionally.
45134
45135         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
45136         prototypes.
45137         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
45138         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
45139         (getenv): Remove decl.
45140         (fnmatch): Define using a prototype.
45141         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
45142         (FCT): Define using a prototype.
45143
45144         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
45145
45146         * lib/gethostname.c: Include <stddef.h>.
45147         (gethostname): Define with prototype.  Length is size_t, not int.
45148
45149 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45150
45151         Assume C89 or better; remove K&R cruft.
45152         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
45153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
45154         string.h, getenv, malloc.
45155         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
45156         headers.
45157         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
45158         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
45159         do not check for strerror.
45160         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
45161         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
45162         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
45163         do not check for doprnt or vprintf.
45164         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
45165         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
45166
45167 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45168
45169         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
45170         getversion.c should have been removed then, but was accidentally
45171         preserved.
45172
45173         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
45174         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
45175
45176 2003-09-08  Karl Berry  <karl@gnu.org>
45177
45178         * config/config.sub, config.guess, srclistvars.sh: update from savannah
45179                 config, forget about prep.
45180
45181         * config/depcomp, missing: update from automake.
45182
45183 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45184
45185         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
45186         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45187
45188 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45189
45190         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
45191         copy_tm_result.  Bug reported by Simon Josefsson in
45192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45193
45194 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45195
45196         * m4/time_r.m4: New file.
45197         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
45198         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
45199         is. Check for timegm declaration.
45200         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
45201         Do not check for gmtime_r.
45202         Replace mktime if __mktime_internal does not exist and if mktime
45203         hasn't been replaced already.
45204
45205 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45206
45207         * lib/time_r.c, lib/time_r.h: New files.
45208
45209         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
45210         __localtime_r.
45211         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
45212         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
45213
45214         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
45215         __gmtime_r.
45216         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
45217         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
45218         Include <time_r.h>.
45219
45220         * lib/timegm.c: Switch to glibc implementation, with the following
45221         changes:
45222         [defined HAVE_CONFIG_H]: Include <config.h>.
45223         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
45224         (__mktime_internal) [!defined _LIBC]: New decl.
45225         (__gmtime_r) [!defined _LIBC]: New macro and function.
45226         (timegm): Use a prototype, since gnulib assumes C89.
45227         Do not bother declaring tmp to be const, as it's not really usefu.
45228         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
45229         (timegm): Declare only if HAVE_DECL_TIMEGM.
45230
45231 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45232
45233         * MODULES.html.sh (func_all_modules): Add time_r.
45234         * modules/time_r: New file.
45235         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
45236         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
45237
45238 2003-09-03  Paul Eggert  <eggert@twinsun.com>
45239
45240         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
45241         Bug reported by Lute Kamstra in
45242         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
45243
45244         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
45245         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
45246         course with correspondingly smaller numbers for tomorrow and
45247         yesterday.  From Tadayoshi Funaba.  Originally installed into
45248         sh-utils on 1999-08-07, but the patch got lost (I guess during the
45249         coreutils merge?).
45250
45251 2003-08-31  Simon Josefsson  <jas@extundo.com>
45252
45253         * modules/timegm: New file.
45254         * MODULES.html.sh (func_all_modules): Add timegm.
45255
45256 2003-08-31  Simon Josefsson  <jas@extundo.com>
45257
45258         * m4/timegm.m4: New file.
45259
45260 2003-08-31  Simon Josefsson  <jas@extundo.com>
45261
45262         * lib/timegm.h: New file.
45263         * lib/timegm.c: New file.  Based on
45264         wget-1.8.2/src/http.c:mktime_from_utc.
45265
45266 2003-08-31  Karl Berry  <karl@gnu.org>
45267
45268         * lib/argp.h: update from libc.
45269
45270 2003-08-28  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
45273         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
45274         followed by '#define fnmatch fnmatch_posix' gives an error.
45275
45276 2003-08-28  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
45279         warning on QNX, which defines O_BINARY to 000000.
45280
45281 2003-08-27  Jim Meyering  <jim@meyering.net>
45282
45283         * m4/mkstemp.m4: Require that the system mkstemp be able to create
45284         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
45285         would fail after 32.  Reported by Danny Levinson.  Details here:
45286         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
45287
45288 2003-08-24  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
45291         MSVC7 <stdio.h> is included later.
45292
45293 2003-08-22  Simon Josefsson  <jas@extundo.com>
45294
45295         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
45296
45297 2003-08-20  Karl Berry  <karl@gnu.org>
45298
45299         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
45300
45301 2003-08-20  Bruno Haible  <bruno@clisp.org>
45302
45303         * modules/progname: New file.
45304         * MODULES.html.sh (func_all_modules): Add progname.
45305
45306 2003-08-20  Bruno Haible  <bruno@clisp.org>
45307
45308         * lib/progname.h: New file, from GNU gettext.
45309         * lib/progname.c: New file, from GNU gettext.
45310         * lib/progreloc.c: New file, from GNU gettext.
45311
45312 2003-08-19  Jim Meyering  <jim@meyering.net>
45313
45314         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
45315         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
45316
45317 2003-08-19  Bruno Haible  <bruno@clisp.org>
45318
45319         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
45320         more.
45321
45322 2003-08-19  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/xstrdup.c: Assume <string.h> exists.
45325
45326 2003-08-18  Paul Eggert  <eggert@twinsun.com>
45327
45328         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
45329         in makefile rules.
45330
45331 2003-08-18  Jim Meyering  <jim@meyering.net>
45332
45333         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
45334         * m4/lib-ld.m4: Likewise.
45335
45336 2003-08-18  Jim Meyering  <jim@meyering.net>
45337
45338         * lib/setenv.h: Indent nested cpp directive.
45339         * lib/vasnprintf.c: Remove trailing blanks.
45340
45341 2003-08-17  Simon Josefsson  <jas@extundo.com>
45342
45343         * modules/xstrndup: New file.
45344         * MODULES.html.sh (func_all_modules): Add xstrndup.
45345
45346 2003-08-17  Simon Josefsson  <jas@extundo.com>
45347
45348         * modules/argp: Fix autoconf macro name. Add more dependencies.
45349
45350 2003-08-17  Simon Josefsson  <jas@extundo.com>
45351
45352         * m4/xstrndup.m4: New file.
45353
45354 2003-08-17  Simon Josefsson  <jas@extundo.com>
45355
45356         * m4/argp.m4: New file.
45357
45358 2003-08-17  Simon Josefsson  <jas@extundo.com>
45359             Bruno Haible  <bruno@clisp.org>
45360
45361         * lib/xstrndup.h: New file.
45362         * lib/xstrndup.c: New file.
45363
45364 2003-08-17  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/strndup (Files, Include): Add lib/strndup.h.
45367
45368 2003-08-17  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/euidaccess (Files): Add lib/euidaccess.h.
45371
45372 2003-08-17  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/strndup.h: New file.
45375
45376 2003-08-17  Bruno Haible  <bruno@clisp.org>
45377
45378         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
45379         like AC_GNU_SOURCE.
45380         * modules/extensions (configure.ac): Comment out the invocation of
45381         gl_USE_SYSTEM_EXTENSIONS.
45382
45383 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45384
45385         Merges from coreutils, etc.
45386         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
45387         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
45388         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
45389         fixing a typo.
45390         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
45391         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
45392
45393 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45394
45395         Document merge from coreutils.
45396         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
45397         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
45398         * modules/utime: Add m4/utimes-null.m4.
45399
45400 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45401
45402         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
45403         space, undoing this 2003-08-12 change:
45404         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45405
45406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45407
45408         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
45409         strtoul.c from libc, undoing this 2003-08-12 change:
45410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45411
45412 2003-08-16  Jim Meyering  <jim@meyering.net>
45413
45414         Merges from coreutils.
45415         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
45416         prefix.  Adjust cache variables similarly.  Create 500 rather than
45417         just 300 files, to exercise bug on Darwin6.5, too.
45418         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
45419         $missing_dir.
45420         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
45421         AM_SYS_POSIX_TERMIOS.
45422         Reported by mkc@mathdogs.com.
45423         Also change use of $am_cv_sys_posix_termios
45424         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
45425         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
45426         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
45427         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
45428         in /proc/mounts until it finds one with matching device number.  This
45429         is unnecessary when the FILE argument *is* a mount point.  No stat call
45430         is necessary in that case.  So, disable the statvfs-testing code on
45431         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
45432         as RedHat bug# 84846.
45433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45434         to 1MB, so as not to render systems with no stack size limit (e.g.,
45435         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45436         Include <unistd.h>.  On some systems,
45437         it is required for the definition of _SC_PAGESIZE.
45438
45439 2003-08-16  Jim Meyering  <jim@meyering.net>
45440
45441         Merge from coreutils.
45442         * lib/xstrtoimax.c: #else #if -> #elif.
45443         * lib/xstrtoumax.c: Likewise.
45444
45445 2003-08-16  Jim Meyering  <jim@meyering.net>
45446
45447         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
45448         * m4/utimes.m4: Removed.
45449         * m4/utimes-null.m4: Renamed from utimes.m4.
45450
45451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
45452         to 1MB, so as not to render systems with no stack size limit (e.g.,
45453         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
45454         Include <unistd.h>.  On some systems,
45455         it is required for the definition of _SC_PAGESIZE.
45456
45457 2003-08-16  Jim Meyering  <jim@meyering.net>
45458         and Paul Eggert  <eggert@cs.ucla.edu>
45459
45460         Merges from coreutils, etc.
45461
45462         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
45463         using the latest version from cvs.  This avoids problems with #line
45464         directives using a vendor (Sun) compiler.
45465         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
45466         Don't set GETGROUPS_LIB here; now it's
45467         done via getgroups.m4's wrapper function.
45468         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
45469         rather than just in sh-util/configure.in, so that the
45470         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
45471         same.
45472         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
45473         AC_FUNC_GETLOADAVG where to find getloadavg.c.
45474         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
45475         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
45476         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
45477         Remove code that is now done by the newly-required macros.
45478         Append $(EXEEXT) to DF_PROG.
45479         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
45480         Do not invoke or require the following here,
45481         since prereq.m4 or some gnulib .m4 now does this for us:
45482         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
45483         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
45484         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
45485         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
45486         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
45487         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
45488         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
45489         AC_FUNC_OBSTACK.
45490         Do not replace the following functions, as this is now the job
45491         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
45492         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
45493         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
45494         atexit getpass, strdup, getpagesize.
45495         Replace 'raise'.
45496         Do not check for the following functions, as this is now the job
45497         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
45498         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
45499         setregid.
45500         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
45501         Check for sys/sysctl.h.
45502         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
45503         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
45504         of checking for ssize_t ourselves.
45505
45506         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
45507         Require every macro that gnulib/modules/* suggests for us.
45508         (jm_PREREQ_ADDEXT): New macro.
45509         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
45510         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
45511
45512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
45513         (gl_PHYSMEM): Use it.
45514         Also check for `table' function.
45515         Check for new headers and functions.
45516         Add check for sys/sysmp.h.
45517         With suggestions from Kaveh Ghazi.
45518         Ignore headers that are present but cannot be compiled.  This
45519         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
45520         C 5.4.
45521
45522 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45523
45524         Document merge from coreutils.
45525         * modules/userspec: Depend on posixver.
45526         * modules/strftime: Depend on tzset.
45527
45528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45529
45530         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
45531         rather than tab, after '#' in shell-script copyright notices.
45532         Suggested by Bruno Haible.
45533
45534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
45535
45536         * config/srclist-update: Use three spaces, rather than tab, after '#'
45537         in shell-script copyright notices.  Suggested by Bruno Haible.
45538         Remove unnecessary parenthesization in regular expression.
45539
45540 2003-08-15  Jim Meyering  <jim@meyering.net>
45541
45542         Merge from coreutils.
45543         * lib/xgethostname.c: Include <stdlib.h>.
45544         (xghostname): Don't exit for anything other than memory-related
45545         failure; just return NULL.
45546         * lib/userspec.c: Include "posixver.h".
45547         (parse_user_spec): Accept `.' as a separator only
45548         in pre-POSIX-200112 mode.
45549         * lib/strtoimax.c: Use #elif rather than #else #if.
45550         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
45551         Remove function, now that we can rely on a working tzset function.
45552         [!_LIBC]: Ensure that the required autoconf test has been run.
45553         [!defined _NL_CURRENT && HAVE_STRFTIME]:
45554         Use underlying_strftime for %r.
45555         * lib/sha.c: Merge in some clean-up and optimization changes from
45556         glibc.
45557         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
45558         Ensure that it is a multiple of 64.
45559         Rearrange loop exit tests so as to avoid performing an
45560         additional fread after encountering an error or EOF.
45561         * lib/realloc.c: Update copyright date.
45562
45563 2003-08-15  Jim Meyering  <jim@meyering.net>
45564         and Paul Eggert  <eggert@twinsun.com>
45565
45566         Merge from coreutils.
45567         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
45568         member but strut utmpx does not.  Needed for AIX 4.3.3.
45569         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
45570
45571 2003-08-15  Jim Meyering  <jim@meyering.net>
45572         and Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         Merges from coreutils, etc.
45575         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
45576         Require gl_FUNC_TZSET_CLOBBER.
45577         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
45578         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
45579         members.
45580
45581 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45582
45583         Help the merge from coreutils.
45584         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
45585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
45586         * m4/tzset.m4: Use it too.
45587
45588 2003-08-14  Paul Eggert  <eggert@twinsun.com>
45589
45590         * modules/tzset: New file.
45591
45592 2003-08-14  Jim Meyering  <jim@meyering.net>
45593
45594         Merges from coreutils.
45595         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
45596         variable names, rather than @FNMATCH_H@.
45597         * modules/alloca: Likewise for $(ALLOCA_H).
45598
45599         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
45600         the three copies of the literal target, `fnmatch.h'.
45601         * modules/alloca (alloca.h): Likewise.
45602
45603 2003-08-14  Jim Meyering  <jim@meyering.net>
45604
45605         Merge from coreutils.
45606         * m4/tzset.m4: New file.
45607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
45608         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
45609         otherwise, AIX 5.1 systems would end up using the latter.
45610         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
45611         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
45612         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
45613         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
45614
45615 2003-08-14  Jim Meyering  <jim@meyering.net>
45616
45617         Merge from coreutils.
45618         * lib/obstack.h: Whitespace changes.
45619         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
45620         and xcalloc return values.
45621         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
45622         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
45623         hang on OSF/1 5.1 for DIR on both local and remote file systems.
45624         Reported by (and fix confirmed by) Nelson H. F. Beebe.
45625         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
45626         error from mntctl.
45627         Use mntctl's return value to drive the entry-processing loop, since
45628         we can't rely on the value of the vmt_length member in the last
45629         entry.  On some systems doing so could result in exhausting
45630         virtual memory.  Based in part on a patch from Mike Jetzer.
45631
45632 2003-08-14  Jim Meyering  <jim@meyering.net>
45633         and Paul Eggert  <eggert@twinsun.com>
45634
45635         Merges from coreutils, plus other fixes.
45636         * lib/physmem.c: Merge in portability changes from gcc/libiberty
45637         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
45638         for credits and details.  Thanks to Kaveh Ghazi for helping
45639         to keep these files in sync.
45640         (ARRAY_SIZE): Define it.
45641         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
45642         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
45643         (memcasecmp): Don't assume size_t fits in unsigned int.
45644         Remove casts and duplicate code.
45645         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
45646         (memcpy): Remove definition.
45647         Merge in some clean-up and optimization changes from glibc.
45648         [BLOCKSIZE]: Move definition to top of file.
45649         Ensure that it is a multiple of 64.
45650         Rearrange loop exit tests so as to avoid performing an
45651         additional fread after encountering an error or EOF.
45652         * lib/md5.h (md5_uintptr): Define.
45653         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
45654         return to the initial working directory.  Preserve errno
45655         for caller.
45656         * lib/idcache.c: Include "xalloc.h".
45657         (xmalloc, xrealloc): Remove decls.
45658         (getuser): Remove casts no longer required in C89.
45659         * lib/human.c: Include stdio.h, for sprintf.
45660         * lib/group-member.c: Include "xalloc.h".
45661         (xmalloc, xrealloc): Remove decls.
45662         (get_group_info): Remove casts no longer required in C89.
45663         * lib/getusershell.c (readname): Remove casts no longer required in
45664         C89.
45665         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
45666         * lib/getline.c: Whitespace fix, from coreutils.
45667
45668 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45669
45670         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
45671         Check for isascii.
45672
45673         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45674         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45675         Undo previous (whitespace-only) change.
45676
45677 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45678
45679         * lib/exclude.c: Include <ctype.h>
45680         (IN_CTYPE_DOMAIN): New macro.
45681         (is_space): New fn.
45682         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
45683         and empty lines.
45684
45685         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45686         Undo previous (whitespace-only) change.
45687
45688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
45689
45690         * config/srclist-update: Change update back to the old behavior,
45691         leaving whitespace alone.  Use one 'sed' command rather than a
45692         pipeline.
45693         (fixlicense): Now a variable, not a function.
45694         (remove_trailing_blanks): Remove.
45695         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
45696         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45697         Undo previous (whitespace-only) change.
45698
45699 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45700
45701         Merge from coreutils.
45702         * modules/euidaccess: Add lib_SOURCES, include for new
45703         file euidaccess.h
45704
45705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45706
45707         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
45708         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
45709         Normalize leading white space and remove trailing white space.
45710
45711         Merge from coreutils
45712         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
45713
45714         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
45715         0.12.1.  These files are now being upgraded automatically by
45716         ../config/srclist-update.
45717
45718 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45719
45720         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
45721         Normalize leading white space and remove trailing white space.
45722         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
45723         notice, as per ../config/srclist-update.
45724
45725         Merge from coreutils.
45726         * lib/euidaccess.h: New file.
45727         * lib/euidaccess.c: Include it.
45728         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
45729         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
45730         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
45731
45732 2003-08-12  Paul Eggert  <eggert@twinsun.com>
45733
45734         * config/srclist-update: Add copyright notice.
45735         (remove_id_lines, remove_trailing_blanks): New constants.
45736         (fixfile): Use them to normalize spacing a bit in copied files.
45737         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
45738         Normalize leading white space and remove trailing white space.
45739
45740         * config/texinfo.tex: Sync with texinfo.
45741
45742         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
45743         strtoul.c from libc, to merge coreutils whitespace changes.
45744
45745         * config/srclist.txt: Get the following m4 files from gettext:
45746         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
45747         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
45748         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
45749         wint_t.m4.
45750
45751 2003-08-12  Karl Berry  <karl@gnu.org>
45752
45753         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
45754         been made.
45755
45756 2003-08-11  Paul Eggert  <eggert@twinsun.com>
45757
45758         * modules/gnu-source, m4/gnu-source.m4:
45759         Remove; we're assuming Autoconf 2.54 or later now.
45760         Suggested by Bruno Haible.
45761         * MODULES.html.sh (func_all_modules): Remove gnu-source.
45762
45763 2003-08-11  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
45766
45767 2003-08-11  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
45770         (vasnprintf): Use it instead of wcslen.
45771
45772 2003-08-11  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
45775         value to ensure that _Bool promotes to int. Use #define for _Bool when
45776         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
45777
45778 2003-08-10  Karl Berry  <karl@gnu.org>
45779
45780         * lib/regex.h: update from libc (whitespace fix).
45781
45782 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45783
45784         Merge some files from coreutils.  These changes were
45785         originally made by Jim Meyering.
45786         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
45787         many older Unixes require this.
45788         * lib/alloca.c (alloca): Remove cast to argument of free;
45789         no longer needed in C89.
45790         * lib/alloca_.h, regex.h: Fix white space to match
45791         what GNU indent does.
45792
45793 2003-08-09  Paul Eggert  <eggert@twinsun.com>
45794
45795         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
45796         apparently Emacs's Unicode mode got confused before my 2003-08-05
45797         checkin.
45798
45799 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45800
45801         * m4/extensions.m4: New file.
45802         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
45803         Require gl_USE_SYSTEM_EXTENSIONS.
45804         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
45805         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
45806
45807 2003-08-08  Paul Eggert  <eggert@twinsun.com>
45808
45809         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
45810         * modules/extensions, modules/gnu-source: New files.
45811         * modules/timespec, modules/unlocked-io: Depend on extensions.
45812
45813 2003-08-07  Paul Eggert  <eggert@twinsun.com>
45814
45815         * modules/restrict: New file.
45816         * MODULES.html.sh (func_all_modules): Add restrict.
45817         * modules/regex: Depend on restrict.
45818
45819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
45820
45821         * m4/restrict.m4: New file.
45822         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
45823
45824 2003-08-07  Bruno Haible  <bruno@clisp.org>
45825
45826         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
45827         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
45828
45829 2003-08-07  Bruno Haible  <bruno@clisp.org>
45830
45831         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
45832         makes the module 'getndelim2' compatible with the module 'getline'.
45833
45834 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45835
45836         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
45837         byte with "\201" to avoid glitches when editing that source file
45838         with multi-gnome-terminal.
45839
45840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45841
45842         * lib/bumpalloc.h: Remove.
45843
45844 2003-08-05  Paul Eggert  <eggert@twinsun.com>
45845
45846         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
45847         * modules/bumpalloc: Remove.
45848
45849 2003-08-04  Paul Eggert  <eggert@twinsun.com>
45850
45851         * lib/getloadavg.c: Change copyright notice and spacing to conform to
45852         GNU coding style.
45853
45854         Merge from coreutils.
45855         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
45856         1. From glibc.
45857         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
45858         from Karl Berry, implemented by Jim Meyering.
45859         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
45860         from Dmitry V. Levin.
45861         Remove anachronistic cast of xrealloc.
45862         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
45863         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
45864         type. Otherwise, it wouldn't compile with at least /bin/cc on
45865         ymp-cray-unicos9.0.2.X.
45866         Combine two mostly-identical uses of alloca into one.
45867         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
45868
45869 2003-08-04  Dave Love  <d.love@dl.ac.uk>
45870
45871         [From Emacs.]
45872
45873         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
45874         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
45875         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
45876         obsolete NLIST_NAME_UNION.
45877         [__GNU__]: Undef BSD and FSCALE.
45878         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
45879
45880 2003-08-03  Paul Eggert  <eggert@twinsun.com>
45881
45882         * lib/stdbool_.h (_Bool): Make it signed char, instead of
45883         an enum type, so that it's guaranteed to promote to int.  See:
45884         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
45885
45886 2003-08-03  Karl Berry  <karl@gnu.org>
45887
45888         * config/depcomp: update from automake.
45889
45890 2003-07-31  Paul Eggert  <eggert@twinsun.com>
45891
45892         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
45893         (strerror): Don't assume that a printable int fits in 14 bytes.
45894
45895 2003-07-31  Bruno Haible  <bruno@clisp.org>
45896
45897         * modules/getpass-gnu: New file.
45898         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
45899
45900 2003-07-31  Bruno Haible  <bruno@clisp.org>
45901
45902         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
45903
45904 2003-07-24  Karl Berry  <karl@gnu.org>
45905
45906         * config/missing: update from automake.
45907
45908 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
45909             Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
45912         * lib/getline.c (getline, getdelim): Likewise.
45913         Remove _GNU_SOURCE define; now it's defined in config.h through
45914         m4/getline.m4.
45915
45916 2003-07-23  Karl Berry  <karl@gnu.org>
45917
45918         * config/config.sub: update from prep.
45919
45920 2003-07-22  Paul Eggert  <eggert@twinsun.com>
45921
45922         * modules/xalloc (Depends-on): Add exitfail.
45923         * modules/xmemcoll: Likewise.
45924
45925 2003-07-22  Paul Eggert  <eggert@twinsun.com>
45926
45927         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
45928         over-parenthesization in macros.
45929
45930         Sync with coreutils.
45931
45932         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
45933         required by C99.
45934
45935         Use `exit_failure' for xalloc and xmemcoll instead of their own
45936         private exit-failure variables.
45937         * lib/xalloc.h (xalloc_exit_failure): Remove.
45938         * lib/xmalloc.c: Likewise.  Include exitfail.h.
45939         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
45940         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
45941         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
45942         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
45943
45944 2003-07-20  Jim Meyering  <jim@meyering.net>
45945
45946         * modules/closeout (Depends-on): Add exitfail.
45947         Suggestion from Bruno Haible.
45948
45949 2003-07-19  Karl Berry  <karl@gnu.org>
45950
45951         * config/config.sub: update from prep.
45952
45953 2003-07-18  Paul Eggert  <eggert@twinsun.com>
45954
45955         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
45956         Remove.
45957         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
45958         to test that it can stand by itself.  Include "exitfail.h".
45959         Clients should set exit_failure instead.
45960         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
45961
45962 2003-07-18  Bruno Haible  <bruno@clisp.org>
45963
45964         * modules/getndelim2: New file.
45965         * modules/getline: Share files with module getndelim2.
45966         * modules/getnline: Depend on getndelim2 instead of sharing files with
45967         it. Add getnline.c to lib_SOURCES.
45968         * MODULES.html.sh (func_all_modules): Add getndelim2.
45969
45970 2003-07-18  Bruno Haible  <bruno@clisp.org>
45971
45972         * m4/getndelim2.m4: New file.
45973         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
45974         invoke gl_PREREQ_GETNDELIM2.
45975         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
45976         gl_PREREQ_GETNDELIM2.
45977         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
45978         gl_GETNDELIM2.
45979
45980 2003-07-18  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/getndelim2.h: New file.
45983         * lib/getndelim2.c: Make into a module of its own. Include config.h,
45984         getndelim2.h.
45985         (getndelim2): Make non-static. Change return type to ssize_t.
45986         * lib/getline.h: Change argument names.
45987         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
45988         * lib/getnline.c: Include getndelim2.h.
45989
45990 2003-07-18  Andreas Schwab  <schwab@suse.de>
45991
45992         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
45993
45994 2003-07-17  Karl Berry  <karl@gnu.org>
45995
45996         * config/config.sub: update from prep.
45997
45998 2003-07-17  Bruno Haible  <bruno@clisp.org>
45999
46000         * modules/getnline: New file.
46001         * modules/getline: Add lib/getndelim2.c to source file list.
46002         * MODULES.html.sh (func_all_modules): Add getnline.
46003
46004 2003-07-17  Bruno Haible  <bruno@clisp.org>
46005
46006         * m4/getnline.m4: New file.
46007
46008 2003-07-17  Bruno Haible  <bruno@clisp.org>
46009
46010         * m4/Makefile.am.in: Remove file.
46011         * m4/Makefile.am: Remove file.
46012         * m4/Makefile.in: Remove file.
46013
46014 2003-07-17  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/getnline.h: New file.
46017         * lib/getnline.c: New file.
46018         * lib/getndelim2.c: New file, extracted from getline.c.
46019         (getndelim2): Renamed from getdelim2, with added nmax argument.
46020         * lib/getline.c: Include getndelim2.c.
46021         (getdelim2): Moved out to getndelim2.c.
46022         (getline, getdelim): Update.
46023
46024 2003-07-17  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/Makefile.am: Remove file.
46027         * lib/Makefile.in: Remove file.
46028
46029 2003-07-17  Bruno Haible  <bruno@clisp.org>
46030
46031         * configure.in: Remove file.
46032         * Makefile.in: Remove file.
46033
46034 2003-07-17  Bruno Haible  <bruno@clisp.org>
46035
46036         * MODULES.html.sh: Put the </BODY> right before </HTML>.
46037
46038 2003-07-16  Karl Berry  <karl@gnu.org>
46039
46040         * config/srclist-update: was running fixlicense twice, which caused
46041                 texinfo.tex to be nullified for some reason.  Simplify,
46042                 $gplsrc is no longer needed as far as I can see?
46043
46044 2003-07-16  Jim Meyering  <jim@meyering.net>
46045
46046         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
46047
46048 2003-07-15  Paul Eggert  <eggert@twinsun.com>
46049
46050         * config/srclist.txt: Get the following files from gettext-runtime/intl
46051         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
46052         ref-del.sin.  From Bruno Haible.
46053         * config/srclist-update (fixfile): Change grep pattern again, since the
46054         previous fix didn't work (there was another trailing $).  Use
46055         '[$]' to escape the $s.
46056
46057 2003-07-15  Karl Berry  <karl@gnu.org>
46058
46059         * lib/vasnprintf.c: update from gettext.
46060
46061 2003-07-15  Karl Berry  <karl@gnu.org>
46062
46063         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
46064         gets expanded when surrounded by '$'.
46065
46066 2003-07-15  Jim Meyering  <jim@meyering.net>
46067
46068         * modules/save-cwd: Don't depend on error.  From Derek Price.
46069
46070 2003-07-15  Jim Meyering  <jim@meyering.net>
46071
46072         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
46073
46074 2003-07-14  Simon Josefsson  <jas@extundo.com>
46075
46076         * modules/mempcpy: New file.
46077         * MODULES.html.sh (func_all_modules): Add mempcpy.
46078
46079 2003-07-14  Simon Josefsson  <jas@extundo.com>
46080
46081         * m4/mempcpy.m4: New file.
46082
46083 2003-07-14  Simon Josefsson  <jas@extundo.com>
46084
46085         * lib/mempcpy.h: New file.
46086         * lib/mempcpy.c: New file.
46087
46088 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46089
46090         * modules/getdate, modules/posixtm: Depend on mktime.
46091
46092 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46093
46094         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
46095         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
46096         unicodeio.c, unicodeio.h, unlocked-io.h:
46097         Switch from LGPL to GPL.
46098
46099 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46100
46101         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
46102         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
46103         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
46104         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
46105         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
46106         updated automatically by ../config/srclist-update.  This changes
46107         their license from LPGL to GPL.
46108
46109 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46110
46111         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
46112         assumed to refer to the root of the most recent stable gettext version.
46113         * config/srclistvars.sh: Add defaults for eggert.
46114         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
46115         Match "This program" as well as "The program".  This is needed
46116         for gettext.
46117
46118 2003-07-14  Jim Meyering  <jim@meyering.net>
46119
46120         Don't emit diagnostics.  Let callers do that.
46121         * lib/save-cwd.c: Don't include "error.h".
46122         (save_cwd): Don't call error.  Ensure that errno is valid
46123         when returning nonzero.
46124
46125         * lib/save-cwd.h (restore_cwd): Update prototype.
46126         * lib/save-cwd.c (restore_cwd): Remove two parameters.
46127         Simplify.  Don't call error upon failure.  Let callers do that.
46128         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
46129         when auditing is enabled.  But don't bother updating the #if.
46130
46131 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
46132
46133         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
46134         it breaks C++ compilation.
46135         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
46136
46137 2003-07-10  Simon Josefsson  <jas@extundo.com>
46138
46139         * modules/strchrnul (Makefile.am): Add strchrnul.h.
46140
46141 2003-07-10  Jim Meyering  <jim@meyering.net>
46142
46143         * m4/clock_time.m4: Remove trailing blank.
46144         * m4/intmax_t.m4: Likewise.
46145
46146 2003-07-10  Jim Meyering  <jim@meyering.net>
46147
46148         * lib/vasnprintf.c: Remove trailing blanks.
46149         Make cpp indentation consistent.
46150
46151 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46152
46153         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
46154         posixver.c, strftime.c, strnlen.c, strverscmp.c:
46155         Switch from LGPL to GPL.
46156
46157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46158
46159         * config/srclist.txt: Sort sublists.  Add
46160         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
46161         that differ from gnulib for one reason or another; we'd like this list
46162         to be smaller but for now let's document what we have.
46163
46164 2003-07-08  Paul Eggert  <eggert@twinsun.com>
46165
46166         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
46167         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
46168         and sweeter "eval x=$x".
46169         * config/srclist.txt: Get lib/argp* from glibc.
46170
46171 2003-07-07  Paul Eggert  <eggert@twinsun.com>
46172
46173         * lib/mktime.c: Fix some boundary cases and remove need for floating
46174         point.
46175
46176         Issue a compile-time diagnostic if time_t is floating point, or if
46177         two's complement arithmetic is not in effect, or if arithmetic
46178         right shift does not propagate the sign.  These assumptions were
46179         all in the original code but they weren't checked.
46180
46181         (TIME_T_MIDPOINT, verify): New macros.
46182         (__isleap): Remove; it has integer overflow problems.
46183         (leapyear): New function, without those problems.
46184         (ydhms_tm_diff): Remove; splitting into two parts.
46185         (ydhms_diff): New function, containing the arithmetic part of
46186         the old ydhms_tm_diff function.  Issue a compile-time
46187         diagnostic if we are not using C99 integer division.
46188         Avoid casts when possible.
46189         (guess_time_tm): New function, containing the checking part of
46190         the old ydhms_tm_diff function.  Return the new value, rather than
46191         the difference between it and the old.  Accept a new argument T
46192         so that *T specifies the old value.  Check for overflow in the result.
46193
46194         (__mktime_internal): Use a time_t offset, not a long int offset.
46195         This undoes the 2003-06-04 change, which is no longer needed now
46196         that we have better overflow checking.
46197         (localtime_offset): Likewise.
46198
46199         (__mktime_internal): Avoid harmful overflow on hosts where time_t
46200         and long are 64-bit but int is only 32-bit.
46201         (ydhms_diff): Use long int to store year1 and yday1.
46202         Issue a compile-time diagnostic if long int is not wide enough.
46203
46204         (__mktime_internal): Use long int to store adjusted year and yday.
46205         Use plain C rather than preprocessor commands, if that doesn't
46206         affect efficiency.
46207         Check for overflow (and try to repair) after each probe
46208         rather than checking only at the very end.  This avoids some bugs
46209         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
46210         does not equal GMT offset at maximum time).
46211         Use integer to check for overflow rather than floating point; this
46212         is more portable to non-IEEE hosts, and is a tad faster.
46213         When we detect that we are oscillating between two values,
46214         don't check whether tm_isdst has the requested value, since
46215         we already know the answer.  When tm_isdst has the wrong value,
46216         use a different heuristic to find the right one, based on the
46217         extreme values actually observed in practice in tz2003a,
46218         rather than the (overly optimistic) "previous 3 calendar quarters".
46219
46220         (not_equal_tm, print_tm, check_result): Use "const T" rather than
46221         "T const" to accommodate glibc style.
46222         (check_result): Use less-confusing report format.  "long" -> "long int.
46223         (main): Likewise.
46224         Don't loop if the iteration overflows time_t.
46225         Allow a negative step in the iteration.
46226
46227 2003-07-06  Karl Berry  <karl@gnu.org>
46228
46229         * config/depcomp: update from automake.
46230         * config/config.sub: update from prep.
46231
46232 2003-07-03  Karl Berry  <karl@gnu.org>
46233
46234         * config/config.guess: update from prep.
46235
46236 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46237
46238         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
46239         xreadlink.c now includes it unconditionally.
46240
46241 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46242
46243         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
46244         having it depend on HAVE_SYS_TYPES_H.
46245
46246 2003-07-01  Bruno Haible  <bruno@clisp.org>
46247
46248         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
46249         <sys/types.h> should be sufficient.
46250         Reported by Paul Eggert.
46251
46252 2003-06-26  Karl Berry  <karl@gnu.org>
46253
46254         * config/depcomp: update from automake.
46255
46256 2003-06-26  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/human: Depend on module stdbool.
46259
46260 2003-06-25  Bruno Haible  <bruno@clisp.org>
46261
46262         * modules/readlink: New file.
46263         * modules/xreadlink: Depend on it.
46264         * MODULES.html.sh (func_all_modules): Add readlink.
46265
46266 2003-06-25  Bruno Haible  <bruno@clisp.org>
46267
46268         * m4/readlink.m4: New file.
46269
46270 2003-06-25  Bruno Haible  <bruno@clisp.org>
46271
46272         * lib/readlink.c: New file.
46273
46274 2003-06-22  Karl Berry  <karl@gnu.org>
46275
46276         * config/srclist.txt: update mkinstalldirs from automake.
46277         * config/mkinstalldirs: update.
46278
46279 2003-06-22  Bruno Haible  <bruno@clisp.org>
46280
46281         Portability to mingw32.
46282         * m4/ssize_t.m4: New file, from GNU gettext.
46283         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
46284         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
46285
46286 2003-06-22  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/safe-read: Add m4/ssize_t.m4.
46289         * modules/xreadlink: Add m4/ssize_t.m4.
46290
46291 2003-06-20  Bruno Haible  <bruno@clisp.org>
46292
46293         Assume C89, so PARAMS isn't needed.
46294         * lib/unicodeio.h (PARAMS): Remove.
46295         * lib/unicodeio.c: Don't use PARAMS.
46296
46297 2003-06-18  Karl Berry  <karl@gnu.org>
46298
46299         * config/config.{guess,sub}: update from prep.
46300
46301 2003-06-18  Jim Meyering  <jim@meyering.net>
46302
46303         Merge changes from coreutils.
46304         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
46305         Remove explicit declarations of xmalloc and realloc.
46306         Include xalloc.h.
46307         (read_utmp): Remove anachronistic cast of xmalloc.
46308
46309 2003-06-17  Paul Eggert  <eggert@twinsun.com>
46310
46311         Assume C89, so PARAMS isn't needed.
46312         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
46313         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
46314         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
46315         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
46316         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
46317         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
46318         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
46319         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
46320         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
46321         lib/xstrtod.h, lib/xstrtol.h: Likewise.
46322         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
46323         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
46324         no longer needed. Anyway, config.h should always be included before any
46325         other file.
46326
46327 2003-06-11  Simon Josefsson  <jas@extundo.com>
46328
46329         * modules/sysexits: New file.
46330         * MODULES.html.sh (func_all_modules): Add sysexits.
46331
46332 2003-06-11  Simon Josefsson  <jas@extundo.com>
46333
46334         * lib/sysexit_.h: New file.
46335
46336 2003-06-11  Derek Price  <derek@ximbiot.com>
46337
46338         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
46339         necessary.
46340
46341 2003-06-11  Bruno Haible  <bruno@clisp.org>
46342
46343         * m4/sysexits.m4: New file.
46344
46345 2003-06-10  Simon Josefsson  <jas@extundo.com>
46346
46347         * lib/argp.h: New file, from glibc.
46348         * lib/argp-ba.c: New file, from glibc.
46349         * lib/argp-eexst.c: New file, from glibc.
46350         * lib/argp-fmtstream.c: New file, from glibc.
46351         * lib/argp-fmtstream.h: New file, from glibc.
46352         * lib/argp-fs-xinl.c: New file, from glibc.
46353         * lib/argp-help.c: New file, from glibc.
46354         * lib/argp-namefrob.h: New file, from glibc.
46355         * lib/argp-parse.c: New file, from glibc.
46356         * lib/argp-pv.c: New file, from glibc.
46357         * lib/argp-pvh.c: New file, from glibc.
46358         * lib/argp-xinl.c: New file, from glibc.
46359
46360 2003-06-10  Simon Josefsson  <jas@extundo.com>
46361
46362         * modules/strchrnul: New file.
46363
46364 2003-06-10  Simon Josefsson  <jas@extundo.com>
46365
46366         * modules/argp: New file.
46367
46368 2003-06-10  Simon Josefsson  <jas@extundo.com>
46369
46370         * m4/strchrnul.m4: New file.
46371
46372 2003-06-10  Simon Josefsson  <jas@extundo.com>
46373
46374         * lib/strchrnul.h: New file.
46375         * lib/strchrnul.c: New file.
46376
46377 2003-06-10  Bruno Haible  <bruno@clisp.org>
46378
46379         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
46380
46381 2003-06-07  Karl Berry  <karl@gnu.org>
46382
46383         * config/config.{guess,sub}: update from prep.
46384
46385 2003-06-07  Jim Meyering  <jim@meyering.net>
46386
46387         * modules/strtod: Use $(...) notation, not @...@ for
46388         AC_REPLACE'd variables.
46389         * modules/localcharset: Likewise.
46390
46391 2003-06-07  Jim Meyering  <jim@meyering.net>
46392
46393         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
46394         in place of my name in the copyright comment.
46395         Remove definition and uses of __P.
46396
46397         From coreutils.
46398         * lib/stat.c: Don't declare xmalloc explicitly.
46399         Instead, include "xalloc.h".
46400         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
46401         xrealloc, and xcalloc return values.
46402         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
46403         Improve comment.
46404         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
46405
46406 2003-06-07  Bruno Haible  <bruno@clisp.org>
46407
46408         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
46409         avoid AC_CONFIG_LINKS.
46410         * modules/fnmatch (Makefile.am): Use explicit creation rule for
46411         fnmatch.h, to avoid AC_CONFIG_LINKS.
46412         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
46413
46414 2003-06-07  Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
46417         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
46418         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46419         directory.
46420         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
46421         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
46422         directory.
46423
46424 2003-06-06  Jim Meyering  <jim@meyering.net>
46425
46426         Merge from coreutils.
46427         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
46428         Consolidate declarations and initializations of *_base* locals.
46429
46430         Merge from coreutils.
46431         This avoids a core dump on systems without GNU putenv,
46432         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
46433         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
46434         (unsetenv): New static function, from GNU libc.
46435         (rpl_putenv): Use it.
46436
46437         * lib/modechange.c: Remove trailing blanks.
46438
46439         Merge from coreutils.
46440         * lib/fsusage.c: Remove declaration of statfs.
46441         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
46442
46443         * lib/posixtm.c: Include <stdbool.h> unconditionally.
46444
46445 2003-06-06  Jim Meyering  <jim@meyering.net>
46446
46447         * lib/stdbool_.h: Renamed from stdbool.h.in.
46448
46449 2003-06-06  Jim Meyering  <jim@meyering.net>
46450             Bruno Haible  <bruno@clisp.org>
46451
46452         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
46453         Adjust Makefile.am snippet not to redirect directly to target.
46454         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
46455
46456 2003-06-05  Paul Eggert  <eggert@twinsun.com>
46457
46458         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
46459         mismatch, look in future quarters as well as past.  This fixes a
46460         bug when processing fall-backwards gaps immediately after a long
46461         period of daylight-saving time.
46462
46463         * lib/mktime.c: Assume freestanding C89 or better.
46464         (HAVE_LIMITS_H): Remove.  Assume it's 1.
46465         (__P): Remove; not used.
46466         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
46467         (mktime, not_equal_tm, print_tm, check_result,
46468         main): Use prototypes.  Use const * where appropriate.
46469         (main): Fix typo in testing code that uncovered by above changes.
46470         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
46471
46472 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46473
46474         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
46475         locale.h, localeconv.  This merges changes from coreutils.
46476
46477         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
46478         It can be removed after the next Autoconf is released.
46479         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
46480         needed.
46481
46482 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46483
46484         * lib/mktime.c: Fix Debian bug 177940
46485         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
46486         (localtime_offset): Now long int, not time_t, because we want it
46487         to be guaranteed to be signed.  All uses changed.
46488         (__mktime_internal): If overflow would occur when adding offset,
46489         don't add it.
46490
46491         Merge 'human' changes from coreutils.  Rewrite to support
46492         locale-specific notations like thousands separators.
46493         * lib/human.c: Simplify authorship notice.
46494         Include human.h immediately after config.h.
46495         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
46496         <limits.h>: Do not include, since human.h does.
46497         (SIZE_MAX, UINTMAX_MAX): New macros.
46498         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
46499         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
46500         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
46501         (power_letter): Renamed from suffixes.
46502         (generate_suffix_backwards): Remove.
46503         (adjust_value): Now takes int style (because of human.h changes)
46504         and long double value (for greater precision on some platforms).
46505         (group_number): New function.
46506         (human_readable): Use it.  Use integer options, not enum.
46507         Put the options before the sizes in the arg list.
46508         Support all the new options.
46509         The old human_readable function has been removed;
46510         use inttostr.h instead.
46511         (human_readable, default_block_size, humblock):
46512         Use uintmax_t, not int, for block sizes.
46513         (human_readable_inexact, block_size_types): Remove.
46514         (block_size_opts): New constant.
46515         (human_options): Renamed from human_block_size, with new signature
46516         that allows block sizes up to UINTMAX_MAX.  All callers changed.
46517         * lib/human.h: Add copyright and authorship notice.
46518         Include <limits.h> and <stdbool.h> unconditionally.
46519         (PARAMS): Remove.  All uses removed.
46520         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
46521         (enum human_inexact_style): Remove tag; now a nameless enum.
46522         (human_floor, human_ceiling, human_round_to_even): Now have
46523         values 2, 0, 1 rather than -1, 1, 0.
46524         (human_group_digits, human_suppress_point_zero, human_autoscale,
46525         human_base_1024, human_SI, human_B): New constants.
46526         (human_readable_inexact, human_block_size): Remove.
46527         (human_readable): Size args are now uintmax_t, not int.
46528         (human_options): New decl.
46529
46530         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
46531         unnecessary now that we assume C89 or better.  This change
46532         imported from coreutils.
46533
46534         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46535         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
46536         in the 2003-05-30 sync from glibc.
46537
46538         .h files should stand alone, but we shouldn't include <sys/types.h>
46539         if we can get away with just <stddef.h>.
46540
46541         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
46542         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
46543         rather than <sys/types.h>, as we merely need size_t.
46544         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
46545         to get size_t.
46546         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
46547         Include <stdio.h>, to get FILE.
46548         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
46549         memcasecmp.h has included <stddef.h> and all we need is size_t.
46550         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
46551         our interface, instead of including <sys/types.h>
46552
46553 2003-06-04  Paul Eggert  <eggert@twinsun.com>
46554
46555         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
46556         now, as glibc mktime is buggy on non-glibc systems.
46557
46558 2003-06-03  Karl Berry  <karl@gnu.org>
46559
46560         * config/config.sub: update from prep.
46561
46562 2003-06-02  Paul Eggert  <eggert@twinsun.com>
46563
46564         [from coreutils]
46565         Fix some minor time-related bugs with POSIX time arguments.
46566         Some valid time stamps were being rejected (notably -1, and
46567         time stamps before 1900 on 64-bit hosts).  And some invalid
46568         time stamps were being accepted, e.g. September 31.
46569
46570         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
46571         that we can return (time_t) -1 successfully.
46572         * lib/posixtm.c: Likewise.
46573         [HAVE_STDBOOL_H]: Include <stdbool.h>.
46574         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
46575         (t): Remove static var.
46576         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
46577         of static var.  All uses changed.
46578         (year): Do not reject years before 1900; they can occur with
46579         64-bit time_t.
46580         (posix_time_parse): Do not check for out-of-range components;
46581         that is now the caller's responsibility, since our checks were
46582         only approximations.
46583         (posixtime): Use mktime to check for out-of-range components,
46584         since it knows them exactly.
46585         If mktime returns (time_t) -1, check whether an error actually occurred
46586         by invoking localtime on -1.
46587         (main) [TEST_POSIXTIME]: Check for input data errors, and report
46588         posixtime failures better.
46589         Improve the test data (in comments only).
46590
46591 2003-06-02  Karl Berry  <karl@gnu.org>
46592
46593         * config/mkinstalldirs (version): new variable.
46594         (--version): new option.
46595         (usage): improve message.
46596
46597 2003-05-30  Karl Berry  <karl@gnu.org>
46598
46599         * lib/mktime.c: update from libc.
46600
46601 2003-05-30  Bruno Haible  <bruno@clisp.org>
46602
46603         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
46604         * config/config.rpath: Upgrade to gettext-0.12.1.
46605
46606 2003-05-30  Bruno Haible  <bruno@clisp.org>
46607
46608         * m4/gettext.m4: Upgrade to gettext-0.12.1.
46609         * m4/nls.m4: New file, from gettext-0.12.1.
46610         * m4/po.m4: New file, from gettext-0.12.1.
46611         * m4/progtest.m4: Upgrade to gettext-0.12.1.
46612
46613 2003-05-30  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
46616         * lib/localcharset.h: Likewise.
46617         * lib/localcharset.c: Likewise.
46618
46619 2003-05-29  Karl Berry  <karl@gnu.org>
46620
46621         * config/config.rpath: update from gettext.
46622
46623 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46624
46625         Assume the headers required for C89 freestanding compilers.
46626         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
46627         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
46628         * m4/human.m4 (gl_HUMAN): Likewise.
46629         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
46630         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
46631         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46632         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
46633         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46634         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
46635
46636 2003-05-28  Paul Eggert  <eggert@twinsun.com>
46637
46638         Assume the headers required for C89 freestanding compilers.
46639         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
46640         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
46641         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
46642         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
46643         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
46644         define, since <limits.h> is guaranteed to do that.
46645         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
46646         * lib/exclude.c: Include <stdbool.h> unconditionally.
46647         * lib/tempname.c: Include <stddef.h> unconditionally.
46648         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
46649         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
46650         <stddef.h> does that.
46651         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
46652         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
46653         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
46654         needed.
46655         * lib/xstrtol.c: Likewise.
46656         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
46657         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
46658
46659         * lib/addext.c (addext): Use assignment rather than cast, to avoid
46660         warnings on some platforms.
46661
46662         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
46663         arbitrarily.
46664
46665 2003-05-26  Jim Meyering  <jim@meyering.net>
46666
46667         Merge in a change from coreutils:
46668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
46669         that is guaranteed to be `no'.  Use `no_such_member' to indicate
46670         that condition, rather than `-1' which is slightly misleading.
46671         Change the name of the cache variable to have the gl_ prefix.
46672         Prompted by a patch from Richard Dawe for DJGPP.
46673
46674 2003-05-24  Karl Berry  <karl@gnu.org>
46675
46676         * config/config.guess: update from prep.
46677
46678 2003-05-22  Karl Berry  <karl@gnu.org>
46679
46680         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
46681
46682 2003-05-20  Karl Berry  <karl@gnu.org>
46683
46684         * config/config.guess: update from prep.
46685
46686 2003-05-18  Karl Berry  <karl@gnu.org>
46687
46688         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
46689         might actually be set by the user.
46690
46691         * config/depcomp, install-sh, mdate-sh: update from automake.
46692
46693 2003-05-17  Bruno Haible  <bruno@clisp.org>
46694
46695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
46696         invalid expansion for AC_EGREP_CPP.
46697         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
46698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46699         Suggested by Akim Demaille <akim@epita.fr> in
46700         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
46701
46702 2003-05-12  Jim Meyering  <jim@meyering.net>
46703
46704         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
46705         the space-padded-by-default conversion specifiers, %e, %k, %l.
46706
46707 2003-05-12  Bruno Haible  <bruno@clisp.org>
46708
46709         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
46710         the string is longer than 4 KB.
46711
46712 2003-05-11  Karl Berry  <karl@gnu.org>
46713
46714         * config/config.{guess,sub}: update from prep.
46715
46716 2003-05-09  Bruno Haible  <bruno@clisp.org>
46717
46718         * modules/error: Add m4/strerror_r.m4 to file list.
46719
46720 2003-05-03  Bruno Haible  <bruno@clisp.org>
46721
46722         Upgrade to Unicode-4.0.
46723         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
46724         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
46725         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
46726         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
46727         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
46728         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
46729         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
46730         Change width of U+E0100..U+E01EF from 1 to 0.
46731
46732 2003-04-25  Jim Meyering  <jim@meyering.net>
46733
46734         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
46735         of type size_t, not int.
46736
46737 2003-04-25  Bruno Haible  <bruno@clisp.org>
46738
46739         * lib/copy-file.c: Include <stddef.h>, for size_t.
46740
46741 2003-04-21  Paul Eggert  <eggert@twinsun.com>
46742
46743         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
46744         code which expansion is under static control.  Patch imported from
46745         Akim Demaille's patch to Bison; see
46746         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
46747
46748 2003-04-14  Bruno Haible  <bruno@clisp.org>
46749
46750         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
46751
46752 2003-04-11  Jim Meyering  <jim@meyering.net>
46753
46754         Merge changes from Coreutils.
46755
46756         2003-03-22  Jim Meyering  <jim@meyering.net>
46757
46758         * lib/strftime.c (widen): Cast alloca return value to proper type.
46759
46760         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
46761
46762         From GNU libc.
46763         * lib/strftime.c (my_strftime): Handle very large width
46764         specifications for numeric values correctly.  Improve checks for
46765         overflow.
46766
46767         2003-01-19  Jim Meyering  <jim@meyering.net>
46768
46769         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
46770         definitions.
46771         (nl_get_alt_digit) [! defined my_strftime]: Define.
46772         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
46773         _nl_get_alt_digit and _nl_get_walt_digit.
46774
46775         * lib/strftime.c (my_strftime): Merge in locale-related changes from
46776         libc. These changes have no effect outside of _LIBC.
46777
46778 2003-04-10  Bruno Haible  <bruno@clisp.org>
46779
46780         * modules/findprog: New file.
46781         * MODULES.html.sh (func_all_modules): Add it.
46782
46783 2003-04-10  Bruno Haible  <bruno@clisp.org>
46784
46785         * m4/findprog.m4: New file.
46786         * m4/eaccess.m4: New file.
46787
46788 2003-04-10  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/findprog.h: New file, from GNU gettext.
46791         * lib/findprog.c: New file, from GNU gettext.
46792
46793 2003-04-05  Jim Meyering  <jim@meyering.net>
46794
46795         Merge changes from Coreutils.
46796
46797         * lib/exclude.h (PARAMS): Remove definition and uses.
46798         * lib/exclude.c: Remove uses of `PARAMS'.
46799
46800         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
46801         Add test-cases for DOS filenames. Declare program_name.
46802         (main): Set up program_name.  Patch by Rich Dawe.
46803
46804         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46805         error from mntctl.
46806         Use mntctl's return value to drive the entry-processing loop, since
46807         we can't rely on the value of the vmt_length member in the last
46808         entry.  On some systems doing so could result in exhausting
46809         virtual memory.  Based in part on a patch from Mike Jetzer.
46810
46811 2003-04-04  Bruno Haible  <bruno@clisp.org>
46812
46813         * modules/linebreak: New file.
46814         * MODULES.html.sh (func_all_modules): Add it.
46815
46816 2003-04-04  Bruno Haible  <bruno@clisp.org>
46817
46818         * m4/linebreak.m4: New file.
46819
46820 2003-04-04  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/linebreak.h: New file, from GNU gettext.
46823         * lib/linebreak.c: New file, from GNU gettext with slight
46824         modifications.
46825         * lib/lbrkprop.h: New file, from GNU gettext.
46826
46827 2003-04-03  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/utf8-ucs4: New file.
46830         * modules/utf16-ucs4: New file.
46831         * modules/ucs4-utf8: New file.
46832         * modules/ucs4-utf16: New file.
46833         * MODULES.html.sh (func_all_modules): Add them.
46834
46835 2003-04-03  Bruno Haible  <bruno@clisp.org>
46836
46837         * m4/utf-ucs4.m4: New file.
46838         * m4/ucs4-utf.m4: New file.
46839
46840 2003-04-03  Bruno Haible  <bruno@clisp.org>
46841
46842         * lib/utf8-ucs4.h: New file, from GNU gettext.
46843         * lib/utf16-ucs4.h: New file, from GNU gettext.
46844         * lib/ucs4-utf8.h: New file, from GNU gettext.
46845         * lib/ucs4-utf16.h: New file, from GNU gettext.
46846
46847 2003-04-02  Bruno Haible  <bruno@clisp.org>
46848
46849         * modules/binary-io: New file.
46850         * MODULES.html.sh (func_all_modules): Add it.
46851
46852 2003-04-02  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/binary-io.h: New file, from GNU gettext.
46855
46856 2003-04-01  Bruno Haible  <bruno@clisp.org>
46857
46858         * modules/pathname: New file.
46859         * MODULES.html.sh (func_all_modules): Add it.
46860
46861 2003-04-01  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/pathname.h: New file, from GNU gettext.
46864         * lib/concatpath.c: New file, from GNU gettext.
46865
46866 2003-03-30  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
46869
46870 2003-03-30  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
46873         function chown() doesn't exist.
46874
46875 2003-03-28  Bruno Haible  <bruno@clisp.org>
46876
46877         * modules/copy-file: New file.
46878         * MODULES.html.sh (func_all_modules): Add it.
46879
46880 2003-03-28  Bruno Haible  <bruno@clisp.org>
46881
46882         * m4/copy-file.m4: New file.
46883
46884 2003-03-28  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/copy-file.h: New file, from GNU gettext.
46887         * lib/copy-file.c: New file, from GNU gettext.
46888
46889 2003-03-18  Jim Meyering  <jim@meyering.net>
46890
46891         * lib/quote.c (quote_n): Fix typo in comment.
46892
46893 2003-03-18  Bruno Haible  <bruno@clisp.org>
46894
46895         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
46896         checking.
46897         * m4/onceonly_2_57.m4: Likewise.
46898
46899 2003-03-17  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/onceonly.m4: Require autoconf 2.54 or newer.
46902         (m4_quote): Remove macro.
46903         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
46904
46905 2003-03-14  Jim Meyering  <jim@meyering.net>
46906
46907         Merge changes from Coreutils.
46908         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
46909         to be const, in order to avoid warnings.
46910         (obstack_room): Likewise.
46911         (obstack_empty_p): Likewise.
46912
46913 2003-03-14  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
46916         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
46917
46918 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46919
46920         Merge changes from Bison.
46921         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
46922         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
46923         when compiling Bison 1.875's `bitset bset = obstack_alloc
46924         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
46925         * lib/hash.c: Include <stdbool.h> unconditionally.
46926
46927 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46928
46929         * m4/onceonly.m4 (m4_quote): New macro.
46930         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
46931         Quote AC_FOREACH variable-expansions properly.
46932
46933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
46934
46935         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
46936
46937 2003-03-09  Paul Eggert  <eggert@twinsun.com>
46938
46939         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
46940         Reported by Bruce Becker; see:
46941         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
46942
46943 2003-03-03  Paul Eggert  <eggert@twinsun.com>
46944             Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
46947         Reported by John Hughes, see
46948         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
46949
46950 2003-02-20  Bruno Haible  <bruno@clisp.org>
46951
46952         * MODULES.html.sh (func_all_modules): Add poll.
46953
46954 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46955
46956         * modules/poll: New file.
46957
46958 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46959
46960         * lib/poll_.h: New file.
46961         * lib/poll.c: New file.
46962
46963 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
46964
46965         * m4/poll.m4: New file.
46966
46967 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46968
46969         * modules/mathl: New file.
46970
46971 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46972
46973         * lib/mathl.h: New file.
46974         * lib/acosl.c: New file.
46975         * lib/asinl.c: New file.
46976         * lib/atanl.c: New file.
46977         * lib/ceill.c: New file.
46978         * lib/cosl.c: New file.
46979         * lib/expl.c: New file.
46980         * lib/floorl.c: New file.
46981         * lib/frexpl.c: New file.
46982         * lib/ldexpl.c: New file.
46983         * lib/logl.c: New file.
46984         * lib/sincosl.c: New file.
46985         * lib/sinl.c: New file.
46986         * lib/sqrtl.c: New file.
46987         * lib/tanl.c: New file.
46988         * lib/trigl.c: New file.
46989         * lib/trigl.h: New file.
46990
46991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
46992
46993         * m4/mathl.m4: New file.
46994
46995 2003-02-18  Bruno Haible  <bruno@clisp.org>
46996
46997         * MODULES.html.sh (func_all_modules): Add mathl.
46998
46999 2003-02-17  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/mkdtemp: New module.
47002         * MODULES.html.sh (func_all_modules): Add it.
47003
47004 2003-02-17  Bruno Haible  <bruno@clisp.org>
47005
47006         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
47007
47008 2003-02-17  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/mkdtemp.h: New file, from GNU gettext.
47011         * lib/mkdtemp.c: New file, from GNU gettext.
47012
47013 2003-02-02  Jim Meyering  <jim@meyering.net>
47014
47015         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
47016         e.g. glibc-2.2.93.
47017
47018 2003-01-31  Bruno Haible  <bruno@clisp.org>
47019
47020         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
47021         'rpl_rename'.
47022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
47023         'rpl_strnlen'.
47024         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
47025         'rpl_strtod'.
47026         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
47027         'rpl_utime'.
47028
47029 2003-01-31  Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/rename.c: #undef rename before defining rpl_rename.
47032         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
47033
47034 2003-01-30  Bruno Haible  <bruno@clisp.org>
47035
47036         * modules/vasnprintf, modules/vasprintf: New modules.
47037         * MODULES.html.sh (func_all_modules): Add them.
47038
47039 2003-01-30  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/signed.m4: New file, from GNU gettext.
47042         * m4/longdouble.m4: New file, from GNU gettext.
47043         * m4/wchar_t.m4: New file, from GNU gettext.
47044         * m4/wint_t.m4: New file, from GNU gettext.
47045         * m4/vasnprintf.m4: New file.
47046         * m4/vasprintf.m4: New file.
47047
47048 2003-01-30  Bruno Haible  <bruno@clisp.org>
47049
47050         * lib/printf-args.h: New file, from GNU gettext.
47051         * lib/printf-args.c: New file, from GNU gettext.
47052         * lib/printf-parse.h: New file, from GNU gettext.
47053         * lib/printf-parse.c: New file, from GNU gettext.
47054         * lib/vasnprintf.h: New file, from GNU gettext.
47055         * lib/vasnprintf.c: New file, from GNU gettext.
47056         * lib/asnprintf.c: New file, from GNU gettext.
47057         * lib/vasprintf.h: New file, from GNU gettext with modifications.
47058         * lib/vasprintf.c: New file, from GNU gettext.
47059         * lib/asprintf.c: New file, from GNU gettext.
47060
47061 2003-01-29  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/stpncpy: New module.
47064         * MODULES.html.sh (func_all_modules): Add it.
47065
47066 2003-01-29  Bruno Haible  <bruno@clisp.org>
47067
47068         * m4/stpncpy.m4: New file.
47069
47070 2003-01-29  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/stpncpy.h: New file, from GNU gettext with modifications.
47073         * lib/stpncpy.c: New file, from GNU gettext with modifications.
47074
47075 2003-01-28  Bruno Haible  <bruno@clisp.org>
47076
47077         * modules/c-ctype: New module.
47078         * MODULES.html.sh (func_all_modules): Add it.
47079
47080 2003-01-28  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
47083         Paul Eggert.
47084         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
47085         Paul Eggert.
47086
47087 2003-01-27  Bruno Haible  <bruno@clisp.org>
47088
47089         * modules/xsetenv: New module.
47090         * MODULES.html.sh (func_all_modules): Add it.
47091
47092 2003-01-27  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/xsetenv.h: New file, from GNU gettext.
47095         * lib/xsetenv.c: New file, from GNU gettext.
47096
47097 2003-01-23  Jim Meyering  <jim@meyering.net>
47098
47099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
47100         from working on systems without dirfd (at least Irix and OSF1/Tru64).
47101
47102 2003-01-23  Bruno Haible  <bruno@clisp.org>
47103
47104         * modules/minmax: New module.
47105         * MODULES.html.sh (func_all_modules): Add it.
47106
47107 2003-01-23  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
47110         Eggert.
47111
47112 2003-01-22  Bruno Haible  <bruno@clisp.org>
47113
47114         * modules/exit: New module.
47115         * MODULES.html.sh (func_all_modules): Add it.
47116
47117 2003-01-22  Bruno Haible  <bruno@clisp.org>
47118
47119         * lib/exit.h: New file, from GNU gettext.
47120
47121 2003-01-19  Bruno Haible  <bruno@clisp.org>
47122
47123         * gnulib-tool: Recognize option --extract-maintainer.
47124         (func_get_maintainer): New function.
47125         * modules/*: Add Maintainer entry.
47126
47127 2003-01-16  Jim Meyering  <jim@meyering.net>
47128
47129         * m4/regex.m4: The `regex' struct is both input and output.
47130         Initialize it before each use.  Patch by Tim Waugh.
47131
47132 2003-01-16  Bruno Haible  <bruno@clisp.org>
47133
47134         * MODULES.html.sh: Add a table of contents. Add the module name as
47135         leftmost column. Add hyperlinks.
47136
47137 2003-01-15  Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
47140
47141 2003-01-15  Bruno Haible  <bruno@clisp.org>
47142
47143         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
47144         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
47145         suffix.
47146
47147 2003-01-15  Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
47150
47151 2003-01-15  Bruno Haible  <bruno@clisp.org>
47152
47153         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
47154         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
47155
47156 2003-01-14  Jim Meyering  <jim@meyering.net>
47157
47158         * lib/same.c (same_name): Tweak a comment.
47159
47160 2003-01-14  Bruno Haible  <bruno@clisp.org>
47161
47162         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
47163         when a string comparison is sufficient.
47164
47165 2003-01-14  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
47168         'unsigned int'.
47169
47170 2003-01-14  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/hash-pjw.c: Add comment about low quality of this function.
47173
47174 2003-01-13  Bruno Haible  <bruno@clisp.org>
47175
47176         * modules/stpcpy: Distribute lib/stpcpy.h.
47177         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
47178
47179 2003-01-13  Bruno Haible  <bruno@clisp.org>
47180
47181         * modules/*: Add a description.
47182         * modules/strpbrk: Fix Makefile.am snippet.
47183         * modules/strtoimax: Fix dependencies.
47184         * modules/strtoumax: Likewise.
47185
47186 2003-01-13  Bruno Haible  <bruno@clisp.org>
47187
47188         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
47189         * modules/alloca (Makefile.am): All object files depend on alloca.h.
47190         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
47191
47192 2003-01-13  Bruno Haible  <bruno@clisp.org>
47193
47194         * gnulib-tool (func_create_testdir): Store config/* files in the main
47195         directory.
47196         * config.rpath: Move to ...
47197         * config/config.rpath: ... here.
47198         * modules/gettext: Contains config/config.rpath, not config.rpath.
47199         * modules/iconv: Likewise.
47200
47201 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47202
47203         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47204         to avoid collisions with libcurses and libreadline.
47205
47206         * m4/getstr.m4: Remove.
47207         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
47208
47209 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47210
47211         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47212         to avoid collisions with libcurses and libreadline.
47213
47214         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
47215         * lib/getstr.h, getstr.c: Remove.
47216         * lib/getline.c: Include "getline.h", to check interface.
47217         Move body of old getstr.c here: this defines MIN_CHUNK and
47218         declares getdelim2, which is renamed from getstr.
47219         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
47220
47221         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
47222         All uses changed.
47223         * lib/linebuffer.h: Likewise.
47224         (readline): Remove backward-compatibility macro.
47225
47226 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47227
47228         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47229         to avoid collisions with libcurses and libreadline.
47230         * getstr: Remove.
47231         * MODULES.html.sh: Remove getstr.
47232         * modules/getline: Depend on unlocked-io, not getstr.
47233
47234 2003-01-12  Jim Meyering  <jim@meyering.net>
47235
47236         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
47237
47238 2003-01-10  Bruno Haible  <bruno@clisp.org>
47239
47240         * modules/alloca: Change Makefile.am requirements. Simplify Include
47241         requirements. Add lib/alloca_.h to file list.
47242
47243 2003-01-10  Bruno Haible  <bruno@clisp.org>
47244
47245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
47246
47247 2003-01-10  Bruno Haible  <bruno@clisp.org>
47248
47249         * lib/alloca_.h: New file.
47250         * lib/getdate.y: Unconditionally include alloca.h.
47251         * lib/makepath.c: Likewise.
47252         * lib/setenv.c: Likewise.
47253         * lib/userspec.c: Likewise.
47254
47255 2003-01-09  Karl Berry  <karl@gnu.org>
47256
47257         * MODULES.html.sh: include `dirname $0` in PATH, to find
47258         gnulib-tool.
47259
47260 2003-01-09  Bruno Haible  <bruno@clisp.org>
47261
47262         * modules/stdbool: Change configure.ac, Makefile.am requirements.
47263         Simplify Include requirements. Add lib/stdbool.h.in to file list.
47264
47265 2003-01-09  Bruno Haible  <bruno@clisp.org>
47266
47267         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
47268
47269 2003-01-09  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/stdbool.h.in: New file.
47272
47273 2003-01-09  Bruno Haible  <bruno@clisp.org>
47274
47275         * gnulib-tool (func_all_modules): Ignore files ending in ~.
47276         * MODULES.html.sh: Likewise.
47277
47278 2003-01-08  Jim Meyering  <jim@meyering.net>
47279
47280         * lib/full-write.c: Undefine and define-away `const' after inclusion
47281         of errno.h, not before.  Suggestion from Bruno Haible.
47282
47283 2003-01-08  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/full-read: Depend on full-write.
47286
47287 2003-01-08  Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/safe-read.c: Include specification header first, to ensure its
47290         selfcontainedness.
47291         * lib/full-write.c: Likewise.
47292
47293 2003-01-07  Jim Meyering  <jim@meyering.net>
47294
47295         * lib/full-write.c: Rework so that it may serve to define full_read,
47296         too.
47297         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
47298
47299 2003-01-07  Bruno Haible  <bruno@clisp.org>
47300
47301         * lib/strtoimax.c: Include <stdint.h> as an alternative to
47302         <inttypes.h>.
47303         * lib/xstrtol.h: Likewise.
47304         * lib/xstrtoimax.c: Likewise.
47305         * lib/xstrtoumax.c: Likewise.
47306         * lib/human.h: Likewise.
47307
47308         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
47309         on systems that have <inttypes.h> but not <stdint.h>.
47310
47311 2003-01-07  Bruno Haible  <bruno@clisp.org>
47312
47313         * MODULES.html.sh: Add copyright notice.
47314         (missed_files): Omit CVS directory entries.
47315         (func_module): Make it work with sed-3.02.
47316         * MODULES.txt: Remove file.
47317
47318 2003-01-06  Jim Meyering  <jim@meyering.net>
47319
47320         * lib/version-etc.c: Update year in translatable copyright string.
47321
47322 2003-01-03  Karl Berry  <karl@gnu.org>
47323
47324         * config/config.{guess,sub}: update from prep.
47325
47326 2003-01-02  Karl Berry  <karl@gnu.org>
47327
47328         * doc/COPYING.DOC: belatedly updated to 1.2.
47329
47330 2003-01-01  Karl Berry  <karl@gnu.org>
47331
47332         * gnulib-tool (func_verify_module): report module name $module in
47333         error message, not $1.
47334         * gnulib-tool (create-testdir): don't complain if destdir couldn't
47335         be created, only if it doesn't exist.
47336         * gnulib-tool (last_checkin_date): don't expand the $Date here.
47337
47338 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47339
47340         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
47341
47342 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47343
47344         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
47345         memcmp if strcoll doesn't work.
47346
47347 2002-12-31  Bruno Haible  <bruno@clisp.org>
47348
47349         * lib/utime.c (utime_null): No need to call ftruncate if the file was
47350         nonempty.
47351
47352 2002-12-31  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/memcoll.c (STRCOLL): New macro.
47355         (memcoll): Use it.
47356
47357 2002-12-31  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/localcharset.h: New file.
47360         * lib/localcharset.c: Include it.
47361         * lib/unicodeio.c: Likewise.
47362
47363 2002-12-31  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
47366         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
47367
47368 2002-12-31  Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/getline.h: Include <stddef.h>, for size_t.
47371
47372         * lib/unicodeio.h: Include <stddef.h>, for size_t.
47373         * lib/unicodeio.c: Don't include <stddef.h>.
47374
47375 2002-12-31  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
47378         HAVE_TM_ZONE.
47379
47380 2002-12-24  Karl Berry  <karl@gnu.org>
47381
47382         * config/config.guess: update from prep.
47383
47384 2002-12-24  Bruno Haible  <bruno@clisp.org>
47385
47386         General infrasructure.
47387         * m4/README: Rewritten.
47388         * m4/onceonly.m4: New file.
47389         * m4/onceonly_2_57.m4: New file.
47390
47391         Module atexit.
47392         * m4/atexit.m4: New file.
47393
47394         Module strtod.
47395         * m4/strtod.m4: New file.
47396
47397         Module strtol.
47398         * m4/strtol.m4: New file.
47399
47400         Module strtoul.
47401         * m4/strtoul.m4: New file.
47402
47403         Module memchr.
47404         * m4/memchr.m4: New file.
47405
47406         Module memcmp.
47407         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
47408         (jm_FUNC_MEMCMP): Invoke it.
47409
47410         Module memcpy.
47411         * m4/memcpy.m4: New file.
47412
47413         Module memmove.
47414         * m4/memmove.m4: New file.
47415
47416         Module memset.
47417         * m4/memset.m4: New file.
47418
47419         Module strcspn.
47420         * m4/strcspn.m4: New file.
47421
47422         Module strpbrk.
47423         * m4/strpbrk.m4: New file.
47424
47425         Module strstr.
47426         * m4/strstr.m4: New file.
47427
47428         Module strerror.
47429         * m4/strerror.m4: New file.
47430
47431         Module mktime.
47432         * m4/mktime.m4: Renamed from jm-mktime.m4.
47433         (gl_PREREQ_MKTIME): New macro.
47434         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
47435
47436         Module malloc.
47437         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
47438         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
47439         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
47440
47441         Module realloc.
47442         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
47443         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
47444         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
47445
47446         Module strftime.
47447         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
47448         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
47449         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
47450         gl_TM_GMTOFF.
47451         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
47452
47453         Module xalloc.
47454         * m4/xalloc.m4: New file.
47455
47456         Module alloca.
47457         * m4/alloca.m4: New file.
47458
47459         Module putenv.
47460         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
47461         (jm_FUNC_PUTENV): Invoke it.
47462
47463         Module setenv.
47464         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
47465         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
47466         when invoked twice.
47467         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
47468         gt_FUNC_SETENV.
47469
47470         Module memrchr.
47471         * m4/memrchr.m4: New file.
47472
47473         Module stpcpy.
47474         * m4/stpcpy.m4: New file.
47475
47476         Module strcase.
47477         * m4/strcase.m4: New file.
47478
47479         Module strdup.
47480         * m4/strdup.m4: New file.
47481
47482         Module strnlen.
47483         * m4/strnlen.m4: New file.
47484
47485         Module strndup.
47486         * m4/strndup.m4: New file.
47487
47488         Module xstrtod.
47489         * m4/xstrtod.m4: New file.
47490
47491         Module xstrtol.
47492         * m4/xstrtol.m4: New file.
47493
47494         Module getdate.
47495         * m4/getdate.m4: New file.
47496
47497         Module unlocked-io.
47498         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
47499         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
47500         * m4/jm-glibc-io.m4n: Remove file.
47501
47502         Module long-options.
47503         * m4/long-options.m4: New file.
47504
47505         Module md5.
47506         * m4/md5.m4: New file.
47507
47508         Module sha.
47509         * m4/sha.m4: New file.
47510
47511         Module getstr.
47512         * m4/getstr.m4: New file.
47513
47514         Module getline.
47515         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
47516         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
47517         <sys/types.h>, for size_t. Use the function name gnu_getline, not
47518         simply getline. Infoke gl_PREREQ_GETLINE.
47519
47520         Module obstack.
47521         * m4/obstack.m4: New file.
47522
47523         Module hash.
47524         * m4/hash.m4: New file.
47525
47526         Module readtokens.
47527         * m4/readtokens.m4: New file.
47528
47529         Module strverscmp.
47530         * m4/strverscmp.m4: New file.
47531
47532         Module stdbool.
47533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
47534         OSF/1.
47535
47536         Module strtoll.
47537         * m4/strtoll.m4: New file.
47538
47539         Module strtoull.
47540         * m4/strtoull.m4: New file.
47541
47542         Module strtoimax.
47543         * m4/strtoimax.m4: New file.
47544
47545         Module strtoumax.
47546         * m4/strtoumax.m4: New file.
47547
47548         Module xstrtoimax.
47549         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
47550         jm_AC_PREREQ_XSTRTOIMAX.
47551         Moved the strtol prerequisites to strtol.m4.
47552         Moved the strtoll prerequisites to strtoll.m4.
47553         Moved the strtoimax prerequisites to strtoimax.m4.
47554
47555         Module xstrtoumax.
47556         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
47557         jm_AC_PREREQ_XSTRTOUMAX.
47558         Moved the strtoul prerequisites to strtoul.m4.
47559         Moved the strtoull prerequisites to strtoull.m4.
47560         Moved the strtoumax prerequisites to strtoumax.m4.
47561
47562         Module chown.
47563         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
47564         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
47565
47566         Module dup2.
47567         * m4/dup2.m4: New file.
47568
47569         Module ftruncate.
47570         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
47571         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
47572
47573         Module getgroups.
47574         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
47575         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
47576
47577         Module gettimeofday.
47578         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
47579         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
47580         gl_PREREQ_GETTIMEOFDAY.
47581
47582         Module mkdir.
47583         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
47584         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
47585
47586         Module mkstemp.
47587         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
47588         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
47589         jm_AC_TYPE_UINTMAX_T.
47590         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
47591
47592         Module stat.
47593         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
47594         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
47595
47596         Module lstat.
47597         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
47598         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
47599
47600         Module timespec.
47601         * m4/timespec.m4 (gl_TIMESPEC): New macro.
47602         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
47603         * m4/st_mtim.m4: Indentation.
47604
47605         Module nanosleep.
47606         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
47607         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
47608         gl_PREREQ_NANOSLEEP.
47609
47610         Module regex.
47611         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
47612         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
47613         (gl_REGEX): New macro.
47614
47615         Module rename.
47616         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
47617         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
47618
47619         Module rmdir.
47620         * m4/rmdir.m4: New file.
47621
47622         Module utime.
47623         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
47624         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
47625         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
47626
47627         Module dirname.
47628         * m4/dirname.m4: New file.
47629
47630         Module getopt.
47631         * m4/getopt.m4: New file.
47632
47633         Module unistd-safer.
47634         * m4/unistd-safer.m4: New file.
47635
47636         Module fnmatch.
47637         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
47638         declaration.
47639         (gl_PREREQ_FNMATCH_EXTRA): New macro.
47640         (gl_FUNC_FNMATCH_POSIX): New macro.
47641         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
47642         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
47643         simply fnmatch.
47644
47645         Module exclude.
47646         * m4/exclude.m4: New file.
47647
47648         Module human.
47649         * m4/human.m4: New file.
47650
47651         Module acl.
47652         * m4/acl.m4: Nop.
47653
47654         Module backupfile.
47655         * m4/backupfile.m4: New file.
47656         * m4/d-ino.m4: Indentation.
47657
47658         Module fsusage.
47659         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
47660         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
47661         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
47662
47663         Module dirfd.
47664         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
47665         requirements.
47666
47667         Module euidaccess.
47668         * m4/euidaccess.m4: New file.
47669
47670         Module file-type.
47671         * m4/file-type.m4: New file.
47672
47673         Module fileblocks.
47674         * m4/fileblocks.m4: New file.
47675
47676         Module filemode.
47677         * m4/filemode.m4: New file.
47678
47679         Module isdir.
47680         * m4/isdir.m4: New file.
47681
47682         Module lchown.
47683         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
47684         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
47685
47686         Module makepath.
47687         * m4/makepath.m4: New file.
47688
47689         Module modechange.
47690         * m4/modechange.m4: New file.
47691
47692         Module mountlist.
47693         * m4/mountlist.m4: New file.
47694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
47695         Indentation.
47696
47697         Module path-concat.
47698         * m4/path-concat.m4: New file.
47699
47700         Module pathmax.
47701         * m4/pathmax.m4: New file.
47702
47703         Module same.
47704         * m4/same.m4: New file.
47705
47706         Module save-cwd.
47707         * m4/save-cwd.m4: New file.
47708
47709         Module savedir.
47710         * m4/savedir.m4: New file.
47711
47712         Module xgetcwd.
47713         * m4/xgetcwd.m4: New file.
47714         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
47715
47716         Module xreadlink.
47717         * m4/xreadlink.m4: New file.
47718
47719         Module safe-read.
47720         * m4/safe-read.m4: New file.
47721
47722         Module safe-write.
47723         * m4/safe-write.m4: New file.
47724
47725         Module closeout.
47726         * m4/closeout.m4: New file.
47727
47728         Module stdio-safer.
47729         * m4/stdio-safer.m4: New file.
47730
47731         Module getpass.
47732         * m4/getpass.m4: New file.
47733
47734         Module getugroups.
47735         * m4/getugroups.m4: New file.
47736
47737         Module group-member.
47738         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
47739         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
47740
47741         Module idcache.
47742         * m4/idcache.m4: New file.
47743
47744         Module userspec.
47745         * m4/userspec.m4: New file.
47746
47747         Module gettime.
47748         * m4/clock_time.m4: New file.
47749         * m4/gettime.m4: New file.
47750
47751         Module settime.
47752         * m4/settime.m4: New file.
47753
47754         Module posixtm.
47755         * m4/posixtm.m4: New file.
47756
47757         Module gethostname.
47758         * m4/gethostname.m4: New file.
47759
47760         Module canon-host.
47761         * m4/canon-host.m4: New file.
47762
47763         Module gettext.
47764         * m4/codeset.m4: New file, from gettext-0.11.5.
47765         * m4/gettext.m4: New file, from gettext-0.11.5.
47766         * m4/glibc21.m4: New file, from gettext-0.11.5.
47767         * m4/iconv.m4: New file, from gettext-0.11.5.
47768         * m4/intdiv0.m4: New file, from gettext-0.11.5.
47769         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
47770         * m4/inttypes.m4: New file, from gettext-0.11.5.
47771         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
47772         * m4/isc-posix.m4: New file, from gettext-0.11.5.
47773         * m4/lcmessage.m4: New file, from gettext-0.11.5.
47774         * m4/lib-ld.m4: New file, from gettext-0.11.5.
47775         * m4/lib-link.m4: New file, from gettext-0.11.5.
47776         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
47777         * m4/progtest.m4: New file, from gettext-0.11.5.
47778         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
47779         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
47780         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
47781
47782         Module localcharset.
47783         * m4/localcharset.m4: New file.
47784
47785         Module hard-locale.
47786         * m4/hard-locale.m4: New file.
47787
47788         Module mbswidth.
47789         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
47790         onceonly macros.
47791         * m4/mbrtowc.m4: Add comment.
47792
47793         Module memcasecmp.
47794         * m4/memcasecmp.m4: New file.
47795
47796         Module memcoll.
47797         * m4/memcoll.m4: New file.
47798
47799         Module unicodeio.
47800         * m4/unicodeio.m4: New file.
47801
47802         Module rpmatch.
47803         * m4/rpmatch.m4: New file.
47804
47805         Module yesno.
47806         * m4/yesno.m4: New file.
47807
47808         Module exitfail.
47809         * m4/exitfail.m4: New file.
47810
47811         Module c-stack.
47812         * m4/c-stack.m4 (gl_C_STACK): New macro.
47813         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
47814
47815         Module error.
47816         * m4/error.m4 (gl_ERROR): New macro.
47817         (jm_PREREQ_ERROR): Use onceonly macros.
47818
47819         Module fatal.
47820         * m4/fatal.m4: New file.
47821
47822         Module getloadavg.
47823         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
47824         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
47825
47826         Module getpagesize.
47827         * m4/getpagesize.m4: New file.
47828
47829         Module getusershell.
47830         * m4/getusershell.m4: New file.
47831
47832         Module physmem.
47833         * m4/physmem.m4: New file.
47834
47835         Module posixver.
47836         * m4/posixver.m4: New file.
47837
47838         Module quotearg.
47839         * m4/quotearg.m4: New file.
47840
47841         Module quote.
47842         * m4/quote.m4: New file.
47843
47844         Module readutmp.
47845         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
47846
47847         Module sig2str.
47848         * m4/sig2str.m4: New file.
47849
47850         Other.
47851         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
47852         ulonglong.m4.
47853         * m4/intmax_t.m4: New file.
47854         * m4/d-type.m4: Indentation.
47855         * m4/jm-macros.m4: Update.
47856         * m4/prereq.m4 (jm_PREREQ): Update.
47857         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
47858         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
47859         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
47860         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
47861         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
47862         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
47863         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
47864         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
47865         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
47866         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
47867         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
47868         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
47869         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
47870         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
47871         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
47872         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
47873         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
47874         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
47875         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
47876
47877 2002-12-24  Bruno Haible  <bruno@clisp.org>
47878
47879         * MODULES.txt: Update according to m4/ changes.
47880
47881         Module gettext.
47882         * config.rpath: New file, from gettext-0.11.5.
47883
47884         * modules/*: New module descriptions.
47885         * gnulib-tool: New file.
47886         * MODULES.html.sh: New file.
47887
47888 2002-12-21  Karl Berry  <karl@gnu.org>
47889
47890         * doc/fdl.texi: update to version 1.2.
47891
47892 2002-12-19  Karl Berry  <karl@gnu.org>
47893
47894         * config/config.guess: update from prep.
47895
47896 2002-12-18  Bruno Haible  <bruno@clisp.org>
47897
47898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
47899         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
47900
47901 2002-12-17  Bruno Haible  <bruno@clisp.org>
47902
47903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
47904         stdlib.h, string.h.
47905
47906 2002-12-17  Bruno Haible  <bruno@clisp.org>
47907
47908         * lib/canon-host.c (strdup): Remove unused declaration.
47909
47910         * lib/fsusage.c: Include full_read.h.
47911         (get_fs_usage): Use full_read instead of safe_read.
47912
47913         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
47914
47915 2002-12-12  Karl Berry  <karl@gnu.org>
47916
47917         * config/config.guess: update from prep.
47918
47919 2002-12-11  Bruno Haible  <bruno@clisp.org>
47920
47921         * m4/setenv.m4: New file, from gettext-0.11.5.
47922
47923 2002-12-11  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
47926         not unsetenv().
47927         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
47928         modifications:
47929
47930         2002-12-11  Bruno Haible  <bruno@clisp.org>
47931
47932                 * setenv.c (alloca): Fall back to malloc.
47933                 (freea): New macro.
47934                 (setenv): Use freea() to free memory allocated with alloca().
47935
47936         2002-11-13  Bruno Haible  <bruno@clisp.org>
47937
47938                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
47939                 function declarations.
47940                 * unsetenv.c (unsetenv): Likewise.
47941
47942         2002-03-04  Bruno Haible  <bruno@clisp.org>
47943
47944                 Portability to AIX 4.3.3.
47945                 * unsetenv.c: New file, extracted from setenv.c.
47946                 * setenv.c: Move the unsetenv() function to unsetenv.c.
47947
47948         2001-12-20  Bruno Haible  <bruno@clisp.org>
47949
47950                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
47951                 use malloc instead. For SunOS 4.
47952
47953         2001-12-11  Bruno Haible  <bruno@clisp.org>
47954
47955                 * setenv.c: Declare alloca.
47956                 (compar_fn_t): New typedef.
47957                 (KNOWN_VALUE, STORE_VALUE): Use it.
47958
47959         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
47960         setenv.h.
47961
47962 2002-12-10  Paul Eggert  <eggert@twinsun.com>
47963
47964         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
47965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
47966         Choose values that are less likely to collide with system fnmatch
47967         options.
47968         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
47969         defined (e.g., a pure POSIX system).
47970         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
47971         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
47972
47973 2002-12-06  Paul Eggert  <eggert@twinsun.com>
47974
47975         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
47976         a pain in practice to deal with generated m4 files.  This change
47977         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
47978
47979         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
47980         and jm-glibc-io.m4, as they are no longer a special case.
47981         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
47982         kludge and the auto-generation stuff.  Check only whether the
47983         functions are declared, not whether they exist, since older hosts
47984         that don't declare the functions can't use the optimization anyway.
47985
47986 2002-12-06  Jim Meyering  <jim@meyering.net>
47987
47988         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
47989
47990         Merge in changes from libc's misc/error.c, in preparation
47991         for the merge of gnulib's changes back into libc.
47992
47993         * lib/error.c (_): Define only if not already defined.
47994         Move definition to follow all #include directives.
47995         Include unlocked-io.h only if !_LIBC.
47996         [_LIBC]: Include <libio/libioP.h>.
47997         [USE_IN_LIBIO]: Include <libio/iolibio.h>
47998         (fflush): Tweak definition to use INTUSE.
47999         (putc): Define.
48000
48001 2002-12-05  Paul Eggert  <eggert@twinsun.com>
48002
48003         * lib/alloca.c [defined emacs]: Include "lisp.h".
48004         (xalloc_die) [defined emacs]: New macro.
48005         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
48006         [! defined emacs]: Include <xalloc.h>.
48007         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
48008         (pointer): Typedef to POINTER_TYPE *.
48009         (malloc): Remove decl; we now always use xmalloc.
48010         (alloca): Use old-style definition, since Emacs needs this.
48011         Check for arithmetic overflow when computing combined size.
48012
48013 2002-12-04  Paul Eggert  <eggert@twinsun.com>
48014
48015         Do not generate unlocked-io.h automatically, since it's easier to
48016         maintain it by hand.
48017
48018         * lib/unlocked-io.h: New file, from GNU diffutils,
48019         but with proper copyright notice and attribution.
48020         * lib/gen-uio: Remove.
48021         * lib/Makefile.am: Add copyright notice.
48022         (libfetish_a_SOURCES): Add unlocked-io.h.
48023         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
48024         (DISTCLEANFILES, io_functions): Remove macros.
48025         (EXTRA_DIST): Remove gen_uio.
48026         (unlocked-io.h): Remove rule.
48027
48028 2002-12-04  Jim Meyering  <jim@meyering.net>
48029
48030         Reflect the fact that stat.c and lstat.c are no longer generated.
48031         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
48032         (DISTCLEANFILES): Likewise.
48033         (EXTRA_DIST): Likewise.
48034         (all_local): Don't depend on stat.c or lstat.c.
48035         (stat.c, lstat.c): Remove rules.
48036         (EXTRA_DIST): Remove xstat.in.
48037
48038         * lib/xstat.in: Remove file.  Contents moved into stat.c.
48039         * lib/stat.c: New file.  Contents mostly from xstat.in.
48040         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
48041         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
48042
48043         * lib/safe-read.c: Rework so that it may serve to define safe_write,
48044         too.
48045         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
48046
48047 2002-12-03  Jim Meyering  <jim@meyering.net>
48048
48049         * lib/safe-read.c, safe-write.c: Change variable names and comments,
48050         but not semantics, to minimize the differences between these two files.
48051         (safe_read): Change comment to mention SAFE_READ_ERROR.
48052
48053         * lib/safe-read.c (IS_EINTR): Define.
48054         (safe_read): Use IS_EINTR in place of in-function cpp directives.
48055
48056 2002-12-02  Jim Meyering  <jim@meyering.net>
48057
48058         * lib/safe-read.c (EINTR): Define.
48059         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48060         (INT_MAX): Provide fallback.
48061         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
48062
48063         * lib/safe-read.h (SAFE_READ_ERROR): Define.
48064
48065 2002-12-02  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
48068         Define, taken from safe-read.c.
48069         (INT_MAX): Provide fallback.
48070         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
48071         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
48072
48073         * lib/safe-read.c (EINTR): Remove definition.
48074         (safe_read): Don't use EINTR if it is absent.
48075
48076 2002-12-01  Jim Meyering  <jim@meyering.net>
48077
48078         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
48079         zero.
48080         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
48081
48082 2002-11-27  Paul Eggert  <eggert@twinsun.com>
48083
48084         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
48085         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
48086         with `if (! (value < limit)) abort ();', for readability.
48087
48088 2002-11-26  Karl Berry  <karl@gnu.org>
48089
48090         * lib/strdup.c: copy from libc again, with jim's ok.
48091         * lib/.cppi-disable: re-add strdup.c
48092
48093 2002-11-25  Karl Berry  <karl@gnu.org>
48094
48095         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
48096         instead of "strtol.c".
48097
48098 2002-11-25  Karl Berry  <karl@gnu.org>
48099
48100         * config/install-sh: update from automake for variable quoting, $0 in
48101         error msgs, etc.
48102
48103         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
48104         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
48105         entry.
48106
48107 2002-11-25  Jim Meyering  <jim@meyering.net>
48108
48109         * lib/mktime.c: Sync from libc, now that it has the latest fix.
48110
48111 2002-11-24  Karl Berry  <karl@gnu.org>
48112
48113         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
48114         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
48115
48116 2002-11-24  Jim Meyering  <jim@meyering.net>
48117
48118         Update from coreutils:
48119
48120         * lib/mktime.c: Merge in changes from libc.
48121
48122         Avoid a link-time failure on some Linux systems.
48123         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
48124         (otherwise).
48125         (__mon_yday): Declare with the STATIC attribute.
48126         (__mktime_internal): Likewise.
48127         Based on a report from Greg Schafer.
48128
48129 2002-11-23  Jim Meyering  <jim@meyering.net>
48130
48131         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
48132         Use `unsigned', not `int', as type of index.
48133
48134         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
48135
48136         * lib/fsusage.c: Remove unneeded parentheses around operands of
48137         `defined'.
48138
48139 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48140
48141         * lib/quotearg.h: Allow multiple inclusion by surrounding with
48142         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
48143         so that we can be included first.
48144         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
48145         * lib/quotearg.c: Include quotearg.h immediately after config.h.
48146         No need to include stddef.h or sys/types.h any more.
48147         Surround local include files with "", not "<>".
48148         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
48149         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
48150         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
48151         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
48152         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
48153         (ISPRINT): Remove; no longer needed now that we assume C89.
48154
48155         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
48156         Preserve errno.
48157
48158         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
48159         quotearg_char): Use SIZE_MAX rather than
48160         (size_t) -1 when we are talking about "infinity".
48161
48162         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
48163
48164 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48165
48166         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
48167         hint that one should use `if (! x) abort ();' rather than `assert
48168         (x);', and anyway it's one less thing to worry about configuring.
48169         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
48170         hash_rehash, hash_insert): Use abort rather than assert.
48171
48172 2002-11-22  Bruno Haible  <bruno@clisp.org>
48173
48174         * lib/safe-read.h: Assume C89. Add comments.
48175         (safe_read): Change return type to size_t.
48176         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
48177         byte counts > SSIZE_MAX correctly.
48178         * lib/safe-write.h: New file.
48179         * lib/safe-write.c: New file.
48180         * lib/full-read.h: New file.
48181         * lib/full-read.c: New file.
48182         * lib/full-write.h: Assume C89. Add comments.
48183         * lib/full-write.c: Include safe-write.h.
48184         (full_write): Rewritten to use safe_write.
48185         Suggested by Jim Meyering and Paul Eggert.
48186
48187 2002-11-21  Jim Meyering  <jim@meyering.net>
48188
48189         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
48190
48191         Merge in changes from the coreutils.
48192
48193         2002-09-25  Paul Eggert  <eggert@twinsun.com>
48194         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
48195         <stdint.h>.
48196         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
48197         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
48198         int.  Work more efficiently if X is the same width as uintmax_t.
48199         Do not compare X to -1, to avoid bogus compiler warning.
48200         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
48201         Don't assume that f_frsize and f_bsize are the same type.
48202
48203         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
48204         warning on FreeBSD.
48205
48206         * lib/makepath.c (make_path): Restore umask *before* creating the final
48207         component.
48208         (make_path): Minor reformatting.
48209
48210         * lib/xmalloc.c: Adjust to work with new autoconf macros,
48211         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
48212         HAVE_MALLOC/HAVE_REALLOC.
48213
48214         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
48215         dummy ones.  At least on GNU/Linux systems, `auto' means something
48216         else.
48217         From Michael Stone.
48218
48219 2002-11-21  Bruno Haible  <bruno@clisp.org>
48220
48221         Remove case insensitive option matching.
48222         * lib/argmatch.h (argcasematch): Remove declaration.
48223         (ARGCASEMATCH): Remove macro.
48224         (__xargmatch_internal): Remove case_sensitive argument.
48225         (XARGMATCH): Update.
48226         (XARGCASEMATCH): Remove macro.
48227         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
48228         case_sensitive argument.
48229         (argcasematch): Remove function.
48230         (__xargmatch_internal): Remove case_sensitive argument.
48231         (main): Use XARGMATCH instead of XARGCASEMATCH.
48232
48233         * lib/xmalloc.c: Change compile-time error message. Add comment about
48234         required autoconf version.
48235
48236 2002-11-20  Paul Eggert  <eggert@twinsun.com>
48237
48238         Merge argmatch cleanups from Bison.  Assume C89.
48239
48240         * lib/argmatch.c: Include config.h here, not in argmatch.h.
48241         Include stdlib.h, for EXIT_FAILURE.
48242         Always include <string.h>, since we assume C89.
48243         (EXIT_FAILURE): Remove pre-C89 bug workaround.
48244         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
48245         Include <stddef.h> instead, since it's all we need for size_t.
48246         (PARAMS): Remove.  All uses removed.
48247         (ARRAY_CARDINALITY): Do not bother to #undef.
48248         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
48249         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48250         Remove unnecessary parentheses.
48251         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48252         Insert necessary parentheses.
48253         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
48254         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
48255
48256 2002-11-19  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
48259         * lib/mbswidth.h: Include <stddef.h>, for size_t.
48260
48261         * lib/mbswidth.h (PARAMS): Remove macro.
48262         (mbswidth, mbsnwidth): Use ANSI C function declarations.
48263         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
48264
48265         * lib/gcd.h (PARAMS): Remove macro.
48266         (gcd): Use ANSI C function declarations.
48267         * lib/gcd.c (gcd): Likewise.
48268
48269 2002-11-15  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/strcspn.c: Include <stddef.h>.
48272         (strcspn): Use ANSI C function declaration. Change return type to
48273         size_t. Use NULL.
48274         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
48275         (strpbrk): Use NULL.
48276         * lib/strpbrk.h (PARAMS): Remove macro.
48277         (strpbrk): Use ANSI C function declaration.
48278         * lib/strstr.c: Don't include <sys/types.h>.
48279         * lib/strstr.h (PARAMS): Remove macro.
48280         (strstr): Use ANSI C function declarations.
48281
48282 2002-11-14  Karl Berry  <karl@gnu.org>
48283
48284         * config/mkinstalldirs: `do' on separate line, instead of
48285         `for var; do'.
48286
48287 2002-11-06  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
48290         * lib/gcd.c (gcd): Likewise.
48291
48292 2002-11-05  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/gcd.h: New file, from gettext-0.11.5.
48295         * lib/gcd.c: New file, from gettext-0.11.5.
48296
48297 2002-11-05  Bruno Haible  <bruno@clisp.org>
48298
48299         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48300         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48301         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48302         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48303
48304         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
48305         <libintl.h>.
48306         * lib/makepath.c: Include gettext.h instead of <locale.h> and
48307         <libintl.h>.
48308
48309         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
48310         * lib/human.c: Include gettext.h instead of <libintl.h>.
48311         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
48312         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
48313         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
48314         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
48315         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
48316         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
48317         (textdomain): Remove definition.
48318         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
48319
48320         * lib/long-options.c: Remove include of <libintl.h> and definition of
48321         _.
48322         * lib/same.c: Remove include of <libintl.h> and definition of _.
48323
48324 2002-11-04  Owen Taylor  <otaylor@redhat.com>
48325
48326         * lib/config.charset: A few additions for Solaris.
48327
48328 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48329
48330         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
48331         * lib/localcharset.c (locale_charset): Declare as extern "C".
48332
48333 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48334
48335         * lib/config.charset: msdos in uk_UA uses CP1125.
48336
48337 2002-11-04  Bruno Haible  <bruno@clisp.org>
48338
48339         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
48340         * lib/strcase.h: New file, from GNU gettext-0.11.5.
48341         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
48342         * lib/strstr.h: New file, from GNU gettext-0.11.5.
48343         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
48344
48345 2002-11-04  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/localcharset.c (locale_charset): Don't return an empty string.
48348
48349 2002-11-04  Bruno Haible  <bruno@clisp.org>
48350
48351         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
48352         aliases.
48353
48354 2002-11-04  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/config.charset: Update for newest glibc. Add canonical names
48357         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
48358
48359 2002-11-04  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/config.charset: Add support for NetBSD.
48362
48363 2002-11-04  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
48366
48367 2002-11-01  Bruno Haible  <bruno@clisp.org>
48368
48369         * configure.in: Add AC_CONFIG_AUX_DIR call.
48370         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
48371         test/Makefile.
48372         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
48373
48374 2002-09-28  Karl Berry  <karl@gnu.org>
48375
48376         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
48377         installed automake until the next release, since changes have been
48378         made.
48379
48380 2002-09-25  Karl Berry  <karl@gnu.org>
48381
48382         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
48383         * lib/getopt*: copy from libc/posix.
48384         * lib/gettext.h: copy from gettext.
48385         * lib/.cppi-disable: add strdup.c, gettext.h.
48386
48387 2002-09-25  Karl Berry  <karl@gnu.org>
48388
48389         * config/srclist.txt: enable gettext.h check.
48390         * config/config.{guess,sub}: update from prep.
48391         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
48392                 from automake 1.6.3.
48393         See srclist*.
48394
48395 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
48396
48397         * regex.c (PATFETCH): Remove the translating fetch.
48398         (PATFETCH_RAW): Rename to PATFETCH.
48399         (set_image_of_range): New fun.
48400         (SET_RANGE_TABLE_WORK_AREA): Use it.
48401         (regex_compile): Don't translate the pattern chars so eagerly.
48402         Only do it when inserting an `exactn' bytecode or when handling
48403         a char-range.
48404         (mutually_exclusive_p): Avoid empty statement.
48405
48406 2002-07-06  Jim Meyering  <meyering@lucent.com>
48407
48408         * m4/README: Don't mention Makefile.am.in.
48409         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
48410
48411 2002-07-01  Jim Meyering  <meyering@lucent.com>
48412
48413         * lib/c-stack.c: Include sys/time.h.
48414         From Volker Borchert.
48415
48416 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48417
48418         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
48419
48420 2002-06-26  Paul Eggert  <eggert@twinsun.com>
48421
48422         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
48423         New macro.  Use it uniformly instead of
48424         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
48425         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
48426         reported by Vin Shelton.
48427
48428 2002-06-22  Paul Eggert  <eggert@twinsun.com>
48429
48430         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
48431         Do not assume SA_SIGINFO behavior.
48432         Bug reported by Jim Meyering on NetBSD 1.5.2.
48433
48434 2002-06-22  Jim Meyering  <meyering@lucent.com>
48435
48436         * m4/c-stack.m4: New file, from diffutils-2.8.2.
48437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
48438
48439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
48440         now that configure.ac uses AC_GNU_SOURCE.
48441         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
48442         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
48443
48444         Update to latest tools.  Suggestions from Paul Eggert.
48445         * m4/stdbool.m4: New file, from diffutils-2.8.2.
48446         * m4/gnu-source.m4: Update from diffutils-2.8.2.
48447         * m4/fnmatch.m4: Likewise.
48448         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
48449         to AC_HEADER_STDBOOL
48450
48451 2002-06-22  Jim Meyering  <meyering@lucent.com>
48452
48453         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
48454         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
48455
48456 2002-06-22  Jim Meyering  <meyering@lucent.com>
48457
48458         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
48459
48460         * lib/exitfail.c, exitfail.h: Likewise.
48461         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
48462
48463         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
48464         of fnmatch.h.
48465         (EXTRA_DIST): Add fnmatch_loop.c.
48466         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
48467
48468         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
48469         * lib/fnmatch.c: Update from diffutils-2.8.2.
48470         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
48471         * lib/fnmatch.h: Remove file.
48472
48473 2002-06-21  Jim Meyering  <meyering@lucent.com>
48474
48475         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
48476         * m4/mbrtowc.m4: Likewise.
48477
48478         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
48479         * m4/mbswidth.m4: Reflect name change:
48480         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
48481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48482
48483         * m4/lib-link.m4: Update from gettext-0.11.2.
48484         * m4/gettext.m4: Likewise.
48485
48486         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
48487         From Alfred M. Szmidt.
48488
48489 2002-06-18  Paul Eggert  <eggert@twinsun.com>
48490
48491         * lib/file-type.h: Report an error if neither S_ISREG nor
48492         S_IFREG is defined, instead of using a test specific to glibc
48493         2.2.  This should be safe, since POSIX requires S_ISREG and
48494         Unix Version 7 had S_IFREG.  We don't need to check for
48495         <sys/types.h> since we don't use any symbols that it defines.
48496
48497 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
48498
48499         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
48500         $@-t, so that each temporary file name is unique and valid in the first
48501         8 characters, for operation under DOS.
48502
48503 2002-06-15  Paul Eggert  <eggert@twinsun.com>
48504
48505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
48506
48507 2002-06-15  Jim Meyering  <meyering@lucent.com>
48508
48509         Work even with DJGPP 2.03, which lacks support for symlinks.
48510         From Richard Dawe.
48511         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
48512         is defined.
48513         * lib/lchown.c (S_ISLNK): Likewise.
48514
48515 2002-06-15  Jim Meyering  <meyering@lucent.com>
48516
48517         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
48518         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
48519         have been included before this file.
48520
48521 2002-06-14  Jim Meyering  <meyering@lucent.com>
48522
48523         * lib/file-type.h: Use the version from diffutils-2.8.2.
48524         * lib/file-type.c: Likewise.
48525
48526 2002-06-07  Jim Meyering  <meyering@lucent.com>
48527
48528         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
48529         They're needed at least for NetBSD 1.5.2.
48530         ($statxfs_includes): Include those same headers.
48531         ($statxfs_includes): Include sys/vfs.h if available.
48532         ($statxfs_includes): Likewise for sys/statvfs.h.
48533         Check for the following members in both structs statfs and statvfs:
48534         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
48535
48536 2002-06-01  Jim Meyering  <meyering@lucent.com>
48537
48538         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
48539         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
48540
48541 2002-05-28  Jim Meyering  <meyering@lucent.com>
48542
48543         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
48544         Reported by Volker Borchert.
48545
48546 2002-05-27  Jim Meyering  <meyering@lucent.com>
48547
48548         Fix a problem seen only on nonconforming systems whereby ls.c's
48549         use of localtime, and then of gettimeofday would cause trouble:
48550         the localtime call used to initialize rpl_gettimeofday's save
48551         mechanism would clobber ls's current local time information so
48552         that in any long listing the first file would always be listed
48553         with date 1970-01-01.  Analysis by Volker Borchert.
48554
48555         * lib/gettimeofday.c (localtime): Undefine.
48556         (rpl_localtime): New function.
48557
48558 2002-05-27  Jim Meyering  <meyering@lucent.com>
48559
48560         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
48561         localtime.
48562
48563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
48564         use the replacement function; it wouldn't resolve at link time.
48565         Reported by Volker Borchert.
48566
48567 2002-05-22  Jim Meyering  <meyering@lucent.com>
48568
48569         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
48570         file-type.h.
48571         * lib/file-type.h: New file.
48572         * lib/file-type.c (file_type): New file/function.  Extracted from
48573         diffutils.
48574
48575 2002-04-30  Jim Meyering  <meyering@lucent.com>
48576
48577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
48578
48579 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48580
48581         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
48582
48583 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48584
48585         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
48586         Do not check for alloca.h (no longer used) or stdbool.h (was never
48587         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
48588
48589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
48590
48591         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
48592
48593 2002-04-29  Jim Meyering  <meyering@lucent.com>
48594
48595         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
48596         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
48597         Use AC_FUNC_STRNLEN here instead.
48598
48599         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
48600         With autoconf-2.53a, it's part of AC_PROG_CC.
48601
48602 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48603
48604         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
48605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
48606
48607 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48608
48609         * lib/sig2str.h, lib/sig2str.c: New files.
48610         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
48611
48612 2002-04-28  Paul Eggert  <eggert@twinsun.com>
48613
48614         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
48615         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
48616         of 127, since 64 is the largest conceivable number for ancient
48617         nonstandard hosts.
48618         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
48619
48620 2002-04-28  Jim Meyering  <meyering@lucent.com>
48621
48622         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
48623
48624 2002-04-24  Jim Meyering  <meyering@lucent.com>
48625
48626         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
48627         (jm_PREREQ): Use it.
48628
48629         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
48630         mach/mach.h fcntl.h.
48631         Check for this function: setlocale.
48632
48633 2002-04-24  Jim Meyering  <meyering@lucent.com>
48634
48635         * lib/gettext.h: New file, from Gettext.
48636         * lib/Makefile.am (INCLUDES): Remove -I../intl.
48637         (libfetish_a_SOURCES): Add gettext.h.
48638
48639 2002-04-16  Jim Meyering  <meyering@lucent.com>
48640
48641         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
48642         ut_pid, ut_id, ut_exit.
48643
48644 2002-04-16  Jim Meyering  <meyering@lucent.com>
48645
48646         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
48647         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
48648         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
48649
48650 2002-04-12  Jim Meyering  <meyering@lucent.com>
48651
48652         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
48653         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
48654         existence of the getmntinfo function.  Needed for Darwin 5.3.
48655
48656         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
48657         This is necessary at least on Darwin 5.3.
48658
48659         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
48660         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
48661         strnlen.o in the library, and that makes some versions of ranlib
48662         object.
48663
48664 2002-04-12  Jim Meyering  <meyering@lucent.com>
48665
48666         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
48667
48668 2002-04-09  Jim Meyering  <meyering@lucent.com>
48669
48670         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
48671         to be more precise.  Rather than saying we're checking whether the
48672         function `works', say what we're testing.
48673         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
48674         Reported by Bruno Haible.
48675
48676 2002-03-10  Jim Meyering  <meyering@lucent.com>
48677
48678         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
48679         Suggestion from Santiago Vila.
48680
48681 2002-03-08  Jim Meyering  <meyering@lucent.com>
48682
48683         * lib/rename.c: Mention that this wrapper is needed also on
48684         mips-dec-ultrix4.4 systems.
48685
48686 2002-03-02  Jim Meyering  <meyering@lucent.com>
48687
48688         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
48689         not HAVE_CLOCK_SETTIME.
48690
48691 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48692
48693         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
48694         Check for clock_settime.
48695
48696 2002-02-27  Paul Eggert  <eggert@twinsun.com>
48697
48698         * lib/nanosleep.h: Rename to....
48699         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
48700
48701         * lib/gettime.c: New file.
48702         * lib/settime.c: New file.
48703         * lib/stime.c: Remove.
48704
48705         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
48706         timespec.h.  Remove nanosleep.h.
48707
48708 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48709
48710         * m4/acl.m4: New file.
48711         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
48712         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
48713
48714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
48715
48716         * lib/acl.c, lib/acl.h: New files.
48717         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
48718
48719 2002-02-24  Jim Meyering  <meyering@lucent.com>
48720
48721         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
48722         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
48723         cause trouble.  Reported by Nelson Beebe.
48724
48725 2002-02-23  Paul Eggert  <eggert@twinsun.com>
48726
48727         * lib/path-concat.c (xpath_concat): Reorder code to pacify
48728         compilers that don't know that xalloc_die never returns.
48729
48730 2002-02-20  Jim Meyering  <meyering@lucent.com>
48731
48732         * lib/getdate.c: Regenerate using bison-1.33.
48733
48734 2002-02-17  Jim Meyering  <meyering@lucent.com>
48735
48736         * config/config.guess (main): Don't use `head -1'; it's no longer
48737         portable. Use `sed 1q' instead.
48738
48739 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
48740
48741         * m4/codeset.m4: Upgrade to gettext-0.11.
48742         * m4/gettext.m4: Upgrade to gettext-0.11.
48743         * m4/glibc21.m4: Upgrade to gettext-0.11.
48744         * m4/iconv.m4: Upgrade to gettext-0.11.
48745         * m4/isc-posix.m4: Upgrade to gettext-0.11.
48746         * m4/lcmessage.m4: Upgrade to gettext-0.11.
48747         * m4/lib-ld.m4: New file, from gettext-0.11.
48748         * m4/lib-link.m4: New file, from gettext-0.11.
48749         * m4/lib-prefix.m4: New file, from gettext-0.11.
48750         * m4/progtest.m4: Upgrade to gettext-0.11.
48751
48752 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48753
48754         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
48755         (jm_PREREQ): Use it.
48756
48757 2002-02-15  Paul Eggert  <eggert@twinsun.com>
48758
48759         * lib/posixver.c, lib/posixver.h: New files.
48760         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48761
48762 2002-02-02  Paul Eggert  <eggert@twinsun.com>
48763             Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
48766         (fwrite_success_callback): New declaration.
48767         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
48768         print_unicode_char. Call failure callback instead of error.
48769         (fwrite_success_callback): New function.
48770         (exit_failure_callback): New function.
48771         (fallback_failure_callback): New function.
48772         (print_unicode_char): Call unicode_to_mb.
48773
48774 2002-01-26  Jim Meyering  <meyering@lucent.com>
48775
48776         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
48777         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
48778
48779 2002-01-26  Jim Meyering  <meyering@lucent.com>
48780
48781         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
48782
48783 2002-01-22  Paul Eggert  <eggert@twinsun.com>
48784
48785         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
48786
48787 2002-01-22  Jim Meyering  <meyering@lucent.com>
48788
48789         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
48790         Otherwise, some versions of automake would omit the rule that makes
48791         Makefile from Makefile.in.
48792
48793 2002-01-21  Paul Eggert  <eggert@twinsun.com>
48794
48795         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
48796         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
48797         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
48798         (memcoll): Set errno to zero if there is no error.
48799
48800         * lib/quotearg.c (quotearg_buffer_restyled):
48801         Fix bug with quoting buffers containing NUL when backslashing escapes.
48802         This bug was exposed by the other changes in this patch.
48803         (quotearg_n_options): New arg ARGSIZE.
48804         All callers changed.
48805         (quoting_options_from_style): New function.
48806         (quotearg_n_style): Use it.
48807         (quotearg_n_style_mem): New function.
48808
48809         * lib/quotearg.h (quotearg_n_style_mem): New function.
48810
48811 2002-01-19  Jim Meyering  <meyering@lucent.com>
48812
48813         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
48814         Remove useless quotes: DF_PROG="df".
48815         * m4/strnlen.m4: New file.
48816
48817 2002-01-16  Paul Eggert  <eggert@twinsun.com>
48818
48819         * lib/backupfile.c (ISDIGIT): Comment fix.
48820         * lib/getdate.y (ISDIGIT): Likewise.
48821         * lib/posixtm.c (ISDIGIT, year): Likewise.
48822         * lib/strverscmp.c (ISDIGIT): Likewise.
48823         * lib/userspec.c (ISDIGIT): Likewise.
48824
48825 2002-01-16  Jim Meyering  <meyering@lucent.com>
48826
48827         * lib/getdate.y: Add three semicolons, each just before a closing
48828         brace. Bison (as of version 1.31) no longer papers over that mistake.
48829
48830 2002-01-05  Jim Meyering  <meyering@lucent.com>
48831
48832         * lib/version-etc.c (version_etc_copyright): Update copyright year.
48833
48834 2001-12-19  Paul Eggert  <eggert@twinsun.com>
48835
48836         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
48837         not silently exit merely because the output buffer happens to
48838         have nothing pending.
48839
48840 2001-12-18  Paul Eggert  <eggert@twinsun.com>
48841
48842         See the big note in ../ChangeLog.
48843         * lib/human.c (suffixes): Prefer K to k for 1024.
48844         (generate_suffix_backwards): New function.
48845         (human_readable_inexact): Use it.
48846         * lib/xstrtol.c (__xstrtol): If there is no number but there
48847         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
48848         Accept 'K' as well as 'k'.
48849
48850 2001-12-15  Jim Meyering  <meyering@lucent.com>
48851
48852         * lib/regex.h (__restrict_arr): Update from libc.
48853
48854         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
48855         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
48856         (STREQ): Define.
48857
48858 2001-12-14  Jim Meyering  <meyering@lucent.com>
48859
48860         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
48861         Suggestion from Bruno Haible.
48862
48863 2001-12-10  Jim Meyering  <meyering@lucent.com>
48864
48865         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
48866         xrealloc, Instead, include "xalloc.h".
48867         (initbuffer): Don't cast xmalloc return value to char*.
48868         (readline): Reword comment.
48869         Don't cast xrealloc return value to char*
48870         Return NULL, not 0.
48871
48872 2001-12-09  Jim Meyering  <meyering@lucent.com>
48873
48874         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
48875         about `signed and unsigned type in conditional expression'.
48876         * lib/posixtm.c (posix_time_parse): Likewise.
48877
48878         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
48879
48880         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
48881         to avoid a pedantic warning.
48882
48883         * lib/getstr.c: Don't include assert.h.
48884         (getstr): Remove warning-evoking assertions.
48885         Return -1 if offset parameter is out of bounds.
48886         Change the type of a local from int to size_t.
48887
48888         * lib/strftime.c (my_strftime_localtime_r): Include this function
48889         definition in the `#if ! HAVE_TM_GMTOFF' block.
48890
48891         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
48892         Include xalloc.h instead.
48893
48894 2001-12-02  Jim Meyering  <meyering@lucent.com>
48895
48896         * lib/tempname.c: Don't declare getenv, thus reverting the change of
48897         2001-11-18.  It's no longer necessary, now that stdlib.h is always
48898         included.
48899
48900         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
48901         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
48902
48903 2001-11-30  Akim Demaille  <akim@epita.fr>
48904
48905         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
48906         before being defined.
48907
48908 2001-11-27  Paul Eggert  <eggert@twinsun.com>
48909
48910         * lib/quotearg.h (quotearg_n, quotearg_n_style):
48911         First arg is int, not unsigned.
48912         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
48913         (SIZE_MAX, UINT_MAX): New macros.
48914         (quotearg_n_options): Abort if N is negative.
48915         Avoid overflow check on hosts where size_t is 64 bits and int
48916         is 32 bits, as overflow is impossible there.
48917         Fix off-by-one typo that caused unnecessary reallocation.
48918
48919 2001-11-27  Jim Meyering  <meyering@lucent.com>
48920
48921         * lib/tempname.c: Merge with version from libc.
48922         * lib/regex.c: Likewise.
48923
48924         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
48925         systems for which STDC_HEADERS is 0, it was not included, resulting in
48926         a warning about an integer-to-pointer conversion problem with getenv.
48927         Reported by Volker Borchert.
48928
48929 2001-11-26  Jim Meyering  <meyering@lucent.com>
48930
48931         * lib/gtod.h: Remove file.
48932         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
48933         * lib/gettimeofday.c: Don't include gtod.h.
48934         (GTOD_init): Remove function.
48935         (rpl_gettimeofday): Do its job here instead, rather than aborting.
48936         Suggestion from Volker Borchert.
48937
48938 2001-11-23  Jim Meyering  <meyering@lucent.com>
48939
48940         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
48941         it.
48942         * lib/hash.c (struct hash_table): Define it here instead.
48943
48944 2001-11-22  Jim Meyering  <meyering@lucent.com>
48945
48946         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
48947
48948 2001-11-20  Jim Meyering  <meyering@lucent.com>
48949
48950         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
48951         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
48952
48953 2001-11-19  Jim Meyering  <meyering@lucent.com>
48954
48955         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
48956         directory.  Use "conftestXXXXXX" as the template.
48957         Suggestion from Paul Eggert.
48958
48959         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
48960         immediately, so the test doesn't mistakenly hit the max-open-files
48961         limit.
48962
48963 2001-11-18  Paul Eggert  <eggert@twinsun.com>
48964
48965         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
48966         (TEMPORARIES): New macro.
48967         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
48968         removes an artificial limitation (e.g. HP-UX 10.20, where
48969         TMP_MAX is 17576).
48970
48971 2001-11-18  Jim Meyering  <meyering@lucent.com>
48972
48973         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
48974
48975 2001-11-18  Jim Meyering  <meyering@lucent.com>
48976
48977         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
48978         on SunOS 4.
48979
48980         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
48981         files will be created before anything else.
48982
48983 2001-11-17  Paul Eggert  <eggert@twinsun.com>
48984
48985         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
48986         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
48987
48988 2001-11-17  Jim Meyering  <meyering@lucent.com>
48989
48990         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
48991         Prompted by a report from Bob Proulx.
48992
48993         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
48994         Instead, require UTILS_FUNC_MKSTEMP.
48995
48996 2001-11-17  Jim Meyering  <meyering@lucent.com>
48997
48998         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
48999         Now, that's done as part of AC_FUNC_STRTOD.
49000
49001 2001-11-17  Jim Meyering  <meyering@lucent.com>
49002
49003         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
49004         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
49005         rather than group writable.  Patch by Juan F. Codagnone.
49006
49007         * lib/readtokens.c: Remove explicit declarations of xmalloc and
49008         xrealloc, Instead, include "xalloc.h".
49009
49010         * lib/mountlist.c: Include unlocked-io.h after all system headers.
49011         Remove explicit declarations of xmalloc, xrealloc,
49012         and xstrdup.  Instead, include "xalloc.h".
49013
49014         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
49015         unlocked-io.h.
49016         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
49017         Likewise.
49018         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
49019
49020         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
49021         Reported by Padraig Brady.
49022
49023         * lib/mkstemp.c: #undef mkstemp.
49024         Include config.h.
49025         (rpl_mkstemp): Rename from mkstemp.
49026         Protoize.
49027
49028 2001-11-16  Jim Meyering  <meyering@lucent.com>
49029
49030         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
49031         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
49032         determine the amount of total physical memory, use pstat_getstatic.
49033         HPUX-11 doesn't define _SC_PHYS_PAGES.
49034         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
49035         If sysconf couldn't be used to determine the amount of available
49036         physical memory, use both pstat_getstatic and pstat_getdynamic.
49037         Based on a patch from Bob Proulx.
49038
49039 2001-11-10  Jim Meyering  <meyering@lucent.com>
49040
49041         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
49042         (jm_PREREQ): Use it.
49043
49044 2001-11-09  Jim Meyering  <meyering@lucent.com>
49045
49046         * m4/jm-macros.m4: Require autoconf-2.52f.
49047         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
49048         Use these AC_-prefixed names, not the AM_-prefixed ones.
49049
49050         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
49051
49052 2001-11-05  Jim Meyering  <meyering@lucent.com>
49053
49054         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
49055
49056 2001-11-04  Jim Meyering  <meyering@lucent.com>
49057
49058         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
49059         $DEFS.
49060
49061 2001-11-03  Jim Meyering  <meyering@lucent.com>
49062
49063         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
49064         of AC_DEFUN.
49065
49066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
49067         know the name of the variable in the macro definition.
49068
49069 2001-11-03  Jim Meyering  <meyering@lucent.com>
49070
49071         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
49072         in argmatch_to_argument call.
49073
49074         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
49075         argument.
49076
49077         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
49078         e.g., a fault due to an attempt to free a NULL pointer.
49079
49080 2001-11-01  Jim Meyering  <meyering@lucent.com>
49081
49082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
49083         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
49084
49085 2001-11-01  Jim Meyering  <meyering@lucent.com>
49086
49087         * lib/dirfd.c, lib/dirfd.h: New files.
49088         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
49089
49090         * lib/hash.c (hash_print) [TESTING]: Clean up.
49091
49092 2001-10-22  Paul Eggert  <eggert@twinsun.com>
49093
49094         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
49095         to avoid a warning if -Wall.
49096
49097 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
49098
49099         * README: New file
49100         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
49101         (per RMS's instructions, this is now the canonical source)
49102         * lgpl/, gpl/: New directories.
49103
49104 2001-10-21  Paul Eggert  <eggert@twinsun.com>
49105
49106         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
49107
49108 2001-10-21  Jim Meyering  <meyering@lucent.com>
49109
49110         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
49111         this code would end up calling gettext even in packages built
49112         with --disable-nls.
49113         * lib/getopt.c (_): Likewise.
49114         * lib/regex.c (_): Likewise.
49115
49116 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49117
49118         * m4/error.m4 (jm_PREREQ_ERROR):
49119         Do not invoke AC_CHECK_FUNCS with strerror_r, as
49120         AC_FUNC_STRERROR_R does that.
49121         Check for strerror declaration.
49122
49123         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
49124         are supposed to have them these days.
49125         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
49126         Merge changes from latest Autoconf CVS.
49127         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
49128         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
49129         POSIX decided to standardize on the int flavor of strerror_r.
49130
49131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49132
49133         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
49134         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
49135         Use strerror_r that is only a macro, even if it is not a function.
49136         (strerror): Check for HAVE_DECL_STRERROR before declaring.
49137         (private_strerror): Use prototypes, not old-style function definition.
49138         (print_errno_message): New function.
49139         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
49140         char*-flavored one.
49141         (error_tail, error, error_at_line): Use it.
49142
49143 2001-10-11  Jim Meyering  <meyering@lucent.com>
49144
49145         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
49146         and quote_n (1, ... to avoid clobbering a buffer.
49147
49148 2001-10-05  Jim Meyering  <meyering@lucent.com>
49149
49150         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
49151         hash-pjw.h.
49152         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
49153         * lib/hash-pjw.h: New file.
49154
49155 2001-09-30  Jim Meyering  <meyering@lucent.com>
49156
49157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
49158         `struct fsstat' has the `f_fstypename' member.
49159         Use that to define FS_TYPE, which is now used to make
49160         the getfsstat link test tighter.
49161
49162 2001-09-30  Jim Meyering  <meyering@lucent.com>
49163
49164         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
49165         Include <sys/ucred.h>, for Apple Darwin.
49166         Include sys/mount.h and sys/fs_types.h only if available.
49167         (FS_TYPE): Define.
49168         (read_filesystem_list): Use FS_TYPE.
49169
49170 2001-09-29  Paul Eggert  <eggert@twinsun.com>
49171
49172         * lib/exclude.c (excluded_filename): 0 -> false, since it's
49173         a boolean context.
49174
49175 2001-09-29  Jim Meyering  <meyering@lucent.com>
49176
49177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49178         [one-argument getmntent function]): Include stdio.h before mntent.h.
49179         SunOS 4.1.x needs it for the declaration of `FILE'.
49180         Patch by Volker Borchert.
49181
49182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49183         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
49184         sys/fs_types.h, and make the link-test for getfsstat guard #include
49185         directives with appropriate #if HAVE_*_H tests so that we can
49186         detect getfsstat on Apple Darwin1.3.7 systems.
49187         Reported by Nelson Beebe.
49188         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
49189
49190 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49191
49192         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49193         #defines strtoimax.  Also treat the other strto* functions
49194         like strtoimax.
49195
49196         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49197         Check for strtoul and strtoumax,
49198         as those declarations are made even in the signed case.
49199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
49200         Likewise, for strtol and strtoimax.
49201
49202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49203
49204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49205         #defines strtoimax.  Also treat the other strto* functions
49206         like strtoimax.
49207
49208         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
49209         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
49210         (strtoimax, strtoumax): Do not declare if already defined as a macro.
49211
49212 2001-09-26  Jim Meyering  <meyering@lucent.com>
49213
49214         Most macros in unlocked-io.h had the wrong number of arguments.
49215         * lib/gen-uio: New script.
49216         (USE_UNLOCKED_IO): Define to 1 if not already defined.
49217         * lib/unlocked-io.hin: Remove file.
49218         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
49219         rather than trying to embed it here.
49220         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
49221         Reported by Padraig Brady.
49222
49223 2001-09-25  Volker Borchert  <bt@teknon.de>
49224
49225         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
49226         `result'.
49227
49228 2001-09-24  Jim Meyering  <meyering@lucent.com>
49229
49230         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
49231
49232 2001-09-23  Jim Meyering  <meyering@lucent.com>
49233
49234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
49235         instead of the mere test for existence of mntent.h.  The latter
49236         would get a false-positive on AIX 3.4 systems.
49237         In the outer getmntent if-block, don't die if neither of the getmntent
49238         tests succeeds.  Instead, just fall through and continue with the
49239         remaining tests.
49240
49241 2001-09-23  Jim Meyering  <meyering@lucent.com>
49242
49243         * lib/mountlist.c: Remove useless parentheses in #if directives.
49244         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
49245         the deprecated MOUNTED symbol is no longer defined in mntent.h.
49246
49247 2001-09-22  Jim Meyering  <meyering@lucent.com>
49248
49249         * m4/gettext.m4: New file.  From gettext.
49250         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
49251         * m4/progtest.m4: Likewise
49252         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
49253         * m4/glibc21.m4: Likewise.
49254
49255         * m4/libintl.m4: Remove.  No longer used.
49256
49257 2001-09-22  Jim Meyering  <meyering@lucent.com>
49258
49259         * lib/localcharset.c: Update from latest gettext.
49260         * lib/config.charset: Likewise.
49261
49262 2001-09-20  Jim Meyering  <meyering@lucent.com>
49263
49264         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
49265         strtoimax.
49266         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
49267         strtoumax.
49268
49269 2001-09-20  Jim Meyering  <meyering@lucent.com>
49270
49271         * lib/xstrtol.c (strtoimax): Guard declaration with
49272         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
49273         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
49274         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
49275         (strtoumax): Likewise, for completeness (it wasn't necessary).
49276
49277 2001-09-17  Paul Eggert  <eggert@twinsun.com>
49278
49279         * lib/strtoimax.c (HAVE_LONG_LONG):
49280         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
49281         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
49282         to work around bug in IBM C compiler.
49283
49284 2001-09-17  Jim Meyering  <meyering@lucent.com>
49285
49286         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
49287         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
49288         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
49289         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
49290         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
49291         whenever the right hand side need not be expanded by the shell.
49292
49293 2001-09-16  Paul Eggert  <eggert@twinsun.com>
49294
49295         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
49296         library.  It's not correct, as some older glibcs are buggy.
49297         fnmatch wasn't fixed until glibc 2.2.
49298
49299         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
49300         special shell magic here.
49301
49302 2001-09-16  Jim Meyering  <meyering@lucent.com>
49303
49304         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
49305         * m4/jm-macros.m4: Require it.
49306
49307 2001-09-16  Jim Meyering  <meyering@lucent.com>
49308
49309         * lib/mkdir.c: New file.
49310
49311 2001-09-15  Jim Meyering  <meyering@lucent.com>
49312
49313         * m4/jm-macros.m4: Check for help2man.
49314
49315 2001-09-11  Jim Meyering  <meyering@lucent.com>
49316
49317         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
49318         The body, by Paul Eggert, was moved here from configure.in.
49319         * m4/jm-macros.m4: Require UTILS_HOST_OS.
49320
49321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49322
49323         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
49324         (jm_PREREQ): Use it.
49325
49326 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49327
49328         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
49329         Use ssize_t, not int, to store result of readlink.
49330         Check for ssize_t overflow as well as size_t overflow,
49331         as POSIX says the result of readlink is implementation-defined
49332         when ssize_t overflows.
49333         Remove unnecessary cast to char*.
49334         Use free+malloc instead of realloc, as the storage doesn't need
49335         to be preserved and it's clearer and can be more efficient that way.
49336         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
49337         * lib/xreadlink.h (xreadlink): Update prototype.
49338
49339 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49340
49341         * lib/xgetcwd.c: Revert some of the previous change; intead,
49342         fix the HAVE_GETCWD_NULL code to behave more like the
49343         !HAVE_GETCWD_NULL code used to.
49344
49345         Include "xalloc.h".
49346         (xgetcwd): Do not return NULL when memory is exhausted; instead,
49347         invoke xalloc_die.
49348
49349 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49350
49351         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
49352         sys/param.h, as pathmax.h includes them.
49353
49354 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49355
49356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
49357         (jm_PREREQ_XGETCWD): New macro.
49358
49359         * m4/getcwd.m4: New file.
49360
49361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49362
49363         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
49364         like the HAVE_GETCWD_NULL code.
49365         Include pathmax.h if not HAVE_GETCWD.
49366         Do not include xalloc.h.
49367         (INITIAL_BUFFER_SIZE): New symbol.
49368         Do not use xmalloc / xrealloc, since the caller is responsible for
49369         handling errors.  Preserve errno around `free' during failure.
49370         Do not overrun buffer when using getwd.
49371
49372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49373
49374         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
49375         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
49376         getcwd (NULL, 0).
49377
49378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49379
49380         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
49381         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
49382         spotted by Jim Meyering.
49383
49384 2001-09-03  Jim Meyering  <meyering@lucent.com>
49385
49386         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
49387         failure.
49388
49389 2001-09-02  Jim Meyering  <meyering@lucent.com>
49390
49391         * lib/error.c: Update from GNU libc.
49392
49393 2001-09-01  Jim Meyering  <meyering@lucent.com>
49394
49395         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
49396         Used by df.
49397
49398 2001-09-01  Jim Meyering  <meyering@lucent.com>
49399
49400         * lib/xreadlink.c: New file.
49401         * lib/xreadlink.h: New file.
49402         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
49403         xreadlink.h.
49404
49405         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
49406         doesn't conflict with sparc Solaris 7's definition in
49407         /usr/include/sys/int_types.h.
49408
49409         * lib/exclude.c: Use `""', not `<>' to #include non-system header
49410         files.
49411         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
49412         and strncasecmp as r-values.  Unixware didn't have declarations.
49413
49414 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49415
49416         * lib/xstrtol.h: Add copyright notice.
49417         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
49418         LONGINT_INVALID_SUFFIX_CHAR.
49419
49420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49421
49422         * lib/xstrtol.c (strtoimax): New decl.
49423
49424 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49425
49426         * lib/xgetcwd.c: Don't include pathmax.h.
49427         Include stdlib.h and unistd.h if available.
49428         Include xalloc.h.
49429         (xmalloc, xstrdup, free): Remove decls.
49430         (xgetcwd): Don't assume sizes fit in unsigned.
49431         Check for overflow when computing sizes.
49432         Simplify reallocation code.
49433
49434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49435
49436         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
49437         a directory's st_size can have an arbitrary value, so the old
49438         usage could waste an arbitrary amount of memory.  All uses
49439         changed.
49440         * lib/savedir.h: Update prototype.
49441
49442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
49443
49444         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
49445
49446         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
49447         old strtoimax.c.
49448
49449         Also, make the following further changes to make this file's
49450         configuration more similar to that of strtol.c:
49451         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
49452         (strtoumax, uintmax_t, strtoull, strtol): Remove.
49453         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
49454         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
49455         changed to signed values.
49456
49457         And make the following changes as well:
49458         Fix copyright notice, as 1999 was missing.
49459         (verify): New macro.
49460         (strtoimax): Check sizes at compile-time, not run-time.
49461         Prefer strtol to strtoll if both work.
49462         (main): Remove; it was not that useful and was a pain to maintain.
49463
49464         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
49465
49466 2001-08-31  Jim Meyering  <meyering@lucent.com>
49467
49468         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
49469         Use an initial, malloc'd, buffer of length 128 rather than
49470         a statically allocated one of length 1024.
49471
49472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49473
49474         Simplify code, partly by assuming autoconf 2.52 semantics.
49475
49476         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
49477
49478         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
49479         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
49480         All uses removed.
49481         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
49482         Move AC_REQUIRE to next-to-top level, to avoid confusion.
49483         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
49484         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
49485         jm_AC_HEADER_INTTYPES_H.
49486         * m4/jm-macros.m4 (jm_MACROS): Likewise.
49487
49488         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
49489
49490         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49491         Quote first arg of AC_DEFUN.
49492         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
49493         since they are needed to parse the include file even if we need
49494         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
49495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
49496         but with opposite signedness.
49497
49498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49499
49500         Merge 'exclude' changes from tar 1.13.22.
49501         This fixes one or two unlikely storage allocation overflow bugs,
49502         but doesn't change user-visible behavior otherwise.
49503
49504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49505
49506         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
49507         (jm_PREREQ_EXCLUDE): New macro.
49508
49509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49510
49511         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
49512         tm to be declared.
49513
49514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49515
49516         * lib/hash.c: Remove '2001' from copyright notice.
49517
49518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49519
49520         * lib/full-write.h: New file.
49521         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
49522         * lib/full-write.c: Correct credits, as cccp.c no longer
49523         exists and anyway it was so heavily changed from the old cccp
49524         code as to be unrecognizable.  Include full-write.h.
49525         (full_write) Return size_t, with short writes meaning failure.
49526         All callers changed.  This fixes a bug with large buffers
49527         on 64-bit hosts.
49528         * lib/utime.c: Include full-write.h.
49529
49530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49531
49532         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
49533         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
49534         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
49535         Include if available.
49536         (<xalloc.h>): Include
49537         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
49538         (verify): New macro.  Use it to verify that EXCLUDE macros do not
49539         collide with FNM macros.
49540         (struct patopts): New struct.
49541         (struct exclude): Use it, as exclude patterns now come with options.
49542         (new_exclude): Support above changes.
49543         (new_exclude, add_exclude_file):
49544         Initial size must now be a power of two to simplify overflow checking.
49545         (free_exclude, fnmatch_no_wildcards): New function.
49546         (excluded_filename): No longer requires options arg, as the options
49547         are determined by add_exclude.  Now returns bool, not int.
49548         (excluded_filename, add_exclude):
49549         Add support for the fancy new exclusion options.
49550         (add_exclude, add_exclude_file): Now takes int options arg.
49551         Check for arithmetic overflow when computing sizes.
49552         (add_exclude_file): xrealloc might modify errno, so don't
49553         realloc until after errno might be used.
49554
49555         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
49556         New macros.
49557         (free_exclude): New decl.
49558         (add_exclude, add_exclude_file): Now takes int options arg.
49559         (excluded_filename): No longer requires options arg, as the options
49560         are determined by add_exclude.  Now returns bool, not int.
49561
49562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
49563
49564         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
49565
49566 2001-08-27  Jim Meyering  <meyering@lucent.com>
49567
49568         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
49569
49570         * lib/version-etc.c (N_): Remove definition.
49571         Revert most of last change.
49572         Instead, simply don't mark the `Copyright...' string for translation.
49573         Based on advice from Paul Eggert.
49574
49575         * lib/strtoxmax.c: Tweak comment.
49576
49577 2001-08-26  Jim Meyering  <meyering@lucent.com>
49578
49579         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
49580
49581         * m4/xstrtoimax.m4: New file.
49582         * m4/xstrtoumax.m4: Add comments explaining why we
49583         AC_REPLACE_FUNCS(strtol).
49584
49585 2001-08-26  Jim Meyering  <meyering@lucent.com>
49586
49587         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
49588         of copyright with `%s' so translators don't get an untranslated
49589         message in 2002.
49590         (COPYRIGHT_YEAR): Define.
49591         (version_etc): Use fprintf rather than fputs.
49592         Suggestion from Ulrich Drepper.
49593
49594         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
49595
49596         * lib/strtoll.c: New file, from GNU libc.
49597         * lib/xstrtoimax.c: New file.
49598
49599         * lib/xstrtol.h: Add xstrtoimax.
49600         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
49601         * lib/strtoimax.c: New file.  Likewise, but first define
49602         STRTOUXMAX_SIGNED.
49603
49604         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
49605         ...
49606         * lib/strtoxmax.c: ... then renamed to this.
49607
49608 2001-08-18  Paul Eggert  <eggert@twinsun.com>
49609
49610         * m4/inttypes.m4: Add AC_PREREQ(2.13).
49611         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
49612         (jm_AC_TYPE_INTMAX_T): New macro.
49613         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
49614
49615         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
49616
49617         * m4/longlong.m4: Renamed from ulonglong.m4.
49618         * m4/inttypes.m4: Renamed from inttypes_h.m4.
49619         * m4/uintmax_t.m4: Removed.
49620
49621 2001-08-13  Paul Eggert  <eggert@twinsun.com>
49622
49623         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
49624         Port to Solaris 8, where 'sed' requires a space after the 'r'
49625         command, and where sh dislikes "$/".  Clean up the spacing a bit.
49626         Redirect output to $tmp just once.
49627
49628 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
49629
49630         * lib/addext.c (<errno.h>): Include.
49631         (errno): Declare if not defined.
49632         (addext): Work correctly when pathconf returns -1 and leaves
49633         errno alone because there is no limit.  Also, work even if
49634         pathconf returns a value greater than SIZE_MAX.
49635
49636 2001-08-12  Jim Meyering  <meyering@lucent.com>
49637
49638         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
49639         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
49640         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
49641         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
49642         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
49643         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
49644         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
49645         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
49646         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
49647         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
49648         utime.m4, utimes.m4, xstrtoumax.m4:
49649         Quote the first argument in each use of AC_DEFUN.
49650
49651 2001-08-12  Jim Meyering  <meyering@lucent.com>
49652
49653         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
49654         Simply `return getcwd (NULL, 0);'.
49655         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
49656         Use 1300 as initial value for length, not PATH_MAX.
49657
49658         * lib/pathmax.h: Clean up cpp syntax.
49659
49660 2001-08-12  Jim Meyering  <meyering@lucent.com>
49661
49662         * lib/gettimeofday.c: New file.
49663         * lib/gtod.h: New file.
49664         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
49665
49666 2001-08-05  Jim Meyering  <meyering@lucent.com>
49667
49668         * m4/jm-macros.m4: Require autoconf-2.52.
49669
49670 2001-08-04  Jim Meyering  <meyering@lucent.com>
49671
49672         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
49673         stmt, to get in sync with glibc.
49674
49675 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49676
49677         The following changes are from gettext 0.10.39 as maintained by
49678         Bruno Haible.
49679
49680         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
49681         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
49682         with inverted sense.  All uses changed.
49683
49684         * lib/mbswidth.c: Don't include <limits.h>.
49685         Include <stdlib.h> and <string.h> unconditionally.
49686         (iswcntrl, mbsinit, ISCNTRL): New macros.
49687         (mbsnwidth): Use K&R style function declarations.
49688         Don't bother checking for MB_LEN_MAX == 1, since the compiler
49689         can optimize it when MB_CUR_MAX == 1.
49690         The width of control characters is zero, not 1.
49691
49692 2001-08-03  Paul Eggert  <eggert@twinsun.com>
49693
49694         The following changes are from gettext 0.10.39 as maintained by
49695         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
49696
49697         * m4/codeset.m4: Upgrade to serial AM1.
49698         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
49699         all uses changed.  Quote first arg of AC_DEFUN.
49700         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
49701
49702         * m4/iconv.m4: Upgrade to serial AM2.
49703         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
49704         Add --with-libconv-prefix.
49705         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
49706         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
49707         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
49708         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
49709         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
49710
49711         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
49712         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
49713         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
49714         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
49715         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
49716         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
49717         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49718         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
49719         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
49720
49721         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
49722         string.h any more.
49723
49724         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
49725         not the default value.
49726
49727         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
49728         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
49729         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
49730         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
49731         Also check for iswcntrl, used for wcwidth fallback.
49732         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
49733         to Autoconf 2.13.
49734
49735 2001-08-03  Jim Meyering  <meyering@lucent.com>
49736
49737         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
49738         as it was in the original.  Reported by Paul Eggert.
49739
49740 2001-07-16  Jim Meyering  <meyering@lucent.com>
49741
49742         * m4/gettimeofday.m4: New file.
49743         Prompted by a report from Bernhard Baehr.
49744
49745 2001-07-15  Jim Meyering  <meyering@lucent.com>
49746
49747         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
49748         stuff. Now it's in ../Makefile.cfg.
49749
49750 2001-07-15  Jim Meyering  <meyering@lucent.com>
49751
49752         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
49753         (BUILT_SOURCES): Add unlocked-io.h.
49754         (io_functions): Define.
49755         (unlocked-io.h): New rule.
49756         (DISTCLEANFILES): Add unlocked-io.h.
49757         (all-local): Depend on unlocked-io.h, to ensure it is created.
49758
49759         * lib/unlocked-io.hin: New file
49760
49761         * lib/regex.c: Update from glibc.
49762
49763 2001-07-05  Jim Meyering  <meyering@lucent.com>
49764
49765         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
49766         recommendation.
49767         (libfetish_a_SOURCES): Put all .h files here instead.
49768         Remove a thus-exposed (better checks in automake) duplicate and
49769         two unnecessary .h files.
49770
49771 2001-07-04  Jim Meyering  <meyering@lucent.com>
49772
49773         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
49774         that generates jm-glibc-io.m4 so that it doesn't trigger any make
49775         distcheck failure.
49776
49777 2001-07-02  Jim Meyering  <meyering@lucent.com>
49778
49779         The following changes were prompted by suggestions from Bruno Haible.
49780
49781         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
49782         is now generated.
49783         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
49784         definition of EXTRA_DIST.
49785         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
49786         ensure that the generated file is created/updated whenever the list
49787         of $(unlocked_functions) is changed.
49788         (jm-glibc-io.m4): New rule.
49789         (unlocked-io.h): New rule -- currently unused.
49790
49791 2001-06-24  Jim Meyering  <meyering@lucent.com>
49792
49793         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
49794         unmatched right bracket, rather than kludging it with an extra,
49795         falsely-matching quote in a comment.  Patch by Akim Demaille.
49796
49797 2001-06-11  Jim Meyering  <meyering@lucent.com>
49798
49799         * lib/regex.c: Update from GNU libc.
49800
49801 2001-05-27  Jim Meyering  <meyering@lucent.com>
49802
49803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
49804         Check for ut_type in struct utmp.
49805
49806 2001-05-27  Jim Meyering  <meyering@lucent.com>
49807
49808         * lib/readutmp.h (UT_TYPE): Define.
49809
49810 2001-05-24  Jim Meyering  <meyering@lucent.com>
49811
49812         * lib/argmatch.c: Include "quote.h".
49813         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
49814         quote function.  Reported by Göran Uddeborg.
49815
49816 2001-05-22  Jim Meyering  <meyering@lucent.com>
49817
49818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
49819         now that we use the package-supplied version unconditionally.
49820         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
49821
49822 2001-05-21  Jim Meyering  <meyering@lucent.com>
49823
49824         * m4/regex.m4: Change a couple backticks to single quotes to avoid
49825         shell syntax errors.
49826
49827 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
49828
49829         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
49830
49831 2001-05-20  Paul Eggert  <eggert@twinsun.com>
49832
49833         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
49834         Don't bother to check library strftime, since
49835         we'll be using our own my_strftime function anyway.
49836         Define my_strftime instead of strftime.
49837
49838 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
49839
49840         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
49841         which is not yet declared.
49842
49843 2001-05-15  Jim Meyering  <meyering@lucent.com>
49844
49845         * m4/regex.m4: Use proper quoting so brackets appear in the test
49846         program.
49847         Reported by, and with help from, Bruno Haible.
49848
49849 2001-05-13  Jim Meyering  <meyering@lucent.com>
49850
49851         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
49852         undefined.
49853
49854 2001-05-11  Paul Eggert  <eggert@twinsun.com>
49855
49856         dirname code cleanup.  base_name now behaves more compatibly
49857         with POSIX basename when given file names that have trailing
49858         slashes, and similarly for dir_name.  Add new primitives
49859         base_len and dir_len.  Put the directory-name-related decls
49860         into dirname.h.
49861
49862         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
49863         * lib/backupfile.c (base_name): Likewise.
49864         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
49865         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
49866         * lib/makepath.c (strip_trailing_slashes): Likewise.
49867         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
49868         ISSLASH): Likewise.
49869         * lib/rename.c (strip_trailing_slashes): Likewise.
49870         * lib/same.c (base_name): Likewise.
49871         * lib/stripslash.c (ISSLASH): Likewise.
49872
49873         * lib/addext.c: Include <dirname.h> after size_t is defined.
49874         * lib/backupfile.c: Likewise.
49875
49876         * lib/addext.c (addext): Use base_len to trim redundant
49877         trailing slashes instead of doing it ourselves.
49878         But do not trim the last slash if it is not redundant.
49879
49880         * lib/backupfile.c (find_backup_file_name,
49881         max_backup_version): Use base_len instead of rolling it ourselves.
49882         Handle the case of "" and (on DOS) "C:" correctly.
49883
49884         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
49885         needed. Include <string.h>, <dirname.h>.
49886         (base_name): Allow file names ending in slashes, other than names
49887         that are all slashes.  In this case, return the basename followed
49888         by the slashes.  This is more general, and can be used in places
49889         where the original base_name purposely had an assertion failure.
49890         (base_len): New function.
49891
49892         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
49893         Do not include <assert.h>; no longer needed.
49894         Include xalloc.h.
49895         (memrchr): Remove decl.
49896         (dir_name_r): Remove.
49897         (dir_len): Renamed from dirlen.  All callers changed.
49898         Rewrite in terms of base_name, for simplicity and consistency.
49899         (dir_name): Never return NULL.  All callers changed.
49900         Do not include <stdlib.h> in test program; no longer needed.
49901         return 0; is fine for test program.
49902
49903         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
49904         New macros.
49905         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
49906
49907         * lib/path-concat.c (path_concat): Use base_len to compute
49908         base length, not strlen; this means we cannot rely on memcpy
49909         to null-terminate.
49910
49911         * lib/same.c (STREQ): Remove.
49912         (same_name): Handle the case where the basename ends in trailing '/'.
49913
49914         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
49915         a slash was stripped.  Do not strip the last slash after a
49916         file system prefix.
49917
49918 2001-05-11  Paul Eggert  <eggert@twinsun.com>
49919
49920         * lib/Makefile.am (libfetish_a_SOURCES):
49921         Add strftime.c, since we now compile it on all hosts.
49922
49923         * lib/strftime.c (my_strftime):
49924         Define to nstrftime if emacs, but only if my_strftime is not defined.
49925         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
49926         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
49927         Add one more extra argument: a nanoseconds value.
49928         All uses changed.
49929         (ns): New macro.
49930         (my_strftime function): Add %N format.
49931         (emacs_strftimeu): Renamed from emacs_strftime,
49932         with extra ut argument.
49933
49934 2001-05-09  Paul Eggert  <eggert@twinsun.com>
49935
49936         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
49937
49938 2001-04-21  Jim Meyering  <meyering@lucent.com>
49939
49940         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
49941         doesn't interfere.
49942
49943 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
49944
49945         * m4/ftruncate.m4: Check for chsize.
49946         Link with ftruncate.o unconditionally if ftruncate is missing.
49947         This was required when cross-compiling to i586-mingw32msvc.
49948
49949 2001-04-08  Jim Meyering  <meyering@lucent.com>
49950
49951         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
49952         recomputed; that's necessary when the offset spans a DST transition.
49953         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
49954
49955 2001-04-02  Jim Meyering  <meyering@lucent.com>
49956
49957         * lib/regex.h, regex.c: Update from GNU libc.
49958
49959 2001-03-24  Jim Meyering  <meyering@lucent.com>
49960
49961         * m4/jm-macros.m4: Require autoconf-2.49d.
49962
49963 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
49964
49965         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
49966
49967 2001-03-19  Paul Eggert  <eggert@twinsun.com>
49968
49969         * lib/version-etc.c (version_etc_copyright): Update to 2001.
49970
49971 2001-03-17  Jim Meyering  <meyering@lucent.com>
49972
49973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
49974         now that the version in autoconf is equivalent.
49975         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
49976
49977         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
49978         Suggestion from Akim Demaille.
49979
49980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
49981         (jm_PREREQ_TEMPNAME): New function.
49982
49983 2001-03-16  Paul Eggert  <eggert@twinsun.com>
49984
49985         * lib/tempname.c (uint64_t): Define to uintmax_t if
49986         not defined, and if UINT64_MAX is not defined.
49987         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
49988         Reported by John David Anglin.
49989
49990 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
49991
49992         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
49993         resolve alias if codeset is empty.
49994         * lib/config.charset (BeOS): Use wildcard syntax.
49995
49996 2001-03-13  Jim Meyering  <meyering@lucent.com>
49997
49998         * lib/path-concat.c (path_concat)
49999         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
50000         concatenating e.g., `C:' and `foo'.
50001         From Bruno Haible.
50002
50003 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50004
50005         * lib/localcharset.c (locale_charset): Don't use
50006         setlocale(LC_CTYPE,NULL). Don't return NULL.
50007         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
50008
50009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50010
50011         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
50012         support for DOS/DJGPP.
50013
50014 2001-03-01  Paul Eggert  <eggert@twinsun.com>
50015
50016         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
50017         lacks mkstemp.  Compile our own tempname.c if we compile our own
50018         mkstemp.c, as mkstemp relies on tempname.
50019
50020 2001-03-01  Jim Meyering  <meyering@lucent.com>
50021
50022         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
50023         AH_VERBATIM really does output its argument verbatim.
50024
50025 2001-02-28  Paul Eggert  <eggert@twinsun.com>
50026
50027         * lib/Makefile.am (libfetish_a_SOURCES):
50028         Add dup-safer.c, fopen-safer.c.
50029         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
50030
50031         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
50032         * lib/unistd-safer.h: New files.
50033
50034 2001-02-25  Paul Eggert  <eggert@twinsun.com>
50035
50036         The mkstemp replacement is taken from glibc 2.2.2, with some
50037         portability fixes for use outside glibc, as follows:
50038
50039         * lib/tempname.c (struct_stat64): New macro.
50040         (direxists, __gen_tempname): Use it.
50041         This avoids a portability problem with Solaris 8.
50042
50043         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
50044         (<stddef.h>, <stdint.h>, <string.h>):
50045         Include only if STDC_HEADERS || _LIBC.
50046         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
50047         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
50048         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
50049         (__set_errno): Define this macro if <errno.h> doesn't.
50050         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
50051         Define these macros if <stdio.h> doesn't.
50052         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
50053         Define these macros if <sys/stat.h>
50054         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
50055         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
50056         __xstat64): Define if not _LIBC.
50057         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
50058         (__gen_tempname): Invoke gettimeofday only if
50059         HAVE_GETTIMEOFDAY || _LIBC;
50060         otherwise, fall back on plain "time".
50061         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
50062
50063         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
50064
50065         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
50066
50067 2001-02-18  Paul Eggert  <eggert@twinsun.com>
50068
50069         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
50070
50071 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50072
50073         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
50074         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
50075         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
50076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50077
50078 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50079
50080         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
50081         Remove workaround macros for hosts that have mbrtowc but not
50082         mbstate_t, as we now insist on proper declarations for both
50083         before using mbrtowc.
50084
50085 2001-02-17  Jim Meyering  <meyering@lucent.com>
50086
50087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
50088         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
50089         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
50090         UnixWare 7.1.1.
50091
50092         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
50093         rather than AC_CACHE_VAL.
50094
50095 2001-02-17  Jim Meyering  <meyering@lucent.com>
50096
50097         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
50098         around included file name.
50099
50100         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
50101
50102         * lib/strftime.c: Update from GNU libc (the only changes were to
50103         comments).
50104
50105 2001-02-17  Jim Meyering  <meyering@lucent.com>
50106
50107         * lib/regex.c: Update from libc.
50108
50109 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
50110
50111         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
50112         clash.
50113
50114 2001-02-16  Paul Eggert  <eggert@twinsun.com>
50115
50116         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
50117         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
50118         Reported by Mark Hounschell via Paul Eggert.
50119
50120 2001-02-07  Jim Meyering  <meyering@lucent.com>
50121
50122         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
50123
50124 2001-02-05  Jim Meyering  <meyering@lucent.com>
50125
50126         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
50127         it includes the patch required for `large file' support with at least
50128         HP-UX's 10.20 /bin/cc.
50129
50130 2001-02-03  Jim Meyering  <meyering@lucent.com>
50131
50132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
50133         AS_IF, now that it works once again (mysteriously).
50134         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50135
50136 2001-01-30  Jim Meyering  <meyering@lucent.com>
50137
50138         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
50139         * m4/chown.m4: Rename conftestchown to conftest.chown.
50140         * m4/rename.m4: s/conftestdir/conftest.d1/ and
50141         s/conftestdir2/conftest.d2/.
50142         * m4/utimes.m4: s/conftestdata/conftest.data/
50143         Inspired by Pavel Roskin's change in autoconf.
50144
50145 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
50146
50147         * lib/config.charset: Update for FreeBSD 4.2.
50148
50149 2001-01-27  Jim Meyering  <meyering@lucent.com>
50150
50151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
50152         a use of AS_IF.
50153         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50154
50155 2001-01-26  Jim Meyering  <meyering@lucent.com>
50156
50157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
50158         quotearg.c includes it.
50159
50160 2001-01-26  Jim Meyering  <meyering@lucent.com>
50161
50162         * lib/quotearg.c: Include stddef.h.
50163         * lib/quote.c: Include stddef.h.
50164         Reported by Axel Kittenberger.
50165
50166         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
50167         line in double quotes so that it evokes a better diagnostic.
50168         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
50169         Reported by Axel Kittenberger.
50170
50171 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
50172
50173         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
50174         as if it was a `charset'.
50175
50176 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50177
50178         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
50179         has const.
50180
50181 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50182
50183         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
50184         to avoid a warning.  Add back 'const' to inptr.
50185
50186 2001-01-20  Jim Meyering  <meyering@lucent.com>
50187
50188         Be sure that headers are checked before used in code compiled
50189         for the type checks.
50190         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
50191         In place of that, invoke jm_CHECK_ALL_TYPES.
50192         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
50193         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
50194         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
50195         The check for ssize_t was mistakenly run before the test for unistd.h.
50196
50197         The configure-time check for stdbool.h was missing.
50198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
50199         (jm_PREREQ_HASH): New function.
50200
50201 2001-01-17  Jim Meyering  <meyering@lucent.com>
50202
50203         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
50204         for autoconf-2.49c.
50205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
50206
50207 2001-01-16  Jim Meyering  <meyering@lucent.com>
50208
50209         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
50210         From Bruno Haible.
50211
50212 2001-01-14  Jim Meyering  <meyering@lucent.com>
50213
50214         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
50215         foo and bar.  Create conftestdir/ in the script, not in the C code.
50216         Remove directories in the script, not in the C code.
50217         Remove conftestdir{,2} before trying to create the directory.
50218         Make the entire configure script fail if the mkdir fails.
50219
50220 2001-01-14  Jim Meyering  <meyering@lucent.com>
50221
50222         * lib/rename.c: New file.  From Volker Borchert.
50223         Include stdlib.h, string.h or strings.h, and xalloc.h.
50224         Use strip_trailing_slashes rather than open-coding it.
50225
50226 2001-01-03  Paul Eggert  <eggert@twinsun.com>
50227
50228         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
50229
50230 2001-01-03  Jim Meyering  <meyering@lucent.com>
50231
50232         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
50233         of local `inptr' to avoid warning with some system declarations of
50234         iconv.
50235
50236 2001-01-02  Volker Borchert  <bt@teknon.de>
50237
50238         * m4/rename.m4: New file.
50239         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
50240
50241 2001-01-01  Jim Meyering  <meyering@lucent.com>
50242
50243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
50244         even on systems with utmpx.h.  It's necessary for the declaration of
50245         utmp's ut_user member.  Reported by Andreas Jaeger.
50246
50247         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
50248         available. They are required for the declarations of getgrgid and
50249         getpwuid resp.
50250         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
50251         Reported by Andreas Jaeger.
50252
50253 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
50254
50255         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
50256         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
50257         so `make install' also works in VPATH builds.
50258
50259 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
50260
50261         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
50262         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
50263         can be used in subdirectories.
50264
50265 2000-12-29  Paul Eggert  <eggert@twinsun.com>
50266
50267         * lib/modechange.c: Do not assume that mode_t uses the
50268         traditional octal encoding.  E.g. "chmod 1 FOO" should set
50269         the other-execute bit of FOO even if S_IXOTH != 1.
50270
50271         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
50272         WOTH, XOTH, ALLM): New macros.
50273         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
50274          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
50275         Use them.
50276         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
50277         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
50278         (mode_compile):
50279         No need to use uintmax_t; unsigned long is long enough.
50280         Don't bother to get suffix since we don't use it.
50281
50282 2000-12-26  Jim Meyering  <meyering@lucent.com>
50283
50284         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
50285         better with autoheader.
50286
50287 2000-12-24  Jim Meyering  <meyering@lucent.com>
50288
50289         * lib/hash.c (is_prime): Return explicit boolean values.
50290         (hash_get_first): Return NULL to appease Irix5.6's 89.
50291         Reported by Nelson Beebe.
50292
50293 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
50294
50295         * lib/localcharset.c (locale_charset): Add support for Win32.
50296
50297 2000-12-18  Paul Eggert  <eggert@twinsun.com>
50298
50299         * lib/physmem.h, lib/physmem.c: New files.
50300
50301         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
50302         (noinst_HEADERS): Add physmem.h.
50303
50304         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
50305         't' for compatibility with Solaris 8 sort.
50306
50307 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
50308
50309         * lib/config.charset: Add support for BeOS.
50310
50311 2000-12-17  Jim Meyering  <meyering@lucent.com>
50312
50313         * m4/dos.m4 (jm_AC_DOS): New file and macro.
50314         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
50315
50316 2000-12-16  Jim Meyering  <meyering@lucent.com>
50317
50318         This bug had a serious impact on chown: `chown N:M FILE' (for integer
50319         N and M) would have treated it like `chown N:N FILE'.
50320
50321         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
50322
50323 2000-12-16  Jim Meyering  <meyering@lucent.com>
50324
50325         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
50326         SHELLS_FILE to a file name that's useful on djgpp systems.
50327         Include stdlib.h.
50328         (ADDITIONAL_DEFAULT_SHELLS): Define.
50329         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
50330         Based mostly on a patch from Prashant TR.
50331
50332 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
50333
50334         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
50335         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
50336         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
50337
50338 2000-12-08  Andreas Schwab  <schwab@suse.de>
50339
50340         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
50341         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
50342
50343 2000-12-07  Jim Meyering  <meyering@lucent.com>
50344
50345         * lib/stripslash.c (ISSLASH): Define.
50346         (strip_trailing_slashes): Use ISSLASH rather than comparing against
50347         `/'.
50348         From Prashant TR.
50349
50350         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
50351         (dir_name_r): Declare this function as static.
50352         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
50353         manifest itself on a name containing a mix of slashes and
50354         backslashes.
50355         Make this function work with names starting with a DOS-style
50356         drive letter and colon prefix.
50357         (dir_name): Append `.' if necessary.
50358         Based mostly on patches from Prashant TR and Eli Zaretskii.
50359
50360         * lib/dirname.h (dir_name_r): Remove prototype.
50361
50362 2000-12-06  Paul Eggert  <eggert@twinsun.com>
50363
50364         * m4/off_t-format.m4: Remove this file.
50365         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
50366
50367 2000-12-06  Jim Meyering  <meyering@lucent.com>
50368
50369         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
50370         replacement strtoull, we may well need the replacement strtoul, too.
50371         Check for declarations of strtoul and strtoull.
50372         Check for strtol.  Mainly as a cue to cause automake to include
50373         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
50374         Check for limits.h -- strtol.c needs it.
50375
50376 2000-12-05  Jim Meyering  <meyering@lucent.com>
50377
50378         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
50379
50380 2000-12-04  Jim Meyering  <meyering@lucent.com>
50381
50382         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
50383         Also include memory.h, stdlib.h, unistd.h if appropriate.
50384         Reported by Andreas Jaeger (conflicting declaration of malloc).
50385
50386 2000-12-02  Jim Meyering  <meyering@lucent.com>
50387
50388         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
50389         * m4/jm-macros.m4 (jm_MACROS): require it.
50390
50391 2000-12-02  Jim Meyering  <meyering@lucent.com>
50392
50393         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
50394
50395 2000-12-01  Paul Eggert  <eggert@twinsun.com>
50396
50397         * lib/memrchr.c: Include <config.h> before any system include file.
50398
50399 2000-11-30  Jim Meyering  <meyering@lucent.com>
50400
50401         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
50402
50403 2000-11-30  Jim Meyering  <meyering@lucent.com>
50404
50405         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
50406
50407 2000-11-29  Paul Eggert  <eggert@twinsun.com>
50408
50409         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
50410
50411 2000-11-26  Jim Meyering  <meyering@lucent.com>
50412
50413         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
50414
50415 2000-11-22  Paul Eggert  <eggert@twinsun.com>
50416
50417         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
50418         size of (size_t) -1; it's not portable.
50419
50420 2000-11-17  Jim Meyering  <meyering@lucent.com>
50421
50422         * lib/strstr.c: Update from GNU libc.
50423
50424 2000-11-17  Akim Demaille  <akim@epita.fr>
50425
50426         * lib/obstack.h: Formatting changes.
50427         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
50428         prevent type checking.
50429         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
50430         cast the value to (void *): assigning a `foo *' to a `void *'
50431         variable is valid.
50432         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
50433
50434 2000-11-16  Jim Meyering  <meyering@lucent.com>
50435
50436         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
50437
50438 2000-11-11  Jim Meyering  <meyering@lucent.com>
50439
50440         * lib/error.c: Add a couple #includes, merging from GNU libc version.
50441
50442 2000-11-10  Jim Meyering  <meyering@lucent.com>
50443
50444         * lib/obstack.h: Update from GNU libc.
50445         * lib/obstack.c: Likewise.
50446
50447 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
50448
50449         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
50450
50451 2000-11-06  Paul Eggert  <eggert@twinsun.com>
50452
50453         * lib/getusershell.c (setusershell): Use rewind rather than
50454         fseek/fseeko, to avoid configuration hassles with fseeko.
50455         Don't bother opening SHELLS_FILE if shellstream is NULL;
50456         it's not necessary.
50457
50458 2000-11-05  Jim Meyering  <meyering@lucent.com>
50459
50460         * lib/makepath.h (make_dir): Declare.
50461         * lib/makepath.c (make_dir): Remove `static' attribute.
50462         Tweak a comment.
50463
50464 2000-11-04  Jim Meyering  <meyering@lucent.com>
50465
50466         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
50467
50468 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
50469
50470         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
50471         last one in a bucket, advance to the next bucket.
50472
50473 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
50474
50475         * lib/fnmatch.c: Do not comment out all the code if we are using
50476         the GNU C library, because in some cases we are replacing buggy
50477         code in the GNU C library itself.
50478
50479 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
50480
50481         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
50482         (regex_compile): Catch bogus \(\1\).
50483
50484 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50485
50486         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
50487         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
50488         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
50489
50490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
50491
50492         * lib/error.h, getline.h, modechange.h:
50493         Remove "2000" from Copyright line, as the file hasn't been
50494         changed this year other than in the copyright notice.
50495
50496         * lib/xalloc.h: Add "2000" to Copyright line, as this file
50497         was changed this year.
50498
50499 2000-10-29  Jim Meyering  <meyering@lucent.com>
50500
50501         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
50502         renaming.
50503         * m4/ls-mntd-fs.m4: Likewise
50504
50505 2000-10-29  Jim Meyering  <meyering@lucent.com>
50506
50507         * lib/xstat.in: Fix grammar in comment.
50508
50509 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
50510
50511         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
50512         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
50513         doesn't define __restrict_arr.
50514
50515 2000-10-28  Jim Meyering  <meyering@lucent.com>
50516
50517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
50518         (jm_PREREQ_MEMCHR): New function.
50519
50520 2000-10-28  Jim Meyering  <meyering@lucent.com>
50521
50522         * lib/memchr.c: Update from libc.
50523         Adjust for portability:
50524         [HAVE_STDLIB_H]: Include stdlib.h.
50525         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
50526         Undef __memchr, too.
50527         [!weak_alias]: Define __memchr to memchr.
50528
50529         * lib/regex.c: Update from libc.
50530         * lib/regex.h: Likewise.
50531         * lib/getopt1.c: Likewise.
50532         * lib/memcmp.c: Likewise.
50533
50534         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
50535         Avoid using fseek, when possible -- it's broken by design.
50536         Patch by Ulrich Drepper.
50537
50538 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
50539
50540         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
50541         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
50542         Giving in to popular pressure to shut up the compiler with casts.
50543
50544 2000-10-26  Jim Meyering  <meyering@lucent.com>
50545
50546         * lib/strftime.c: Update from libc.
50547
50548 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
50549
50550         * regex.c: More `unsigned char' -> `re_char' changes.
50551         Also change several `int' into `re_wchar_t'.
50552         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
50553         (PUSH_FAILURE_POINTER): Don't cast any more.
50554         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
50555         We want GCC to complain, since this piece of code makes
50556         re_match non-reentrant, which *should* be fixed.
50557         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
50558         (EXTEND_BUFFER): Use RETALLOC.
50559         (SET_LIST_BIT): Don't cast.
50560         (re_wchar_t): New type.
50561         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
50562         that those two functions will always properly return.
50563         (IMMEDIATE_QUIT_CHECK): Cast to void.
50564         (analyse_first): Use recursion rather than an explicit stack.
50565         (re_compile_fastmap): Can't fail anymore.
50566         (re_search_2): Don't check re_compile_fastmap for failure.
50567         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
50568         Now also sets the new value (passed in a new argument).
50569         (re_match_2_internal): Use it.
50570         Also, use a new var `reg' of type size_t when looping through regs
50571         rather than reuse the inappropriate `mcnt'.
50572
50573 2000-10-25  Jim Meyering  <meyering@lucent.com>
50574
50575         * lib/obstack.c: Update from libc.
50576
50577 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
50578
50579         * regex.c (regex_compile): Change the way of handling a range from
50580         a char less than 256 to a char not less than 256.
50581
50582 2000-10-24  Andrew Innes  <andrewi@gnu.org>
50583
50584         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
50585         NT-Emacs only.
50586         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
50587         so that re_search functions only quit when callers expect them to.
50588
50589 2000-10-23  Jim Meyering  <meyering@lucent.com>
50590
50591         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
50592         wrong.  That set_locale call must not have any side effects.
50593         From Paul Eggert.
50594
50595 2000-10-22  Jim Meyering  <meyering@lucent.com>
50596
50597         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
50598         [CYCLIC]: Remove now-unused definition.
50599
50600         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
50601         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
50602         Suggestion from Ulrich Drepper.
50603
50604 2000-10-21  Jim Meyering  <meyering@lucent.com>
50605
50606         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
50607         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
50608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
50609
50610 2000-10-21  Jim Meyering  <meyering@lucent.com>
50611
50612         * lib/dirname.c (memrchr): Declare if necessary.
50613         (dir_name): Remove the restriction that there be no
50614         trailing slashes.  Now, this code skips past them, effectively
50615         ignoring them.
50616         [TEST_DIRNAME] (main): New unit tests.
50617
50618         * lib/memrchr.c: New file from GNU libc.
50619         Undef __memrchr, too.
50620         [!weak_alias]: Define __memrchr to memrchr.
50621         Guard weak_alias use with `#ifdef weak_alias'.
50622
50623 2000-10-21  Jim Meyering  <meyering@lucent.com>
50624
50625         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
50626         (dir_name): Use dir_name_r.
50627         * lib/dirname.h (dir_name_r): Declare it.
50628
50629 2000-10-17  Jim Meyering  <meyering@lucent.com>
50630
50631         * lib/quote.h (PARAMS): Define and use.
50632         Reported by Akim Demaille.
50633
50634         * lib/getopt.c: Update from libc.
50635
50636 2000-10-16  Jim Meyering  <meyering@lucent.com>
50637
50638         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
50639         setlocale.
50640         From Jan Fedak.
50641
50642 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
50643
50644         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
50645
50646 2000-09-25  Jim Meyering  <meyering@lucent.com>
50647
50648         * lib/md5.h (rol): Define (from GnuPG).
50649
50650         * lib/sha.c: Give credit (GnuPG) where due.
50651         (M): Use rol rather than open-coding it.
50652         Add a FIXME comment.
50653
50654 2000-09-21  Jim Meyering  <meyering@lucent.com>
50655
50656         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
50657         Reported by Michael Stone.
50658
50659 2000-09-20  Jim Meyering  <meyering@lucent.com>
50660
50661         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
50662         (noinst_HEADERS): Add sha.h.
50663         Based on code from Scott G. Miller and from GnuPG.
50664
50665 2000-09-18  Jim Meyering  <meyering@lucent.com>
50666
50667         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
50668         LIBS. Otherwise, everyone ends up linking with -lelf for some
50669         configurations.
50670         Reported by Mike Stone.
50671
50672 2000-09-15  Jim Meyering  <meyering@lucent.com>
50673
50674         * lib/regex.c: Update from libc.
50675
50676 2000-09-10  Jim Meyering  <meyering@lucent.com>
50677
50678         * lib/getopt.c (_getopt_internal): Update from glibc.
50679
50680 2000-09-09  Jim Meyering  <meyering@lucent.com>
50681
50682         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
50683         think it should be used as a general replacement for isascii.
50684         * lib/fnmatch.c: Likewise.
50685         * lib/mbswidth.c: Likewise
50686         * lib/regex.c: Likewise.
50687
50688         Don't use atoi.
50689         * lib/userspec.c: Include sys/param.h and limits.h.
50690         Include xstrtol.h.
50691         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50692         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
50693         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
50694         UID, GID.  Check range.
50695
50696 2000-09-06  Jim Meyering  <meyering@lucent.com>
50697
50698         * lib/getopt.c (_getopt_internal): Update from glibc.
50699
50700 2000-08-30  Jim Meyering  <meyering@lucent.com>
50701
50702         * lib/strftime.c: Merge in changes from GNU libc.
50703
50704 2000-08-26  Jim Meyering  <meyering@lucent.com>
50705
50706         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
50707         * m4/fpending.m4: New file.
50708
50709 2000-08-26  Jim Meyering  <meyering@lucent.com>
50710
50711         * lib/closeout.c: Include "__fpending.h".
50712         (close_stdout_status): Return right away if there's nothing to flush.
50713
50714         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
50715         * lib/__fpending.c: New file.
50716         * lib/__fpending.h: New file.
50717
50718 2000-08-20  Jim Meyering  <meyering@lucent.com>
50719
50720         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
50721         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
50722         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
50723
50724 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
50725
50726         Improve fileutils installation on systems where running
50727         programs (like install) can't be unlinked.
50728         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
50729         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
50730
50731 2000-08-07  Paul Eggert  <eggert@twinsun.com>
50732
50733         Standardize on "memory exhausted" instead of "Memory exhausted"
50734         or "virtual memory exhausted".
50735         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
50736         "virtual memory exhausted".
50737         * lib/same.c (same_name): Invoke xalloc_die instead of printing
50738         our own message.
50739         * lib/userspec.c (parse_user_spec): Likewise.
50740         * lib/bumpalloc.h: comment fix
50741         * lib/same.c, userspec.c: Include xalloc.h.
50742
50743         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
50744         not char *const and pointing to a constant array.
50745         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
50746         (xrealloc): Comment fix.
50747
50748         * lib/userspec.c (parse_user_spec):
50749         Don't translate a message until just before returning,
50750         to avoid unnecessary translation.
50751
50752 2000-08-07  Jim Meyering  <meyering@lucent.com>
50753
50754         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
50755         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
50756         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
50757         getgroups.c, gethostname.c, getopt.h, group-member.c,
50758         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
50759         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
50760         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
50761         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
50762         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
50763         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
50764         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
50765         yesno.c: Back out Copyright date changes for each file with no change
50766         this year.  This eases coordination with other programs using the same
50767         source code modules.  From Paul Eggert.
50768
50769 2000-08-06  Paul Eggert  <eggert@twinsun.com>
50770
50771         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
50772         not char, for compatibility with glibc 2.1.3 strftime.c.
50773
50774 2000-08-03  Greg McGary  <greg@mcgary.org>
50775
50776         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
50777         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
50778         (EXTEND_BUFFER): Use them.
50779
50780 2000-08-01  Jim Meyering  <meyering@lucent.com>
50781
50782         * lib/dirname.c (ISSLASH): Define.
50783         (BACKSLASH_IS_PATH_SEPARATOR): Define.
50784         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
50785         both `\' and `/' may be use as path separators.
50786         Based on a patch from Prashant TR.
50787
50788 2000-07-31  Paul Eggert  <eggert@twinsun.com>
50789
50790         * lib/quotearg.c (quotearg_n_options): Don't make the initial
50791         slot vector a constant, since it might get modified.
50792
50793 2000-07-31  Jim Meyering  <meyering@lucent.com>
50794
50795         * lib/xmalloc.c: Use `virtual memory exhausted', not
50796         `Memory exhausted'.
50797         * lib/obstack.c (print_and_abort): Likewise.
50798
50799 2000-07-30  Paul Eggert  <eggert@twinsun.com>
50800
50801         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
50802         buffer, so that the caller can always quote one small
50803         component of a "memory exhausted" message in slot 0.
50804         From a suggestion by Jim Meyering.
50805
50806 2000-07-30  Jim Meyering  <meyering@lucent.com>
50807
50808         * lib/makepath.c (make_path): Quote the other instance, too.
50809
50810         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
50811         (STATIC_BUF_SIZE): Define.
50812         (quotearg_n_options): Use only statically allocated storage when
50813         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
50814         than STATIC_BUF_SIZE.
50815
50816 2000-07-29  Jim Meyering  <meyering@lucent.com>
50817
50818         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
50819         * lib/dirname.c (dir_name): Likewise.
50820
50821         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
50822         `/'.
50823
50824         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
50825         (dir_name): Assert that there are no trailing slashes.
50826
50827 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
50828
50829         * lib/mbswidth.h (mbswidth): Add a flags argument.
50830         (mbswidth): New declaration.
50831         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
50832         * lib/mbswidth.c (mbswidth): Add a flags argument.
50833         (mbsnwidth): New function.
50834
50835 2000-07-24  Jim Meyering  <meyering@lucent.com>
50836
50837         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
50838
50839 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50840
50841         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
50842
50843 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50844
50845         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
50846         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
50847         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
50848         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
50849         invoke multibyte primitives.
50850
50851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50852
50853         * lib/quotearg.c:
50854         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
50855         so that mbstate_t is always defined.
50856
50857         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
50858         be 1 in at least one GCC installation, and this configuration
50859         error is likely to be common.  Ignoring MB_LEN_MAX hurts
50860         performance on hosts that have mbrtowc but have only unibyte
50861         locales, but I assume these hosts are rare.
50862
50863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
50864
50865         * lib/mbswidth.c (_XOPEN_SOURCE):
50866         Don't define; this causes problems on Solaris 7.
50867         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
50868
50869 2000-07-23  Jim Meyering  <meyering@lucent.com>
50870
50871         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
50872         too: getgrgid, getpwuid, getuid.
50873
50874 2000-07-23  Jim Meyering  <meyering@lucent.com>
50875
50876         * lib/basename.c (base_name): Add an assertion.
50877
50878 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
50879
50880         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
50881         shadow its mbsinit function.
50882
50883 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
50884
50885         * lib/mbswidth.h: New file.
50886         * lib/mbswidth.c: New file.
50887         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
50888         (noinst_HEADERS): Add mbswidth.h.
50889
50890 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
50891
50892         * lib/config.charset: Add support for FreeBSD. Improve support for
50893         HP-UX and IRIX 6.
50894
50895 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
50896
50897         * m4/mbswidth.m4: New file.
50898         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
50899
50900 2000-07-15  Jim Meyering  <meyering@lucent.com>
50901
50902         * lib/makepath.c: Include quote.h.
50903         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
50904         corresponding argument in a `quote (...)' call.
50905         Give better diagnostics.
50906
50907         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
50908         (noinst_HEADERS): Add quote.h.
50909
50910         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
50911         from tar's src/misc.c.
50912         * lib/quote.h: New file.  Prototypes for same.
50913
50914 2000-07-14  Paul Eggert  <eggert@twinsun.com>
50915
50916         From a suggestion by Bruno Haible.
50917         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
50918         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
50919         to decide whether to define the BeOS workaround macro;
50920         this adjusts to the change to AC_MBSTATE_T.
50921
50922 2000-07-14  Jim Meyering  <meyering@lucent.com>
50923
50924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
50925         jm_AC_TYPE_UINTMAX_T.
50926
50927 2000-07-13  Paul Eggert  <eggert@twinsun.com>
50928
50929         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
50930
50931         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
50932         quotearg_buffer_restyled): Add support for
50933         clocale_quoting_style.  Undo previous change to
50934         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
50935         and "{RIGHT QUOTATION MARK}" msgids.
50936
50937 2000-07-10  Paul Eggert  <eggert@twinsun.com>
50938
50939         From a suggestion by Bruno Haible.
50940         * m4/mbstate_t.m4 (AC_MBSTATE_T):
50941         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
50942         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
50943         and mbstate_t, to a single-part test that simply defines mbstate_t.
50944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
50945         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
50946
50947 2000-07-10  Jim Meyering  <meyering@lucent.com>
50948
50949         * m4/strerror_r.m4: Mirror the correction made in autoconf.
50950
50951         * m4/gnu-source.m4: Output to confdefs.h directly.
50952         Suggestion from Akim Demaille.
50953
50954 2000-07-09  Paul Eggert  <eggert@twinsun.com>
50955
50956         The old behavior of quoting `like this' doesn't look good with
50957         newer, ISO-style fonts.  See:
50958         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
50959
50960         Instead, quote "like this" by default.  Let the translator
50961         tailor the locale-specific quoting behavior by providing
50962         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
50963
50964         * lib/quotearg.c (N_): New macro.
50965         (gettext_default): New function.
50966         (quotearg_buffer_restyled): Use
50967         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
50968         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
50969
50970 2000-07-09  Jim Meyering  <meyering@lucent.com>
50971
50972         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
50973         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
50974
50975         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
50976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
50977
50978 2000-07-09  Jim Meyering  <meyering@lucent.com>
50979
50980         * lib/Most files: Update copyright dates to include 2000.
50981
50982 2000-07-08  Jim Meyering  <meyering@lucent.com>
50983
50984         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
50985         if not defined.
50986         (xgethostname): Remove now-unnecessary #ifdef.
50987         Move declaration of `err' into loop where it's used.
50988
50989 2000-07-05  Paul Eggert  <eggert@twinsun.com>
50990         and Bruno Haible  <haible@clisp.cons.org>
50991
50992         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
50993         only if the test for an object-type mbstate_t fails.  This
50994         prevents us from mistakenly reporting that mbstate_t is a
50995         system object type after we "#define mbstate_t int" to work
50996         around its lack.
50997
50998 2000-07-05  Paul Eggert  <eggert@twinsun.com>
50999         and Bruno Haible  <haible@clisp.cons.org>
51000
51001         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
51002
51003 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51004
51005         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
51006         to strerror_r.
51007         Include <ctype.h> for use of isalpha.
51008
51009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51010
51011         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
51012         by allocating a larger buffer. Test the gethostname return value for
51013         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
51014         returns an error and ENAMETOOLONG isn't defined.
51015
51016 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51017
51018         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
51019         dimension.
51020
51021 2000-07-04  Jim Meyering  <meyering@lucent.com>
51022
51023         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
51024         of the deprecated AC_CHECKING.
51025
51026 2000-07-04  Jim Meyering  <meyering@lucent.com>
51027
51028         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
51029         Reported by Bruno Haible.
51030
51031 2000-07-04  Jim Meyering  <meyering@lucent.com>
51032
51033         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
51034         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
51035         lacks mbrtowc.
51036
51037 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51038
51039         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
51040         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
51041
51042 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51043         and Bruno Haible  <haible@clisp.cons.org>
51044
51045         * lib/quotearg.c (mbrtowc):
51046         Assign to *pwc, and return 1 only if result is nonzero.
51047         (iswprint): Use ISPRINT when substituting our own mbrtowc.
51048
51049 2000-07-03  Jim Meyering  <meyering@lucent.com>
51050
51051         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
51052
51053 2000-07-03  Jim Meyering  <meyering@lucent.com>
51054
51055         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
51056         This is necessary to get a definition of e.g., UTMP_FILE on
51057         HP-UX 10.20.
51058         From Bob Proulx.
51059
51060 2000-07-02  Jim Meyering  <meyering@lucent.com>
51061
51062         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
51063
51064         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
51065         AC_LIBOBJ(function_name).
51066         * m4/chown.m4: Likewise.
51067         * m4/fnmatch.m4: Likewise.
51068         * m4/ftruncate.m4: Likewise.
51069         * m4/getgroups.m4: Likewise.
51070         * m4/getline.m4: Likewise.
51071         * m4/group-member.m4: Likewise.
51072         * m4/jm-macros.m4: Likewise.
51073         * m4/lstat.m4: Likewise.
51074         * m4/malloc.m4: Likewise.
51075         * m4/memcmp.m4: Likewise.
51076         * m4/nanosleep.m4: Likewise.
51077         * m4/putenv.m4: Likewise.
51078         * m4/realloc.m4: Likewise.
51079         * m4/regex.m4: Likewise.
51080         * m4/stat.m4: Likewise.
51081         * m4/strftime.m4: Likewise.
51082
51083 2000-07-02  Jim Meyering  <meyering@lucent.com>
51084
51085         * lib/quotearg.c (mbstate_t): Don't define here.
51086
51087 2000-07-02  Jim Meyering  <meyering@lucent.com>
51088
51089         * lib/nanosleep.c (SIGCONT): Define if not already defined.
51090
51091 2000-07-01  Jim Meyering  <meyering@lucent.com>
51092
51093         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
51094
51095 2000-07-01  Jim Meyering  <meyering@lucent.com>
51096
51097         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
51098         problem.
51099
51100 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51101
51102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
51103         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
51104
51105 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51106
51107         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
51108         per change in ../m4/ls-mntd-fs.m4.
51109         (read_filesystem_list): Ignore symbolic links.
51110
51111 2000-06-29  Jim Meyering  <meyering@lucent.com>
51112
51113         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
51114         for declaration of strcmp.
51115
51116         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
51117
51118         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
51119         Avoid warning by casting result to `char *' to remove `const'.
51120
51121 2000-06-28  Jim Meyering  <meyering@lucent.com>
51122
51123         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
51124         included by quotearg.c, for which we perform this test.  From
51125         Bruno Haible.
51126
51127 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51128
51129         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
51130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
51131         <utmpx.h> exists, put readutmp.o into LIBOBJS.
51132
51133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51134
51135         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
51136
51137 2000-06-26  Paul Eggert  <eggert@twinsun.com>
51138
51139         savedir now sets errno on failure and invokes xmalloc to get memory.
51140         Fix a couple of other minor bugs while we're at it.
51141
51142         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
51143         (NAMLEN): Remove macro.
51144         (malloc, realloc): Remove decls.
51145         (stpcpy): Likewise.
51146         ("xalloc.h"): Include.
51147         (NAME_SIZE_DEFAULT): New macro.
51148         (savedir): Use xmalloc / xrealloc to allocate memory.
51149         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
51150         Skip "" directory entries.
51151         Use strlen to calculate directory entry length, since the old method
51152         is rarely used these days and isn't worth supporting.
51153         Don't use a pointer after freeing it.
51154         Check for integer overflow when calculating allocation size.
51155         Use memcpy to copy entries, instead of stpcpy.
51156         Set errno properly when returning NULL.
51157         Check for readdir error.
51158
51159 2000-06-26  Jim Meyering  <meyering@lucent.com>
51160
51161         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
51162
51163 2000-06-25  Jim Meyering  <meyering@lucent.com>
51164
51165         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
51166         Linux header bug when _XOPEN_SOURCE is defined to 500.
51167
51168 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51169
51170         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
51171         deficiency.
51172
51173 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51174
51175         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
51176         Include xalloc.h.
51177         Don't include <stdlib.h>.  Don't declare malloc, realloc.
51178
51179 2000-06-24  Jim Meyering  <meyering@lucent.com>
51180
51181         * m4/strerror_r.m4: Revive this file -- to try out an experimental
51182         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
51183         for which strerror does return char*, but which lacks a conveniently
51184         accessible declaration of the function.  If the compile-test says
51185         strerror_r doesn't work, then resort to a `run'-test that works on
51186         BeOS and segfaults on DEC Unix.
51187
51188 2000-06-24  Jim Meyering  <meyering@lucent.com>
51189
51190         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
51191
51192 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51193
51194         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
51195         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
51196
51197 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51198
51199         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
51200         (mbrtowc, mbstate_t): Define substitutes if
51201         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
51202         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
51203         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
51204
51205 2000-06-23  Jim Meyering  <meyering@lucent.com>
51206
51207         * m4/afs.m4: Add missing AC_MSG_RESULT.
51208         Reported by Bruno Haible.
51209
51210         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
51211         Suggestion from Bruno Haible.
51212
51213 2000-06-23  Jim Meyering  <meyering@lucent.com>
51214
51215         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
51216
51217 2000-06-21  Jim Meyering  <meyering@lucent.com>
51218
51219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
51220
51221 2000-06-21  Jim Meyering  <meyering@lucent.com>
51222
51223         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
51224         (noinst_HEADERS): Add getstr.h.
51225
51226         * lib/getline.c (getstr): Move into a separate file.
51227         * lib/getstr.c (getstr): New file, extracted from getline.c, with
51228         the following changes: new parameter, delim2; both delim[12]
51229         parameters have type `int', not `char'.  The latter would lose
51230         with 8-bit delimiters.
51231         * lib/getstr.h: New file.
51232
51233 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51234
51235         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
51236         than 1024, return a memory chunk of least possible size, instead
51237         of size PATH_MAX + 2. In the loop, increment the size proportionally.
51238         Use free/xmalloc instead of xrealloc to avoid copying for very long
51239         paths.
51240
51241 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51242
51243         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
51244         the empty string.
51245
51246 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51247
51248         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
51249         address, not strdup.  Include <stdlib.h> and don't declare free().
51250
51251 2000-06-19  Jim Meyering  <meyering@lucent.com>
51252
51253         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
51254
51255 2000-06-18  Jim Meyering  <meyering@lucent.com>
51256
51257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
51258
51259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
51260         `checking whether...' message to be consistent with that of the
51261         lstat test.
51262
51263 2000-06-18  Jim Meyering  <meyering@lucent.com>
51264
51265         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
51266         Besides, these days every porting target provides a mkdir function.
51267
51268         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
51269         needed. (this snippet comes from src/system.h).
51270
51271 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
51272
51273         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
51274
51275 2000-06-15  Paul Eggert  <eggert@twinsun.com>
51276
51277         * lib/human.c (adjust_value): New function.
51278         (human_readable_inexact): Apply rounding style even when
51279         printing approximate values.
51280
51281 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51282
51283         * lib/human.c (human_readable_inexact): Allow an input block
51284         size that is not a multiple of the output block size, and vice versa.
51285         Reported by Piergiorgio Sartor.
51286
51287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51288
51289         * lib/getdate.y (get_date): Apply relative times after time
51290         zone indicator, not before.  Reported by Todd A. Jacobs.
51291
51292 2000-06-13  Jim Meyering  <meyering@lucent.com>
51293
51294         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
51295
51296         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
51297
51298 2000-06-12  Paul Eggert  <eggert@twinsun.com>
51299
51300         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
51301
51302 2000-06-12  Jim Meyering  <meyering@lucent.com>
51303
51304         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
51305         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
51306         optional argument.
51307         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
51308         the optional argument, `lib'.
51309
51310 2000-06-08  Jim Meyering  <meyering@lucent.com>
51311
51312         * m4/largefile.m4: Remove file (now that it's part of autoconf).
51313
51314 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51315
51316         Rewrite largefile configuration so that we don't need to run
51317         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
51318         AC_CANONICAL_HOST in configure.in -- jmm]
51319
51320         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
51321         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
51322         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
51323         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
51324         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
51325         All uses changed.
51326         Instead of inspecting the output of getconf, try to compile the
51327         test program without and with the macro definition.
51328         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
51329         for getconf.  Instead, check for the needed flags by compiling
51330         test programs.
51331
51332 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51333
51334         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
51335
51336 2000-06-04  Jim Meyering  <meyering@lucent.com>
51337
51338         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
51339         SunOS 4.1.4 for which gid_t is an unsigned type.
51340
51341 2000-06-03  Jim Meyering  <meyering@lucent.com>
51342
51343         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
51344         now that autoconf requires that.
51345
51346         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
51347         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
51348         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
51349
51350 2000-06-03  Jim Meyering  <meyering@lucent.com>
51351
51352         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
51353
51354 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51355
51356         * m4/glibc21.m4: New file.
51357         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
51358
51359 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51360
51361         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
51362         newer, don't install charset.alias.
51363         * lib/config.charset: Change the Linux/glibc rules so they become empty
51364         on glibc-2.1 or newer.
51365
51366 2000-06-02  Jim Meyering  <meyering@lucent.com>
51367
51368         * lib/mountlist.c: Back out last change.  Instead, do this...
51369         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
51370         me_dummy member using the same `ignore'-testing code.
51371         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
51372         fs_type strings.
51373         From Mark D. Roth.
51374
51375 2000-05-29  Jim Meyering  <meyering@lucent.com>
51376
51377         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
51378         mounts with the `ignore' attribute.  Based on a patch from
51379         Mark D. Roth.
51380
51381 2000-05-28  Jim Meyering  <meyering@lucent.com>
51382
51383         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
51384         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51385         * m4/stat.m4: Likewise.
51386         * m4/lstat.m4: Likewise.
51387         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
51388
51389         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
51390         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
51391
51392 2000-05-26  Jim Meyering  <meyering@lucent.com>
51393
51394         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
51395
51396 2000-05-24  Jim Meyering  <meyering@lucent.com>
51397
51398         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
51399         autoconf requires that.
51400         * m4/lib-check.m4: Likewise.
51401         * m4/jm-macros.m4: Likewise.
51402         * m4/strftime.m4: Likewise.
51403
51404         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
51405         AC_CHECK_DECLS, now that autoconf requires that.
51406
51407 2000-05-22  Jim Meyering  <meyering@lucent.com>
51408
51409         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51410         * m4/lstat.m4: Likewise.
51411
51412 2000-05-22  Jim Meyering  <meyering@lucent.com>
51413
51414         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
51415
51416 2000-05-20  Jim Meyering  <meyering@lucent.com>
51417
51418         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
51419         (jm_PREREQ): Use it.
51420
51421 2000-05-18  Jim Meyering  <meyering@lucent.com>
51422
51423         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
51424         back, too, since it may have been modified by allocate_entry.
51425         (hash_delete): Rewrite to use neither the assignment operator
51426         nor the comma operator in an if-expression.
51427
51428 2000-05-15  Paul Eggert  <eggert@twinsun.com>
51429
51430         * lib/closeout.c:
51431         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
51432         Remove; no longer needed.
51433         "quotearg.h": Add include.
51434         (file_name): Do not bother to explicitly initialize to NULL; it's less
51435         efficient on some hosts.
51436         (close_stdout_status): Remove test as to whether stdout was already
51437         closed; it breaks for the case "echo x | sort >&-".
51438         Quote file name colons.
51439         Do not assume that _("write error") lacks format strings.
51440
51441 2000-05-15  Jim Meyering  <meyering@lucent.com>
51442
51443         * lib/version-etc.c (version_etc_copyright): Update the copyright
51444         string used in all --version output.
51445
51446 2000-05-14  Jim Meyering  <meyering@lucent.com>
51447
51448         * lib/closeout.c (close_stdout_set_file_name): New function.
51449         (close_stdout_status): Use new file-scoped global.
51450         Return right away if fstat says the stdout file descriptor is invalid.
51451         * lib/closeout.h (close_stdout_set_file_name): Declare.
51452
51453 2000-05-10  Jim Meyering  <meyering@lucent.com>
51454
51455         * lib/closeout.c [default_exit_status]: New file-scoped variable.
51456         (close_stdout_set_status): New function.
51457         * lib/closeout.h (close_stdout_set_status): Declare.
51458
51459 2000-05-09  Jim Meyering  <meyering@lucent.com>
51460
51461         * m4/gettext.m4: Rename this...
51462         * m4/libintl.m4: ...to this.
51463
51464 2000-05-08  Jim Meyering  <meyering@lucent.com>
51465
51466         * lib/long-options.c: Don't include closeout.h.
51467         (parse_long_options): Don't call close_stdout for --version.
51468
51469 2000-05-06  Paul Eggert  <eggert@twinsun.com>
51470
51471         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
51472         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
51473         2.1.3 bug.  This avoids a clash when files like regex.c define
51474         _GNU_SOURCE.
51475
51476 2000-05-06  Jim Meyering  <meyering@lucent.com>
51477
51478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
51479         (AC_REPLACE_FUNCS): Add strnlen.
51480
51481         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
51482         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
51483
51484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
51485         AC_SEARCH_LIBS call for nanosleep.
51486         (LIB_NANOSLEEP): Set and AC_SUBST.
51487
51488 2000-05-06  Jim Meyering  <meyering@lucent.com>
51489
51490         * lib/strnlen.c: Undefine __strnlen and strnlen.
51491         [!weak_alias]: Define __strnlen to strnlen.
51492
51493         * lib/atexit.c: New file, from libiberty.
51494
51495 2000-05-06  Jim Meyering  <meyering@lucent.com>
51496
51497         * lib/closeout.c (close_stdout_status): Also check for errors on the
51498         stderr stream.
51499
51500 2000-05-05  Jim Meyering  <meyering@lucent.com>
51501
51502         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
51503         AC_SEARCH_LIBS call for clock_gettime.
51504         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
51505
51506         * m4/search-libs.m4: Update from autoconf.
51507
51508         su doesn't work on Solaris 2.6.
51509         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
51510         <shadow.h>.  Reported by Dragos Harabor.
51511
51512 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
51513
51514         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
51515         memcpy instead of xmalloc, xrealloc, path_concat.
51516         (locale_charset): Treat empty environment variables as absent.
51517         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
51518
51519 2000-05-04  Jim Meyering  <meyering@lucent.com>
51520
51521         * lib/getopt.c: Update from glibc.
51522         * lib/obstack.c: Likewise.
51523         * lib/obstack.h: Likewise.
51524         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
51525         file
51526
51527         * lib/regex.h: Likewise.
51528         * lib/strndup.c: Likewise.
51529         * lib/strnlen.c: New file, from glibc.
51530
51531 2000-05-03  Jim Meyering  <meyering@lucent.com>
51532
51533         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
51534
51535 2000-05-02  Paul Eggert  <eggert@twinsun.com>
51536
51537         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
51538         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
51539         compile-time test, rather than inspecting host and OS, to
51540         decide whether to define _LARGEFILE_SOURCE.
51541
51542 2000-05-01  Jim Meyering  <meyering@lucent.com>
51543
51544         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
51545
51546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
51547         Based on a patch from Bruno Haible.
51548
51549 2000-05-01  Jim Meyering  <meyering@lucent.com>
51550
51551         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
51552
51553 2000-04-29  Jim Meyering  <meyering@lucent.com>
51554
51555         * lib/path-concat.c: Declare strdup only if it's not defined.
51556         * lib/canon-host.c: Likewise.
51557
51558 2000-04-28  Jim Meyering  <meyering@lucent.com>
51559
51560         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
51561         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
51562         is included first, then limits.h is included by locale.h by libintl.h.
51563         From John David Anglin.
51564
51565 2000-04-25  Jim Meyering  <meyering@lucent.com>
51566
51567         * lib/makepath.c (S_IRWXUGO): Define.
51568         (make_path): Always perform explicit chmod if MODE specifies any
51569         of the `special' permission bits.  Prompted by a bug report against
51570         install from Mate Wierdl and Joost van Baal.
51571
51572 2000-04-18  Jim Meyering  <meyering@lucent.com>
51573
51574         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
51575         (jm_PREREQ): Use it.
51576
51577 2000-04-18  Jim Meyering  <meyering@lucent.com>
51578
51579         * lib/README: New file.
51580
51581         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
51582         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
51583
51584 2000-04-17  Jim Meyering  <meyering@lucent.com>
51585
51586         Get it right :-)
51587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
51588         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
51589         Suggestion from Akim Demaille.
51590
51591 2000-04-17  Jim Meyering  <meyering@lucent.com>
51592
51593         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
51594         the definition of it to rpl_strftime also defined-away the system's
51595         declaration.
51596
51597 2000-04-15  Jim Meyering  <meyering@lucent.com>
51598
51599         Use `C' to denote so-called `contiguous' files, the same way
51600         that tar does.
51601         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
51602         (ftypelet): Use S_ISCTG.
51603         From Michael Deutschmann.
51604
51605 2000-04-14  Jim Meyering  <meyering@lucent.com>
51606
51607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
51608         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
51609         clobbered.
51610
51611 2000-04-14  Jim Meyering  <meyering@lucent.com>
51612
51613         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
51614
51615 2000-04-13  Jim Meyering  <meyering@lucent.com>
51616
51617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
51618         AH_VERBATIM to insert required #ifndef into config.h.in.
51619         Suggestion from Akim Demaille.
51620
51621 2000-04-12  Jim Meyering  <meyering@lucent.com>
51622
51623         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
51624         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
51625         Christian Krackowizer.
51626
51627         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
51628         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
51629         (AC_SYS_LARGEFILE): Require.
51630         (AM_C_PROTOTYPES): Require.
51631
51632 2000-04-08  Jim Meyering  <meyering@lucent.com>
51633
51634         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
51635         names don't conflict.  Reported by Eli Zaretskii.
51636
51637 2000-04-07  Jim Meyering  <meyering@lucent.com>
51638
51639         * lib/putenv.c: Move inclusion of errno.h so it follows that of
51640         sys/types.h, to work around system header problems on AIX 3.2.5.
51641         From Bruno Haible.
51642
51643 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
51644
51645         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
51646         bug.  Deal with the different error behavior of Irix iconv.
51647
51648 2000-04-05  Paul Eggert  <eggert@twinsun.com>
51649
51650         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
51651         IRIX if the installer said otherwise.
51652
51653 2000-04-05  Jim Meyering  <meyering@lucent.com>
51654
51655         Portability tweaks required for ultrix4.3.
51656         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
51657         (jm_CHECK_DECLS): Add getutent to the list of functions.
51658         (_jm_DECL_HEADERS): Add utmpx.h.
51659         From John David Anglin.
51660
51661         * m4/strftime.m4: Back out the 2000-04-02 change.
51662         Instead of that change, simply undefine putenv in the test program.
51663
51664 2000-04-05  Jim Meyering  <meyering@lucent.com>
51665
51666         Portability tweaks required for ultrix4.3.
51667         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
51668         getutent.
51669         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
51670         * lib/canon-host.c: Declare strdup.
51671         * lib/path-concat.c: Likewise.
51672         From John David Anglin.
51673
51674 2000-04-04  Jim Meyering  <meyering@lucent.com>
51675
51676         Be more DOS 8.3-friendly.
51677         * lib/ref-add.sin: Renamed from ref-add.sed.in.
51678         * lib/ref-del.sin: Renamed from ref-del.sed.in.
51679         * lib/Makefile.am: Reflect renaming.
51680         Reported by Eli Zaretskii.
51681
51682         Use a temporary file name that won't clash with `charset.alias'
51683         in the DOS 8.3 name space.
51684         * lib/Makefile.am (charset_tmp): Define.
51685         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
51686         (uninstall-local): Likewise.
51687         Reported by Eli Zaretskii.
51688
51689 2000-04-03  Jim Meyering  <meyering@lucent.com>
51690
51691         * m4/gettext.m4: Fix typo in comment.
51692
51693         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
51694         textutils/configure.in).  Suggestion from Paul Eggert.
51695         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
51696
51697 2000-04-02  Paul Eggert  <eggert@twinsun.com>
51698
51699         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
51700         variable in the shell rather than using putenv, which isn't
51701         portable.  This avoids the configure-time inter-test dependency
51702         on the potentially-renamed putenv function.
51703
51704 2000-03-30  Paul Eggert  <eggert@twinsun.com>
51705
51706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
51707         before checking struct stat.st_blksize, so that
51708         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
51709
51710 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51711
51712         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
51713         since strftime.c uses HAVE_STRFTIME to decide whether to use
51714         the underlying strftime.
51715
51716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
51717
51718         * lib/time/strftime.c (my_strftime): Make sure we call the system
51719         strftime, not ourselves, when invoking the underlying strftime.
51720
51721 2000-03-24  Jim Meyering  <meyering@lucent.com>
51722
51723         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
51724         (charset_alias): Define.
51725         (install-exec-local): Factor out common code.
51726         (uninstall-local): Split lines longer than 80.
51727         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
51728         (SUFFIXES): Define.
51729         (.sed.in.sed): New rule.  Don't redirect directly to $@.
51730         (CLEANFILES): Add ref-add.sed and ref-del.sed.
51731
51732 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
51733
51734         * lib/config.charset: Output a line containing "Packages using this
51735         file".
51736         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
51737         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
51738         ref-del.sed): New rules.
51739
51740 2000-03-17  Jim Meyering  <meyering@lucent.com>
51741
51742         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
51743         Otherwise, include <strings.h>
51744
51745 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
51746
51747         * lib/unicodeio.c (utf8_wctomb): New function.
51748         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
51749         format instead of in UCS-4 with platform dependent endianness.
51750
51751 2000-03-10  Jim Meyering  <meyering@lucent.com>
51752
51753         * m4/lib-check.m4: Look for getspnam in -lgen, too.
51754         From Marco Franzen.
51755
51756 2000-03-07  Paul Eggert  <eggert@twinsun.com>
51757
51758         * lib/savedir.c (savedir): Work even if directory size is
51759         negative; this can happen with some screwy NFS configurations.
51760
51761 2000-03-06  Jim Meyering  <meyering@lucent.com>
51762
51763         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
51764         if it's NULL (because we ran out of memory).  From Bruno Haible.
51765
51766 2000-03-05  Jim Meyering  <meyering@lucent.com>
51767
51768         * lib/localcharset.c ("path-concat.h"): Include.
51769         (get_charset_aliases): Use path_concat instead of ANSI string
51770         concatenation.
51771
51772         * lib/unicodeio.h (PARAMS): Define.
51773         Use it to guard prototype.
51774
51775 2000-03-04  Jim Meyering  <meyering@lucent.com>
51776
51777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
51778         for lib/localcharset.c.
51779
51780 2000-03-04  Jim Meyering  <meyering@lucent.com>
51781
51782         * lib/Makefile.am (install-exec-local): Create $(libdir) before
51783         installing into it.
51784         (uninstall-local): Uncomment this rule so `make distcheck' works
51785         once again.
51786
51787         * lib/unicodeio.c (<errno.h>): Include it.
51788         (errno): Declare if not defined.
51789
51790         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
51791
51792         * lib/config.charset: New version, incorporating remarks from a linux
51793         i18n mailing list.  From Bruno Haible.
51794
51795 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
51796
51797         * m4/codeset.m4: New file.
51798         * m4/iconv.m4: New file.
51799         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
51800
51801 2000-03-03  Jim Meyering  <meyering@lucent.com>
51802
51803         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
51804
51805 2000-03-02  Jim Meyering  <meyering@lucent.com>
51806
51807         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
51808         the messages come out on separate lines.
51809
51810         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
51811         rather than jm_CHECK_DECLARATIONS.
51812         * m4/decl.m4: Remove now-unused file.
51813
51814         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
51815         geteuid.
51816
51817 2000-03-02  Jim Meyering  <meyering@lucent.com>
51818
51819         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
51820
51821 2000-03-01  Jim Meyering  <meyering@lucent.com>
51822
51823         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
51824         * lib/unicodeio.c: Likewise.
51825
51826 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
51827
51828         * lib/config.charset: New file.
51829         * lib/localcharset.c: New file.
51830         * lib/unicodeio.h, lib/unicodeio.c: New files.
51831         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
51832         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
51833         (noinst_HEADERS): Add unicodeio.h.
51834         (all-local, install-exec-local, charset.alias): New targets.
51835
51836 2000-02-28  Paul Eggert  <eggert@twinsun.com>
51837
51838         * lib/quotearg.c (ALERT_CHAR): New macro.
51839         (quotearg_buffer_restyled): Use it.
51840
51841 2000-02-27  Jim Meyering  <meyering@lucent.com>
51842
51843         * m4/check-decl.m4: Add getenv to the list.
51844
51845 2000-02-27  Jim Meyering  <meyering@lucent.com>
51846
51847         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
51848         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
51849
51850         * lib/backupfile.c: Guard inclusion of stdlib.h with
51851         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
51852         Declare malloc if needed.
51853
51854         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
51855         `#ifndef HAVE_DECL..'
51856         now that autoconf always defines the HAVE_DECL_ symbols.
51857         * lib/human.c: Likewise.
51858         * lib/same.c: Likewise.
51859         * lib/strtoumax.c: Likewise.
51860
51861         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
51862         declaration check was not run.
51863         * lib/hash.c: Likewise.
51864         * lib/human.c: Likewise.
51865         * lib/same.c: Likewise.
51866         * lib/strtoumax.c: Likewise.
51867
51868         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
51869         `.', then first look up the entire `.'-containing string as a login
51870         name.
51871
51872 2000-02-23  Jim Meyering  <meyering@lucent.com>
51873
51874         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
51875         in place of my hack.
51876
51877 2000-02-18  Paul Eggert  <eggert@twinsun.com>
51878
51879         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
51880         (textint): New typedef.
51881         (parser_control): Member year changed from int to textint.
51882         All uses changed.
51883         (YYSTYPE): Removed; replaced by %union with int and textint members.
51884         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
51885         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
51886         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
51887         (tSNUMBER, tUNUMBER): Now of type <textintval>.
51888         (date, number, to_year): Use width of number in digits, not its value,
51889         to determine whether it's a 2-digit year, or a 2-digit time.
51890         (yylex): Store number of digits of numeric tokens.
51891         Reported by John Kendall.
51892
51893         (parser_control): Changed from struct parser_control to typedef (for
51894         consistency).  All uses changed.
51895
51896         (tID): Removed; not used.
51897         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
51898
51899 2000-02-14  Paul Eggert  <eggert@twinsun.com>
51900
51901         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
51902         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
51903
51904 2000-02-12  Jim Meyering  <meyering@lucent.com>
51905
51906         * lib/userspec.c (ISDIGIT): Define it.
51907         (isdigit): Remove definition.
51908         (is_number): Use ISDIGIT, not isdigit.
51909         <libintl.h>: Include.
51910         (_ and N_): Define.
51911         (parse_user_spec): Mark translatable strings.
51912
51913 2000-02-10  Jim Meyering  <meyering@lucent.com>
51914
51915         With these changes, nanosleep.[ch] are finally enough like the other
51916         lib/* replacement files to compile on a few more losing systems.
51917
51918         * lib/nanosleep.h: Don't include config.h.
51919         Remove prototype from declaration of nanosleep.
51920         (PARAMS): Remove now-unneeded definition.
51921         * lib/nanosleep.c: #undef nanosleep.
51922         (rpl_nanosleep): Rename from nanosleep.
51923
51924 2000-02-10  Jim Meyering  <meyering@lucent.com>
51925
51926         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
51927         gnu_nanosleep to rpl_nanosleep.
51928
51929 2000-02-09  Jim Meyering  <meyering@lucent.com>
51930
51931         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
51932         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
51933
51934 2000-02-08  Akim Demaille  <akim@epita.fr>
51935
51936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
51937         `[' and `]' and remove uses of `changequote'.
51938         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
51939         (AC_SYS_LARGEFILE): Likewise.
51940         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51941         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
51942         of changequote.
51943         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
51944         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
51945         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
51946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
51947
51948 2000-02-05  Jim Meyering  <meyering@lucent.com>
51949
51950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
51951         Remove explicit use of AC_HEADER_TIME.  It is required by
51952         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
51953         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
51954         in autoconf whereby the expansion of the latter ended up preceding
51955         the expansion of its prerequisite, AC_HEADER_TIME.
51956         Reported by Volker Borchert.
51957
51958 2000-02-03  Jim Meyering  <meyering@lucent.com>
51959
51960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
51961
51962 2000-02-03  Jim Meyering  <meyering@lucent.com>
51963
51964         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
51965         rather than with `#if HAVE_UTMPNAME'.
51966
51967 2000-02-02  Jim Meyering  <meyering@lucent.com>
51968
51969         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
51970         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
51971         Reported by Eli Zaretskii.
51972
51973 2000-02-01  Jim Meyering  <meyering@lucent.com>
51974
51975         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
51976
51977 2000-01-31  Jim Meyering  <meyering@lucent.com>
51978
51979         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
51980         functions.  Add the time.h and sys/time.h headers along with the
51981         AC_REQUIRE'ment of AC_HEADER_TIME.
51982
51983 2000-01-31  Jim Meyering  <meyering@lucent.com>
51984
51985         * lib/nanosleep.h (nanosleep): Guard declaration with
51986         `#if ! HAVE_DECL_NANOSLEEP'.
51987         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
51988         the declaration in that vendor's sys/timers.h.
51989         Reported by Christian Krackowizer.
51990
51991         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
51992         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
51993         (ISPRINT): Likewise.
51994         Reported by Tom Tromey.
51995
51996 2000-01-30  Jim Meyering  <meyering@lucent.com>
51997
51998         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
51999
52000         * m4/prereq.m4 (utmp_includes): Define.
52001         Check for ut_user and ut_name members in both struct utmpx
52002         and struct utmp.
52003
52004 2000-01-30  Jim Meyering  <meyering@lucent.com>
52005
52006         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
52007         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
52008         header files where only utmpx.ut_user is declared.
52009
52010         * lib/readutmp.h (UT_USER): Define.
52011
52012 2000-01-29  Jim Meyering  <meyering@lucent.com>
52013
52014         * m4/lib-check.m4: New file containing library-related checks from
52015         fileutils and sh-utils (textutils had none).
52016
52017 2000-01-28  Jim Meyering  <meyering@lucent.com>
52018
52019         * m4/perl.m4: Change format of warning message to look more like that
52020         from the missing script.  Suggestion from François Pinard.
52021
52022 2000-01-25  Jim Meyering  <meyering@lucent.com>
52023
52024         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
52025         well as time.h in the compile check.
52026         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
52027         Fix typo in cross-compiling case: s/yes/no/.
52028
52029 2000-01-23  Jim Meyering  <meyering@lucent.com>
52030
52031         * m4/jm-macros.m4: Move df-related tests here from
52032         fileutils/configure.in
52033
52034         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
52035         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
52036
52037         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
52038         s/space/ac_fsusage_space/.
52039         (jm_FILE_SYSTEM_USAGE): Take two parameters.
52040
52041         * m4/ftruncate.m4: New file (derived from part of
52042         fileutils/configure.in).
52043         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
52044         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
52045
52046         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
52047         AC_SUBST these here, rather than just in sh-util/configure.in, so
52048         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
52049         all the same.
52050         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
52051         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
52052         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
52053         (AC_SUBST(POW_LIBM)): Likewise.
52054         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
52055
52056 2000-01-23  Jim Meyering  <meyering@lucent.com>
52057
52058         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
52059         obstack.c.
52060
52061 2000-01-22  Jim Meyering  <meyering@lucent.com>
52062
52063         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
52064
52065         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
52066
52067         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
52068         configure.in
52069         (AC_CHECK_HEADERS): Likewise for sh-utils.
52070         (AC_CHECK_HEADERS): Likewise for textutils.
52071         Merge the three lists of headers.
52072
52073         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
52074         from fileutils' configure.in.
52075
52076         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
52077         code. Moved tests into their own function (_jm_DECL_HEADERS) in
52078         check-decl.m4.
52079
52080         * m4/check-decl.m4: Use #if rather than #ifdef.
52081         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
52082         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
52083         (_jm_DECL_HEADERS): Define new function.
52084         (jm_CHECK_DECLARATIONS): Require it.
52085
52086 2000-01-22  Jim Meyering  <meyering@lucent.com>
52087
52088         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
52089         [! HAVE_DECL_STRTOULL]: Declare strtoull.
52090         Required for some AIX systems.  Reported by Christian Krackowizer.
52091         [TESTING] (main): New function.
52092
52093         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
52094         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
52095         letters.
52096
52097         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
52098         iswprint.
52099
52100         * lib/strverscmp.c (ISDIGIT): Define.
52101         (strverscmp): Use ISDIGIT, not isdigit.
52102
52103 2000-01-19  Jim Meyering  <meyering@lucent.com>
52104
52105         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
52106         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
52107         defines `struct timespec' in <sys/time.h>
52108
52109         * m4/c-bs-a.m4: Remove uses of changequote altogether.
52110         Thanks to Akim for explaining.
52111
52112 2000-01-17  Paul Eggert  <eggert@twinsun.com>
52113
52114         * lib/nanosleep.c (nanosleep):
52115         Don't use SA_INTERRUPT to decide whether to call sigaction, as
52116         POSIX.1 doesn't require SA_INTERRUPT and some systems
52117         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
52118         it's been part of POSIX.1 since day 1 (in 1988).
52119
52120 2000-01-17  Jim Meyering  <meyering@lucent.com>
52121
52122         * lib/interlock: Remove unused file.  Reported by François Pinard.
52123
52124 2000-01-16  Paul Eggert  <eggert@twinsun.com>
52125
52126         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
52127         alert, backslash, formfeed, and vertical tab unnecessarily in
52128         shell quoting style.
52129
52130 2000-01-16  Jim Meyering  <meyering@lucent.com>
52131
52132         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
52133         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
52134         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
52135         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
52136
52137 2000-01-16  Jim Meyering  <meyering@lucent.com>
52138
52139         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
52140         because the latter didn't work.
52141
52142 2000-01-15  Jim Meyering  <meyering@lucent.com>
52143
52144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
52145         (AC_REPLACE_FUNCS): Add memcpy and memset.
52146         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
52147         Add strpbrk.
52148         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
52149
52150 2000-01-12  Jim Meyering  <meyering@lucent.com>
52151
52152         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
52153         (jm_PREREQ): Use it.
52154         (jm_PREREQ_READUTMP): New macro.
52155         (jm_PREREQ): Use it.
52156
52157 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52158
52159         Quote multibyte characters correctly.
52160         * m4/c-bs-a.m4: New file.
52161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
52162         (jm_PREREQ): Use it.
52163
52164 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52165
52166         * m4/uintmax_t.m4: Port to autoconf 2.13.
52167
52168 2000-01-08  Jim Meyering  <meyering@ascend.com>
52169
52170         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
52171         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
52172
52173 2000-01-04  Jim Meyering  <meyering@ascend.com>
52174
52175         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
52176         jm_STRUCT_DIRENT_D_TYPE.
52177         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
52178         jm_STRUCT_DIRENT_D_INO.
52179         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
52180         jm_STRUCT_UTIMBUF.
52181         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
52182         renamings.
52183         * m4/utime.m4: Likewise.
52184
52185         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
52186         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
52187
52188 2000-01-03  Paul Eggert  <eggert@twinsun.com>
52189
52190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
52191         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
52192
52193 2000-01-02  Jim Meyering  <meyering@ascend.com>
52194
52195         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
52196         remember if this is necessary.
52197
52198 1999-12-26  Jim Meyering  <meyering@ascend.com>
52199
52200         * m4/jm-macros.m4: Use it here.
52201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
52202
52203 1999-12-23  Jim Meyering  <meyering@ascend.com>
52204
52205         * m4/jm-macros.m4: Check for clock_gettime (moved from
52206         fileutils/configure.in)
52207         Check for gettimeofday.
52208
52209 1999-12-20  Jim Meyering  <meyering@ascend.com>
52210
52211         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
52212         autoconf-2.14a-1999-12-20.
52213
52214 1999-12-19  Jim Meyering  <meyering@ascend.com>
52215
52216         * m4/lstat-slash.m4: New file.
52217         * m4/jm-macros.m4: Use the new macro:
52218         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52219
52220 1999-12-07  Jim Meyering  <meyering@ascend.com>
52221
52222         * m4/perl.m4: Require that File::Compare be available, too.
52223         Too many systems seem to lack it.
52224
52225         * m4/strftime.m4: Add checks for most of the cpp macros tested in
52226         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
52227
52228 1999-11-18  Paul Eggert  <eggert@twinsun.com>
52229
52230         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
52231         problem with the QNX 4.25 shell, which doesn't propagate exit
52232         status of failed commands inside shell assignments.
52233
52234 1999-11-17  Jim Meyering  <meyering@ascend.com>
52235
52236         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
52237
52238 1999-11-07  Jim Meyering  <meyering@ascend.com>
52239
52240         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
52241
52242 1999-11-06  Jim Meyering  <meyering@ascend.com>
52243
52244         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
52245         * m4/jm-macros.m4 (jm_MACROS): Use it here.
52246
52247 1999-11-05  Jim Meyering  <meyering@ascend.com>
52248
52249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
52250         configure.in of textutils, fileutils, and sh-utils into this one
52251         (shared between those packages) file.
52252         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
52253         AC_STRUCT_ST_BLKSIZE.
52254
52255 1999-11-03  Jim Meyering  <meyering@ascend.com>
52256
52257         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
52258         of AC_CHECK_TYPE checks includes unistd.h.
52259         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
52260         Suggestion from Akim Demaille.
52261
52262 1999-10-30  Jim Meyering  <meyering@ascend.com>
52263
52264         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
52265         m4-quoted string.
52266         * m4/ls-mntd-fs.m4: Likewise.
52267         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
52268         * m4/jm-winsz1.m4: Likewise.
52269
52270         * m4/const.m4: Remove file, since the fix made it into the experimental
52271         version of autoconf.
52272         * m4/mktime.m4: Likewise.
52273
52274         * m4/check-type.m4: Remove file, now that the latest version of
52275         AC_CHECK_TYPE takes a third arg to specify additional #includes.
52276
52277         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
52278         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
52279         AC_CHECK_TYPE.
52280
52281 1999-10-04  Jim Meyering  <meyering@ascend.com>
52282
52283         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
52284
52285 1999-09-22  Paul Eggert  <eggert@twinsun.com>
52286
52287         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
52288         2.95.1 bug with HP-UX 10.20.
52289
52290 1999-09-17  Jim Meyering  <meyering@ascend.com>
52291
52292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
52293         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
52294         due to missing strdup (against sh-utils-2.0).
52295
52296 1999-08-29  Jim Meyering  <meyering@ascend.com>
52297
52298         * m4/jm-macros.m4: Require jm_BISON.
52299         * m4/bison.m4: New file.
52300
52301 1999-08-17  Paul Eggert  <eggert@twinsun.com>
52302
52303         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
52304         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
52305
52306 1999-08-05  Jim Meyering  <meyering@ascend.com>
52307
52308         * m4/getline.m4: Rename test file from conftestdata to conftest.data
52309         to avoid conflicts with `conftest' on 8+3 filesystems.
52310         Suggestion from Eli Zaretskii.
52311
52312 1999-08-04  Jim Meyering  <meyering@ascend.com>
52313
52314         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
52315         fileutils and sh-utils (textutils's getline test was inadequate).
52316         (AM_FUNC_GETLINE): Run this test.
52317         (AC_CHECK_FUNCS): Check for getdelim.
52318         Reported by Bob Proulx.
52319
52320 1999-08-02  Jim Meyering  <meyering@ascend.com>
52321
52322         * m4/jm-macros.m4: Add a comment.
52323
52324 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52325
52326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
52327         <inttypes.h> defines strtoumax as a macro (and not as a
52328         function).
52329
52330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52331
52332         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
52333         that we can shift, multiply and divide unsigned long long
52334         values; Ultrix cc can't do it.
52335
52336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52337
52338         * m4/mktime.m4: New file, which is a preview of what should appear
52339         in the next public autoconf release.
52340
52341 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52342
52343         * m4/lfs.m4: Remove this file.
52344         * m4/largefile.m4: New file.  It contains the old contents of
52345         lfs.m4, except that all names with prefix AC_LFS have been
52346         changed to use the prefix AC_SYS_LARGEFILE instead, to be
52347         compatible with future autoconf versions.  Also, some minor m4
52348         quoting problems have been fixed.
52349
52350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52351
52352         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
52353         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
52354         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
52355         and simplify the shell code.
52356
52357 1999-08-01  Jim Meyering  <meyering@ascend.com>
52358
52359         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
52360         m4.
52361
52362 1999-07-20  Jim Meyering  <meyering@ascend.com>
52363
52364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
52365
52366 1999-07-15  Jim Meyering  <meyering@ascend.com>
52367
52368         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
52369
52370 1999-05-22  Jim Meyering  <meyering@ascend.com>
52371
52372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
52373
52374 1999-05-20  Jim Meyering  <meyering@ascend.com>
52375
52376         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
52377         Add a colon after each `then' in case $4 is empty.
52378
52379 1999-05-16  Jim Meyering  <meyering@ascend.com>
52380
52381         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
52382
52383 1999-05-10  Jim Meyering  <meyering@ascend.com>
52384
52385         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
52386
52387         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
52388         AC_FUNC_MKTIME.
52389
52390 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
52391
52392         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
52393
52394 1999-05-04  Paul Eggert  <eggert@twinsun.com>
52395
52396         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
52397         not CPPFLAGS, so that linking works correctly in IRIX.
52398
52399 1999-04-30  Paul Eggert  <eggert@twinsun.com>
52400
52401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
52402
52403 1999-04-20  Paul Eggert  <eggert@twinsun.com>
52404
52405         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
52406         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
52407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
52408         jm_AC_TYPE_UNSIGNED_LONG_LONG.
52409         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
52410
52411         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
52412
52413 1999-04-20  Jim Meyering  <meyering@ascend.com>
52414
52415         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
52416         AC_REPLACE xstroull if necessary.  From Paul Eggert.
52417         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
52418
52419 1999-04-18  Jim Meyering  <meyering@ascend.com>
52420
52421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
52422         * m4/jm-macros.m4: Use it.
52423
52424 1999-04-06  Jim Meyering  <meyering@ascend.com>
52425
52426         * m4/strftime.m4: Remove test for %f.
52427
52428 1999-03-29  Jim Meyering  <meyering@ascend.com>
52429
52430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
52431         superset of the AC_TYPE_* checks in the textutils, fileutils,
52432         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
52433         AC_TYPE_PID_T.
52434
52435 1999-03-28  Jim Meyering  <meyering@ascend.com>
52436
52437         * m4/jm-macros.m4: Define GNU_PACKAGE here.
52438         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
52439         replaced e.g., in the *.sh files of the sh-utils.
52440
52441 1999-03-20  Jim Meyering  <meyering@ascend.com>
52442
52443         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
52444         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
52445         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
52446
52447 1999-03-19  Jim Meyering  <meyering@ascend.com>
52448
52449         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
52450
52451 1999-03-12  Jim Meyering  <meyering@ascend.com>
52452
52453         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
52454
52455 1999-03-07  Jim Meyering  <meyering@ascend.com>
52456
52457         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
52458         declared.
52459
52460 1999-02-17  Jim Meyering  <meyering@ascend.com>
52461
52462         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
52463         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
52464
52465 1999-02-07  Jim Meyering  <meyering@ascend.com>
52466
52467         * m4/group-member.m4: New file -- extracted from sh-utils'
52468         configure.in.
52469
52470         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
52471         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
52472
52473 1999-02-06  Jim Meyering  <meyering@ascend.com>
52474
52475         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
52476         * m4/fnmatch.m4: Likewise.
52477         * m4/getgroups.m4: Likewise.
52478         * m4/lstat.m4: Likewise.
52479         * m4/malloc.m4: Likewise.
52480         * m4/putenv.m4: Likewise.
52481         * m4/realloc.m4: Likewise.
52482         * m4/regex.m4: Likewise.
52483         * m4/stat.m4: Likewise.
52484         * m4/strftime.m4: Likewise.
52485         Suggestion from Alain Magloire.
52486
52487         * m4/chown.m4: Use `.$ac_objext', not `.o'.
52488         * m4/fnmatch.m4: Likewise.
52489         * m4/getgroups.m4: Likewise.
52490         * m4/getline.m4: Likewise.
52491         * m4/lstat.m4: Likewise.
52492         * m4/malloc.m4: Likewise.
52493         * m4/memcmp.m4: Likewise.
52494         * m4/putenv.m4: Likewise.
52495         * m4/realloc.m4: Likewise.
52496         * m4/regex.m4: Likewise.
52497         * m4/stat.m4: Likewise.
52498         * m4/strftime.m4: Likewise.
52499         Suggestion from Alain Magloire.
52500
52501         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
52502         an argument.
52503
52504         * m4/regex.m4: Add a run-time Test for proper operation of
52505         re_compile_pattern.
52506
52507 1999-01-31  Jim Meyering  <meyering@ascend.com>
52508
52509         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
52510
52511 1999-01-30  Jim Meyering  <meyering@ascend.com>
52512
52513         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
52514
52515         * m4/jm-mktime.m4: Make this a wrapper around the official
52516         AM_FUNC_MKTIME rather than my private copy, now that the official one
52517         is up to date.
52518         * m4/mktime.m4: Remove file.
52519
52520         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
52521         * m4/uptime.m4: Likewise.
52522         * m4/uintmax_t.m4: Likewise.
52523
52524 1999-01-28  Jim Meyering  <meyering@ascend.com>
52525
52526         * m4/jm-macros.m4: Use jm_AFS.
52527         * m4/afs.m4: New file (from fileutils' configure.in).
52528
52529         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
52530         * m4/chown.m4: Likewise.
52531         * m4/d-ino.m4: Likewise.
52532         * m4/d-type.m4: Likewise.
52533         * m4/fnmatch.m4: Likewise.
52534         * m4/getgroups.m4: Likewise.
52535         * m4/gettext.m4: Likewise.
52536         * m4/jm-mktime.m4: Likewise.
52537         * m4/jm-winsz2.m4: Likewise.
52538         * m4/lcmessage.m4: Likewise.
52539         * m4/ls-mntd-fs.m4: Likewise.
52540         * m4/malloc.m4: Likewise.
52541         * m4/memcmp.m4: Likewise.
52542         * m4/putenv.m4: Likewise.
52543         * m4/realloc.m4: Likewise.
52544         * m4/st_mtim.m4: Likewise.
52545         * m4/strftime.m4: Likewise.
52546
52547 1999-01-16  Jim Meyering  <meyering@ascend.com>
52548
52549         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
52550         (ARGMATCH_DIE_DECL): Define.
52551
52552 1999-01-12  Jim Meyering  <meyering@ascend.com>
52553
52554         * m4/Makefile.am.in: Rewrite to avoid using fmt.
52555         Reported by Lars Hecking.
52556
52557 1999-01-10  Jim Meyering  <meyering@ascend.com>
52558
52559         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
52560         gross kludge.
52561         * m4/inttypes_h.m4: Likewise.
52562         * m4/lstat.m4: Likewise.
52563         * m4/malloc.m4: Likewise.
52564         * m4/readdir.m4: Likewise.
52565         * m4/realloc.m4: Likewise.
52566         * m4/st_dm_mode.m4: Likewise.
52567         * m4/stat.m4: Likewise.
52568         * m4/utimbuf.m4: Likewise.
52569         * m4/utimes.m4: Likewise.
52570
52571         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
52572         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
52573         comments in config.h.in are meaningful.
52574
52575         * m4/jm-macros.m4: Require autoconf-2.13 here.
52576
52577         * m4/regex.m4: By default, don't use the included regex.c on systems
52578         with glibc 2.  Suggestion from Uli Drepper.
52579
52580 1999-01-02  Jim Meyering  <meyering@ascend.com>
52581
52582         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
52583
52584 1998-12-18  Jim Meyering  <meyering@ascend.com>
52585
52586         * m4/Makefile.am.in (Makefile.am): Simplify rule.
52587         Based on a suggestion from Lars Hecking.
52588
52589 1998-11-16  Paul Eggert  <eggert@twinsun.com>
52590
52591         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
52592
52593 1998-11-16  Jim Meyering  <meyering@ascend.com>
52594
52595         * m4/lfs.m4: Double-quote the `uname...` expression.
52596
52597 1998-11-14  Jim Meyering  <meyering@ascend.com>
52598
52599         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
52600         * m4/stat.m4: Likewise.
52601
52602 1998-11-03  Jim Meyering  <meyering@ascend.com>
52603
52604         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
52605         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
52606
52607 1998-10-18  Jim Meyering  <meyering@ascend.com>
52608
52609         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
52610
52611 1998-10-17  Jim Meyering  <meyering@ascend.com>
52612
52613         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
52614         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
52615         calls for those previously hard-coded headers.  Instead, take a new
52616         parameter.
52617         (jm_CHECK_DECLARATIONS): Reflect interface change.
52618         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
52619         (jm_CHECK_DECL_LOCALTIME_R): New macro.
52620
52621         * m4/mktime.m4: Test for spring-forward gap before long-running test.
52622
52623 1998-10-14  Jim Meyering  <meyering@ascend.com>
52624
52625         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
52626         instead of "TZ=America/Vancouver".  From Paul Eggert.
52627
52628 1998-10-11  Jim Meyering  <meyering@ascend.com>
52629
52630         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
52631         This adds a test for a recently added compatibility fix for mktime.c.
52632         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
52633
52634 1998-09-27  Jim Meyering  <meyering@ascend.com>
52635
52636         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
52637
52638         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
52639         ../configure.in, including a change from Gordon Matzigkeit to allow
52640         cross-compiling for the Hurd.
52641
52642         * m4/glibc.m4: New file/macro to test for the GNU C Library
52643         versions 1 and 2.  From Gordon Matzigkeit.
52644         Indent.
52645
52646 1998-09-21  Jim Meyering  <meyering@ascend.com>
52647
52648         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
52649
52650 1998-08-18  Paul Eggert  <eggert@twinsun.com>
52651
52652         Port nanosecond-resolution times to UnixWare 2.1.2 and
52653         pedantic Solaris 2.6.
52654
52655         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
52656         AC_STRUCT_ST_MTIM.
52657         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
52658         Generate name of ns member, instead of just 1 or undef.
52659         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
52660
52661 1998-08-15  Jim Meyering  <meyering@ascend.com>
52662
52663         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
52664         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
52665         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
52666         instead of jm_TYPE_SSIZE_T.
52667
52668 1998-08-12  Jim Meyering  <meyering@ascend.com>
52669
52670         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
52671
52672 1998-08-02  Jim Meyering  <meyering@ascend.com>
52673
52674         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
52675         in acconfig.h manually.
52676
52677 1998-07-31  Paul Eggert  <eggert@twinsun.com>
52678
52679         * m4/st_mtim.m4: New file.
52680
52681 1998-07-28  Jim Meyering  <meyering@ascend.com>
52682
52683         * m4/utimes.m4: Undef stat.
52684
52685 1998-07-25  Jim Meyering  <meyering@ascend.com>
52686
52687         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
52688         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
52689
52690 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
52691
52692         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
52693         uid and gid actually remain unchanged.
52694
52695 1998-07-07  Jim Meyering  <meyering@ascend.com>
52696
52697         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
52698
52699 1998-07-04  Jim Meyering  <meyering@ascend.com>
52700
52701         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
52702         to prove that this macro can be used in packages without regex.c.
52703
52704 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
52705
52706         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
52707         is to be used.
52708
52709 1998-07-03  Jim Meyering  <meyering@ascend.com>
52710
52711         * m4/gettext.m4: Add -lintl if it's found to be necessary.
52712
52713         * m4/gettext.m4: New file -- from gettext-0.10.35.
52714         * m4/lcmessage.m4: Likewise.
52715         * m4/progtest.m4: Likewise.
52716
52717         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
52718         * m4/jm-macros.m4: Require the new macro.
52719
52720 1998-06-29  Jim Meyering  <meyering@ascend.com>
52721
52722         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
52723         for the definition of NGROUPS (used in a system header included
52724         by sys/mount.h).
52725
52726 1998-06-28  Jim Meyering  <meyering@ascend.com>
52727
52728         * m4/ls-mntd-fs.m4: New file.
52729         * m4/fstypename.m4: New file.
52730
52731         * m4/jm-macros.m4: Require the new macro.
52732         * m4/jm-glibc-io.m4: New file.
52733
52734 1998-05-19  Jim Meyering  <meyering@ascend.com>
52735
52736         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
52737         * m4/lchown.m4: New file.
52738
52739         * m4/Makefile.am.in: New file.
52740         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
52741
52742 1998-05-14  Jim Meyering  <meyering@ascend.com>
52743
52744         * m4/Makefile.am (EXTRA_DIST): Add them.
52745         * m4/jm-macros.m4: New file.
52746         * m4/utimbuf.m4: New file.
52747
52748 1998-05-12  Jim Meyering  <meyering@ascend.com>
52749
52750         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
52751
52752 1998-05-11  Jim Meyering  <meyering@ascend.com>
52753
52754         * m4/isc-posix.m4: New file.
52755
52756 1998-05-10  Jim Meyering  <meyering@ascend.com>
52757
52758         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
52759
52760 1998-05-09  Jim Meyering  <meyering@ascend.com>
52761
52762         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
52763         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
52764         with automake.
52765
52766         * m4/ssize_t.m4: New file.
52767         * m4/mktime.m4: Remove file -- the new automake has this now.
52768
52769 1998-04-26  Jim Meyering  <meyering@ascend.com>
52770
52771         * m4/assert.m4: New file.
52772         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
52773
52774 1998-04-05  Jim Meyering  <meyering@ascend.com>
52775
52776         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
52777         (jm_PREREQ): Use it here.
52778
52779 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
52780
52781         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
52782         in acconfig.h.
52783
52784 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
52785
52786         * m4/prereq.m4: New file.
52787         * m4/error.m4: New file.
52788         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
52789
52790 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
52791
52792         * m4/getline.m4: Don't set am_cv_func_working_getline before the
52793         cache-check for the same variable -- that defeated the purpose of
52794         the test; the test program was never run.  This was a problem only
52795         on systems with losing getline functions -- HP-UX 10.20 is one.
52796         Reported by Bjorn Helgaas.
52797
52798 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
52799
52800         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
52801
52802 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
52803
52804         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
52805
52806         * m4/const.m4: New file.  Use an initializer in this declaration
52807         typedef int charset[2]; const charset x;
52808         Reported by Bob Glickstein.
52809
52810 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
52811
52812         * m4/chown.m4: Fix reversed types on -1 args to chown.
52813         From Kaveh Ghazi.
52814
52815 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
52816
52817         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
52818         Add lseek and memchr.
52819
52820         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
52821         T.E.Dickey <dickey@clark.net> said that some older preprocessors
52822         have a 20-character limit on names.
52823
52824 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
52825
52826         * m4/inttypes_h.m4: New file.
52827         * m4/uintmax_t.m4: New file.
52828         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
52829
52830
52831         -----
52832
52833         Local Variables:
52834         coding: utf-8
52835         End:
52836
52837         Copyright (C) 1997-2009 Free Software Foundation, Inc.
52838
52839         Copying and distribution of this file, with or without
52840         modification, are permitted provided the copyright notice
52841         and this notice are preserved.